/* Cindy's Premium Gifting Platform Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #fcfbfa;      /* Soft Ivory / Warm White */
    --bg-secondary: #ffffff; /* Pure White */
    --white: #ffffff;
    --accent-blush: #f9f0f0; /* Sophisticated Blush / Rose */
    --accent-wine: #5e1914;  /* Deep Burgundy / Wine */
    --accent-gold: #d4af37;  /* Subtle Gold Details */
    --text-dark: #2c2c2c;    /* Dark Charcoal */
    --text-muted: #6b6b6b;   /* Muted Text */
    --border-light: #eaeaea; /* Fine Borders */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.07);
    --radius-soft: 8px;
    --radius-pill: 50px;
    
    /* Kept for fallback in older inline styles just in case, though they shouldn't be used */
    --primary-green: #5e1914; 
    --primary-orange: #d4af37;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent-wine);
    color: var(--bg-main);
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Top Bar (Contact) */
.top-bar {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}
.top-bar a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--accent-wine);
}
.top-bar svg, .top-bar img {
    opacity: 0.7;
    transition: opacity 0.3s;
}
.top-bar a:hover svg, .top-bar a:hover img {
    opacity: 1;
}

/* Main Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.logo {
    flex-shrink: 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent-wine);
}
.site-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
}
.logo img {
    height: 70px;
}
.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    display: flex;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    outline: none;
    background-color: var(--bg-main);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}
.search-bar input:focus {
    border-color: var(--accent-gold);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.search-bar .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 20px;
    background-color: var(--accent-wine);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: #4a1310;
}
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.header-actions a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.header-actions a:hover {
    color: var(--accent-wine);
}
.header-actions svg {
    width: 22px;
    height: 22px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    padding: 15px 5%;
    border-bottom: 1px solid var(--border-light);
}
.nav-left { flex: 1; }
.nav-center {
    display: flex;
    justify-content: center;
    flex: 2;
    gap: 35px;
}
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-nav a:hover::after {
    width: 100%;
}
.main-nav a:hover {
    color: var(--accent-wine);
}

/* Custom Order CTA Button in Nav */
.btn-custom-order {
    color: var(--accent-wine) !important;
    font-weight: 600 !important;
    border: 1px solid var(--accent-wine);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-custom-order::after { display: none !important; }
.btn-custom-order:hover {
    background: var(--accent-wine);
    color: var(--bg-main) !important;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 600px;
    background: var(--accent-blush); /* Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 44, 44, 0.3); /* Subtle dark overlay for text readability */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
    color: var(--bg-secondary);
}
.hero-content h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--bg-secondary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.btn-primary {
    display: inline-block;
    background-color: var(--accent-wine);
    color: var(--white);
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-wine);
}
.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--bg-secondary);
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-secondary);
    margin-left: 15px;
}
.btn-secondary:hover {
    background-color: var(--bg-secondary);
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 36px;
    color: var(--accent-wine);
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Categories Section */
.category-circles {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.category-circle {
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    width: 140px;
    transition: transform 0.4s ease;
}
.category-circle:hover {
    transform: translateY(-8px);
}
.category-circle img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--bg-secondary);
    transition: all 0.4s ease;
}
.category-circle:hover img {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blush);
}
.category-circle p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    line-height: 1.3;
    word-break: normal;
    color: var(--accent-wine);
}

/* Product Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--accent-blush);
}
.card-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-main);
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.card:hover img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-wine);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.card-cat {
    color: var(--accent-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}
.card-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.3;
    flex: 1;
}
.card-price-wrapper {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.card-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-wine);
}
.card-price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.btn-main {
    background: transparent;
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: var(--radius-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: block;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
}
.card:hover .btn-main, .btn-main:hover {
    background: var(--accent-wine);
    color: var(--bg-secondary);
    border-color: var(--accent-wine);
}

/* Editorial Banner (The Art of Gifting) */
.editorial-banner {
    display: flex;
    margin: 80px 0;
    background-color: var(--accent-blush);
    overflow: hidden;
}
.editorial-img {
    flex: 1;
    min-height: 500px;
    background-color: var(--accent-blush); /* Fallback color */
}
.editorial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 10%;
    background-color: var(--accent-blush);
}
.editorial-content h2 {
    font-size: 42px;
    color: var(--accent-wine);
    margin-bottom: 20px;
}
.editorial-content p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Custom Order Section */
.custom-order-section {
    background-color: var(--bg-main);
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.custom-order-content {
    max-width: 600px;
    margin: 0 auto;
}
.custom-order-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.custom-order-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Trust / Service Banner */
.features-banner {
    background-color: var(--bg-secondary);
    padding: 60px 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 1px solid var(--border-light);
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.feature-icon {
    margin-bottom: 20px;
    color: var(--accent-gold);
}
.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1;
}
.feature-text h4 {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}
.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Product Page Specific */
.product-single-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px auto 80px;
}
.product-gallery {
    border-radius: var(--radius-soft);
    overflow: hidden;
    background: var(--bg-main);
    box-shadow: var(--shadow-soft);
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-info {
    padding: 20px 0;
}
.product-info .card-cat {
    font-size: 13px;
}
.product-info h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.product-info .price-block {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-info .price-block .current {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-wine);
}
.product-info .price-block .old {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-info .description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

/* Cart Page Specific */
.cart-table-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 40px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
th {
    background-color: var(--bg-main);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
td {
    font-size: 15px;
    vertical-align: middle;
}
.cart-total-box {
    background: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius-soft);
    max-width: 400px;
    margin-left: auto;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--bg-main);
    padding: 80px 5% 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
}
.footer-col p {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--accent-gold);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 13px;
}
.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s;
    text-decoration: none;
    box-shadow: var(--shadow-hover);
    background: #25D366;
    width: 60px;
    height: 60px;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
}
.floating-whatsapp img, .floating-whatsapp svg {
    width: 35px;
    height: 35px;
    filter: none !important;
}

/* ========================================= */
/* TABLET VIEW */
/* ========================================= */
@media (max-width: 1024px) {
    .editorial-banner { flex-direction: column; }
    .editorial-img { min-height: 300px; }
    .product-single-container { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 950px) {
    .search-bar { margin: 0 20px; }
    .header-actions { gap: 15px; }
    .nav-center { gap: 20px; }
    .hero-content h1 { font-size: 48px; }
    .features-banner { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================= */
/* MOBILE VIEW */
/* ========================================= */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-wrap: wrap;
        padding: 15px 5%;
    }
    .logo { order: 1; }
    .logo img { height: 55px; }
    .site-name { font-size: 20px; }
    .header-actions { order: 2; margin-left: auto; }
    .search-bar { 
        order: 3; 
        flex: 0 0 100%; 
        max-width: 100%; 
        margin: 15px 0 0 0; 
    }
    
    /* Navigation */
    .main-nav {
        flex-direction: column;
        padding: 10px 5%;
        align-items: stretch;
    }
    .nav-left { display: none; }
    .nav-center {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
        gap: 25px;
        padding-bottom: 5px;
    }
    .nav-right {
        justify-content: center;
    }
    
    /* Hero */
    .hero { height: 400px; }
    .hero-content { width: calc(100% - 30px); max-width: 500px; padding: 0 15px; }
    .hero-content h1 { font-size: 36px; }
    .btn-primary, .btn-secondary { padding: 12px 25px; font-size: 12px; }
    .btn-secondary { margin-left: 10px; }
    
    /* Container */
    .container { padding: 50px 20px; }
    .section-title { font-size: 28px; }
    
    /* Categories */
    .category-circles { gap: 20px; }
    .category-circle { width: 90px; }
    .category-circle img { width: 80px; height: 80px; }
    
    /* Editorial */
    .editorial-content { padding: 40px 20px; text-align: center; }
    
    /* Trust Banner */
    .features-banner {
        gap: 0;
        padding: 0;
        border-top: 1px solid var(--border-light);
    }
    .feature-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 15px;
        padding: 20px;
        border-bottom: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
    }
    .feature-item:nth-child(even) { border-right: none; }
    .feature-item:nth-last-child(-n+2) { border-bottom: none; }
    .feature-icon { margin-bottom: 0; }
    .feature-icon svg { width: 30px; height: 30px; }
    .feature-text h4 { font-size: 14px; margin-bottom: 2px; }
    .feature-text p { font-size: 12px; }
}

/* ========================================= */
/* SMALL MOBILE VIEW */
/* ========================================= */
@media (max-width: 480px) {
    .top-bar { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    .top-bar a { margin-left: 0; margin: 0 10px; }
    
    .search-bar input { padding: 10px 15px 10px 40px; }
    .search-bar button { padding: 0 15px; font-size: 12px; }
    
    .hero { height: 350px; }
    .hero-content h1 { font-size: 32px; margin-bottom: 15px; }
    .hero-content p { display: none; } /* Simplify on tiny screens */
    .btn-secondary { display: none; }
    
    .grid { grid-template-columns: 1fr; }
    .card-img-wrapper { height: 260px; }
    
    .category-circles { justify-content: center; }
    
    .features-banner { display: flex; flex-direction: column; }
    .feature-item { border-right: none !important; border-bottom: 1px solid var(--border-light); }
    .feature-item:last-child { border-bottom: none; }
    
    .floating-whatsapp { right: 18px; bottom: 18px; width: 50px; height: 50px; }
    .floating-whatsapp img, .floating-whatsapp svg { width: 28px; height: 28px; }
}
