:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #020617;
    --secondary: #475569;
    --accent: #328F61;
    --accent-light: #47B376;
    --accent-dark: #26734d;
    --accent-gradient: linear-gradient(135deg, #328F61, #26734d);
    --success: #328F61;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0d9488;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* =========================================
   NAVBAR
   ========================================= */
.navbar-corporate {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    transition: var(--transition-slow);
}
.navbar-corporate.scrolled {
    box-shadow: var(--shadow-md);
}
.navbar-corporate .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    padding: 0.75rem 0;
    letter-spacing: -0.02em;
}
.navbar-corporate .navbar-brand i {
    color: var(--accent);
    margin-right: 0.5rem;
}
.navbar-corporate .navbar-brand span {
    font-weight: 300;
    color: var(--accent);
}
.navbar-corporate .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1.25rem 1rem !important;
    transition: var(--transition);
    position: relative;
}
.navbar-corporate .nav-link:hover,
.navbar-corporate .nav-link.active {
    color: var(--accent) !important;
}
.navbar-corporate .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.navbar-corporate .nav-link:hover::after,
.navbar-corporate .nav-link.active::after {
    transform: scaleX(1);
}
.navbar-corporate .nav-link i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
}
.navbar-corporate .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    border-top: 2px solid var(--accent);
    margin-top: 0;
}
.navbar-corporate .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.navbar-corporate .dropdown-item:hover {
    background: #e8f5e9;
    color: var(--accent);
}
.navbar-corporate .dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    color: var(--text-muted);
}
.navbar-corporate .dropdown-item:hover i {
    color: var(--accent);
}
.navbar-corporate .badge-nav {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
    min-width: 18px;
}
.search-box-corporate {
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-light);
}
.search-box-corporate:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(50,143,97,.1);
    background: var(--bg-white);
}
.search-box-corporate input {
    border: none;
    background: transparent;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    outline: none;
    color: var(--text-primary);
}
.search-box-corporate button {
    border: none;
    background: transparent;
    padding: 0.4rem 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.search-box-corporate button:hover { color: var(--accent); }
.nav-icon-link {
    position: relative;
    padding: 0.5rem !important;
    margin: 0 0.15rem;
    color: var(--text-secondary) !important;
    font-size: 1.15rem;
    transition: var(--transition);
}
.nav-icon-link:hover { color: var(--accent) !important; }
.nav-user-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-user-btn:hover {
    border-color: var(--accent);
    background: #e8f5e9;
    color: var(--accent);
}
.nav-user-btn .avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.nav-auth-link {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: var(--transition);
}
.nav-auth-link:hover { background: #e8f5e9; }

@media (max-width: 991.98px) {
    .navbar-corporate { padding: 0.5rem 0; }
    .navbar-corporate .nav-link {
        padding: 0.6rem 1rem !important;
        border-radius: var(--radius-sm);
    }
    .navbar-corporate .nav-link::after { display: none; }
    .navbar-corporate .nav-link:hover { background: #e8f5e9; }
    .search-box-corporate { margin: 0.5rem 0; }
    .nav-auth-link { padding: 0.5rem 1rem !important; }
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider { position: relative; }
.hero-slider .carousel-inner { height: 100%; }
.hero-slider .carousel-item {
    position: relative;
    height: 80vh;
    max-height: 800px;
}
.hero-slider .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}
.hero-slider .carousel-item.active .slide-bg { transform: scale(1); }
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(30,41,59,0.75) 50%, rgba(15,23,42,0.6) 100%);
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-slider .slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-slider .slide-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    max-width: 560px;
    line-height: 1.7;
    font-weight: 400;
}
.hero-slider .carousel-indicators {
    bottom: 30px;
    gap: 6px;
}
.hero-slider .carousel-indicators button {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255,255,255,.3);
    opacity: 1;
    transition: var(--transition);
    margin: 0;
}
.hero-slider .carousel-indicators button.active {
    background: var(--accent);
    width: 48px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: 1; }
.hero-slider .carousel-control-prev { left: 24px; }
.hero-slider .carousel-control-next { right: 24px; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: var(--accent); border-color: var(--accent); }

.hero-slider .carousel-item .slide-title {
    animation: slideUp 0.7s ease both;
}
.hero-slider .carousel-item .slide-subtitle {
    animation: slideUp 0.7s ease 0.15s both;
}
.hero-slider .carousel-item .btn {
    animation: slideUp 0.7s ease 0.3s both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 60vh; max-height: 500px; }
    .hero-slider .slide-title { font-size: 2rem; }
    .hero-slider .slide-subtitle { font-size: 1rem; }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next { display: none; }
    .hero-slider .carousel-indicators { bottom: 15px; }
}

/* =========================================
   SECTION STYLES
   ========================================= */
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }
.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-box .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}
.feature-box:hover .feature-icon {
    background: var(--accent-gradient);
    color: #fff;
}

/* =========================================
   PRODUCT CARDS
   ========================================= */
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    height: 100%;
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-3px);
}
.product-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--bg-light);
}
.product-card:hover .card-img-top { transform: scale(1.05); }
.product-card .card-body { padding: 1.25rem; }
.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.product-card .card-title a { color: var(--text-primary); transition: var(--transition); }
.product-card .card-title a:hover { color: var(--accent); }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.product-compare-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}
.product-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.product-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    color: var(--text-muted);
}
.product-wishlist-btn:hover { color: var(--danger); border-color: var(--danger); transform: scale(1.1); }
.product-wishlist-btn.active { color: var(--danger); border-color: var(--danger); background: #fef2f2; }
.product-quick-view {
    position: absolute;
    top: 54px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(10px);
}
.product-card:hover .product-quick-view { opacity: 1; transform: translateX(0); }
.product-quick-view:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================
   CATEGORY CARDS
   ========================================= */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}
.category-card img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}
.category-card .category-name {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #26734d, #1a5c3d);
    border-color: #26734d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(50,143,97,.35);
}
.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(50,143,97,.25);
}
.btn-accent {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}
.btn-accent:hover {
    background: linear-gradient(135deg, #26734d, #1a5c3d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(50,143,97,.35);
    transform: translateY(-2px);
}
.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(15,23,42,.3);
}
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-pill { border-radius: 50px; }

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb-corporate {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}
.breadcrumb-corporate .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.breadcrumb-corporate .breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-corporate .breadcrumb-item.active {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}
.breadcrumb-corporate .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: '/';
}

/* =========================================
   CARDS & SECTIONS
   ========================================= */
.card-corporate {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card-corporate:hover {
    box-shadow: var(--shadow-md);
}
.card-corporate .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}
.card-corporate .card-body {
    padding: 1.5rem;
}

/* =========================================
   FORMS
   ========================================= */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--bg-white);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(50,143,97,.1);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.input-group-corporate {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.input-group-corporate:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(50,143,97,.1);
}
.input-group-corporate .form-control {
    border: none;
    box-shadow: none;
}
.input-group-corporate .form-control:focus { box-shadow: none; }
.input-group-corporate .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* =========================================
   TABLES
   ========================================= */
.table-corporate { margin-bottom: 0; }
.table-corporate th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
    background: var(--bg-light);
}
.table-corporate td {
    vertical-align: middle;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
}
.table-corporate tbody tr:hover { background: #f8fafc; }

/* =========================================
   BADGES
   ========================================= */
.badge {
    font-weight: 500;
    padding: 0.35em 0.7em;
    border-radius: 50px;
    font-size: 0.75rem;
}
.badge.bg-primary { background: #c8e6c9 !important; color: #26734d !important; }
.badge.bg-success { background: #d1fae5 !important; color: #059669 !important; }
.badge.bg-danger { background: #fee2e2 !important; color: #dc2626 !important; }
.badge.bg-warning { background: #fef3c7 !important; color: #d97706 !important; }
.badge.bg-info { background: #cffafe !important; color: #0891b2 !important; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }
.badge.bg-dark { background: #e2e8f0 !important; color: #0f172a !important; }

/* =========================================
   AUTH PAGES
   ========================================= */
.auth-container {
    max-width: 460px;
    margin: 3rem auto;
}
.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}
.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-card .auth-header .auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}
.auth-card .auth-header h3 { font-weight: 700; font-size: 1.5rem; }
.auth-card .auth-header p { color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter-section {
    background: var(--primary);
    padding: 4rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(50,143,97,.15) 0%, transparent 60%);
}
.newsletter-section .container { position: relative; z-index: 2; }

/* =========================================
   CART
   ========================================= */
.cart-table img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-control button:hover { background: var(--accent); color: #fff; }
.qty-control input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =========================================
   ORDER SUMMARY CARD
   ========================================= */
.summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.summary-card .summary-header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 600;
}
.summary-card .summary-body { padding: 1.5rem; }
.summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    font-size: 0.9rem;
}
.summary-card .summary-row + .summary-row {
    border-top: 1px solid var(--border-light);
}
.summary-card .summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 0.75rem;
    border-top: 2px solid var(--border);
}

/* =========================================
   ORDER HISTORY
   ========================================= */
.order-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card .order-header {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    cursor: pointer;
}
.order-card .order-body { padding: 1.5rem; display: none; }
.order-card .order-body.show { display: block; }

/* =========================================
   ADS
   ========================================= */
.sidebar-ad {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-slow);
}
.sidebar-ad:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.sidebar-ad a { text-decoration: none; color: inherit; display: block; }
.sidebar-ad img { width: 100%; display: block; }
.sidebar-ad-caption { padding: 0.75rem; }
.sidebar-ad-caption h6 { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.banner-ads .banner-ad-link { text-decoration: none; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.banner-ads .banner-ad-link:hover { opacity: 0.92; }
.between-product-ad a { text-decoration: none; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.between-product-ad a:hover { opacity: 0.92; }

/* =========================================
   FOOTER
   ========================================= */
.footer-corporate {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    border-top: 3px solid var(--accent);
}
.footer-corporate h5, .footer-corporate h6 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #fff;
}
.footer-corporate a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer-corporate a:hover { color: var(--accent); padding-left: 3px; }
.footer-corporate .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 1.1rem;
    transition: var(--transition);
    margin-right: 0.5rem;
}
.footer-corporate .social-links a:hover {
    background: var(--accent);
    color: #fff;
    padding-left: 0;
    transform: translateY(-2px);
}
.footer-corporate hr {
    border-color: rgba(255,255,255,.08);
    margin: 2rem 0;
}
.footer-corporate .footer-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 1rem;
}
.footer-corporate .payment-icons i {
    font-size: 1.75rem;
    color: rgba(255,255,255,.4);
    margin-left: 0.5rem;
    transition: var(--transition);
}
.footer-corporate .payment-icons i:hover { color: #fff; }

/* =========================================
   SCROLL TO TOP
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(50,143,97,.35);
    z-index: 999;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(50,143,97,.45);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(50,143,97,.45);
}

/* =========================================
   PRODUCT GALLERY & ZOOM
   ========================================= */
.product-gallery { position: sticky; top: 100px; }
.gallery-row { display: flex; gap: 16px; align-items: flex-start; }
.main-image-container {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 1px solid var(--border);
    cursor: crosshair;
    overflow: hidden;
}
.gallery-row.has-result .main-image-container { width: calc(100% - 466px); }
.main-product-img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.zoom-lens {
    display: none;
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid var(--accent);
    background: rgba(50,143,97,.08);
    pointer-events: none;
    z-index: 5;
    border-radius: 4px;
}
.zoom-result {
    display: none;
    flex-shrink: 0;
    width: 450px;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
}
.zoom-result img {
    position: absolute;
    width: 200%;
    height: 200%;
    max-width: none;
    object-fit: none;
}
.thumbnails-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }
.thumbnail-wrapper {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}
.thumbnail-wrapper:hover { border-color: var(--secondary); }
.thumbnail-wrapper.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(50,143,97,.15);
}
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199px) {
    .zoom-result, .zoom-lens { display: none !important; }
    .main-image-container { cursor: default; }
    .gallery-row.has-result .main-image-container { width: 100%; }
}
@media (max-width: 768px) {
    .main-product-img { height: 350px; }
    .thumbnail-wrapper { width: 60px; height: 60px; }
}

/* =========================================
   STARS
   ========================================= */
.stars { color: #f59e0b; }
.stars i { margin-right: 2px; }
.star-rating .star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #d1d5db;
    transition: var(--transition);
}
.star-rating .star.active,
.star-rating .star:hover { color: #f59e0b; }

/* =========================================
   TOASTR
   ========================================= */
#toast-container > div {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font-family) !important;
}

/* =========================================
   LOADING SPINNER
   ========================================= */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner-overlay.show { display: flex; }
.spinner-overlay .spinner-border { width: 3rem; height: 3rem; color: var(--accent); }

/* =========================================
   UTILITIES
   ========================================= */
.text-primary-custom { color: var(--accent) !important; }
.bg-gradient-primary { background: var(--accent-gradient) !important; }
.fw-800 { font-weight: 800; }
.letter-spacing-wide { letter-spacing: 0.05em; }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-left { animation: fadeInLeft 0.5s ease; }
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; }
    .product-card .card-img-top { height: 200px; }
    .auth-container { margin: 2rem 1rem; }
    .auth-card { padding: 1.5rem; }
    .cart-table img { width: 50px; height: 50px; }
}

@media (max-width: 576px) {
    .section-title { font-size: 1.35rem; }
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; align-items: center; justify-content: center; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: lightboxFade .3s ease;
}
@keyframes lightboxFade {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
    z-index: 2;
    background: none;
    border: none;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    padding: 20px;
    background: none;
    border: none;
    z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    z-index: 2;
}
/* Gallery page */
.gallery-page .container { max-width: 1320px; }
.ck-content img { cursor: zoom-in; border-radius: 6px; max-width: 100%; height: auto; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--light-bg);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-placeholder {
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
