/* 1. Force the page to stack vertically */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* STOP horizontal scroll */
    max-width: 100%;
    overflow-x: hidden; 
    display: flex;
    flex-direction: column; /* Force vertical stacking */
    min-height: 100vh;
}

/* 2. Fix the Cart Layout */
.cart-layout {
    display: flex;
    flex-direction: column; /* Mobile first: stack vertically */
    gap: 30px;
    width: 100%;
}

/* 3. Switch to side-by-side ONLY on large screens */
@media (min-width: 1024px) {
    .cart-layout {
        flex-direction: row; /* Desktop: items left, summary right */
        align-items: flex-start;
    }
    
    .cart-items-wrapper {
        flex: 1; /* List takes more space */
    }

    .cart-summary-sidebar {
        width: 350px; /* Fixed width for summary */
    }
}

@media (max-width: 768px) {
    /* 1. Kill the horizontal scroll container */
    .cart-items-wrapper {
        overflow-x: hidden !important;
        width: 100%;
    }

    /* 2. Force Table to stack vertically */
    .cart-table, 
    .cart-table thead, 
    .cart-table tbody, 
    .cart-table tr, 
    .cart-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        min-width: 0 !important; /* Overrides previous min-width: 500px */
        
    }

    /* 3. Hide headers (Product, Price, Action) */
    .cart-table thead {
        display: none;
    }

    /* 4. Style each Wishlist row as a Card */
    .cart-table tr {
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
.popup-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.3s ease;
    z-index: 9999;
}

.popup-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.popup-msg.success {
    background: #28a745;
}

.popup-msg.error {
    background: #dc3545;
}



    /* 5. Center align everything in the card */
    .cart-table td {
        text-align: center;
        padding: 10px 0;
        border: none;
    }

    /* 6. Product Info Tweaks */
    .product-info {
        flex-direction: column; /* Stack image on top of text */
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f5f5f5;
    }

    .product-img-box {
        width: 100px; /* Bigger image for mobile cards */
        height: 120px;
        margin: 0 auto;
    }

    /* 7. Action Button styling */
    .btn-buy {
        display: block;
        width: 100%;
        padding: 12px;
        background: #000;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        margin-top: 10px;
    }
}








/* --- 1. Reset & Global Fixes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* This stops padding from breaking the width */
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* THE FIX: Stops the left/right scroll */
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Navbar Container --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);

    padding: 12px 0;
}

/* Prevent content hiding behind navbar */
body {
    padding-top: 80px;
}

/* --- Container --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

/* --- Logo --- */
.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.6rem;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: 3px;
    font-weight: 600;
}

/* --- Nav Links --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-weight:700;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #b8926a;
}

/* Button */
.nav-btn {
    background: #1a1a1a;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.75rem !important;
}

.nav-btn.login:hover{
    background: #b8926a;
}

/* --- Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    display: block;
    transition: 0.3s;
}

/* --- Mobile --- */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;

        flex-direction: column;
        align-items: flex-start;
        gap: 15px;

        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 17px;
        font-weight: 700;
    }
}

/* --- Very Small Devices --- */
@media (max-width: 400px) {
    .logo {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

/* --- Hamburger Animation --- */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}







.main-footer {
    background-color: #0c0c0c; /* Deep luxury black */
    color: #f1f1f1;
    padding: 80px 20px 40px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Newsletter Container --- */
#newsletterForm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Creates a seamless "connected" look */
    max-width: 500px;
    margin: 25px auto 0;
}

/* --- Input Field --- */
#newsletterEmail {
    flex: 1;
    background: transparent;
    border: 1px solid #444; /* Subtle dark border */
    border-right: none;     /* Connects to the button */
    padding: 14px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#newsletterEmail:focus {
    border-color: #888; /* Lights up slightly when typing */
}

/* --- Subscribe Button --- */
#newsletterBtn {
    background: #fff;      /* Clean white button */
    color: #000;           /* Black text */
    border: 1px solid #fff;
    padding: 14px 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
}

#newsletterBtn:hover {
    background: #b8926a;
    color: #fff;
    border-color: #b8926a;
}

#newsletterBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Response Message --- */
#newsletterMessage {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    min-height: 20px; /* Prevents layout jump when message appears */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    #newsletterForm {
        flex-direction: column;
        gap: 10px;
    }
    
    #newsletterEmail {
        width: 100%;
        border-right: 1px solid #444; /* Adds border back for stacked look */
        text-align: center;
    }
    
    #newsletterBtn {
        width: 100%;
    }
}



/* Grid layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #888;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover { opacity: 0.6; }

/* The Signature Branding */
.footer-signature {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 40px;
}

.footer-signature .footer-logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 6rem; /* Huge impact logo */
    color: #1a1a1a; /* Subtle dark grey on black background */
    margin: 0;
    line-height: 1;
}

.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -30px; /* Overlap with large logo */
    font-size: 0.80rem;
    color: #fff;
}

.social-links a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { width: 100%; margin-bottom: 10px; }
    .footer-signature .footer-logo { font-size: 3rem; }
    .footer-bottom-meta { flex-direction: column; gap: 20px; margin-top: 0; }
}







/* Style the table cell to ensure alignment */
.text-center {
  text-align: center;
  vertical-align: middle;
}

/* Style the number input itself */
.text-center input[type="number"] {
  width: 60px;
  padding: 8px;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

/* Change border color when user clicks it */
.text-center input[type="number"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Optional: Hide the default browser arrows (spinners) */
.text-center input::-webkit-outer-spin-button,
.text-center input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


@media (min-width: 992px) {
    .pr-right, .pr-left {
        padding-right: 20px !important; /* Adjust the 15px to your liking */
    }
}














/* --- Cart Page Layout --- */
.cart-page {
    padding: 40px 15px;
    width: 100%;
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
}

.cart-layout {
    display: flex;
    flex-direction: column; /* Mobile first: Stack vertically */
    gap: 30px;
    width: 100%;
}

/* Desktop: Side by Side */
@media (min-width: 1024px) {
    .cart-layout {
        flex-direction: row; 
        align-items: flex-start;
    }
    .cart-items-wrapper { flex: 1; }
    .cart-summary-sidebar { width: 350px; position: sticky; top: 100px; }
}

/* --- Table Scrolling Fix --- */
.cart-items-wrapper {
    width: 100%;
    overflow-x: auto; /* Table scrolls internally if too wide */
    -webkit-overflow-scrolling: touch;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Ensures table doesn't look squashed */
}

.cart-table th {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* --- Item Styling --- */
.product-info { display: flex; align-items: center; gap: 15px; padding: 20px 0; }
.product-img-box { width: 70px; height: 90px; background: #f9f9f9; }
.product-img-box img { width: 100%; height: 100%; object-fit: contain; }

.product-details h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin: 0; }
.remove-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #999; /* Subtle grey */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.remove-link:hover {
    color: #c53030; /* Premium Red on hover */
    border-bottom: 1px solid #c53030;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* 1. Prevent the wrapper from allowing any horizontal overflow */
    .cart-items-wrapper {
        overflow-x: hidden !important; 
        width: 100%;
    }

    /* 2. Force the table and all its elements to stack vertically */
    .cart-table, 
    .cart-table thead, 
    .cart-table tbody, 
    .cart-table th, 
    .cart-table td, 
    .cart-table tr {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 3. Hide the table header (headers don't work in a vertical stack) */
    .cart-table thead {
        display: none;
    }

    /* 4. Add spacing between "cards" so they don't touch */
    .cart-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        padding: 10px;
    }
}


/* --- Summary Box --- */
.summary-box {
    background: #fff;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.total-row { border-top: 1px solid #eee; padding-top: 15px; font-weight: bold; font-size: 1.1rem; }

.checkout-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 15px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
}

.checkout-btn:hover { background: #b8926a; }


/* 4. Fix Table Overflow (Prevents horizontal scroll on small phones) */
.cart-items-wrapper {
    width: 100%;
    overflow-x: auto; /* Only the table scrolls if it's too wide, not the whole page */
}
.continue-shopping {
  display: inline-block;
  padding: 5px 20px;
  background-color: #000; /* Black background */
  color: #fff;            /* White text */
  text-decoration: none;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;     /* Rounded corners */
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.continue-shopping:hover {
  background-color: #b8926a; /* Lighter black on hover */
}












/* Checkout Specific Layout */
.checkout-page {
    padding: 60px 20px;
    background-color: #fff;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Form Styling */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.checkout-form input {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
}


/* Sidebar Summary & Promo */
.summary-card {
    background: #f9f9f9;
    padding: 30px;
    position: sticky;
    top: 100px;
}




.promo-status {
    background: #f0fff4;
    color: #2f855a;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.8rem;
    border: 1px solid #c6f6d5;
}

.row.discount span:last-child {
    color: #c53030; /* Show discount in red */
    font-weight: bold;
}



.promo-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
}

.promo-form button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.7rem;
    height: 40px;
}

.summary-details .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.row.total {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.place-order-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.place-order-btn:hover { background: #b8926a; }

/* Responsive adjustments */
@media (max-width: 850px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-sidebar {
        order: -1; /* Move summary to top on mobile */
    }
}


.product-actions {
    margin-top: 2rem;
    width: 100%;
    max-width: 400px; /* Limits width on desktop for elegance */
}

/* The Primary Luxury Button */
.btn-add-cart {
    display: block;
    text-align: center;
    background-color: #1a1a1a; /* Sophisticated Black */
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    padding: 18px 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    border: 1px solid #1a1a1a;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn-add-cart:hover {
    background-color: transparent;
    color: #1a1a1a;
    letter-spacing: 3px; /* Subtle "expansion" effect on hover */
}

/* The Login Prompt Button (Ghost Style) */
.btn-login-prompt {
    display: block;
    text-align: center;
    background-color: transparent;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    padding: 18px 30px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border: 1px solid #eee;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-login-prompt:hover {
    border-color: #b8926a; /* Luxury Gold accent */
    color: #b8926a;
}

/* Responsive Mobile View */
@media (max-width: 480px) {
    .product-actions {
        position: fixed; /* Optional: Stick to bottom on mobile */
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        margin: 0;
        max-width: 100%;
        border-top: 1px solid #eee;
        z-index: 100;
    }
    
    .btn-add-cart, .btn-login-prompt {
        padding: 15px 20px;
        font-size: 0.8rem;
    }
}


/* Auth Pages Styling */
.auth-page {
    background-color: #fcfcfc; /* Very light grey for contrast */
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    background: #fff;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    text-align: center;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #555;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 0; /* Luxury brands prefer sharp edges */
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #b8926a; /* Gold accent */
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-auth:hover {
    background: #b8926a;
}

.auth-error {
    background: #fff5f5;
    color: #c53030;
    padding: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-left: 3px solid #c53030;
}

.auth-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #777;
}

.auth-footer a {
    color: #b8926a;
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}


/* This ensures everything stacks from top to bottom */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Makes the body at least the height of the screen */
}

/* This pushes the footer to the bottom if there isn't much content */
main, .cart-page, .checkout-page, .auth-container {
    flex: 1;
}

/* Ensure the navbar takes full width */
.navbar {
    width: 100%;
    display: block; /* Overrides any accidental inline settings */
}

/* Ensure the footer takes full width */
.site-footer {
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom of the flex container */
}


/* --- Global Container Fix --- */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
    box-sizing: border-box;
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.shop-subtitle {
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-size: 0.80rem;
    color: #000;
}

/* --- Search Bar: Minimalist Fix --- */
/* --- 1. SEARCH SECTION (Prevents Left-Right Moving) --- */
.search-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box; /* THE FIX: Keeps padding inside the width */
}

/* --- 2. SEARCH FORM (The Container) --- */
.search-form {
    display: flex; /* Forces input and button to stay side-by-side */
    width: 100%;
    max-width: 500px; /* Limits size on desktop */
    margin: 0 auto;
    background: #fff;
    border: 1px solid #1a1a1a; /* Professional Dark Border */
}

/* --- 3. SEARCH INPUT (The Box) --- */
.search-form input {
    flex: 1; /* Makes it take all available space */
    min-width: 0; /* THE FIX: Stops it from overlapping the button */
    padding: 14px 15px;
    border: none; /* Remove default borders */
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

/* --- 4. SEARCH BUTTON --- */
.search-form button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0 25px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap; /* THE FIX: Stops the text 'Search' from breaking */
    transition: background 0.3s;
}

.search-form button:hover {
    background: #b8926a; /* Luxury Gold Accent */
}

/* --- 5. MOBILE FIX --- */
@media (max-width: 480px) {
    .search-section {
        padding: 0 10px;
    }
    .search-form input {
        width: 70%; /* Full width */
        border: 1px solid #ddd; /* Give the input its own border */
        padding: 15px;
        border-radius: 4px; /* Optional: adds a modern touch */
        background: #fff;
    }

    .search-form button {
        width: 70%; /* Full width for easy thumb clicking */
        padding: 15px;
        font-size: 0.85rem;
        letter-spacing: 3px;
        border-radius: 4px;
        /* Matches your luxury theme */
        background: #1a1a1a; 
        color: #fff;
    }
}

/* --- 5. MOBILE FIX (Block Layout) --- */
@media (max-width: 667px) {
    .search-section {
        padding: 0 15px;
        margin: 20px auto; /* Reduced margin for smaller screens */
    }

    .search-form {
        flex-direction: column; /* THE FIX: Stacks input and button vertically */
        border: none; /* Remove the thin border wrapper */
        background: transparent;
        gap: 10px; /* Space between input and button */
    }

    .search-form input {
        width: 90%; /* Full width */
        border: 1px solid #ddd; /* Give the input its own border */
        padding: 15px;
        border-radius: 4px; /* Optional: adds a modern touch */
        background: #fff;
    }

    .search-form button {
        width: 90%; /* Full width for easy thumb clicking */
        padding: 15px;
        font-size: 0.85rem;
        letter-spacing: 3px;
        border-radius: 4px;
        /* Matches your luxury theme */
        background: #1a1a1a; 
        color: #fff;
    }
}

/* --- The Product Grid --- */
.product-grid {
    display: grid;
    /* 2 columns on mobile, 4 on desktop */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px 30px;
    }
}

/* --- THE IMAGE BOX (Fixes 'Too Big' Photos) --- */
.product-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Professional Portrait Ratio */
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* THE MAGIC: Bottle fits perfectly inside */
    padding: 25px; /* Breathing room for the bottle */
    transition: transform 0.6s ease;
}

/* --- 1. Product Card Fix --- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row are same height */
    background: #fff;
    transition: transform 0.3s ease;
}

/* --- 2. Info Section Fix --- */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This pushes the buttons to the bottom */
    padding: 20px 10px;
    text-align: center;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 10px;
    min-height: 2.4em; /* Reserve space for 2 lines of text so cards stay aligned */
    line-height: 1.2;
    color: #1a1a1a;
}

.price {
    font-weight: 500;
    color: #b8926a; /* Luxury Gold */
    margin-bottom: 20px;
}

/* --- 3. Buttons Alignment --- */
.card-actions {
    margin-top: auto; /* THE MAGIC: Pushes buttons to the very bottom of the card */
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-buy {
    flex: 1; /* Makes the Buy button take up most of the space */
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 12px 5px;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: #b8926a; /* Gold on hover */
}

.btn-wish {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 1px solid #000;
    text-decoration: none;
    color: #FF1493;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-wish:hover {
    background: #f9f9f9;
    border-color: #FF1493;
    color:#000;
}

/* --- 4. Mobile Responsive --- */
@media (max-width: 768px) {
    .product-info h3 {
        font-size: 0.9rem;
    }
    .btn-buy {
        font-size: 0.65rem;
        padding: 10px 5px;
    }
    
    .btn-wish {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 1px solid #000;
    text-decoration: none;
    color: #FF1493;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 10px;
}
}





/* Admin Styling */
.admin-bg {
    background-color: #f4f4f4;
    padding: 50px 20px;
}

.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.admin-card {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.admin-header {
    text-align: center;
    margin-bottom: 35px;
}

.admin-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.admin-header p {
    font-size: 0.85rem;
    color: #888;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: #333;
}

.admin-form input[type="text"],
.admin-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e1e1;
    font-family: inherit;
    transition: border 0.3s;
}

.admin-form input:focus {
    border-color: #b8926a;
    outline: none;
}

.file-upload-wrapper {
    padding: 20px;
    border: 2px dashed #eee;
    text-align: center;
    background: #fafafa;
}

.btn-admin {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-admin:hover {
    background: #b8926a;
}

.btn-cancel {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border-radius: 2px;
}

.alert.success { background: #f0fff4; color: #2f855a; border: 1px solid #c6f6d5; }
.alert.error { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }





/* Orders Page Layout */
.orders-page {
    padding: 60px 20px;
    background-color: #fcfcfc;
    min-height: 80vh;
}

.orders-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
    margin-top:40px;
}

.empty-cart p {
    margin-bottom:30px;
}
.page-subtitle {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Individual Order Card */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.order-number {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Status Labels */
.order-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f0f0;
}

.status-pending { background: #fff8e1; color: #f57f17; }
.status-shipped { background: #e3f2fd; color: #1976d2; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }

.order-body {
    display: flex;
    gap: 40px;
}

.order-detail label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.order-total {
    font-weight: 600;
    color: #b8926a; /* Gold Accent */
}

.order-footer {
    margin-top: 20px;
    text-align: right;
}

.btn-details {
    text-decoration: none;
    font-size: 0.8rem;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .order-body {
        flex-direction: column;
        gap: 15px;
    }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}






/* Watchlist Specific Layout */
.watchlist-page {
    padding: 60px 15px;
    background-color: #fff;
    width: 100%;
}

.watchlist-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Grid Logic: Prevents Side Scrolling */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
}

.watchlist-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Vertical Stack */
}

/* Fixed Image Sizing */
.watchlist-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f9f9f9;
    overflow: hidden;
}

.watchlist-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps perfume bottle perfectly inside */
    padding: 20px;
}

/* The 'X' Remove Button */
.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.watchlist-info {
    padding: 20px;
    text-align: center;
}

.watchlist-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.watchlist-info .price {
    color: #b8926a;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Action Buttons */
.watchlist-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-buy {
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-view {
    text-decoration: none;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Mobile Fix */
@media (max-width: 600px) {
    .watchlist-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
        gap: 20px;
    }
    .btn-buy {
        padding: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.7rem;
        
        
    }
    .watchlist-image {
        aspect-ratio: 1/1; /* Square on mobile */
    }
}


@media (max-width: 400px) {
    .watchlist-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
        gap: 20px;
    }
    .btn-buy {
        padding: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.5rem;
        
        
    }
    .watchlist-image {
        aspect-ratio: 1/1; /* Square on mobile */
    }
}





/* --- LUXURY VARIABLES --- */
:root {
    --gold: #b8926a;
    --black: #1a1a1a;
    --light-bg: #f9f9f9;
}

/* --- RESET & OVERFLOW FIX --- */
* { box-sizing: border-box; }
body { 
    margin: 0; 
    padding: 0;
    width: 100%; 
    overflow-x: hidden; /* STOPS SIDE SCROLLING */
    font-family: 'Poppins', sans-serif;
}

.shop-wrapper { padding: 40px 0; }
.shop-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    
    /* 1. Use padding-top instead of margin to push away from the Nav */
    /* This ensures it doesn't "collapse" behind a fixed navbar */
    padding-top: 80px; 
    
    /* 2. Side padding for mobile breathing room */
    padding-left: 20px;
    padding-right: 20px;
    
    /* 3. Essential for iPhone widths */
    box-sizing: border-box; 
}

/* For larger screens, give it more space */
@media (min-width: 768px) {
    .shop-container {
        padding-top: 100px; /* More space on Desktop */
        padding-left: 40px;
        padding-right: 40px;
    }
}

./* --- Filter Section Container --- */
.shop-nav {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #fff;
}

.shop-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
}

/* --- The Filter Bar --- */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns inputs and labels perfectly */
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 10px;
}

/* --- Search & Select Inputs --- */
.filter-bar input[type="text"], 
.filter-bar select {
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.filter-bar input[type="text"] {
    flex: 1; /* Search bar takes more space on desktop */
    min-width: 200px;
}

.filter-bar select {
    width: 160px;
    cursor: pointer;
    appearance: none; /* Removes default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.filter-bar input:focus, .filter-bar select:focus {
    border-color: #b8926a; /* Luxury Gold focus */
}

/* --- Price Slider Styling --- */
.price-slider {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 220px;
}

.price-slider label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #888;
}

.price-slider input[type="range"] {
    width: 100%;
    accent-color: #1a1a1a; /* Modern black slider handle */
    cursor: pointer;
}

/* --- Clear All Button --- */
.reset-filter {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c53030; /* Subtle red for action */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 15px; /* Aligns with input heights */
    transition: 0.3s;
}

.reset-filter:hover {
    border-bottom-color: #c53030;
}

/* --- ðŸ“± Mobile Responsiveness (iPhone SE/12 Pro) --- */
@media (max-width: 850px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .shop-title {
        font-size: 2rem;
    }

    .filter-bar input[type="text"], 
    .filter-bar select, 
    .price-slider {
        width: 100%;
    }

    .reset-filter {
        text-align: center;
        padding-bottom: 0;
    }
}


/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

/* --- IMAGE FIX --- */
.product-card { background: #fff; transition: 0.4s; }

.product-img-container {
    width: 100%;
    height: 320px; /* FIXED HEIGHT FOR UNIFORMITY */
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* THE FIX: Keeps bottle within bounds */
    padding: 15px;
    transition: 0.6s ease;
}

.product-card:hover img { transform: scale(1.1); }

/* --- CARD OVERLAY --- */
.card-overlay {
    position: absolute;
    bottom: -50px;
    left: 0; width: 100%;
    background: rgba(26, 26, 26, 0.9);
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover .card-overlay { bottom: 0; }
.btn-discover { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }

/* --- PRODUCT META --- */
.product-meta { padding: 20px 0; text-align: center; }
.gender-tag { font-size: 0.6rem; color: var(--gold); letter-spacing: 2px; font-weight: bold; }
.product-meta h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 10px 0; }
.price { font-weight: 500; color: var(--black); }

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-img-container { height: 220px; }
    .shop-title { font-size: 1.8rem; }
    .filter-bar { gap: 10px; }
    .filter-bar input { width: 100%; }
}





/* Container for tables */
.admin-wide-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.btn-add-new {
    display: inline-block;
    margin-top: 15px;
    background: #b8926a;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 15px;
    border-bottom: 2px solid #1a1a1a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-thumb {
    width: 50px;
    height: 60px;
    object-fit: cover;
    background: #f9f9f9;
}

/* Action Links */
.admin-row-actions {
    display: flex;
    gap: 15px;
}

.link-edit {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.link-delete {
    color: #c53030;
    text-decoration: none;
    font-size: 0.8rem;
}

.link-edit:hover, .link-delete:hover {
    text-decoration: underline;
}





.nav-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.nav-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* ðŸ”¥ makes it circle */
    object-fit: cover;
    border: 2px solid #b8926a;
    transition: 0.3s;
    cursor: pointer;
}

.nav-profile img:hover {
    transform: scale(1.1);
    border-color: #fff;
}





.cookie-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 520px;
  background: #fff;
  padding: 25px 20px 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
}

/* ðŸ”¥ COOKIE IMAGE */
.cookie-img {
  width: 70px;
  margin-bottom: 10px;
}

/* TEXT */
.cookie-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.cookie-box a {
  color: #e91e63;
  text-decoration: underline;
}

/* BUTTON */
.cookie-box button {
  margin-top: 10px;
  padding: 10px 25px;
  border-radius: 30px;
  border: 2px solid #000;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.cookie-box button:hover {
  background: #000;
  color: #fff;
}

/* ðŸ“± MOBILE */
@media (max-width: 480px) {
  .cookie-img {
    width: 55px;
  }

  .cookie-box {
    padding: 20px 15px;
  }

  .cookie-box button {
    width: 100%;
  }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 9999;
}







/* Container to keep everything inline */
.qty-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* Style the Plus/Minus Buttons */
.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
}

/* Style the Input Field */
.qty-input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    -moz-appearance: textfield; /* Removes arrows in Firefox */
}

/* Removes arrows (spinners) in Chrome, Safari, and Edge */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}










/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO SECTION (SHORT HEIGHT) */
.taudeso_hero {
    width: 100%;
    height: 55vh; /* 🔥 reduced height */
    min-height: 300px; /* prevents too small */

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
           url('../images/new.png') no-repeat center center/cover;

    padding: 15px;
    margin-top: 57px;
    overflow: hidden;
}

/* CONTENT */
.taudeso_hero_content {
    max-width: 650px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* TITLE */
.taudeso_hero_content h1 {
    font-size: clamp(24px, 4vw, 42px);
    margin-bottom: 10px;
    line-height: 1.2;
}

/* SUBTITLE */
.taudeso_hero_content p {
    font-size: clamp(13px, 2vw, 16px);
    margin-bottom: 18px;
    color: #ddd;
}

/* BUTTON */
.taudeso_btn {
    padding: 10px 24px;
    background: #b8926a;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.taudeso_btn:hover {
    background: #000;
    color: #b8926a;
}

/* TABLET */
@media (max-width: 768px) {
    .taudeso_hero {
        height: 40vh;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .taudeso_hero {
        height: 35vh;
        min-height: 240px;
    }
}







.pagination {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:5px;
    margin:30px 0;
}

.pagination a {
    padding:8px 12px;
    border:1px solid #ccc;
    text-decoration:none;
    color:#333;
    border-radius:5px;
}

.pagination a.active {
    background:#b8926a;
    color:#fff;
    border-color:#b8926a;
}

.pagination a:hover {
    background:#b8926a;
    color:#fff;
}

@media(max-width:480px){
    .pagination a {padding:6px 8px; font-size:14px;}
}




@media (max-width: 768px) {
    .filter-bar input[name="search"] {
        width: 100%;      /* full width on small devices */
        padding: 10px;    /* bigger padding for easier touch */
        font-size: 16px;  /* larger font for readability */
        box-sizing: border-box;
        margin-bottom: 10px; /* spacing from next element */
    }

    .filter-bar select,
    .filter-bar .price-slider {
        width: 100%;       /* stack filters vertically */
        margin-bottom: 10px;
    }

    .filter-bar .price-slider input[type="range"] {
        width: 100%;       /* full width range slider */
    }
}









/* Premium Brand Section Base styling */
.premium-brand-section {
    background-color: #f9f9f9;
    padding: 80px 24px; /* Increased padding for an airier, upscale feel */
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Main Container Centering */
.brand-container {
    max-width: 1300px; /* Expanded slightly to give larger logos breathing room */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Typography Header Layout */
.brand-header {
    margin-bottom: 56px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: sans-serif;
}

.brand-title {
    font-size: 32px; /* Marginally scaled up for typography balance */
    font-family: "Playfair Display", "Didot", "Georgia", serif;
    color: #111827;
    letter-spacing: 0.03em;
    margin: 0;
}

.brand-divider {
    height: 1px;
    width: 48px;
    background-color: #d97706; 
    margin-top: 16px;
}

/* Fluid Flex Grid for Perfect Alignment on all Devices */
.brand-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px; /* Increased gap spacing so larger logos don't look cramped */
    max-width: 1100px;
    width: 100%;
}

/* Brand Link Wrap */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Increased from 120px to accommodate larger visual items */
    padding: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

/* Responsive Premium Hover Effects */
.brand-item:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* INCREASED: Luxury Brand Logo Sizing and Alignment */
.brand-logo {
    height: 70px; /* INCREASED from 36px for desktop screens */
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.brand-item:hover .brand-logo {
    opacity: 1;
}

/* Mobile Responsiveness Fine-Tuning */
@media (max-width: 640px) {
    .premium-brand-section {
        padding: 56px 16px;
    }
    .brand-title {
        font-size: 24px;
    }
    .brand-flex-wrap {
        gap: 25px; /* Balanced spacing for smaller screens */
    }
    .brand-item {
        min-width: 120px; /* Balanced bounding box size for mobile rows */
        padding: 10px;
    }
    /* INCREASED: Logo height scale-down optimization for handheld devices */
    .brand-logo {
        height: 60px; /* INCREASED from 28px for mobile phones */
    }
}



