* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff5a36;
    --secondary: #00c2a8;
    --accent: #ffd166;
    --dark: #101828;
    --light: #f7fafc;
    --border-color: #d9e2ec;
    --ink-soft: #3b4b5c;
    --glow-warm: rgba(255, 112, 67, 0.35);
    --glow-cool: rgba(0, 194, 168, 0.35);
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 15%, #fff4d6 0%, rgba(255, 244, 214, 0) 38%),
        radial-gradient(circle at 88% 20%, #d7f8ff 0%, rgba(215, 248, 255, 0) 34%),
        linear-gradient(165deg, #f7fafc 0%, #eef4ff 48%, #f9fafb 100%);
    color: var(--dark);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
    opacity: 0.45;
    animation: floatBlob 14s ease-in-out infinite;
}

body::before {
    top: -90px;
    right: -80px;
    background: #ffd166;
}

body::after {
    bottom: -120px;
    left: -110px;
    background: #00c2a8;
    animation-delay: 2.8s;
}

/* ============ HEADER ============ */
.header {
    background: linear-gradient(130deg, #0ea5e9 0%, #00c2a8 44%, #ff8a3d 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 3px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.22) 100%);
    pointer-events: none;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: fit-content;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.logo i {
    font-size: 32px;
    animation: bounce 2s infinite;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: floatLogo 2.8s ease-in-out infinite;
}

.logo-letter {
    display: inline-block;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.logo-letter.blue {
    color: #1f6fff;
}

.logo-letter.yellow {
    color: #ffd54f;
}

.logo-letter.pink {
    color: #ff5da2;
}

.logo-letter.white {
    color: white;
    -webkit-text-stroke: 1.5px #ff5da2;
}

.tagline {
    font-size: 12px;
    opacity: 0.9;
    font-style: italic;
    color: #fff;
}

.search-bar {
    flex: 1;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.96);
    color: var(--dark);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.search-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 10px 28px rgba(15, 23, 42, 0.16);
}

.search-bar i {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: white;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, width 0.3s ease, padding 0.3s ease;
    animation: floatSocial 2.8s ease-in-out infinite;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05) rotate(4deg);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    width: 112px;
    padding: 0 14px;
}

.social-link i {
    transition: margin-right 0.25s ease;
}

.social-link:hover i {
    margin-right: 6px;
}

.social-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.25s ease;
}

.social-link:hover .social-label {
    max-width: 80px;
    opacity: 1;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0e63d7);
    animation-delay: 0s;
}

.social-link.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    animation-delay: 0.25s;
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation-delay: 0.5s;
}

.category-menu-wrap {
    position: relative;
}

.category-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 260;
}

.category-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.category-menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-menu-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
}

.menu-line {
    width: 19px;
    height: 2.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.category-menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.category-menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.category-menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.category-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 50vw;
    padding: 18px 12px 14px;
    border-radius: 0 24px 24px 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.98), rgba(255, 247, 237, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 16px 0 36px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-102%);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 270;
    overflow-y: auto;
}

.category-menu::before {
    content: 'Categories';
    display: block;
    margin: 2px 4px 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(255, 154, 74, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.category-menu.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.menu-category-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 14px;
    padding: 12px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.75);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-16px);
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.menu-category-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.62) 48%, transparent 78%);
    transform: translateX(-125%);
    transition: transform 0.38s ease;
    pointer-events: none;
}

.menu-category-btn:nth-child(2) { border-left: 4px solid #f59e0b; }
.menu-category-btn:nth-child(3) { border-left: 4px solid #fb923c; }
.menu-category-btn:nth-child(4) { border-left: 4px solid #06b6d4; }
.menu-category-btn:nth-child(5) { border-left: 4px solid #6366f1; }
.menu-category-btn:nth-child(6) { border-left: 4px solid #ec4899; }
.menu-category-btn:nth-child(7) { border-left: 4px solid #0ea5e9; }
.menu-category-btn:nth-child(8) { border-left: 4px solid #14b8a6; }
.menu-category-btn:nth-child(9) { border-left: 4px solid #f97316; }
.menu-category-btn:nth-child(10) { border-left: 4px solid #22c55e; }
.menu-category-btn:nth-child(11) { border-left: 4px solid #84cc16; }
.menu-category-btn:nth-child(12) { border-left: 4px solid #f43f5e; }

.category-menu.open .menu-category-btn {
    opacity: 1;
    transform: translateX(0);
}

.category-menu.open .menu-category-btn:nth-child(1) { transition-delay: 0.04s; }
.category-menu.open .menu-category-btn:nth-child(2) { transition-delay: 0.06s; }
.category-menu.open .menu-category-btn:nth-child(3) { transition-delay: 0.08s; }
.category-menu.open .menu-category-btn:nth-child(4) { transition-delay: 0.10s; }
.category-menu.open .menu-category-btn:nth-child(5) { transition-delay: 0.12s; }
.category-menu.open .menu-category-btn:nth-child(6) { transition-delay: 0.14s; }
.category-menu.open .menu-category-btn:nth-child(7) { transition-delay: 0.16s; }
.category-menu.open .menu-category-btn:nth-child(8) { transition-delay: 0.18s; }
.category-menu.open .menu-category-btn:nth-child(9) { transition-delay: 0.20s; }
.category-menu.open .menu-category-btn:nth-child(10) { transition-delay: 0.22s; }
.category-menu.open .menu-category-btn:nth-child(11) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .category-menu,
    .category-menu-backdrop,
    .menu-category-btn {
        transition: none;
    }
}

.menu-category-btn:hover,
.menu-category-btn.active {
    transform: translateX(6px) scale(1.01);
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    box-shadow: 0 12px 20px rgba(14, 165, 233, 0.18);
}

.menu-category-btn:hover::after,
.menu-category-btn.active::after {
    transform: translateX(125%);
}

.menu-category-btn[data-filter="featured"] {
    position: relative;
    border: 1px solid rgba(255, 153, 51, 0.5);
    background: linear-gradient(135deg, #fff5e6, #ffe2cc 50%, #ffeecf 100%);
    color: #7c2d12;
    box-shadow: 0 8px 20px rgba(255, 122, 24, 0.2);
    overflow: hidden;
}

.menu-category-btn[data-filter="featured"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.75) 45%, transparent 75%);
    transform: translateX(-120%);
    animation: featureSweep 2.8s linear infinite;
}

.menu-category-btn[data-filter="featured"]:hover,
.menu-category-btn[data-filter="featured"].active {
    background: linear-gradient(135deg, #ff8f3d, #ff5a36);
    color: #fff;
    border-color: rgba(255, 247, 235, 0.92);
    box-shadow: 0 14px 24px rgba(255, 106, 61, 0.34), 0 0 0 1px rgba(255, 243, 227, 0.5) inset;
}

.admin-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-toggle-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.28);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-btn {
    background: linear-gradient(135deg, var(--accent), #ffb347);
    border: none;
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    animation: floatCart 2.8s ease-in-out infinite;
}

.cart-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

/* ============ ADMIN DASHBOARD ============ */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 140;
}

.admin-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-dashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.24);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.admin-dashboard.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.admin-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-eyebrow {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #7c3aed;
    font-weight: 700;
    margin-bottom: 4px;
}

.close-admin {
    border: none;
    background: #f3f4f6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.admin-panel {
    background: linear-gradient(135deg, #f8fafc, #fef2f2);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.orders-panel {
    margin-top: 18px;
}

.panel-heading {
    margin-bottom: 14px;
}

.panel-heading h3 {
    margin-bottom: 4px;
}

.panel-heading p {
    color: #6b7280;
    font-size: 14px;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.product-form input,
.product-form select,
.product-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.mini-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.primary-btn {
    background: linear-gradient(135deg, #ff6b6b, #f59e0b);
    color: #fff;
}

.secondary-btn {
    background: #e5e7eb;
    color: #111827;
}

.inventory-list,
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-card,
.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e5e7eb;
}

.inventory-card p,
.order-card p {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

.inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-btn {
    background: #eef2ff;
    color: #4338ca;
    padding: 7px 10px;
    font-size: 12px;
}

.mini-btn.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.order-status {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .inventory-card,
    .order-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-meta {
        align-items: flex-start;
    }
}

/* ============ CATEGORIES NAVIGATION ============ */
.categories-nav {
    padding: 10px 18px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.categoriesSwiper {
    width: 100%;
}

.category-slide {
    width: auto !important;
    margin-right: 6px;
}

.category-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.category-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 8px;
}

.category-btn:hover,
.category-btn.active {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
}

.category-btn[data-filter="featured"] {
    padding: 6px 12px;
    border: 1px solid rgba(255, 220, 180, 0.65);
    background: linear-gradient(135deg, #ffac4b 0%, #ff7a2f 52%, #ff5a36 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 106, 61, 0.36), 0 0 0 1px rgba(255, 236, 214, 0.2) inset;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    animation: featurePulse 1.8s ease-in-out infinite;
}

.category-btn[data-filter="featured"]::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    opacity: 0.65;
}

.category-btn[data-filter="featured"] i {
    background: rgba(255, 255, 255, 0.28);
    animation: featureIconFlicker 1.2s ease-in-out infinite;
}

.category-btn[data-filter="featured"]:hover,
.category-btn[data-filter="featured"].active {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 32px rgba(255, 106, 61, 0.45), 0 0 16px rgba(255, 196, 77, 0.42), 0 0 0 1px rgba(255, 244, 225, 0.55) inset;
    border-color: rgba(255, 249, 238, 0.92);
}

.category-btn[data-filter="featured"]:hover::after,
.category-btn[data-filter="featured"].active::after {
    border-color: rgba(255, 255, 255, 0.72);
    opacity: 0.95;
}

.category-btn:hover::before,
.category-btn.active::before {
    transform: translateX(120%);
}

.category-slide:nth-child(1) .category-btn:hover,
.category-slide:nth-child(1) .category-btn.active {
    background: linear-gradient(135deg, #ff9f1c, #ff6b6b);
    color: #fff;
}

.category-slide:nth-child(2) .category-btn:hover,
.category-slide:nth-child(2) .category-btn.active {
    background: linear-gradient(135deg, #4ecdc4, #1b9aaa);
    color: #fff;
}

.category-slide:nth-child(2) .category-btn {
    background: linear-gradient(135deg, #ffac4b 0%, #ff7a2f 52%, #ff5a36 100%);
}

.category-slide:nth-child(3) .category-btn:hover,
.category-slide:nth-child(3) .category-btn.active {
    background: linear-gradient(135deg, #7b61ff, #4f46e5);
    color: #fff;
}

.category-slide:nth-child(4) .category-btn:hover,
.category-slide:nth-child(4) .category-btn.active {
    background: linear-gradient(135deg, #ff6fa5, #ff3d7a);
    color: #fff;
}

.category-slide:nth-child(5) .category-btn:hover,
.category-slide:nth-child(5) .category-btn.active {
    background: linear-gradient(135deg, #ff8a00, #ffb347);
    color: #fff;
}

.category-slide:nth-child(6) .category-btn:hover,
.category-slide:nth-child(6) .category-btn.active {
    background: linear-gradient(135deg, #36c9b7, #2ba8e0);
    color: #fff;
}

.category-slide:nth-child(7) .category-btn:hover,
.category-slide:nth-child(7) .category-btn.active {
    background: linear-gradient(135deg, #ffd166, #f4a261);
    color: #2d2d2d;
}

.category-slide:nth-child(8) .category-btn:hover,
.category-slide:nth-child(8) .category-btn.active {
    background: linear-gradient(135deg, #ff7eb6, #ff5d8f);
    color: #fff;
}

.category-slide:nth-child(9) .category-btn:hover,
.category-slide:nth-child(9) .category-btn.active {
    background: linear-gradient(135deg, #8bc34a, #52b788);
    color: #fff;
}

.category-slide:nth-child(10) .category-btn:hover,
.category-slide:nth-child(10) .category-btn.active {
    background: linear-gradient(135deg, #ff5c8a, #ff2d55);
    color: #fff;
    animation: wishlistPulse 0.9s ease-in-out;
}

@keyframes wishlistPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06) translateY(-2px); }
    100% { transform: scale(1); }
}

@keyframes featurePulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(255, 106, 61, 0.34), 0 0 0 1px rgba(255, 236, 214, 0.2) inset;
    }
    50% {
        box-shadow: 0 14px 30px rgba(255, 106, 61, 0.48), 0 0 0 1px rgba(255, 236, 214, 0.35) inset;
    }
}

@keyframes featureIconFlicker {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08) rotate(-6deg);
        filter: brightness(1.2);
    }
}

@keyframes featureSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

/* ============ OFFER SHOWCASE ============ */
.offers-section {
    margin: 24px auto 0;
    padding: 24px 28px 28px;
    max-width: 1400px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 247, 237, 0.6), rgba(240, 253, 250, 0.68));
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
}

.offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.offers-eyebrow {
    margin: 0 0 4px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.offers-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(37, 99, 235, 0.18);
}

.offers-nav {
    display: flex;
    gap: 10px;
}

.offer-nav-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-nav-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.offers-swiper {
    overflow: visible;
}

.trust-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0 0 36px;
    max-width: 1100px;
    margin: 0 auto 36px;
}

.trust-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdf8ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.trust-card i {
    font-size: 28px;
    color: #7c3aed;
    margin-bottom: 12px;
}

.trust-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.trust-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.offer-card {
    height: auto;
    animation: cardReveal 0.8s ease both;
}

.offer-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
    min-height: 340px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239, 244, 255, 0.96));
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.16);
    animation: offerPulse 3.2s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(124, 58, 237, 0.2);
}

.offer-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: translateX(-140%);
    transition: transform 0.6s ease;
}

.offer-card-inner::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 18px;
    pointer-events: none;
}

.offer-card-inner:hover::before {
    transform: translateX(140%);
}

.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.offer-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.offer-info h3 {
    margin: 0 0 8px;
    color: #222;
    font-size: 18px;
    font-weight: 800;
}

.offer-info p {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
    min-height: 56px;
}

.offer-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.offer-old-price {
    color: #999;
    font-size: 15px;
    text-decoration: line-through;
}

.offer-new-price {
    color: #d94f5d;
    font-size: 22px;
    font-weight: 800;
}

.offer-add-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
    margin-top: auto;
}

.offer-add-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 22px rgba(255, 107, 107, 0.3);
}

/* ============ MAIN CONTENT ============ */
.main-content {
    padding: 32px 40px 48px;
    max-width: 1400px;
    margin: 0 auto;
}
.products-section {
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 18px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    line-height: 1.05;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.24));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    animation: titleBounce 2.6s ease-in-out infinite;
}

.section-word {
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: rotate(-1deg);
}

.section-word.sleiman {
    color: white;
    -webkit-text-stroke: 4px #1f6fff;
    text-shadow: 0 3px 0 rgba(31, 111, 255, 0.25), 0 8px 18px rgba(31, 111, 255, 0.25);
}

.section-word.kids {
    color: white;
    -webkit-text-stroke: 4px #ffd54f;
    text-shadow: 0 3px 0 rgba(255, 213, 79, 0.25), 0 8px 18px rgba(255, 213, 79, 0.25);
}

.section-word.toys {
    color: white;
    -webkit-text-stroke: 4px #ff5da2;
    text-shadow: 0 3px 0 rgba(255, 93, 162, 0.25), 0 8px 18px rgba(255, 93, 162, 0.25);
}

.sort-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    padding: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 236, 210, 0.55), rgba(216, 252, 244, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.sort-controls::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sort-select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 230, 0.95), rgba(230, 255, 248, 0.95));
    color: #0f172a;
    transition: all 0.3s ease;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sort-select:hover,
.sort-select:focus {
    border-color: rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, #ffffff, #fff1de, #dcfff6);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18), 0 14px 26px rgba(14, 165, 233, 0.2);
    outline: none;
}

.sort-select option {
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
}

/* ============ PRODUCTS GRID ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    align-items: start;
    animation: fadeIn 0.6s ease-out;
    padding-top: 8px;
}
.products-grid.featured-mode {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 230, 0.75), rgba(239, 255, 251, 0.72));
    border: 1px solid rgba(255, 167, 82, 0.28);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.products-grid.featured-mode::before {
    content: 'Featured Collection';
    position: absolute;
    top: -12px;
    left: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c2d12;
    background: linear-gradient(135deg, #ffd78a, #ffb347);
    box-shadow: 0 8px 18px rgba(255, 152, 73, 0.35);
    border: 1px solid rgba(255, 244, 220, 0.75);
}
.products-grid.featured-mode .product-card {
    border: 1px solid rgba(255, 170, 90, 0.36);
    box-shadow: 0 18px 34px rgba(255, 122, 24, 0.18), 0 8px 24px rgba(15, 23, 42, 0.12);
    background: linear-gradient(155deg, #fffdfa 0%, #fff2e2 46%, #ecfeff 100%);
}
.products-grid.featured-mode .product-card:hover {
    border-color: rgba(255, 130, 62, 0.52);
    box-shadow: 0 28px 52px rgba(255, 122, 24, 0.26), 0 12px 30px rgba(15, 23, 42, 0.15);
}
.products-grid.featured-mode .add-to-cart-btn {
    background: linear-gradient(135deg, #ff8c3a, #ff5a36 55%, #ff2f62 100%);
    box-shadow: 0 12px 24px rgba(255, 90, 54, 0.32);
}
.products-grid.featured-mode .product-price {
    color: #b42318;
}
.featured-glow-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ff8f3d, #ff5a36);
    border: 1px solid rgba(255, 223, 201, 0.7);
    box-shadow: 0 8px 16px rgba(255, 106, 61, 0.36);
    animation: featureTagPulse 1.8s ease-in-out infinite;
}

.product-card {
    background: linear-gradient(150deg, #ffffff 0%, #fff8f1 45%, #f0fdfa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 140, 84, 0.2);
    position: relative;
}

.product-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.16);
    border-color: rgba(255, 140, 84, 0.38);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.48) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.product-card:hover::after {
    transform: translateX(120%);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102,126,234,0.16) 0%, rgba(118,75,162,0.16) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary), #ff5252);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.2);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--secondary), #26c6da);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--primary), #ff5252);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    color: #ff5a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    z-index: 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
}

.wishlist-btn.active {
    background: #ff5a5f;
    color: white;
}

.product-content {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.stars {
    color: #ffc107;
    letter-spacing: 1px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.product-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.product-stock {
    font-size: 12px;
    color: #6b7280;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff6a3d, #ff9158);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(255, 106, 61, 0.28);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
}

.quick-view-btn {
    width: 100%;
    padding: 10px;
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-view-btn:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
    color: #0b6aa8;
}

.modal-wishlist {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-wishlist.active {
    background: rgba(255, 90, 95, 0.1);
    border-color: #ff5a5f;
    color: #ff5a5f;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

/* ============ CART SIDEBAR ============ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 250;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.cart-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: var(--dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
}

.close-cart:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.empty-cart small {
    font-size: 13px;
    color: #999;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.cart-item:hover {
    border-color: var(--accent);
    background: rgba(255, 230, 109, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    padding: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.cart-item-price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control-small {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn-small {
    width: 24px;
    height: 24px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: var(--dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-small:hover {
    background: var(--primary);
    color: white;
}

.qty-input-small {
    width: 35px;
    text-align: center;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
}

.qty-input-small:focus {
    outline: none;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.remove-item-btn:hover {
    color: #ff3333;
    transform: scale(1.2);
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
    color: #666;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    border-top: 2px solid var(--border-color);
    padding-top: 12px;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #ff5252);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.share-cart-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4ecdc4, #2bb3a8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.25);
}

.continue-shopping-btn {
    width: 100%;
    padding: 12px;
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    border-color: var(--secondary);
    background: rgba(78, 205, 196, 0.05);
    color: var(--secondary);
}

/* ============ TOAST NOTIFICATION ============ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary), #ff5252);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideUp 0.4s ease, slideDown 0.4s ease 2.6s forwards;
}

.toast i {
    font-size: 20px;
}

/* ============ QUICK VIEW MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    z-index: 450;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-main-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--light);
}

.modal-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
}

.modal-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.modal-thumb:hover,
.modal-thumb.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.modal-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-price .price {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
}

.modal-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.spec-label {
    font-weight: 600;
    color: var(--dark);
}

.modal-quantity {
    margin-bottom: 20px;
}

.modal-quantity label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

#modalQuantity {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

#modalQuantity:focus {
    outline: none;
}

.modal-add-to-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #ff5252);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.modal-wishlist {
    width: 100%;
    padding: 12px;
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-wishlist:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.05);
    color: var(--primary);
}

/* ============ ANIMATIONS ============ */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes floatSocial {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatCart {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

@keyframes offerPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.01);
    }
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(14px, -16px, 0) scale(1.08);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
@keyframes featureTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(255, 106, 61, 0.36);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 22px rgba(255, 106, 61, 0.5);
    }
}
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}


/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .header-top {
        padding: 15px 25px;
        gap: 20px;
    }

    .search-bar {
        max-width: 250px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .modal-content {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 12px 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .logo-section {
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }

    .logo i {
        font-size: 24px;
    }

    .logo-text {
        font-size: 20px;
    }

    .tagline {
        display: none;
    }

    .search-bar {
        max-width: 100%;
        flex-basis: 100%;
        order: 3;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .category-menu {
        width: min(380px, 86vw);
        padding: 18px 12px 14px;
        border-radius: 0 22px 22px 0;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.98), rgba(255, 247, 237, 0.98));
        border-right: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow: 16px 0 36px rgba(15, 23, 42, 0.28);
        gap: 10px;
    }

    .category-menu::before {
        content: 'Categories';
        display: block;
        margin: 2px 4px 8px;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 11px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        font-weight: 900;
        color: #0f172a;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(255, 154, 74, 0.22));
        border: 1px solid rgba(255, 255, 255, 0.7);
    }

    .menu-category-btn {
        border-radius: 14px;
        padding: 12px 12px;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.75);
        background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    }

    .menu-category-btn:nth-child(2) { border-left: 4px solid #f59e0b; }
    .menu-category-btn:nth-child(3) { border-left: 4px solid #fb923c; }
    .menu-category-btn:nth-child(4) { border-left: 4px solid #06b6d4; }
    .menu-category-btn:nth-child(5) { border-left: 4px solid #6366f1; }
    .menu-category-btn:nth-child(6) { border-left: 4px solid #ec4899; }
    .menu-category-btn:nth-child(7) { border-left: 4px solid #0ea5e9; }
    .menu-category-btn:nth-child(8) { border-left: 4px solid #14b8a6; }
    .menu-category-btn:nth-child(9) { border-left: 4px solid #f97316; }
    .menu-category-btn:nth-child(10) { border-left: 4px solid #22c55e; }
    .menu-category-btn:nth-child(11) { border-left: 4px solid #84cc16; }
    .menu-category-btn:nth-child(12) { border-left: 4px solid #f43f5e; }

    .menu-category-btn:hover,
    .menu-category-btn.active {
        transform: translateX(6px) scale(1.01);
        box-shadow: 0 12px 20px rgba(14, 165, 233, 0.18);
    }

    .categories-nav {
        padding: 12px 15px;
    }

    .main-content {
        padding: 16px;
    }

    .trust-section {
        grid-template-columns: 1fr;
        padding: 0 16px 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-content {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-description {
        font-size: 12px;
        min-height: 48px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-actions {
        gap: 6px;
    }

    .add-to-cart-btn,
    .quick-view-btn {
        padding: 10px;
        font-size: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        width: 100%;
        justify-content: center;
        font-size: 24px;
        padding: 8px 12px;
        border-radius: 20px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .quick-view-modal {
        width: 95%;
        padding: 20px;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-info h2 {
        font-size: 20px;
    }

    .sort-controls {
        width: 100%;
        margin-top: 4px;
        padding: 5px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 221, 0.85), rgba(220, 255, 246, 0.86));
        border: 1px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
    }

    .sort-controls::before {
        content: 'Sort by';
        position: absolute;
        left: 14px;
        top: -10px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #0f172a;
        background: linear-gradient(135deg, #ffe3bd, #ffd166);
        border: 1px solid rgba(255, 255, 255, 0.82);
        box-shadow: 0 6px 12px rgba(255, 183, 77, 0.28);
        pointer-events: none;
    }

    .sort-controls::after {
        right: 18px;
        font-size: 15px;
    }

    .sort-select {
        flex: 1;
        border-radius: 12px;
        padding: 11px 36px 11px 12px;
        font-size: 12px;
        letter-spacing: 0.03em;
        background: linear-gradient(135deg, #ffffff, #fff7eb);
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 10px 12px;
    }

    .logo-text {
        font-size: 18px;
    }

    .header-actions {
        gap: 8px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .category-menu-toggle {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .category-menu {
        width: 88vw;
        padding: 14px 10px 12px;
        border-radius: 0 18px 18px 0;
    }

    .category-menu::before {
        margin: 2px 2px 8px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .menu-category-btn {
        padding: 10px 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    .menu-line {
        width: 16px;
    }

    .sort-controls {
        border-radius: 14px;
        padding: 4px;
    }

    .sort-controls::before {
        left: 10px;
        top: -9px;
        font-size: 9px;
        padding: 2px 7px;
    }

    .sort-select {
        font-size: 11px;
        padding: 10px 34px 10px 10px;
    }

    .cart-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
        gap: 4px;
        padding: 7px 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-content {
        padding: 12px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-description {
        font-size: 11px;
        min-height: 42px;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn {
        font-size: 12px;
        padding: 10px;
    }

    .quick-view-btn {
        font-size: 11px;
    }

    .share-cart-btn,
    .continue-shopping-btn {
        padding: 10px;
        font-size: 13px;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 20px;
    }

    .quick-view-modal {
        padding: 15px;
    }

    .modal-info h2 {
        font-size: 18px;
    }
}

/* ============ SCROLLBAR STYLING ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}