/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D5016;
    --secondary-color: #4A7C2C;
    --accent-color: #8BC34A;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

.search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--secondary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    margin-top: 70px;
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Category Navigation */
.category-navigation {
    background: var(--white);
    padding: 1.5rem 1rem;
}

.category-nav-container {
    max-width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.category-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.7rem 0.5rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.category-nav-btn:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.category-nav-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.category-nav-btn:hover .category-nav-icon {
    transform: scale(1.1);
}

.category-nav-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Featured Products Section */
.featured-products-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.featured-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 275px));
    gap: 1rem;
    margin-bottom: 3rem;
}

.view-all-btn {
    display: block;
    margin: 0 auto;
    padding: 1rem 3rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.3);
}

/* Categories Grid Section */
.categories-grid-section {
    padding: 4rem 0;
    background: white;
}

.categories-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}


.category-box {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s ease;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.779);
    pointer-events: none;
}

.category-box:hover .category-title {
    opacity: 0;
}

.category-box img {
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.category-box:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.7s ease;
    text-align: center;
    transform: translateX(0px);
}

.category-box:hover .category-overlay {
    opacity: 1;
    transform: translateX(31%);
}

/* Reverse layout for dormitorio and baño */
.category-box.reverse img {
    float: right;
}

.category-box.reverse:hover .category-overlay {
    opacity: 1;
    transform: translateX(-31%);
}

.category-overlay h2 {
    font-size: 3rem;
    color: rgb(0, 0, 0);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.category-overlay p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.95);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 400px;
}


.category-overlay .category-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}


.category-overlay .category-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Sale Products Section */
.sale-products-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fef5 0%, #ffffff 100%);
}

.sale-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sale-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Lifestyle Fullscreen Sections */
.lifestyle-fullscreen {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.lifestyle-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.7), rgba(74, 124, 44, 0.5));
    mix-blend-mode: multiply;
}

.lifestyle-fullscreen-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 3rem;
    animation: fadeInScale 1.2s ease;
}

.lifestyle-fullscreen-content h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.lifestyle-fullscreen-content p {
    font-size: 1.4rem;
    line-height: 2;
    font-weight: 300;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

.lifestyle-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    margin-top: 4rem;
}

.lifestyle-scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Remove old lifestyle sections */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-card::after {
    content: '👁️ Ver detalles';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 80, 22, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-stock.low-stock {
    color: #d32f2f;
    font-weight: 600;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #757575, #616161);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 0.3rem 0.8rem;
}

.qty-control-btn {
    background: white;
    border: 1px solid #e0e0e0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-weight: 600;
}

.qty-control-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.qty-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    color: var(--text-dark);
}

.add-to-cart-btn {
    padding: 0.7rem 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.add-to-cart-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart-btn:disabled:hover {
    transform: none;
}

.go-to-cart-btn {
    padding: 0.7rem 1.2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.go-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.cart-item-count {
    background: var(--primary-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.cart-modal.active {
    right: 0;
}

.cart-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stock-warning {
    font-size: 0.75rem;
    color: #d32f2f;
    font-weight: 700;
    background: #ffebee;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.remove-item {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Products Page Wrapper (for separate HTML page) */
.products-page-wrapper {
    min-height: 100vh;
    background: white;
    padding-top: 20px;
}

/* Products Page (legacy - for modal overlay in index.html) */
.products-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2500;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.products-page.active {
    display: block;
}

.products-page.active ~ .header,
body:has(.products-page.active) .header {
    display: none;
}

.products-page-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: 100vh;
}

/* Filtros Laterales */
.products-filters {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.products-filters .back-btn {
    width: 100%;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.filters-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.filters-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: white;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.filter-option span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.clear-filters-btn {
    width: 100%;
    padding: 0.8rem;
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.clear-filters-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Productos Main */
.products-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.products-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-main-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkout-main-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.checkout-main-count {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Checkout Page Wrapper (for separate HTML page) */
.checkout-page-wrapper {
    min-height: 100vh;
    background: white;
    padding-top: 20px;
}

/* Checkout Page (legacy - for modal overlay in index.html) */
.checkout-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 3000;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.checkout-page.active {
    display: block;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.checkout-container h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.checkout-form h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.checkout-form h2:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-label span {
    user-select: none;
}

#billingAddressSection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.payment-methods {
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--secondary-color);
}

.payment-option input[type="radio"] {
    width: auto;
}

.card-fields {
    transition: opacity 0.3s ease;
}

.submit-order-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.submit-order-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.order-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.order-summary h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.summary-item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.summary-totals {
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 0rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.reveal-left,
.reveal-right,
.reveal-fade {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-fade {
    transform: translateY(30px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-fade.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 968px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .category-nav-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-row {
        grid-template-columns: 1fr;
        min-height: 600px;
    }
    
    .category-row.reverse {
        direction: ltr;
    }
    
    .category-content-side {
        padding: 2rem;
    }
    
    .category-content-side h2 {
        font-size: 2.5rem;
    }
    
    .category-content-side p {
        font-size: 1rem;
    }
    
    .lifestyle-fullscreen-content h2 {
        font-size: 3rem;
    }
    
    .lifestyle-fullscreen-content p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-modal {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .products-page-container {
        grid-template-columns: 1fr;
    }
    
    .products-filters {
        position: static;
    }
    
    .products-actions-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checkout-main-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .search-bar input {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .cart-icon {
        width: 24px;
        height: 24px;
    }
    
    .category-nav-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .category-nav-btn {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .sale-products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .category-row {
        min-height: auto;
        flex-direction: column;
    }
    
    .category-image-side,
    .category-content-side {
        width: 100%;
    }
    
    .category-image-side img {
        height: 200px;
        object-fit: cover;
    }
    
    .category-content-side {
        padding: 1rem 1rem;
    }
    
    .category-content-side h2 {
        font-size: 1.6rem;
    }
    
    .category-content-side p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    .category-box {
        height: 450px;
    }
    .category-box img{
        width: 100%;
    }

    .category-box:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}
.category-overlay p {
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.category-box:hover .category-overlay {
    opacity: 1;
    transform: translateX(0px);
}

/* Reverse layout for dormitorio and baño */
.category-box.reverse img {
    float: right;
}

.category-box.reverse:hover .category-overlay {
    opacity: 1;
    transform: translateX(0px);
}
    
    .lifestyle-fullscreen {
        height: 70vh;
    }

    
    .lifestyle-fullscreen-content {
        padding: 1.5rem 1rem;
    }
    
    .lifestyle-fullscreen-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }
    
    .lifestyle-fullscreen-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Product Detail Page Styles
   ======================================== */

.product-detail-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 2rem 0;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-detail-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-image-section {
    position: sticky;
    top: 2rem;
}

.product-detail-image-main {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-detail-image-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-category {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.product-detail-stock {
    padding: 0.5rem 1rem;
    background: #e8f5e9;
    color: var(--secondary-color);
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-detail-stock.low-stock {
    background: #fff3e0;
    color: #f57c00;
}

.product-detail-description h3,
.product-detail-features h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-detail-description p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
}

.product-detail-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #f0f0f0;
}

.product-detail-features li:last-child {
    border-bottom: none;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.product-quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-quantity-selector label {
    font-weight: 500;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-controls .qty-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    color: var(--secondary-color);
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .qty-control-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
}

.quantity-controls .qty-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-controls .qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.add-to-cart-detail-btn,
.checkout-direct-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-detail-btn {
    background: var(--secondary-color);
    color: white;
}

.add-to-cart-detail-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.checkout-direct-btn {
    background: var(--accent-color);
    color: white;
}

.checkout-direct-btn:hover:not(:disabled) {
    background: #7cb342;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.add-to-cart-detail-btn:disabled,
.checkout-direct-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.product-in-cart-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Related Products Section */
.related-products-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.related-products-section .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Responsive Design for Product Detail */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-image-section {
        position: static;
    }
    
    .product-detail-content {
        padding: 2rem 1.5rem;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .product-detail-container {
        padding: 0 1rem;
    }
    
    .product-detail-content {
        padding: 1.5rem 1rem;
    }
    
    .product-detail-title {
        font-size: 1.75rem;
    }
    
    .product-quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

