/*
 * Casa Jardín - Homepage Redesign
 * Modern, fresh design with warm cream tones and eco-friendly aesthetics
 * Note: Header styles are now in header_style.css for global application
 */

/* ============================================
   MOBILE OVERFLOW FIX
   ============================================ */

.homepage-container {
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

/* Fix Bootstrap row overflow on mobile */
@media (max-width: 768px) {
	.row {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}

	.container,
	.container-fluid {
		overflow-x: hidden;
		max-width: 100vw;
		padding-left: 15px;
		padding-right: 15px;
	}

	body {
		overflow-x: hidden;
		max-width: 100vw;
	}

	html {
		overflow-x: hidden;
		max-width: 100vw;
	}
}

/* ============================================
   SECTION COLOR SYSTEM
   ============================================ */

.section-wrapper {
	margin: 0 !important;
	padding: clamp(16px, 2vw, 24px) 0;
	position: relative;
}

.banner-section {
	padding: 0;
}

.section-bg-cream {
	background-color: var(--cream50);
}

.section-bg-mint {
	background-color: var(--cream100);
}

.section-label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--neutral600);
	margin-bottom: 1rem;
}

.section-title {
	color: var(--neutral900);
	text-align: center;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 700;
	margin-bottom: 2rem;
}

/* ============================================
   BANNER SECTION REDESIGN
   ============================================ */

.swiper-container {
	overflow: hidden;
	margin-top: 2.5rem;
	transition: all 0.3s ease;
}

.banner-section .swiper-container {
	margin-top: 0;
}

@media (min-width: 1600px) {
	.banner-section .swiper-container {
		max-width: 1400px;
		margin-left: auto;
		margin-right: auto;
		margin-top: 40px;
		border-radius: 24px;
	}
}

.swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.6) !important;
	width: 10px !important;
	height: 10px !important;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: white !important;
	width: 24px !important;
	border-radius: 5px !important;
}

/* ============================================
   PRODUCT SECTIONS REDESIGN
   ============================================ */

/* Section titles */
.new_arrivals_title {
	font-size: 24px;
	font-weight: 700;
	color: var(--neutral900) !important;
	text-align: center;
	margin-bottom: 2rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Product cards - matching reference image */
.product_item {
	background: white;
	border-radius: 16px !important;
	padding: 20px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.product_item:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.product_image {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
	background: #fafafa;
	padding: 10px;
}

.product_image img {
	transition: transform 0.4s ease;
}

.product_item:hover .product_image img {
	transform: scale(1.05);
}

.product_name div a {
	color: var(--neutral900);
	font-weight: 500;
	font-size: 14px;
	transition: color 0.3s ease;
	display: block;
	margin-bottom: 8px;
}

.product_name div a:hover {
	color: var(--primary600);
}

.product_price {
	color: var(--neutral900);
	font-weight: 600;
	font-size: 16px;
}

/* Add to cart button */
.product_cart_button {
	background: var(--sage200);
	color: var(--neutral900);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	font-size: 14px;
}

.product_cart_button:hover {
	background: var(--sage300);
	transform: scale(1.02);
}

/* Swiper containers */
.swiper-container-destacados-unique,
.swiper-container-comprados-unique {
	padding-bottom: 2rem;
	overflow: hidden !important;
}

.swiper-slide {
	height: auto;
	overflow: visible;
	padding: 0 !important;
}

/* Productos Destacados section - white background with product cards */
.swiper-container-destacados-unique .product_item {
	background: var(--cream50) !important;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.swiper-container-destacados-unique .product-card {
	background: var(--white) !important;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
	border-radius: 16px !important;
	padding: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.swiper-container-destacados-unique .product-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* Los Más Comprados section - white background with cream product cards */
.swiper-container-comprados-unique .product_item {
	background: var(--cream50) !important;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.swiper-container-comprados-unique .product-card {
	background: var(--white) !important;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
	border-radius: 16px !important;
	padding: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.swiper-container-comprados-unique .product-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* ============================================
   CATEGORY ICONS SECTION
   ============================================ */

#categories-mobile {
	background: transparent;
	padding: 0.5rem 0;
}

.category-link {
	background: white;
	border-radius: 12px;
	padding: 1.5rem 1rem;
	margin: 0.5rem;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 150px;
}

.category-link:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.category-img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 1rem;
	border-radius: 8px;
}

.category-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--neutral800);
	text-align: center;
	margin: 0;
	line-height: 1.3;
}

.btn-categories {
	width: 80px;
	height: 80px;
	background: var(--sage100);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	transition: all 0.3s ease;
}

.btn-categories:hover {
	background: var(--sage200);
	transform: scale(1.05);
}

.btn-categories i {
	color: var(--primary700);
}

/* ============================================
   FEATURED PRODUCTS / DESTACADOS
   ============================================ */

.destacados-section {
	padding: 3rem 0;
}

.destacados-section .container,
.mas-comprados-section .container {
	padding: 0;
}

.categories-section .row {
	padding: clamp(8px, 2vw, 16px);
}

#placeholder-wrapper-colecciones-tiendas-oficiales,
#placeholder-wrapper-colecciones-tiendas-oficiales > section {
	margin: 0;
	padding: 0;
}

/* ============================================
   CALL TO ACTION / NEWSLETTER
   ============================================ */

.newsletter_section {
	background: linear-gradient(135deg, var(--primary600) 0%, var(--primary700) 100%);
	border-radius: 24px;
	padding: 3rem;
	margin: 3rem 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.newsletter_title {
	color: white;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 1rem;
}

.newsletter_input {
	border-radius: 50px;
	border: none;
	padding: 14px 24px;
	font-size: 15px;
}

.newsletter_button {
	border-radius: 50px !important;
	background: var(--accent500) !important;
	border: none;
	padding: 14px 32px !important;
	font-weight: 600;
	transition: all 0.3s ease;
}

.newsletter_button:hover {
	background: var(--accent600) !important;
	transform: scale(1.05);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#scrollTopButton {
	background: white !important;
	color: var(--neutral800) !important;
	border-radius: 50px;
	padding: 12px 24px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: all 0.3s ease;
	cursor: pointer;
}

#scrollTopButton:hover {
	background: var(--sage200) !important;
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ============================================
   CONTAINER & SPACING
   ============================================ */


.homepage-container .container {
	max-width: 1200px;
}

/* Increase max-width for big screens */
@media (min-width: 1400px) {
	.homepage-container .container,
	.container {
		max-width: 1320px !important;
	}
}

@media (min-width: 1600px) {
	.homepage-container .container,
	.container {
		max-width: 1480px !important;
	}
}

/* Add spacing between sections */
section {
	margin: 0.25rem 0;
}

/* Reduce title row margins */
.section-wrapper .row.mb-4 {
	margin-bottom: 1rem !important;
}

/* ============================================
   ADDITIONAL STYLING REFINEMENTS
   ============================================ */

/* Ensure all product cards have consistent rounded corners */
.product_item,
.swiper-slide .product_item,
.product-card {
	border-radius: 16px !important;
	overflow: hidden;
}

/* Better image container styling */
.product_image,
.product-image {
	border-radius: 12px !important;
	overflow: hidden;
}

/* Remove any conflicting backgrounds that hide rounded corners */
.swiper-container-destacados-unique,
.swiper-container-comprados-unique {
	background: transparent !important;
}

.swiper-wrapper {
	background: transparent !important;
}

.swiper-slide {
	background: transparent !important;
	padding: 0 !important;
	overflow: visible;
}

/* Ensure product items have proper spacing and visibility */
.swiper-container-destacados-unique .swiper-slide,
.swiper-container-comprados-unique .swiper-slide {
	background: transparent !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */


@media (max-width: 768px) {
	.swiper-container {
		border-radius: 0;
		width: 100%;
	}

	.product_item {
		border-radius: 12px;
		padding: 16px;
	}

	.new_arrivals_title {
		font-size: 24px;
	}

	.categories_icons {
		border-radius: 16px;
		padding: 2rem 1rem;
	}

	.newsletter_section {
		border-radius: 16px;
		padding: 2rem 1.5rem;
	}

	.newsletter_title {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.new_arrivals_title {
		font-size: 20px;
	}

	.product_item {
		padding: 12px;
	}

	.swiper-container {
		width: 100%;
		margin-top: 1.5rem;
	}
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

* {
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in animation for sections */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animated-section {
	animation: fadeInUp 0.6s ease-out;
}
