/**
 * ============================================================================
 * 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;
}

/* --- 2. Frontend Header Styles --- */
.frontend-header {
    background: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    transition: color var(--transition-speed) ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 8px 18px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.cart-btn {
    background: var(--bg-white);
    color: var(--primary-color);
}

.login-btn {
    background: var(--primary-color);
    color: var(--bg-white);
}

.action-btn:hover {
    background: var(--text-main);
    color: var(--bg-white);
    border: 1px solid var(--text-main);
}

/* --- 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);
}

/* --- 5. Frontend Footer Styles --- */
.frontend-footer {
    background: var(--secondary-color);
    color: #f1f1f1;
    padding: 60px 0 20px 0;
    margin-top: 50px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright-area {
    text-align: center;
    padding-top: 20px;
    border: 1px solid #333333;
    border-width: 1px 0 0 0; /* Shorthand used to avoid longhand border properties */
    color: var(--text-muted);
    font-size: 14px;
}

/**
 * ============================================================================
 * FULLY RESPONSIVE MEDIA QUERIES (Global Device Support)
 * ============================================================================
 */

/* Tablets and Small Laptops (Max-width: 991px) */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 15px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .footer-columns {
        gap: 30px;
    }
}

/* Large Mobile Phones and Small Tablets (Max-width: 768px) */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 40px 15px;
        border-radius: 0 0 10px 10px;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .frontend-footer {
        padding: 40px 0 20px 0;
    }
}

/* Small Mobile Phones (Max-width: 576px) */
@media (max-width: 576px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border: 1px solid #f0f0f0;
        border-width: 0 0 1px 0; /* Shorthand used to avoid longhand border properties */
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image-placeholder {
        height: 180px;
    }

    .product-title {
        font-size: 16px;
        margin: 8px 0 10px 0;
    }
    
    .product-price {
        font-size: 18px;
    }

    .footer-col h2, .footer-col h3 {
        text-align: center;
    }
    
    .footer-col p, .footer-links li {
        text-align: center;
    }
}

/**
 * ============================================================================
 * 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;
    }
}

/**
 * Checkout Page Layout
 */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.billing-details, .order-summary-box {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.billing-details h3, .order-summary-box h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border: 1px solid #eeeeee;
    border-width: 0 0 1px 0; /* Shorthand border bottom */
}

.billing-details .form-group {
    margin-bottom: 15px;
}

.billing-details label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.billing-details input, 
.billing-details textarea, 
.billing-details select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}

.billing-details input:focus, 
.billing-details textarea:focus, 
.billing-details select:focus {
    border-color: var(--brand-green);
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * ============================================================================
 * 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;
}

/**
 * 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;
}