/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Add subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 109, 85, 0.05) 1px, transparent 0),
        radial-gradient(circle at 3px 3px, rgba(139, 109, 85, 0.03) 1px, transparent 0);
    background-size: 20px 20px, 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content appears above texture */
.navbar, main, footer {
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 109, 85, 0.1);
    z-index: 100;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(139, 109, 85, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.icon-link {
    position: relative;
    color: #333 !important;
    font-size: 1.1rem;
}

.icon-link .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #3a3a3a;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: #faf8f5;
    padding: 1rem 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(139, 109, 85, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #6d5243 0%, #5a4536 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 109, 85, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Slideshow Styles */
.slideshow-container {
    width: 400px;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    background: #f5f5f5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: flex;
}

.slide i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Navigation arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active, .dot:hover {
    background: white;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: #faf8f5;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    border-top: 1px solid rgba(139, 109, 85, 0.2);
    border-bottom: 1px solid rgba(139, 109, 85, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Categories */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.category-chips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 109, 85, 0.3);
    text-decoration: none;
    color: #2c2c2c;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(139, 109, 85, 0.1);
}

.chip:hover,
.chip.active {
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: #faf8f5;
    border-color: #6d5243;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 109, 85, 0.25);
}

/* New Arrivals / Product Grid */
.new-arrivals,
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.new-arrivals h2 {
    text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #2c2c2c;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(139, 109, 85, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

/* Ensure consistent sizing for all product cards */
.product-card {
    height: 580px;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 109, 85, 0.12);
    border: 1px solid rgba(139, 109, 85, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 109, 85, 0.2);
    border-color: rgba(139, 109, 85, 0.15);
}

.product-image {
    height: 360px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(45deg, #f5f2ed, #faf8f5);
}

/* Premium hover overlay */
.product-image::after {
    content: 'View Details';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 109, 85, 0.9);
    color: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

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

/* Scale actual product images on hover too */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 12px 12px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: auto;
    color: #000;
}

.add-to-cart-btn {
    margin-top: auto;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: #faf8f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(139, 109, 85, 0.3);
    letter-spacing: 0.3px;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 109, 85, 0.4);
    background: linear-gradient(135deg, #6d5243 0%, #5a4536 100%);
}


.product-image {
    position: relative;
    overflow: hidden;
}

.placeholder-product-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0ede6 0%, #ede8dd 50%, #f5f2ed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b6d55;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.placeholder-product-image i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wishlist-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 109, 85, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #8b6d55;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(139, 109, 85, 0.15);
}

.wishlist-btn:hover {
    color: #c44569;
    transform: scale(1.1) translateY(-1px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(139, 109, 85, 0.25);
}


.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: #000;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}


/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, rgba(139, 109, 85, 0.05) 0%, rgba(139, 109, 85, 0.08) 100%);
    border-top: 1px solid rgba(139, 109, 85, 0.1);
    text-align: center;
    padding: 4rem 20px;
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(139, 109, 85, 0.03) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
}

.newsletter h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.newsletter p {
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.newsletter-form button {
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 500;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: #f5f2ed;
    text-align: center;
    padding: 2rem 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social i {
    font-size: 1.1rem;
}

/* Shop Page Specific */
.shop-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.shop-header {
    margin-bottom: 2rem;
}

.shop-header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #2c2c2c;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(139, 109, 85, 0.1);
}

.shop-filters {
    margin: 2rem 0;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.search-form input {
    flex: 1;
    min-width: 250px;
}

.search-form button {
    background: linear-gradient(135deg, #8b6d55 0%, #6d5243 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.no-products {
    text-align: center;
    padding: 4rem 0;
}

.no-products p {
    color: #666;
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Mobile Slideshow */
    .slideshow-container {
        width: 280px;
        height: 320px;
    }
    
    .slide i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    /* Smaller navigation controls for mobile */
    .prev, .next {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .dots-container {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    /* Compact New Arrivals section */
    .new-arrivals {
        padding: 1.5rem 20px;
    }
    
    .new-arrivals h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    /* Maintain 2-column layout on mobile */
    .product-card {
        height: 460px;
    }
    
    .product-image {
        height: 230px;
    }
    
    .placeholder-product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        height: 2.4rem;
        margin-bottom: 0.5rem;
    }
    
    .product-info .price {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        margin-top: auto;
    }
    
    .placeholder-product-image i {
        font-size: 2rem;
    }
    
    /* Compact other sections */
    .promo-banner {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .categories {
        padding: 1rem 20px;
    }
    
    .category-chips {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .chip {
        white-space: nowrap;
    }
    
    /* Compact newsletter section */
    .newsletter {
        padding: 2rem 20px;
    }
    
    .newsletter h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .newsletter p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        min-width: 100%;
    }
}

/* Ensure product descriptions don't break uniformity */
.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Strict container to prevent any content overflow */
.product-card {
    overflow: hidden !important;
}

/* Mobile description adjustments */
@media (max-width: 768px) {
    .product-description {
        font-size: 0.85rem;
        height: 2.0rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 1;
    }
}