/* -------------------------------------------------------------------------- */
/* BASE & TYPOGRAPHY - Global styles for luxury feel */
/* -------------------------------------------------------------------------- */

body {
    margin: 0;
    /* Uses 'Inter' font for a modern, clean look */
    font-family: 'Inter', Arial, sans-serif; 
    background: #eef1ff; /* Very light, almost white background */
    color: #333;
    line-height: 1.2; /* Corrected line-height for better readability */
    overflow-x: hidden; 
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION (Luxury Look: Deep Navy/Gold) */
/* -------------------------------------------------------------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c2b39; /* Deep Navy Header - Luxury Base */
    color: white;
    padding: 4px 30px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
}

/* Main Luxury Logo Styling */
header .logo {
    font-family: 'Playfair Display', serif; 
    font-size: 28px; 
    font-weight: 900; 
    color: #e28989; /* True Gold accent */
    white-space: nowrap; 
    letter-spacing: 0.15em; /* Increased spacing for sophistication */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* Soft gold glow */
}

/* Desktop Navigation Links */
nav a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 18px; 
    text-decoration: none;
    font-size: 1.0rem; 
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
}

nav a:hover {
    color: #ffd700; /* Gold on hover */
    border-bottom: 2px solid #ffd700;
}

/* Cart Icon (Floating Bottom Right) - Copper/Bronze Accent */
.cart-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c46237; /* Rich Copper/Bronze color */
    padding: 12px 17px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.2s ease, background 0.2s;
}

.cart-link:hover {
    transform: scale(1.1);
    background: #b05931;
}

/* Hamburger menu styles (hidden on desktop) */
.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* FOOTER STYLES */
/* -------------------------------------------------------------------------- */

footer {
    background: #1c2b39; 
    /* color: rgb(0, 0, 0); Muted white text for visibility */
    color: #1a61c6;
    padding: 15px 30px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-top: auto; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Styles for the Copyright Text */
footer p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-left: 20px;
}

/* Styles for the Link Group */
.footer-nav-group {
    display: flex;
    align-items: center;
    
}

/* Styles for the actual Links */
.footer-nav-group a {
    /* color: rgba(97, 27, 27, 0.907); */
    color: #a46e38c2;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 25px;
    transition: color 0.3s;
}

.footer-nav-group a:hover {
    color: #ffd700; /* Gold hover effect */
}


/* -------------------------------------------------------------------------- */
/* MINIMAL ON-PAGE SEARCH STYLING (FIXED) */
/* -------------------------------------------------------------------------- */

/* Container for the Cart Count and Search Button */
.top-page-actions {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 10px 30px; 
    gap: 15px;
    background: #f8f8f8; 
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #333;
    position: relative; 
}

/* 1. The button the user clicks to reveal the search bar */
.search-toggle-btn {
    background-color: #ffd700; 
    color: #1c2b39; 
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

/* 2. The form that contains the input field */
.minimal-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.minimal-search-form {
    position: absolute;
    top: 50%; 
    right: 0;
    transform: translateY(-50%) translateX(10px); 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    width: 250px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 50; 
}

/* Class added by JavaScript to make the search bar visible */
.minimal-search-form.is-visible {
    opacity: 1;
    visibility: visible;
    /* Slide into view, positioning it next to the button for large screens */
    transform: translateY(-50%) translateX(-275px); 
}

.minimal-search-form input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    flex-grow: 1;
    outline: none;
    font-size: 1rem;
}

.search-submit-btn {
    background-color: #c46237; 
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* FIX 2: PRODUCT BUTTON ARRANGEMENT (FOR ADD TO CART & BUY NOW) */
/* -------------------------------------------------------------------------- */

/* Ensure buttons are side-by-side for desktop and mobile */
.product-card .product-actions {
    display: flex; 
    gap: 10px; 
    margin-top: 5px;
    align-items: stretch;
    justify-content: space-between; 
    width: 100%;
}

.product-card .add-to-cart-btn,
.product-card .buy-now-btn {
    /* Use !important to override external CSS if necessary */
    flex-basis: 50% !important; 
    flex-grow: 1 !important;
    padding: 10px 15px !important;
    margin-bottom: 0px; /* CORRECTED: Removed excessive bottom margin */
    font-size: 0.95rem !important;
    border-radius: 5px !important;
    text-align: center !important;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    box-sizing: border-box; 
    display: block; 
}

/* Add to Cart (Deep Navy) */
.product-card .add-to-cart-btn {
    background-color: #1c2b39; 
    color: white;
    border: 1px solid #1c2b39;
}

/* Buy Now (Copper/Bronze Accent) */
.product-card .buy-now-btn {
    background-color: #c46237;
    color: white;
    border: 1px solid #c46237;
}

/* -------------------------------------------------------------------------- */
/* MOBILE STYLES (Responsive Fixes) */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Header/Nav Stacking (Previous Styles) */
    .menu-toggle { display: flex; }
    header { padding: 10px 15px; }
    .container, .wrapper { width: 100%; padding: 0 15px; box-sizing: border-box; }
    header .logo { font-size: 24px; }
    .main-nav { display: none; flex-direction: column; position: fixed; top: 55px; left: 0; width: 100%; padding: 10px 0; }
    .main-nav.is-open { display: flex; }
    footer { flex-direction: column; text-align: center; gap: 10px; padding: 15px 10px; }
    .footer-nav-group { justify-content: center; gap: 15px; }
    .footer-nav-group a { margin: 0 10px; }
    


    /* FIX 3: Ensure Product Card height adjusts automatically to fit content */
    .product-card {
        height: auto !important; /* Forces the card to expand and fit the buttons */
        padding-bottom: 15px; /* Add some padding back to the bottom of the card */
    }


/* FIX 1: MOBILE SEARCH POP-UP TO DOWN SIDE (Fixed) */

    .top-page-actions {
        padding: 10px 15px;
        justify-content: space-between;
    }
    
    .minimal-search-container {
        display: block;
        position: static; 
        flex-grow: 1;
    }

    .minimal-search-form {
        position: absolute;
        top: 100%; 
        right: 0;
        left: 0;
        margin-top: 5px;
        width: 100%; 
        padding: 0 15px; 
        box-sizing: border-box;
        transform: translateY(0) translateX(0); 
    }
    
    .minimal-search-form.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateX(0); 
    }


/* BUTTON FIX: Force side-by-side arrangement on the smallest phones */

    /* Ensure the product action container remains a row */
    .product-card .product-actions {
        display: flex; 
        gap: 2.5px; 
        margin-top: 2px;
        padding-top: 5px;
        width: 100%;
    }

    /* Shrink padding and font-size to ensure buttons fit side-by-side */
    .product-card .add-to-cart-btn,
    .product-card .buy-now-btn {
        padding: 8px 2px !important; /* Smaller padding */
        font-size: 0.6rem !important; /* Smaller font */
        margin-bottom: 0px !important; /* Ensure no overflow margin */
                   
    }
    
    
}
