/* ============================================
   index.css - Homepage Main Content Styles
   Red-House Christmas Decorations Theme
   ============================================ */

/* --- Banner / Slider --- */
.banner-section {
	position: relative;
	overflow: hidden;
}

.banner-slider {
	width: 100%;
	max-width: 1290px;
	height: 600px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease;
}

.banner-slide.active {
	opacity: 1;
}

.banner-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Banner Arrow Buttons - White Circle Style */
.banner-section {
	position: relative;
}

.banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	user-select: none;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.banner-arrow:hover {
	background: #fff;
	color: #000;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.banner-arrow-left {
	left: calc((100% - 1290px) / 2 + 15px);
}

.banner-arrow-right {
	right: calc((100% - 1290px) / 2 + 15px);
}

/* Responsive: arrows inside banner on smaller screens */
@media (max-width: 1320px) {
	.banner-arrow-left {
		left: 15px;
	}
	.banner-arrow-right {
		right: 15px;
	}
}

/* --- Section Titles (Image-based) --- */
.section-title-wrap {
	margin: 20px 0 15px;
}

.section-title-wrap img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

.section-title-wrap img.hot-title {
	max-width: 275px;
}

.section-title-wrap img.new-title {
	max-width: 290px;
}

.section-line-img {
	text-align: left;
	margin-bottom: 10px;
}

.section-line-img img {
	max-width: 700px;
	width: 100%;
}

/* --- Hot Products Section --- */
.hot-products-section {
	background-color: #0a3d20;
	padding-bottom: 10px;
}

/* --- Product List (Fix Num Style - Hot Products) --- */
.product-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.product-list > li {
	width: 20%;
	padding: 0 8px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.product-card {
	background: transparent;
	transition: transform 0.3s;
}

.product-card:hover {
	transform: translateY(-3px);
}

.product-card .product-image {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
	margin-bottom: 8px;
}

.product-card .product-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
	transform: scale(1.05);
}

.product-card .product-name {
	display: block;
	font-size: 12px;
	color: #ddd;
	line-height: 1.4;
	height: 34px;
	overflow: hidden;
	margin-bottom: 8px;
	text-decoration: none;
}

.product-card .product-name:hover {
	color: #fff;
}

/* --- Product Buttons - Fresh Blue Style (Hot Products) --- */
.prodlist-btn-fresh-wrap {
	background: #fafafa;
	border: 1px solid #dcdcdc;
	border-radius: 2px;
	overflow: hidden;
}

.prodlist-btn-fresh-blue .btn-wrap-fresh-double {
	display: flex;
}

.btn-wrap-fresh-double .btn-left {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 8px;
	font-size: 14px;
	line-height: 40px;
	height: 40px;
	color: #0f592f;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.3s;
	white-space: nowrap;
}

.prodlist-btn-fresh-wrap:hover {
	opacity: 0.8;
}

.btn-wrap-fresh-double .btn-right {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0f592f;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s;
	text-decoration: none;
}

.btn-wrap-fresh-double .btn-right:hover {
	background-color: #185a94;
}

/* --- Product Buttons - Blue Style (New Products) --- */
.prodlist-btn-wrap.prodlist-btn-blue {
	margin-top: 5px;
}

.prodlist-btn-blue .btn-wrap-single a {
	display: block;
	text-align: center;
	padding: 6px 17px;
	background-color: #0f592f;
	color: #fff;
	font-size: 14px;
	line-height: 34px;
	height: 34px;
	text-decoration: none;
	border-radius: 2px;
	transition: background 0.3s;
}

.prodlist-btn-blue .btn-wrap-single a:hover {
	background-color: #185a94;
}

/* --- Product Special Tag (NEW) --- */
.product-special-tag {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
}

.product-special-tag .new-tag {
	display: inline-block;
	background-color: #e74c3c;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 2px;
}

/* --- New Products Section (Fix Style) --- */
.new-products-section {
	background-color: #0a3d20;
	padding-bottom: 10px;
}

.new-products-section .product-list > li {
	width: 20%;
	padding: 0 8px;
	margin-bottom: 15px;
}

.new-products-section .product-card .product-image img {
	width: 220px;
	max-width: 100%;
	height: auto;
}

/* --- READ MORE Button --- */
.read-more-wrap {
	text-align: right;
	padding: 10px 0 20px;
}

.read-more-btn {
	display: inline-block;
	height: 27px;
	line-height: 27px;
	padding: 0 12px;
	background-color: transparent;
	color: #0ff;
	font-size: 13px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	transition: color 0.3s, background 0.3s;
	text-decoration: none;
}

.read-more-btn:hover {
	color: #fff;
	background-color: #093478;
}

/* --- About Us Section --- */
.about-us-section {
	background-color: #0a3d20;
}

.about-us-section .about-title-img {
	margin-bottom: 10px;
}

.about-us-section .about-title-img img {
	max-width: 220px;
	width: 100%;
}

.about-us-section .about-line-img img {
	max-width: 700px;
	width: 100%;
	margin-bottom: 15px;
}

/* Video */
.about-video {
	margin-bottom: 20px;
}

.about-video .video-thumbnail {
	position: relative;
	display: block;
	overflow: hidden;
	cursor: pointer;
}

.about-video .video-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.about-video .play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
}

.about-video .video-thumbnail:hover .play-icon {
	background: rgba(31, 105, 173, 0.8);
}

.about-video .play-icon::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
	margin-left: 4px;
}

/* About Text */
.about-text {
	text-align: justify;
	margin-bottom: 10px;
}

.about-text span {
	color: #ffffff;
	line-height: 2;
	font-size: 14px;
}

/* --- News Section --- */
.news-section {
	background-color: #0a3d20;
	padding: 0 0 20px;
}

.news-section .news-title-img {
	margin-bottom: 10px;
}

.news-section .news-title-img img {
	max-width: 156px;
	width: 100%;
}

.news-section .news-line-img img {
	max-width: 500px;
	width: 100%;
	margin-bottom: 10px;
}

.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-list > li {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-list > li:last-child {
	border-bottom: none;
}

.news-title {
	margin-bottom: 4px;
}

.news-title i {
	color: #0f592f;
	margin-right: 5px;
	font-size: 12px;
}

.news-title a {
	color: #ddd;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	transition: color 0.3s;
}

.news-title a:hover {
	color: #fff;
}

.news-meta {
	margin-bottom: 6px;
}

.news-meta i {
	color: #0f592f;
	margin-right: 4px;
	font-size: 11px;
}

.news-meta span {
	color: #888;
	font-size: 11px;
}

.news-entry-summary {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.news-entry-summary img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	flex-shrink: 0;
}

.news-summary-text {
	font-size: 13px;
	color: #ccc;
	line-height: 1.6;
	flex: 1;
}

.news-summary-text .read-more {
	color: #0f592f;
	font-size: 12px;
	text-decoration: none;
}

.news-summary-text .read-more:hover {
	color: #fff;
	text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
	.banner-slider {
		height: 500px;
	}
	.product-list > li {
		width: 25%;
	}
	.new-products-section .product-list > li {
		width: 25%;
	}
}

@media (max-width: 992px) {
	.banner-slider {
		height: 400px;
	}
	.product-list > li {
		width: 33.333%;
	}
	.new-products-section .product-list > li {
		width: 33.333%;
	}
	.about-us-section .row > .col-md-7,
	.about-us-section .row > .col-md-5 {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.footer-content .col-md-3,
	.footer-content .col-md-9 {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 20px;
	}
}

@media (max-width: 768px) {
	.banner-slider {
		height: 250px;
	}
	.product-list > li {
		width: 50%;
	}
	.new-products-section .product-list > li {
		width: 50%;
	}
	.header-area .col-md-4,
	.header-area .col-md-5,
	.header-area .col-md-3 {
		flex: 0 0 100%;
		max-width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}
	.header-area .col-md-3 {
		text-align: center;
		padding-right: 15px;
	}
	.prodsearch-styles-wrap {
		margin: 8px auto 0;
	}
	.main-navigation ul li a {
		font-size: 14px;
		padding: 10px 12px;
	}
	.online-service-sidebar {
		display: none;
	}
}

@media (max-width: 480px) {
	.product-list > li {
		width: 50%;
	}
	.new-products-section .product-list > li {
		width: 50%;
	}
	.news-entry-summary {
		flex-direction: column;
	}
	.news-entry-summary img {
		width: 100%;
		height: auto;
	}
}

/* ==================== Screen Reader Only ==================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
