/* ==========================================================================
   1. CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3498db;
    --dark-color: #d61563;
    --light-color: #f4f4f4;
    --text-color: #333;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header ul li a {
    font-weight: 600;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: var(--dark-color);
    color: #fff;
    padding: 1rem 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    display: flex;
}

header ul li {
    margin-left: 20px;
}

.discountBanner {
    color: #ffffff;
    background-color: #00b7ff;
    text-align: center;
    outline: #333;
}

.discountText {
    color: #ffffff;
}

.cart-link {
    display: flex;
    align-items: center;
    height: 100%; 
    position: relative; 
}

.cart-badge {
    position: absolute;
    bottom: -5px; 
    right: -10px;  
    background-color: #fff; 
    color: var(--dark-color); 
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: none; 
}

.bannerCart {
    width: 25px;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-link:hover .bannerCart {
    transform: scale(1.15);
    opacity: 0.85;
}

/* ==========================================================================
   3. HERO SECTION & BUTTONS
   ========================================================================== */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn:hover {
    opacity: 0.9;
}

.btn-success {
    background-color: #27ae60 !important; 
    color: #fff !important;
    pointer-events: none; 
    transition: background-color 0.5s ease;
}

/* ==========================================================================
   4. CATEGORY SECTION 
   ========================================================================== */
.category-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-card {
    position: relative;
    flex: 1;
    aspect-ratio: 1 / 1; 
    border-radius: 20px;
    overflow: hidden; 
    display: block;
}

.category-card img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.5s ease;
}

.category-overlay span {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    text-align: center;
    line-height: 1.2;
    padding: 0 10px;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: grayscale(20%) brightness(80%);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   5. PRODUCT GRID (Desktop: Strictly 5 per row)
   ========================================================================== */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* Forces 5 items per row exactly on desktop */
    flex: 0 0 calc(20% - 24px); 
    width: 100%;
    max-width: 280px; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 27, 122, 0.2); 
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: auto; 
}

.product-info .price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 15px; 
}

.product-info .btn {
    margin-top: 10px;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    margin-top: 2rem;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- Tablet / Smaller Desktop --- */
@media (max-width: 950px) {
    /* Tablet Reviews: Stack 2 over 1 */
    .review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

/* --- Mobile UI Updates --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .category-container {
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 15px;
        margin-top: 20px;
    }
    
    .category-card {
        aspect-ratio: 1 / 1; 
    }

    .category-card:first-child {
        grid-column: span 2; 
        aspect-ratio: 4 / 3; 
    }

    .category-overlay span {
        font-size: 1.2rem; 
    }

    /* Set mobile products to strictly 3-per-row (Which creates the 3 over 2 look) */
    .product-grid {
        gap: 10px; 
        margin-top: 20px;
    }

    .product-card {
        flex: 0 0 calc(33.333% - 6.67px);
        max-width: none; 
    }

    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }

    .product-info .price {
        font-size: 1rem;
        margin-top: 10px; 
    }

    .product-info .btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem 0;
    }

    /* --- MOBILE REVIEWS: Stacked Wide Rectangles --- */
    .reviews-section {
        padding: 2rem 1rem; 
        margin-top: 1rem;
    }

    .reviews-header h2 {
        font-size: 2rem; 
    }

    .review-grid {
        /* Forces the flexbox to strictly stack elements vertically 1-by-1 */
        flex-direction: column; 
        align-items: center; /* Centers them in the column */
        gap: 15px; 
    }

    .review-card {
        /* Overrides the desktop calc to take 100% width of the mobile column */
        width: 100%; 
        max-width: 500px;
        flex: unset; 
        
        /* The Secret Sauce: Thin top/bottom padding + wide left/right padding 
           mathematically forces the card into a wide rectangle shape! */
        padding: 1.2rem 2rem; 
    }

    .review-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .review-card span {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }
}

/* ==========================================================================
   8. REVIEWS & CONTACT STYLES
   ========================================================================== */
.reviews-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fffafc;
    border-radius: 30px;
    margin-top: 2rem;
}

.reviews-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.stars {
    color: #f1c40f; 
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.customer-count {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.review-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* Desktop: 3 items per row exactly */
    flex: 0 0 calc(33.333% - 13.33px);
    width: 100%;
    max-width: 450px; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    color: #444;
}

.review-card span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--dark-color);
}

.contact-section {
    padding: 5rem 2rem;
    text-align: center;
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
}

#user-message {
    width: 100%;
    height: 150px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

#user-message:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background: #333 !important; 
}

@media (max-width: 600px) {
    .contact-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   9. EXTRA UI STYLES (Tooltips, Qty, Carousel)
   ========================================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: -5px; 
    width: fit-content;
}

.back-link:hover {
    color: var(--dark-color);
}

#carousel-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

#carousel-thumbnails img:hover {
    border-color: var(--dark-color);
}

.qty-btn {
    width: 45px;
    height: 45px;
    background-color: #eee;
    border: 1px solid #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn:hover {
    background-color: #ddd;
}

.qty-input {
    width: 60px;
    height: 45px;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
    font-size: 1.1rem;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    cursor: help; 
}

.tooltip-icon {
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    font-style: italic; 
    font-family: serif;
    transition: transform 0.2s ease;
}

.tooltip-container:hover .tooltip-icon,
.tooltip-container:focus-within .tooltip-icon {
    transform: scale(1.15);
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, bottom 0.2s ease;
    font-size: 0.85rem;
    font-weight: normal;
    pointer-events: none; 
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
    bottom: 140%; 
}

/* ==========================================================================
   10. ADMIN ORDERS DASHBOARD
   ========================================================================== */
.admin-orders-page {
    margin-bottom: 60px;
}

.orders-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.order-search-bar {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: border-color 0.3s ease;
}

.order-search-bar:focus {
    border-color: var(--dark-color);
}

.order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid var(--dark-color);
    background: transparent;
    color: var(--dark-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 27, 122, 0.1);
}

.tab-btn.active {
    background: var(--dark-color);
    color: white;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.order-card-admin {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.order-card-admin:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 27, 122, 0.2);
}

.order-images-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    gap: 2px;
    background: #eee;
}

.order-images-container.items-1 { grid-template-columns: 1fr; }
.order-images-container.items-2 { grid-template-columns: 1fr 1fr; }
.order-images-container.items-3 { grid-template-columns: 1fr 1fr 1fr; }
.order-images-container.items-4-plus { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qty-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--dark-color);
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.order-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.order-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.order-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eee;
}

.status-awaiting { background: #f39c12; color: white; }
.status-shipped { background: #27ae60; color: white; }
.status-cancelled { background: #e74c3c; color: white; }
.status-refunded { background: #7f8c8d; color: white; }

/* NEW ABANDONED COLORS */
.status-checkout_pending { background: #95a5a6; color: white; }
.status-abandoned { background: #34495e; color: white; }

.order-customer {
    font-weight: bold;
    color: var(--primary-color);
}

.order-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#page-info {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================================================
   11. ADMIN SINGLE ORDER DETAILS
   ========================================================================== */
.admin-single-order {
    margin-top: 40px;
    margin-bottom: 60px;
}

.order-header-actions {
    margin-bottom: 30px;
}

.order-header-actions h1 {
    color: var(--dark-color);
    margin-top: 10px;
}

.order-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.order-sidebar {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-main-content {
    flex: 2;
    min-width: 350px;
}

.admin-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.admin-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4f4f4;
    color: var(--text-color);
}

.highlight-card {
    border-top: 4px solid var(--dark-color);
}

.address-block {
    line-height: 1.8;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #444;
}

.order-date, .order-stripe {
    color: #666;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.status-dropdown {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.status-dropdown:focus {
    border-color: var(--dark-color);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.order-item-row {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: #f4f4f4;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.order-item-options {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.order-item-price-qty {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #333;
}

.order-totals {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.grand-total {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 10px;
}



/* ==========================================================================
   12. CART PAGE STYLES
   ========================================================================== */
.cart-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
}

.cart-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    margin-bottom: 8px;
    padding-right: 70px; /* Leaves space for both absolute buttons */
}

.cart-item-header h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
}

.cart-qty-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Cart Action Buttons (Top Right) --- */
.cart-item-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.edit-btn, .remove-btn {
    border: none;
    height: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.remove-btn {
    background: #ffeeeef0;
    color: var(--dark-color);
    width: 30px;
    border-radius: 50%;
}

.edit-btn {
    background: #eef5ff;
    color: var(--primary-color);
    padding: 0 12px;
    border-radius: 15px;
    font-weight: bold;
}

.edit-btn:hover {
    background: var(--primary-color);
    color: white;
}

.remove-btn:hover {
    background: var(--dark-color);
    color: white;
}

.cart-item-options {
    margin-bottom: 15px;
    background: #fafafa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.no-options {
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.qty-label {
    margin-right: 10px;
    font-size: 0.85rem;
    color: #667;
    font-weight: bold;
}

.cart-item-totals {
    text-align: right;
    line-height: 1.4;
    min-width: 140px;
}

.total-line {
    font-size: 0.85rem;
    color: #667;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.item-grand-total {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* --- MOBILE SPECIFIC FIXES FOR CART --- */
@media (max-width: 768px) {
    .cart-item {
        padding: 12px; /* Tighter padding */
        gap: 12px;
    }

    /* Shrink the image so the text isn't suffocated */
    .cart-img {
        width: 75px;
        height: 75px;
    }

    /* 1. Stack the header elements so actions (Edit) sit above the title (H3) */
    .cart-item-header {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
        padding-right: 25px; /* Leave space for the floating Remove button */
        margin-bottom: 5px;
    }

    /* 2. Break the actions out of absolute positioning so the Edit button flows naturally */
    .cart-item-actions {
        position: static; 
    }

    /* 3. Keep the Remove button pinned to the absolute top-right corner */
    .remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    /* Shrink text and buttons globally inside the cart item */
    .cart-item-header h3 {
        font-size: 0.95rem;
        gap: 6px;
    }

    .cart-qty-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .edit-btn {
        height: 26px;
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .cart-item-options {
        padding: 8px;
        margin-bottom: 10px;
    }

    /* Force override any inline font sizes for the options text */
    .cart-item-options span {
        font-size: 0.8rem !important;
    }

    /* Shrink Quantity Controls */
    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 8px;
        margin-top: 5px;
    }

    .qty-label {
        font-size: 0.8rem;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .qty-input {
        width: 40px;
        height: 30px;
        font-size: 0.9rem;
    }

    /* Force the totals block to span 100% width and align left */
    .cart-item-totals {
        width: 100%;
        text-align: left;
    }
    
    /* Neatly justifies the price text to the far right side of the screen */
    .total-line {
        font-size: 0.8rem;
        justify-content: flex-start;
    }
    
    .item-grand-total {
        font-size: 0.95rem;
        justify-content: flex-start;
        margin-top: 2px;
        padding-top: 2px;
    }
    
    .total-line span, .item-grand-total span {
        margin-left: auto; 
    }
    
    /* Overrides the inline padding on the summary box */
    #cart-summary {
        padding: 15px !important;
    }
}


/* ==========================================================================
   13. GDPR COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px; /* Creates the smaller box shape */
    
    /* Transparent "Frosted Glass" Background */
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid rgba(214, 21, 99, 0.3); /* Subtle hint of your dark-color */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    font-size: 0.85rem;
}

.cookie-content p {
    margin-bottom: 15px;
    color: #222;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-direction: column; /* Stacks the buttons neatly in the square */
    gap: 10px;
}

.cookie-buttons .btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
}

/* On mobile, let it stretch across the bottom so it's easy to tap */
@media (max-width: 600px) {
    .cookie-banner {
        width: auto;
        right: 20px;
        background: rgba(255, 255, 255, 0.85); /* Slightly less transparent on mobile for contrast */
    }
}