/**
 * ============================================================================
 * NUTELLIN LTD - MASTER STYLESHEET
 * Fully responsive, optimized, and multilingual supported UI.
 * ============================================================================
 */

/* --- 1. CSS Reset & Global Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --secondary-color: #1a1a1a;
    --text-main: #333333;
    --text-muted: #888888;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content-area {
    min-height: 60vh;
}

/**
 * ============================================================================
 * HEADER HEIGHT REDUCTION (Desktop & Mobile)
 * ============================================================================
 */

/* Reduce top and bottom padding of the main header wrapper */
.header-wrapper {
    padding: 10px 15px !important; /* Previously it was likely 20px or more */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: auto !important; /* Allow dynamic shrinking */
    min-height: 60px; /* Force a smaller minimum height */
}

/* Adjust the Logo size slightly to fit the smaller header */
.site-logo img {
    max-height: 35px !important; /* Reduced from 45px */
    width: auto;
    display: block;
}

/* Adjust the Search Bar height to look compact */
.search-input {
    padding: 8px 15px !important; /* Reduced padding */
    height: 38px !important; /* Fixed smaller height */
    font-size: 14px;
}

.search-submit-btn {
    padding: 0 20px !important;
    height: 38px !important; /* Match input height */
    font-size: 14px;
    line-height: 38px;
}

/* Adjust the Cart button height to match the search bar */
.cart-btn {
    padding: 8px 15px !important;
    height: 38px !important;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    box-sizing: border-box;
}

/* ============================================================================
   MOBILE OFF-CANVAS MENU SPACING REDUCTION
   ============================================================================ */

/* Reduce spacing in the main navigation list (Home, Shop All, Track Order) */
.mobile-nav-list {
    margin-bottom: 15px !important;
}

.mobile-nav-list li {
    margin-bottom: 2px !important;
}

.mobile-nav-list li a {
    padding: 8px 15px !important; /* Reduced from default padding */
    font-size: 15px;
}

/* Reduce spacing in the Categories section */
.mobile-category-section h3 {
    margin-bottom: 5px !important;
    font-size: 14px;
    padding-left: 15px;
}

.mobile-category-list li {
    margin-bottom: 0 !important; /* Remove bottom margin */
    border-bottom: 1px solid #f4f4f4;
}

.mobile-category-list li a {
    padding: 8px 15px !important; /* Drastically reduced padding */
    font-size: 14px;
    display: block;
}

/* Make the mobile header itself slightly smaller */
.offcanvas-header {
    padding: 12px 15px !important;
    height: 55px; /* Compact height */
}

.offcanvas-logo img {
    max-height: 28px !important; /* Smaller logo in mobile sidebar */
}

/* --- 3. Hero Banner Styles --- */
.hero-section {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    color: var(--bg-white);
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background var(--transition-speed) ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- 4. Product Section & Grid Styles --- */
.products-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--text-main);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-image-placeholder {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand used to avoid longhand border properties */
}

.placeholder-text {
    color: #aaaaaa;
    font-weight: 600;
}

/* Badges for Live Stock Feature */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.badge.urgency {
    background: #ffe0e0;
    color: #d32f2f;
    border: 1px solid #ffb3b3;
}

.badge.out-of-stock {
    background: #eeeeee;
    color: var(--text-muted);
}

/* Product Details */
.product-details {
    padding: 20px;
}

.category-tag {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 18px;
    margin: 8px 0 15px 0;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.price-action-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    background: var(--text-main);
    color: var(--bg-white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-speed) ease;
}

.btn-add-cart:hover {
    background: var(--primary-color);
}

.empty-state, .error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
}

/**
 * ============================================================================
 * BULLETPROOF PRODUCT GRID SYSTEM (Exactly 5 Items per Row on Desktop)
 * ============================================================================
 */

.product-section {
    margin-bottom: 60px;
    width: 100%;
}

/* Hard-forced Grid Layout for Products */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important; 
    gap: 15px !important;
    align-items: stretch !important;
    width: 100% !important;
}

/* Individual Product Card Styling */
.product-card {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important; /* Stack items vertically */
    width: 100% !important;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px) !important;
    border-color: var(--brand-green, #0ea654) !important;
}

.badge.round-discount {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #ff4757 !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    z-index: 2 !important;
}

.product-image {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #f4f4f4 !important;
    overflow: hidden !important;
}

.product-image a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important; 
}

/* ==========================================
   THE FIX: Flexbox Magic for Perfect Alignment
   ========================================== */

.product-info {
    padding: 12px 12px 0 12px !important; /* Removed bottom padding */
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* Forces this section to take up all empty space */
}

.product-title {
    font-size: 13px !important; 
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 5px 0 !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
    height: 36px !important; /* CRITICAL: Fixed height keeps all cards exactly the same size */
}

.product-title a {
    color: #222222 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.product-title a:hover {
    color: var(--brand-green, #0ea654) !important;
}

.pricing-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important; 
    margin-bottom: 0 !important; 
    margin-top: auto !important; /* CRITICAL: Pushes the pricing area to the bottom of product-info */
}

.old-price {
    font-size: 12px !important;
    color: #999999 !important;
    text-decoration: line-through !important;
}

.current-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--brand-green, #0ea654) !important;
}

/* Action Buttons */
.action-buttons {
    padding: 10px 12px 12px 12px !important; /* Adjusted padding */
    display: flex !important;
    flex-direction: column !important; 
    gap: 6px !important;
}

.action-buttons a {
    display: block !important;
    text-align: center !important;
    padding: 7px 0 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.btn-add-cart {
    background: #fdfdfd !important;
    color: var(--brand-black, #111111) !important;
    border: 1px solid #dddddd !important;
}

.btn-add-cart:hover {
    background: #f4f4f4 !important;
    border-color: #cccccc !important;
}

.btn-buy-now {
    background: var(--brand-green, #0ea654) !important;
    color: #ffffff !important;
    border: 1px solid var(--brand-green, #0ea654) !important;
}

.btn-buy-now:hover {
    background: #0b8743 !important;
    border-color: #0b8743 !important;
}

/* =========================================
   Perfect Mobile Responsiveness
   ========================================= */

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important; 
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 10px !important;
    }
    
    .product-info {
        padding: 10px 10px 0 10px !important;
    }
    
    .product-title {
        font-size: 12px !important; 
        height: 34px !important;
    }
    
    .action-buttons {
        padding: 8px 10px 10px 10px !important;
        gap: 5px !important;
    }
    
    .action-buttons a {
        padding: 6px 0 !important;
        font-size: 11px !important;
    }
}

/**
 * ============================================================================
 * DESKTOP UI REPLICATION (Strictly based on user provided screenshot)
 * ============================================================================
 */

/* --- Layout: Top Section (Sidebar + Banner) --- */
.home-top-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Sidebar Styles */
.category-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}

.sidebar-header {
    background: var(--brand-green);
    color: var(--bg-white);
    padding: 12px 15px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand used, strictly avoiding longhand */
}

.sidebar-menu li:last-child {
    border-width: 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sidebar-menu a:hover {
    color: var(--brand-green);
}

.sidebar-menu .icon {
    color: var(--brand-green);
    margin-right: 8px;
    font-weight: bold;
}

/* Banner Styles */
.main-banner-area {
    flex-grow: 1;
}

.banner-wrapper {
    background: url('placeholder-banner.jpg') no-repeat center center;
    background-color: #fcfcfc;
    background-size: cover;
    height: 100%;
    min-height: 350px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 40px;
}

.banner-content h1 {
    color: #5d4037;
    font-size: 48px;
    margin-bottom: 10px;
}

.btn-banner {
    background: #5d4037;
    color: var(--bg-white);
    padding: 10px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 16px;
    color: var(--text-dark);
}

.btn-view-all {
    color: var(--brand-green);
    text-decoration: none;
    font-size: 14px;
}

/* --- Product Grid & Cards (Exact match to screenshot) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid #e74c3c; /* Reddish border matching screenshot */
    padding: 15px 10px 10px 10px; /* Padding setup */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badge.round-discount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff7f50; /* Orange badge */
    color: var(--bg-white);
    font-size: 12px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Makes it circular */
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    margin-bottom: 15px;
}

.product-info {
    text-align: center;
    flex-grow: 1;
}

.product-title {
    font-size: 13px;
    font-weight: normal;
    height: 40px;
    overflow: hidden;
    margin-bottom: 5px;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.pricing-area {
    margin-bottom: 15px;
}

.old-price {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: line-through;
    display: block;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #f39c12; /* Orange text for current price */
}

/* --- Action Buttons (Side by Side mapping) --- */
.action-buttons {
    display: flex;
    gap: 5px; /* Space between the two buttons */
    margin-top: auto;
}

.action-buttons button {
    flex: 1; /* Makes both buttons take exactly 50% width */
    padding: 10px 5px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--bg-white);
    transition: opacity 0.2s ease;
}

.btn-add-cart {
    background-color: var(--brand-black); /* Black button on the left */
}

.btn-buy-now {
    background-color: var(--brand-green); /* Green button on the right */
}

.action-buttons button:hover {
    opacity: 0.85;
}

/**
 * ============================================================================
 * RESPONSIVE ADJUSTMENTS FOR LAYOUT
 * ============================================================================
 */

/* Tablet & Mobile Layout Update */
@media (max-width: 991px) {
    .home-top-section {
        flex-direction: column;
    }
    
    .category-sidebar {
        width: 100%;
        order: 2; /* Moves categories below the banner on small screens */
    }
    
    .main-banner-area {
        width: 100%;
        order: 1; /* Keeps banner on top on small screens */
    }
    
    .banner-wrapper {
        min-height: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns strictly on mobile */
    }
    
    .action-buttons {
        flex-direction: row; /* Ensures buttons stay side-by-side even on mobile */
    }
}

/**
 * ============================================================================
 * SINGLE PRODUCT PAGE STYLES (Fully Responsive)
 * ============================================================================
 */

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--brand-green);
}

.breadcrumb .divider {
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--brand-green);
    font-weight: 600;
}

/* --- Layout Wrapper --- */
.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* --- Image Gallery --- */
.main-image-display {
    height: 400px;
    background: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
}

.thumbnail {
    flex: 1;
    height: 80px;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-gray);
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: var(--brand-green);
}

/* --- Product Info Panel --- */
.product-main-title {
    font-size: 28px;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand for bottom border */
}

.meta-item a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}

.stock.in-stock { color: var(--brand-green); font-weight: bold; }
.stock.out-of-stock { color: #e74c3c; font-weight: bold; }

.product-pricing-large {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price-large {
    font-size: 20px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.current-price-large {
    font-size: 32px;
    font-weight: 700;
    color: #f39c12; /* Brand Orange */
}

.product-short-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- Quantity & Actions --- */
.purchase-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    height: 45px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    background: #f9f9f9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}

.qty-btn:hover {
    background: #eaeaea;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-width: 0 1px; /* Left and right borders only using shorthand */
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.action-buttons-large {
    display: flex;
    flex-grow: 1;
    gap: 10px;
}

.action-buttons-large button {
    flex: 1;
    height: 45px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: bold;
    color: var(--bg-white);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-add-cart-large { background: var(--brand-black); }
.btn-buy-now-large { background: var(--brand-green); }
.action-buttons-large button:hover { opacity: 0.85; }

/* --- Trust Badges --- */
.trust-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-features li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-features .icon {
    color: var(--brand-green);
    font-weight: bold;
}

/* --- Description Area --- */
.product-description-area {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--bg-white);
    color: var(--brand-green);
    border: 1px solid var(--border-color);
    border-width: 0 1px 0 0;
}

.tab-content {
    padding: 30px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ==========================================
   RESPONSIVE QUERIES FOR PRODUCT PAGE
   ========================================== */

/* Tablet (Max-width: 991px) */
@media (max-width: 991px) {
    .single-product-wrapper {
        gap: 20px;
        padding: 20px;
    }
    
    .product-main-title {
        font-size: 24px;
    }
    
    .purchase-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}

/* Mobile (Max-width: 768px) */
@media (max-width: 768px) {
    .single-product-wrapper {
        grid-template-columns: 1fr; /* Stacks image and details vertically */
    }
    
    .main-image-display {
        height: 300px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons-large {
        flex-direction: column; /* Stacks buttons on small screens */
    }
}

/**
 * ============================================================================
 * CATEGORY PAGE SPECIFIC STYLES
 * ============================================================================
 */

/* --- Category Header Banner --- */
.category-header-banner {
    background: linear-gradient(135deg, var(--brand-green) 0%, #0b8e45 100%);
    color: var(--bg-white);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(14, 166, 84, 0.2);
}

.category-header-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-header-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* --- Category Layout Adjustments --- */
.category-product-section {
    margin-bottom: 60px;
}

/* --- Empty Category State --- */
.empty-category-msg {
    grid-column: 1 / -1; /* Spans across all grid columns */
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px dashed var(--brand-green); /* Shorthand border property */
    border-radius: var(--radius-md);
}

.empty-category-msg h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.empty-category-msg p {
    color: var(--text-gray);
}

/* ==========================================
   RESPONSIVE QUERIES FOR CATEGORY PAGE
   ========================================== */

@media (max-width: 768px) {
    .category-header-banner {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .category-header-banner h1 {
        font-size: 24px;
    }
    
    .empty-category-msg {
        padding: 40px 15px;
    }
}

/**
 * ============================================================================
 * SHOPPING CART PAGE STYLES (Fully Responsive)
 * Matches the Green, Black, and Orange UI theme.
 * ============================================================================
 */

/* --- Page Header --- */
.cart-page-header {
    text-align: center;
    padding: 30px 0 40px 0;
}

.cart-page-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-page-header p {
    color: var(--text-gray);
    font-size: 16px;
}

/* --- Empty Cart State --- */
.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 60px;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--brand-green);
    opacity: 0.8;
}

.empty-cart-state h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.btn-continue-shopping {
    display: inline-block;
    background: var(--brand-green);
    color: var(--bg-white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.btn-continue-shopping:hover {
    opacity: 0.9;
}

/* --- Cart Layout Wrapper --- */
.cart-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px; /* Left takes remaining space, right is fixed 350px */
    gap: 30px;
    margin-bottom: 60px;
}

/* --- Cart Items List (Div based Table to avoid strict borders) --- */
.cart-items-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-table-header {
    display: flex;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: bold;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand for bottom border only */
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand for bottom border only */
}

.cart-item-row:last-child {
    border-width: 0;
}

/* Column Widths */
.col-product { flex: 3; display: flex; align-items: center; gap: 15px; }
.col-price { flex: 1; font-weight: 600; color: var(--text-gray); }
.col-quantity { flex: 1; }
.col-total { flex: 1; font-weight: bold; color: var(--brand-orange); }
.col-action { flex: 0.5; text-align: center; }

/* Product Column Details */
.cart-item-image {
    width: 70px;
    height: 70px;
    background: #f1f1f1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #aaaaaa;
}

.cart-item-details h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.cart-item-details a {
    color: var(--text-dark);
    text-decoration: none;
}

.cart-item-details a:hover {
    color: var(--brand-green);
}

.stock-status {
    font-size: 12px;
    color: var(--brand-green);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 90px;
    height: 35px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-width: 0 1px; /* Left and right borders only */
    font-size: 14px;
    outline: none;
}

/* Remove Button */
.btn-remove-item {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-remove-item:hover {
    transform: scale(1.2);
}

.mobile-label {
    display: none; /* Hidden on desktop */
}

/* --- Order Summary Sidebar --- */
.cart-summary-box {
    background: var(--bg-white);
    border: 1px solid var(--brand-green);
    border-radius: var(--radius-md);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--brand-black);
    border: 1px solid var(--border-color);
    border-width: 0 0 1px 0; /* Shorthand */
    padding-bottom: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 14px;
}

.summary-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border: 1px solid var(--border-color);
    border-width: 1px 0 0 0; /* Shorthand */
    font-weight: bold;
    font-size: 16px;
    color: var(--text-dark);
}

.grand-total-amount {
    font-size: 24px;
    color: var(--brand-orange);
}

/* Checkout Buttons */
.btn-proceed-checkout {
    display: block;
    width: 100%;
    background: var(--brand-green);
    color: var(--bg-white);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    transition: opacity 0.3s ease;
}

.btn-continue-shopping-outline {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--brand-black);
    border: 1px solid var(--brand-black);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-proceed-checkout:hover { opacity: 0.9; }
.btn-continue-shopping-outline:hover {
    background: var(--brand-black);
    color: var(--bg-white);
}

.secure-checkout-badge {
    text-align: center;
    font-size: 12px;
    color: var(--brand-green);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==========================================
   RESPONSIVE QUERIES FOR CART PAGE
   ========================================== */

/* Tablet Layout (Max-width: 991px) */
@media (max-width: 991px) {
    .cart-layout-wrapper {
        grid-template-columns: 1fr; /* Stacks Cart Items and Summary vertically */
    }
    
    .cart-summary-box {
        position: static; /* Removes sticky behavior on small screens */
    }
}

/* Mobile Layout (Max-width: 768px) */
@media (max-width: 768px) {
    .cart-table-header {
        display: none; /* Hides table headers on mobile */
    }
    
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }
    
    /* Make each column act as a row inside the card */
    .col-product { width: 100%; }
    .col-price, .col-quantity, .col-total { 
        width: 100%; 
        display: flex; 
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-label {
        display: inline-block;
        font-weight: bold;
        color: var(--text-dark);
    }
    
    /* Move remove button to top right of the item card */
    .col-action {
        position: absolute;
        top: 15px;
        right: 20px;
    }
}

/**
 * ============================================================================
 * SECURE CHECKOUT PAGE STYLES
 * ============================================================================
 */

.checkout-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-header h2 {
    font-size: 32px;
    color: var(--brand-black, #111);
    margin-bottom: 5px;
}

.checkout-header p {
    color: var(--text-gray, #666);
}

.checkout-alert {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    margin-bottom: 25px;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
    text-align: center;
    font-weight: 600;
}

/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* Card Styling */
.billing-details, .order-summary-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.billing-details h3, .order-summary-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--brand-black, #111);
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 15px;
}

/* Form Elements */
.checkout-form-group {
    margin-bottom: 18px;
}

.checkout-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.checkout-input, .checkout-textarea, .checkout-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.checkout-input:focus, .checkout-textarea:focus, .checkout-select:focus {
    border-color: var(--brand-green, #0ea654);
    background: #ffffff;
}

.checkout-textarea {
    resize: vertical;
}

/* Flex Row for Desktop */
.checkout-row-flex {
    display: flex;
    gap: 20px;
}

.checkout-row-flex .checkout-form-group {
    flex: 1;
}

/* Order Summary */
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 15px 0;
}

.total-line {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-black, #111);
    align-items: center;
}

.total-amount {
    color: var(--brand-green, #0ea654);
    font-size: 24px;
}

.btn-checkout-submit {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-checkout-submit:hover {
    background: #0b8743;
}

.secure-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

.secure-badge .icon {
    color: var(--brand-green, #0ea654);
}

/* Responsive Checkout */
@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .checkout-row-flex {
        flex-direction: column;
        gap: 0;
    }
    
    .billing-details, .order-summary-box {
        padding: 20px;
    }
}

/**
 * ============================================================================
 * ORDER SUCCESS PAGE STYLES (Fully Responsive)
 * ============================================================================
 */

.success-wrapper {
    max-width: 700px;
    margin: 60px auto;
    background: var(--bg-white);
    padding: 50px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Success Checkmark Animation Effect */
.success-icon-box {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.check-circle {
    width: 80px;
    height: 80px;
    background: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(14, 166, 84, 0.3);
}

.checkmark {
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.success-content h1 {
    font-size: 28px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.sub-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.order-info-card {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
}

.order-info-card p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.order-info-card p:last-child {
    margin-bottom: 0;
}

.next-steps {
    text-align: left;
    margin-bottom: 40px;
    display: inline-block;
}

.next-steps h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--brand-black);
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: var(--text-dark);
}

.step-num {
    background: var(--brand-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Actions */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-return-shop {
    background: var(--brand-green);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.btn-home-outline {
    background: transparent;
    color: var(--brand-black);
    padding: 12px 25px;
    border: 1px solid var(--brand-black);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-return-shop:hover { opacity: 0.9; }
.btn-home-outline:hover {
    background: var(--brand-black);
    color: white;
}

/* --- Responsive Queries --- */
@media (max-width: 576px) {
    .success-wrapper {
        margin: 30px 15px;
        padding: 30px 20px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-content h1 {
        font-size: 22px;
    }
}

/**
 * Dynamic Header Additions (Top Bar & Dropdown)
 */

/* Top Bar */
.frontend-top-bar {
    background: #111111;
    color: #eeeeee;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact .divider {
    margin: 0 10px;
    color: #666;
}

.top-links a {
    color: #eeeeee;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-links a:hover {
    color: var(--brand-green);
}

/* Category Dropdown */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    display: block;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-weight: 500;
}

.nav-menu .dropdown-menu li a:hover {
    background: #f9f9f9;
    color: var(--brand-green);
}

.footer-contact-info p {
    margin-top: 10px;
    font-size: 14px;
}

/**
 * ============================================================================
 * FRONTEND FOOTER CSS (Compact, Clear & Highly Professional)
 * ============================================================================
 */

.frontend-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 35px 0 15px 0; /* Slightly increased top padding, very small bottom padding */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 2px solid #222;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px; 
    margin-bottom: 20px; /* CRITICAL FIX: Drastically reduced gap above the copyright line */
}

/* Base Column Styling */
.footer-col h3 {
    color: #ffffff;
    font-size: 18px; /* Increased font size for column headings */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px; 
    display: inline-block;
    border-bottom: 2px solid #ffffff; 
    padding-bottom: 4px;
    letter-spacing: 0.5px;
}

/* Column 1: Brand */
.brand-col {
    text-align: center;
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo img {
    max-height: 48px; /* Slightly larger logo */
    width: auto;
}

.footer-logo h2 {
    margin: 0;
    font-size: 24px; /* Larger text if no logo */
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 15px; /* Increased tagline font size */
    color: #f1f1f1;
    line-height: 1.5;
    margin-bottom: 18px; 
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px; 
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; /* Larger social icons */
    height: 34px;
    border-radius: 4px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.fb-btn { background-color: #1877F2; }
.yt-btn { background-color: #FF0000; }

/* Column 2 & 3: Links */
.links-col {
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px; /* Slight increase for better clickability */
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px; /* Increased font size for links */
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Column 4: Contact */
.contact-col {
    text-align: left;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.contact-phone {
    display: block;
    font-size: 22px; /* Larger phone number */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px; 
    letter-spacing: 0.5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px; 
    font-size: 14px; /* Increased font size for contact details */
    color: #e0e0e0;
    line-height: 1.5;
}

.contact-item .icon {
    font-size: 16px;
    color: #ffffff;
    margin-top: 2px;
}

/* Copyright Area */
.copyright-area {
    border-top: 1px solid #333333; 
    padding-top: 15px; /* Tighter padding above copyright text */
    text-align: center;
}

.copyright-area p {
    margin: 0;
    font-size: 14px; /* Slightly larger copyright text */
    color: #aaaaaa;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =========================================
   Mobile Responsiveness (100% Adaptive)
   ========================================= */
@media (max-width: 991px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr; 
        gap: 35px; 
    }
    .brand-col {
        text-align: left; 
        padding-right: 0;
    }
    .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .frontend-footer {
        padding: 35px 0 20px 0; 
    }
    .footer-columns {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .brand-col {
        text-align: center; 
    }
    .social-icons {
        justify-content: center;
    }
    .footer-col h3 {
        margin-bottom: 12px;
    }
}

/**
 * Product Card Image Fixes
 */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 200px; /* Adjust height based on your design preference */
    overflow: hidden;
    background: #f4f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without stretching */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/**
 * Product Card Action Buttons Fix
 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0 10px 15px 10px;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none; /* Removes underline from links */
    transition: all 0.3s ease;
}

/* Add To Cart Button Styles */
.btn-add-cart {
    background-color: #ffeff1; /* Light pink background */
    color: #ff4757; /* Bold red/pink text */
    border: 1px solid #ff4757;
}

.btn-add-cart:hover {
    background-color: #ff4757;
    color: #ffffff;
}

/* Order Now Button Styles */
.btn-buy-now {
    background-color: var(--brand-green, #0ea654); /* Brand Green */
    color: #ffffff; /* Explicitly White Text */
    border: 1px solid var(--brand-green, #0ea654);
}

.btn-buy-now:hover {
    background-color: #0b8743; /* Darker green on hover */
    color: #ffffff;
}

/**
 * ============================================================================
 * CART PAGE STYLES (Fully Responsive & Modern)
 * ============================================================================
 */

.cart-page-header {
    text-align: center;
    margin: 40px 0;
}

.cart-page-header h1 {
    font-size: 32px;
    color: var(--brand-black);
    margin-bottom: 10px;
}

.cart-page-header p {
    color: var(--text-gray);
}

.empty-cart-message {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.empty-cart-message h2 {
    color: var(--brand-black);
    margin-bottom: 15px;
}

.empty-cart-message p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-return-shop {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-green);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-return-shop:hover {
    background: var(--brand-black);
}

/* Cart Layout Grid */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    background: #f4f7f6;
    color: var(--brand-black);
    font-weight: 700;
    border: 1px solid #eeeeee;
    border-width: 0 0 1px 0;
}

.cart-table td {
    padding: 20px 15px;
    vertical-align: middle;
    border: 1px solid #eeeeee;
    border-width: 0 0 1px 0;
}

.cart-img-col {
    width: 80px;
}

.cart-img-col img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eeeeee;
}

.cart-title-col a {
    color: var(--brand-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.cart-title-col a:hover {
    color: var(--brand-green);
}

.cart-qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
}

.cart-item-total {
    font-weight: 700;
    color: var(--brand-green);
}

.btn-remove-item {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-remove-item:hover {
    opacity: 0.7;
}

.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-continue-shopping, .btn-update-cart {
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-continue-shopping {
    background: #f4f7f6;
    color: var(--brand-black);
}

.btn-update-cart {
    background: var(--brand-black);
    color: #ffffff;
}

.btn-continue-shopping:hover { background: #e0e0e0; }
.btn-update-cart:hover { opacity: 0.8; }

/* Cart Summary Sidebar */
.summary-box {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.summary-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border: 1px solid #dddddd;
    border-width: 0 0 1px 0;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555555;
}

.total-row {
    margin-top: 20px;
    padding-top: 20px;
    border: 1px solid #dddddd;
    border-width: 1px 0 0 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-black);
}

.muted-text {
    font-size: 12px;
    color: #888888;
}

.btn-checkout-proceed {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--brand-green);
    color: #ffffff;
    padding: 15px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 25px;
    transition: opacity 0.3s ease;
}

.btn-checkout-proceed:hover {
    opacity: 0.9;
}

.secure-checkout-badges {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888888;
}

/* Responsive Cart */
@media (max-width: 991px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Transform table to card layout for mobile */
    .cart-table thead {
        display: none;
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid #eeeeee;
        border-radius: 6px;
        position: relative;
    }
    .cart-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #f4f4f4;
    }
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--brand-black);
    }
    .cart-img-col {
        text-align: center !important;
        padding-left: 15px !important;
    }
    .cart-action-col {
        border-bottom: none !important;
    }
    .cart-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }
    .btn-continue-shopping, .btn-update-cart {
        width: 100%;
        text-align: center;
    }
}

/**
 * ============================================================================
 * SHOP PAGE & PAGINATION STYLES
 * ============================================================================
 */

.shop-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h1 {
    font-size: 36px;
    color: var(--brand-black, #111);
    margin-bottom: 10px;
}

.shop-header p {
    color: var(--text-gray, #666);
    font-size: 16px;
}

.shop-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-green, #0ea654);
    border: none;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Pagination UI */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #ffffff;
    color: var(--brand-black, #333);
    border: 1px solid #dddddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f4f7f6;
    border-color: var(--brand-green, #0ea654);
    color: var(--brand-green, #0ea654);
}

.page-link.active {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border-color: var(--brand-green, #0ea654);
    pointer-events: none; /* Prevents clicking the current page */
}

/* Responsive adjustments for pagination */
@media (max-width: 576px) {
    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/**
 * ============================================================================
 * TRACK ORDER PAGE STYLES
 * ============================================================================
 */

.tracking-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 800px; /* Keep the tracking page centered and compact */
}

.tracking-header {
    text-align: center;
    margin-bottom: 30px;
}

.tracking-header h1 {
    font-size: 32px;
    color: var(--brand-black, #111);
    margin-bottom: 10px;
}

.tracking-header p {
    color: var(--text-gray, #666);
}

/* Form Styles */
.tracking-form-card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 40px;
}

.tracking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tracking-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.tracking-form input:focus {
    border-color: var(--brand-green, #0ea654);
}

.btn-track-submit {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: var(--brand-black, #111);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-track-submit:hover {
    opacity: 0.8;
}

/* Result Card Styles */
.tracking-result-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.result-header {
    background: #f9f9f9;
    padding: 20px 30px;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
}

.result-header h2 {
    color: var(--brand-green, #0ea654);
    margin-bottom: 5px;
}

/* Cancelled Alert */
.tracking-cancelled-alert {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    text-align: center;
    margin: 20px;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
}

.tracking-cancelled-alert h3 {
    margin-bottom: 10px;
}

/* Tracking Timeline (Stepper) */
.tracking-timeline {
    display: flex;
    justify-content: space-between;
    padding: 40px 30px;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 55px; /* Center with icons */
    left: 10%;
    right: 10%;
    height: 3px;
    background: #eeeeee;
    z-index: 1;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 10px;
    background: #eeeeee;
    color: #999999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #888888;
}

/* Completed and Active States */
.timeline-step.completed .step-icon {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
}

.timeline-step.completed .step-label {
    color: var(--brand-green, #0ea654);
}

.timeline-step.active .step-icon {
    box-shadow: 0 0 0 4px rgba(14, 166, 84, 0.2);
}

/* Order Details Breakdown */
.order-details-breakdown {
    display: flex;
    padding: 30px;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
    gap: 30px;
}

.details-col {
    flex: 1;
}

.details-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--brand-black, #111);
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 5px;
    display: inline-block;
}

.details-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

.tracked-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.tracked-items-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.tracked-items-list .item-name {
    flex: 1;
    padding-right: 15px;
}

.tracked-items-list .item-price {
    font-weight: 600;
}

/* Responsive Tracking */
@media (max-width: 768px) {
    .form-row-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .tracking-timeline {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .tracking-timeline::before {
        left: 37px; /* Align vertical line */
        top: 30px;
        bottom: 30px;
        width: 3px;
        height: auto;
    }
    
    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .step-icon {
        margin: 0 15px 0 0;
    }
    
    .order-details-breakdown {
        flex-direction: column;
    }
}

/**
 * ============================================================================
 * 100% RESPONSIVE CART PAGE STYLES (Mobile First Approach)
 * ============================================================================
 */

.cart-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.cart-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-page-header h1 {
    font-size: 32px;
    color: var(--brand-black, #111);
    margin-bottom: 5px;
}

.cart-page-header p {
    color: var(--text-gray, #666);
}

.cart-alert {
    text-align: center;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 6px;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cccccc;
    border-radius: 8px;
}

.empty-cart-message h2 { margin-bottom: 15px; color: #333; }
.empty-cart-message p { margin-bottom: 25px; color: #666; }

.btn-return-shop {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-return-shop:hover { background: #0b8743; }

/* Grid Layout for Desktop */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Cart Table Styles */
.responsive-cart-table {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: #f9f9f9;
}

.cart-table th {
    text-align: left;
    padding: 15px 20px;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #eeeeee;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid #f4f4f4;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-img-col img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.cart-title-col a {
    color: var(--brand-black, #111);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.cart-title-col a:hover { color: var(--brand-green, #0ea654); }

.cart-qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.cart-item-total {
    font-weight: 700;
    color: var(--brand-green, #0ea654);
}

.btn-remove-item {
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    background: #ffebee;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-remove-item:hover { background: #ffcdd2; }

/* Bottom Actions */
.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-continue-shopping, .btn-update-cart {
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-continue-shopping {
    background: #f4f7f6;
    color: #333;
}

.btn-update-cart {
    background: var(--brand-black, #111);
    color: #fff;
}

.btn-continue-shopping:hover { background: #e0e0e0; }
.btn-update-cart:hover { opacity: 0.9; }

/* Summary Box */
.summary-box {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.summary-box h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
}

.total-row {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-black, #111);
}

.btn-checkout-proceed {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 25px;
    font-size: 16px;
}

.btn-checkout-proceed:hover { background: #0b8743; }

.secure-checkout-badges {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #888;
}

/* =========================================
   MOBILE RESPONSIVE FIX (The Magic Part)
   ========================================= */
@media (max-width: 991px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide desktop table header */
    .cart-table thead { display: none; }
    
    /* Convert rows into cards */
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        margin-bottom: 15px;
        border-bottom: 3px solid #f4f4f4;
        padding-bottom: 15px;
    }
    
    .cart-table td {
        text-align: right;
        padding: 10px 15px 10px 50%;
        position: relative;
        border-bottom: 1px solid #fafafa;
    }
    
    /* Generate mobile labels */
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: #555;
    }
    
    /* Center the image on mobile */
    .cart-img-col {
        text-align: center !important;
        padding: 15px !important;
    }
    
    .cart-img-col::before { display: none; }
    
    .cart-img-col img {
        width: 100px;
        height: 100px;
    }

    .cart-actions-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-continue-shopping, .btn-update-cart {
        width: 100%;
        text-align: center;
    }
}

/**
 * ============================================================================
 * HOMEPAGE LAYOUT: COMPACT CATEGORY SIDEBAR & DYNAMIC BANNER
 * ============================================================================
 */

/* Main Layout Grid */
.forced-layout-grid {
    display: flex;
    flex-wrap: nowrap; /* Forces them to stay side-by-side on desktop */
    gap: 20px;
    margin: 30px 0 50px 0;
    align-items: stretch; /* Makes sidebar and banner equal height */
}

/* --- 1. Compact Sidebar Styling --- */
.forced-sidebar {
    flex: 0 0 250px; /* Fixed width */
    max-width: 250px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.forced-sidebar-header {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 12px 15px;
}

.forced-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forced-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forced-sidebar-menu li {
    border-bottom: 1px solid #f4f4f4;
}

.forced-sidebar-menu li:last-child {
    border-bottom: none;
}

.forced-sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forced-sidebar-menu a:hover {
    background: #f9f9f9;
    color: var(--brand-green, #0ea654);
    padding-left: 20px;
}

/* --- 2. Dynamic Banner Styling --- */
.forced-banner {
    flex: 1; /* Takes all remaining width */
    border-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid #eeeeee;
    overflow: hidden;
    min-height: 350px; /* Minimum height */
    position: relative;
    background-color: #f8f9fa; /* Fallback color */
    /* Note: background-image is applied inline from PHP */
}

.forced-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.forced-banner-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 40px;
}

.forced-banner-badge {
    display: inline-block;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.forced-banner-content h1 {
    font-size: 36px;
    color: #111111;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.forced-banner-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.forced-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 166, 84, 0.3);
}

.forced-banner-btn:hover {
    background: #0b8743;
    transform: translateY(-2px);
}

/* --- 3. Section Header (Hot Deals) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 24px;
    color: #111111;
    margin: 0;
    font-weight: 800;
}

.section-header .btn-view-all {
    color: var(--brand-green, #0ea654);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.section-header .btn-view-all:hover {
    color: #0b8743;
}

/* --- 4. Mobile Responsiveness --- */
@media (max-width: 991px) {
    .forced-layout-grid {
        flex-direction: column; /* Stack vertically on mobile */
        margin: 20px 0;
    }
    
    .forced-sidebar {
        display: none !important; /* Hides Sidebar on Mobile */
    }
    
    .forced-banner {
        min-height: 200px;
        border-radius: 8px;
    }
    
    .forced-banner-content {
        padding: 20px;
        text-align: center;
        margin: 0 auto;
    }
    
    .forced-banner-content h1 {
        font-size: 28px;
    }
}

/* Category Sidebar Styles */
.category-sidebar {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.sidebar-header {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 15px 20px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f4f4f4;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--brand-black, #333);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu a .icon {
    margin-right: 10px;
    font-size: 18px;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

.sidebar-menu a:hover {
    background: #f9f9f9;
    color: var(--brand-green, #0ea654);
    padding-left: 25px; /* Slight indent on hover */
}

.sidebar-menu a:hover .icon {
    color: var(--brand-green, #0ea654);
}

/* Main Banner Styles */
.main-banner-area {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Premium light gradient */
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 40px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

.banner-content {
    max-width: 500px;
    z-index: 2;
}

.banner-content h1 {
    font-size: 42px;
    color: var(--brand-black, #111);
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    color: var(--text-gray, #555);
    margin-bottom: 25px;
}

.btn-banner {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 166, 84, 0.3);
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background: #0b8743;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 166, 84, 0.4);
}

/* 2. Product Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--brand-black, #111);
    margin: 0;
}

.btn-view-all {
    color: var(--brand-green, #0ea654);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.btn-view-all .arrow {
    font-size: 20px;
    margin-left: 5px;
    line-height: 1;
}

.btn-view-all:hover {
    color: #0b8743;
}

/* 3. Product Grid & Cards (100% Accurate Layout) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

.round-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px 15px;
    flex-grow: 1;
}

.product-title {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-title a {
    color: var(--brand-black, #222);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--brand-green, #0ea654);
}

.pricing-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.old-price {
    text-decoration: line-through;
    color: #999999;
    font-size: 14px;
}

.current-price {
    color: var(--brand-green, #0ea654);
    font-weight: 800;
    font-size: 18px;
}

/* Product Card Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two exactly equal buttons side-by-side */
    gap: 10px;
    padding: 0 15px 20px 15px;
}

.btn-add-cart, .btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background-color: #ffeff1;
    color: #ff4757;
    border: 1px solid #ff4757;
}

.btn-add-cart:hover {
    background-color: #ff4757;
    color: #ffffff;
}

.btn-buy-now {
    background-color: var(--brand-green, #0ea654);
    color: #ffffff;
    border: 1px solid var(--brand-green, #0ea654);
}

.btn-buy-now:hover {
    background-color: #0b8743;
}

/* ============================================================================
 * MOBILE RESPONSIVENESS (100% Accurate on all devices)
 * ============================================================================ */
@media (max-width: 991px) {
    .home-top-section {
        grid-template-columns: 220px 1fr; /* Make sidebar slightly smaller on tablets */
    }
    .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .home-top-section {
        grid-template-columns: 1fr; /* Stack Sidebar and Banner on Mobile */
        gap: 20px;
    }
    
    .category-sidebar {
        /* Optional: You can set a max-height on mobile to prevent a huge list */
        max-height: 300px; 
        overflow-y: auto;
    }

    .main-banner-area {
        min-height: 250px;
        padding: 30px 20px;
        text-align: center;
    }
    
    .banner-content {
        margin: 0 auto;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 2 columns on most phones */
        gap: 15px;
    }
    
    .product-image {
        height: 160px; /* Smaller images for mobile */
    }
    
    .action-buttons {
        grid-template-columns: 1fr; /* Stack Add to Cart & Buy Now vertically on very small screens */
    }
}

/**
 * ============================================================================
 * ULTIMATE BULLETPROOF HEADER & SEARCH (100% Responsive, Grid Powered)
 * ============================================================================
 */

/* --- 1. Top Contact Bar (Desktop Only) --- */
.frontend-top-bar {
    background: #111111;
    color: #eeeeee;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact .divider { margin: 0 10px; color: #666; }
.top-links a { color: #eeeeee; text-decoration: none; transition: color 0.3s ease; }
.top-links a:hover { color: var(--brand-green, #0ea654); }

/* --- 2. Main Header Container --- */
.frontend-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Desktop Grid Layout: Logo | Search Bar | Cart */
.header-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
}

/* --- 3. Header Elements --- */

/* Desktop: Hide Hamburger */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--brand-black, #111);
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Logo Alignment */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo a { display: inline-block; }
.site-logo img { max-height: 45px; width: auto; object-fit: contain; }

/* Desktop Search Bar (Centered) */
.search-bar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.global-search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    border: 2px solid var(--brand-green, #0ea654);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    color: #333;
    width: 100%;
}

.search-input::placeholder { color: #999; }

.search-submit-btn {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border: none;
    padding: 0 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover { background: #0b8743; }

/* Action Buttons (Cart) */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.cart-btn {
    background: #ffeff1;
    color: #ff4757;
    border: 1px solid #ff4757;
}

.cart-btn:hover { background: #ff4757; color: #ffffff; }

/**
 * ============================================================================
 * MOBILE OFF-CANVAS SLIDING MENU (Sleek & Professional Look)
 * ============================================================================
 */

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Slightly darker for better contrast */
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.offcanvas-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px; /* Made slightly narrower for a sleeker feel */
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active { left: 0; }

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px; /* Reduced padding */
    border-bottom: 1px solid #eeeeee;
    background: #fdfdfd;
}

.offcanvas-logo img { 
    max-height: 28px; /* Slightly smaller logo in menu */
}

.close-menu { 
    background: none; 
    border: none; 
    font-size: 32px; 
    color: #e74c3c; 
    cursor: pointer; 
    line-height: 1; 
    padding: 0;
}

.offcanvas-body { 
    padding: 15px 20px; /* Reduced body padding */
    overflow-y: auto; 
    flex-grow: 1; 
}

/* Base list reset */
.mobile-nav-list, .mobile-category-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

/* ==========================================
   THE FIX: Reducing Line Spacing & Padding
   ========================================== */

.mobile-nav-list li a, 
.mobile-category-list li a { 
    display: block; 
    padding: 10px 0; /* Reduced top/bottom padding from 15px to 10px */
    color: #333333; 
    text-decoration: none; 
    font-size: 15px; /* Slightly smaller and cleaner font */
    font-weight: 600; 
    border-bottom: 1px solid #f4f4f4; /* Softer border color */
    transition: color 0.3s ease, padding-left 0.3s ease; 
}

/* Category specific styling for a nested look */
.mobile-category-list li a {
    font-weight: 500; /* Less bold than main menu items */
    color: #555555;
    padding: 8px 0; /* Even tighter spacing for categories */
}

.mobile-nav-list li a:hover, 
.mobile-category-list li a:hover { 
    color: var(--brand-green, #0ea654); 
    padding-left: 8px; /* Subtle indent effect */
}

/* Section Header (e.g., 'Categories' title) */
.mobile-category-section { 
    margin-top: 25px; /* Reduced margin above categories */
}

.mobile-category-section h3 { 
    font-size: 13px; 
    color: #888888; 
    text-transform: uppercase; 
    margin-bottom: 8px; /* Tighter gap below the heading */
    letter-spacing: 0.5px; 
    font-weight: 700;
}

.offcanvas-logo img { max-height: 30px; }
.close-menu { background: none; border: none; font-size: 36px; color: #e74c3c; cursor: pointer; line-height: 1; }
.offcanvas-body { padding: 20px; overflow-y: auto; flex-grow: 1; }
.mobile-nav-list, .mobile-category-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a, .mobile-category-list li a { display: block; padding: 15px 0; color: var(--brand-black, #333); text-decoration: none; font-size: 16px; font-weight: 600; border-bottom: 1px solid #eeeeee; transition: color 0.3s ease, padding-left 0.3s ease; }
.mobile-nav-list li a:hover, .mobile-category-list li a:hover { color: var(--brand-green, #0ea654); padding-left: 10px; }
.mobile-category-section { margin-top: 30px; }
.mobile-category-section h3 { font-size: 13px; color: #999; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }

/* --- 5. MOBILE RESPONSIVE LOGIC (GRID POWERED) --- */
@media (max-width: 991px) {
    .frontend-top-bar { display: none !important; }
    body { overflow-x: hidden; }

    /* Mobile Header Base */
    .frontend-header {
        padding-bottom: 15px; /* Space below search bar */
    }

    /* Change grid to 2 rows. 
       Row 1: Hamburger (auto) | Logo (1fr/Center) | Cart (auto) 
       Row 2: Search Bar takes full width 
    */
    .header-wrapper {
        grid-template-columns: auto 1fr auto; 
        grid-template-areas: 
            "hamburger logo cart"
            "search search search";
        padding: 15px 15px 0 15px !important;
        gap: 15px; /* Space between rows and columns */
    }

    /* Assign elements to grid areas */
    .mobile-menu-toggle {
        display: block;
        grid-area: hamburger;
        font-size: 26px;
    }

    .site-logo {
        grid-area: logo;
        display: flex;
        justify-content: center; /* Forces logo to be perfectly centered */
    }
    
    .site-logo img {
        max-height: 35px !important;
        max-width: 140px !important;
    }

    .header-actions {
        grid-area: cart;
        display: flex;
        justify-content: flex-end;
    }

    .cart-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .search-bar-container {
        grid-area: search;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .global-search-form { max-width: 100%; }
    .search-input { padding: 10px 15px; font-size: 14px; }
    .search-submit-btn { padding: 0 15px; font-size: 14px; }
}

/* Super Small Devices */
@media (max-width: 380px) {
    .site-logo img { max-width: 110px !important; max-height: 28px !important; }
    .cart-btn { padding: 6px 10px !important; font-size: 12px !important; }
}

/**
 * ============================================================================
 * HOMEPAGE LAYOUT: COMPACT CATEGORY SIDEBAR & DYNAMIC BANNER
 * ============================================================================
 */

/* Desktop Layout: Fixed Sidebar (220px) + Banner (Remaining Space) */
.home-top-section {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 20px !important;
    margin: 30px 0 !important;
    align-items: stretch !important;
}

/* Category Sidebar Styling */
.category-sidebar {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    height: fit-content !important; /* Sidebar won't stretch unnecessarily */
}

.sidebar-header {
    background: var(--brand-green, #0ea654) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
}

.sidebar-header h3 { 
    margin: 0 !important; 
    font-size: 15px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase;
}

.sidebar-menu { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.sidebar-menu li { 
    border-bottom: 1px solid #f4f4f4 !important; 
}

.sidebar-menu li:last-child {
    border-bottom: none !important;
}

.sidebar-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 15px !important; /* Padding reduced significantly to bring items closer */
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.sidebar-menu a .icon {
    margin-right: 8px !important;
    color: #999;
}

.sidebar-menu a:hover { 
    background: #f9f9f9 !important; 
    color: var(--brand-green, #0ea654) !important; 
    padding-left: 20px !important; 
}

.sidebar-menu a:hover .icon {
    color: var(--brand-green, #0ea654) !important;
}

/* Dynamic Banner Area */
.main-banner-area {
    background-color: #f8f9fa !important;
    background-image: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 8px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 40px 50px !important;
    min-height: 320px !important;
    border: 1px solid #eeeeee !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Banner Text Overlay */
.banner-overlay {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important; 
    z-index: 1 !important;
}

.banner-wrapper { position: relative !important; z-index: 2 !important; width: 100% !important; }
.banner-content { max-width: 500px !important; }

.banner-badge {
    display: inline-block !important;
    background: var(--brand-green, #0ea654) !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 20px !important;
    margin-bottom: 15px !important;
}

.banner-content h1 { 
    font-size: 36px !important; 
    color: #111111 !important; 
    margin-bottom: 10px !important; 
    line-height: 1.2 !important; 
    font-weight: 800 !important; 
}

.banner-content p { 
    font-size: 15px !important; 
    color: #444444 !important; 
    margin-bottom: 25px !important; 
    font-weight: 500 !important; 
}

.btn-banner {
    display: inline-block !important;
    padding: 10px 25px !important;
    background: var(--brand-green, #0ea654) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    transition: background 0.3s ease !important;
}
.btn-banner:hover { background: #0b8743 !important; }

/* =========================================
   Mobile Responsive Logic
   ========================================= */
@media (max-width: 991px) {
    .home-top-section {
        grid-template-columns: 1fr !important;
        margin: 20px 0 !important;
    }
    .category-sidebar { display: none !important; }
    .main-banner-area { 
        padding: 30px 20px !important; 
        min-height: 250px !important; 
        text-align: center !important; 
    }
    .banner-content { margin: 0 auto !important; }
    .banner-content h1 { font-size: 26px !important; }
}

/**
 * ============================================================================
 * HOMEPAGE LAYOUT: COMPACT CATEGORY SIDEBAR & DYNAMIC BANNER
 * ============================================================================
 */

/* Main Layout Grid */
.forced-layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 50px 0;
    align-items: stretch;
}

/* --- 1. Compact Sidebar Styling --- */
.forced-sidebar {
    flex: 0 0 250px; /* Fixed width for the sidebar */
    max-width: 250px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.forced-sidebar-header {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 12px 15px;
}

.forced-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forced-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forced-sidebar-menu li {
    border-bottom: 1px solid #f4f4f4;
}

.forced-sidebar-menu li:last-child {
    border-bottom: none;
}

.forced-sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forced-sidebar-menu a:hover {
    background: #f9f9f9;
    color: var(--brand-green, #0ea654);
    padding-left: 20px; /* Indent effect on hover */
}

/* --- 2. Dynamic Banner Styling --- */
.forced-banner {
    flex: 1 1 0%; /* Takes all remaining horizontal space */
    min-width: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 50px;
    border: 1px solid #eeeeee;
    overflow: hidden;
    min-height: 350px;
    position: relative;
}

.forced-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75); /* Ensures text is readable over images */
    z-index: 1;
}

.forced-banner-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.forced-banner-badge {
    display: inline-block;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.forced-banner-content h1 {
    font-size: 40px;
    color: #111111;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.forced-banner-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.forced-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 166, 84, 0.3);
}

.forced-banner-btn:hover {
    background: #0b8743;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 166, 84, 0.4);
}

/* --- 3. Section Header (Hot Deals) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 24px;
    color: #111111;
    margin: 0;
    font-weight: 800;
}

.section-header .btn-view-all {
    color: var(--brand-green, #0ea654);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.section-header .btn-view-all:hover {
    color: #0b8743;
}

/* =========================================
   Mobile Responsiveness (Fixing the Banner)
   ========================================= */
@media (max-width: 991px) {
    .forced-layout-grid {
        flex-direction: column; /* Stack vertically on mobile */
        margin: 20px 0;
        gap: 15px;
    }
    
    .forced-sidebar {
        display: none !important; /* Hides Sidebar on Mobile */
    }
    
    .forced-banner {
        /* * CRITICAL FIX FOR MOBILE BANNER: 
         * min-height is removed. Height is now determined by the aspect ratio
         * using padding-top (e.g., 50% means the height is half of the width).
         * This ensures the full image is ALWAYS visible without cropping.
         */
        min-height: 0 !important;
        height: auto !important;
        padding: 50% 0 0 0 !important; /* 2:1 Aspect Ratio (Adjust this percentage if needed) */
        border-radius: 8px;
        background-size: contain !important; /* Forces the entire image to fit within the box */
        background-position: center !important;
        background-color: transparent !important;
    }
    
    /* Hide the text content inside the banner on mobile if a custom image is present */
    .forced-banner-content {
        display: none !important; 
    }
    
    /* If there is NO custom image, we still want to show the text */
    .forced-banner[style*="linear-gradient"] {
        padding: 40px 20px !important;
        height: auto !important;
    }
    
    .forced-banner[style*="linear-gradient"] .forced-banner-content {
        display: block !important;
        text-align: center;
        margin: 0 auto;
    }
    
    .forced-banner[style*="linear-gradient"] h1 {
        font-size: 26px !important;
    }
}

/* Super Small Devices */
@media (max-width: 480px) {
    .forced-banner {
        padding: 56.25% 0 0 0 !important; /* 16:9 Aspect Ratio for smaller phones */
    }
}

/**
 * ============================================================================
 * SINGLE PRODUCT PAGE CSS (Premium & Responsive)
 * ============================================================================
 */

.sp-container {
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Breadcrumb */
.sp-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.sp-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumb a:hover { color: var(--brand-green, #0ea654); }
.sp-breadcrumb .divider { margin: 0 8px; color: #aaa; }
.sp-breadcrumb .current { color: var(--brand-green, #0ea654); font-weight: 600; }

/* Grid Layout */
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image takes slightly less space than details */
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

/* Image Gallery */
.sp-main-image {
    position: relative;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.sp-discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4757;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

/* Product Details */
.sp-title {
    font-size: 28px;
    color: #111111;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.sp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.sp-category { font-size: 15px; color: #555; }
.sp-category a { color: var(--brand-green, #0ea654); font-weight: 600; text-decoration: none; }
.sp-stock { font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.sp-stock.in-stock { background: #e8f5e9; color: #2e7d32; }
.sp-stock.out-of-stock { background: #ffebee; color: #c62828; }

/* Pricing */
.sp-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sp-old-price {
    font-size: 22px;
    color: #999999;
    text-decoration: line-through;
    font-weight: 500;
}

.sp-current-price {
    font-size: 32px;
    color: var(--brand-green, #0ea654);
    font-weight: 800;
}

/* Short Description */
.sp-short-desc {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Action Buttons */
.sp-btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.sp-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--brand-green, #0ea654);
}

.sp-btn-cart {
    background: #ffffff;
    color: var(--brand-green, #0ea654);
}

.sp-btn-cart:hover { background: #f4fcf7; }
.sp-btn-cart .icon { margin-right: 8px; font-size: 18px; }

.sp-btn-buy {
    background: var(--brand-green, #0ea654);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 166, 84, 0.2);
}

.sp-btn-buy:hover { background: #0b8743; border-color: #0b8743; }

.sp-btn-disabled {
    width: 100%;
    background: #e0e0e0;
    color: #888888;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
}

/* Trust Badges */
.sp-trust-badges {
    background: #fdfdfd;
    border: 1px dashed #dddddd;
    padding: 20px;
    border-radius: 8px;
}

.trust-item {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
    font-weight: 500;
}

.trust-item:last-child { margin-bottom: 0; }
.trust-item .icon { margin-right: 10px; color: var(--brand-green, #0ea654); font-size: 18px; }

/* Full Description Section */
.sp-full-description {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
}

.sp-desc-header {
    background: #fafafa;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 30px;
}

.sp-desc-header h2 {
    margin: 0;
    font-size: 18px;
    color: #111;
}

.sp-desc-body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 991px) {
    .sp-layout {
        grid-template-columns: 1fr; /* Stack image and details on tablets/phones */
        gap: 30px;
    }
    
    .sp-main-image img {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .sp-title { font-size: 24px; }
    .sp-current-price { font-size: 28px; }
    
    .sp-btn-group {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 10px;
    }
    
    .sp-desc-body {
        padding: 20px;
    }
}

/**
 * ============================================================================
 * PRODUCT VARIATIONS (COLOR & SIZE)
 * ============================================================================
 */

.sp-variations {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.variation-group {
    margin-bottom: 15px;
}

.variation-group:last-child {
    margin-bottom: 0;
}

.variation-label {
    display: block;
    font-size: 15px;
    color: #555555;
    margin-bottom: 10px;
}

/* --- Color Options --- */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch-container {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.color-swatch-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-swatch {
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Circle shape */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

/* Hover & Active states for Color */
.color-swatch-container:hover .color-swatch {
    transform: scale(1.1);
}

.color-swatch-container input[type="radio"]:checked + .color-swatch {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-green, #0ea654);
    transform: scale(1.1);
}

/* --- Size Options --- */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-box-container {
    position: relative;
    cursor: pointer;
}

.size-box-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
}

/* Hover & Active states for Size */
.size-box-container:hover .size-box {
    border-color: #aaaaaa;
    background: #f9f9f9;
}

.size-box-container input[type="radio"]:checked + .size-box {
    border-color: var(--brand-green, #0ea654);
    background: var(--brand-green, #0ea654);
    color: #ffffff;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 576px) {
    .color-swatch {
        width: 30px;
        height: 30px;
    }
    .size-box {
        min-width: 40px;
        height: 35px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/**
 * ============================================================================
 * CATEGORY HEADER BANNER FIX (Sleek & Compact)
 * ============================================================================
 */

/* Drastically reduce the padding and height of the category header */
.category-header-banner {
    padding: 20px 30px !important; /* Reduced from 40px */
    margin-bottom: 30px !important; /* Slightly tighter bottom margin */
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fdfdfd !important; /* Cleaner, lighter background */
    border: 1px solid #eaeaea !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.02) !important;
}

/* Adjust the typography to match the smaller banner */
.category-header-banner h1 {
    font-size: 26px !important; /* Smaller, sharper font */
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
    color: #222 !important;
}

.category-header-banner p {
    font-size: 14px !important; /* Smaller description text */
    margin: 0 !important;
    color: #777 !important;
}

/* =========================================
   FRONTEND COUPON BOX & FIXES
   ========================================= */
.coupon-box-wrapper {
    background: #fff;
    border: 1px dashed var(--brand-green, #0ea654);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    text-transform: uppercase;
}

.btn-apply-coupon {
    background: #111;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: var(--brand-green, #0ea654);
}

.btn-apply-coupon:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* NEW: Remove Coupon Button */
.btn-remove-coupon {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-remove-coupon:hover {
    background: #c62828;
}

.coupon-success {
    color: var(--brand-green, #0ea654);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 700;
}

.coupon-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 700;
}

/* Absolute Fix for Payment Instructions Border */
.payment-instructions {
    border-left: 0 !important;
    border: none !important;
}

@media (max-width: 480px) {
    .coupon-input-group {
        flex-direction: column;
    }
    .btn-apply-coupon, .btn-remove-coupon {
        padding: 12px;
        width: 100%;
    }
}

/* =========================================
   PRODUCT IMAGE GALLERY SYSTEM
   ========================================= */
.sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.sp-main-image {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sp-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.sp-thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.sp-thumbnail-container::-webkit-scrollbar {
    display: none; 
}

.sp-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-thumb.active {
    border-color: var(--brand-green, #0ea654);
    box-shadow: 0 0 0 2px rgba(14, 166, 84, 0.2);
}

.sp-thumb:hover {
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .sp-thumb {
        width: 60px;
        height: 60px;
    }
}

/* =========================================
   FIXED PRODUCT PRICING SPACING (Ultra Tight)
   ========================================= */
.sp-pricing {
    display: flex;
    align-items: baseline; 
    gap: 6px; 
    margin-top: 5px; /* Extremely reduced top margin */
    margin-bottom: 5px; /* Extremely reduced bottom margin */
    padding: 0;
    flex-wrap: wrap; 
}

.sp-pricing .sp-old-price {
    font-size: 20px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    margin: 0; 
    padding: 0;
    line-height: 1;
}

.sp-pricing .sp-current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-green, #0ea654);
    line-height: 1; 
    margin: 0;
    padding: 0;
}

/* Ensure the elements around the pricing also don't add extra space */
.sp-meta {
    margin-bottom: 5px; /* Reduced space below category/stock */
}

.sp-variations {
    margin-top: 5px; /* Reduced space above variations */
}

/* For Related Products pricing area */
.pricing-area {
    display: flex;
    align-items: center;
    gap: 4px; 
    margin-top: 4px; /* Tighter top margin */
    margin-bottom: 6px; /* Tighter bottom margin */
}

.pricing-area .old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin: 0;
    line-height: 1;
}

.pricing-area .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-green, #0ea654);
    margin: 0;
    line-height: 1;
}