/* ================================================================
   UzShop – Main Shop Styles (style.css)
   Import after: Bootstrap 5, theme.css, Bootstrap Icons
   ================================================================ */

/* ── Page Transition ──────────────────────────────────────────── */
#app {
    animation: fadeIn 0.35s var(--ease);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar-shop {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow 0.3s var(--ease);
}

.navbar-shop.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-input {
    border-radius: var(--radius-full) !important;
    padding-left: 2.8rem !important;
    padding-right: 1rem !important;
    height: 44px;
    font-size: var(--font-size-sm) !important;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: none;
    z-index: var(--z-dropdown);
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
    animation: slideUp 0.2s var(--ease);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--bg-muted);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.search-result-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-price {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 700;
}

/* Nav Icons */
.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    animation: bounce-in 0.4s var(--ease-bounce);
}

/* Dark Mode Toggle */
.theme-toggle {
    width: 44px;
    height: 24px;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.theme-toggle.dark {
    background: var(--grad-primary);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s var(--ease-bounce);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-toggle.dark::after {
    transform: translateX(20px);
}

/* ══════════════════════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════════════════════ */
.hero-slider {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-2xl);
    background: var(--grad-dark);
}

.hero-slide {
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
    background: var(--grad-primary);
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M47.3,-57.2C60.9,-46.8,71.4,-31.6,74.3,-14.8C77.1,2,72.3,20.4,62.8,35.5C53.3,50.6,39.2,62.4,23.1,68.5C7,74.6,-11.1,75.1,-27.4,69.4C-43.7,63.7,-58.3,51.8,-67.2,36.3C-76.1,20.8,-79.4,1.7,-75.3,-15.2C-71.2,-32.1,-59.8,-46.9,-46,-58.2C-32.2,-69.6,-16.1,-77.6,0.7,-78.4C17.5,-79.3,33.7,-67.6,47.3,-57.2Z' transform='translate(100 100)'/%3E%3C/svg%3E") no-repeat right bottom;
    background-size: 60%;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-full);
    border: none;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.hero-image {
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 50%;
    max-height: 100%;
    object-fit: contain;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    width: 24px;
    background: #fff;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
}

.view-all-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════════════════════════ */
.categories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 90px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.category-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .category-icon-wrap,
.category-card.active .category-icon-wrap {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-card:hover .category-icon-wrap::before,
.category-card.active .category-icon-wrap::before {
    opacity: 1;
}

.category-card:hover .category-icon-wrap i,
.category-card.active .category-icon-wrap i {
    color: #fff;
    position: relative;
}

.category-icon-wrap i {
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.2);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-muted);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-img {
    transform: scale(1.07);
}

/* Badges on card */
.product-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.badge-discount {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

.badge-new {
    background: var(--success);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

/* Wishlist heart on card */
.product-wishlist-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    color: var(--danger);
    transform: scale(1.15);
}

.product-wishlist-btn.active {
    background: rgba(239, 68, 68, 0.12);
}

/* Card overlay actions */
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    transition: bottom 0.3s var(--ease);
    z-index: 2;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.btn-add-cart-overlay {
    flex: 1;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-overlay:hover {
    background: var(--primary);
    color: #fff;
}

/* Card body */
.product-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price {
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.5rem;
    background: var(--bg-muted);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #fff;
}

.btn-add-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ── Skeleton Loader ──────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-card) 50%, var(--bg-muted) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.skeleton-img {
    aspect-ratio: 1/1;
    width: 100%;
}

.skeleton-line {
    height: 14px;
    margin: 6px 12px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* ══════════════════════════════════════════════════════════════
   FLASH SALE SECTION
══════════════════════════════════════════════════════════════ */
.flash-sale-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.flash-badge {
    background: var(--grad-warm);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: pulse-brand 2s infinite;
}

.countdown {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.countdown-segment {
    background: var(--text-primary);
    color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.55rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    min-width: 36px;
    text-align: center;
}

.countdown-sep {
    color: var(--danger);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════════════════════════ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-sm);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: var(--bg-muted);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-number {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    border: none;
    background: transparent;
}

/* Order Summary */
.order-summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-light);
}

.summary-row:last-child {
    border: none;
}

.summary-total {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.promo-input-wrap {
    position: relative;
}

.promo-apply-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--grad-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════════════════════ */
.checkout-section-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-muted);
}

.checkout-section-title i {
    width: 32px;
    height: 32px;
    background: var(--grad-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL
══════════════════════════════════════════════════════════════ */
.product-gallery-main {
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-muted);
    margin-bottom: 0.75rem;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-large {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.price-old {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge-lg {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ══════════════════════════════════════════════════════════════
   FLOATING CART BUTTON
══════════════════════════════════════════════════════════════ */
.floating-cart {
    position: fixed;
    bottom: 90px;
    right: 1.25rem;
    z-index: var(--z-sticky);
    display: none;
}

.floating-cart-btn {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    animation: pulse-brand 3s infinite;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: none;
    z-index: var(--z-sticky);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    position: relative;
    padding: 0.25rem 0;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-center {
    position: relative;
    top: -16px;
}

.bottom-nav-center-btn {
    width: 54px;
    height: 54px;
    background: var(--grad-primary);
    border: 3px solid var(--bg);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.bottom-nav-center-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .floating-cart {
        bottom: 80px;
        display: block;
    }
}

/* ══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════════════ */
.toast-container-custom {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.85rem 1.1rem;
    min-width: 280px;
    max-width: 360px;
    pointer-events: all;
    animation: toast-in 0.35s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}

.toast-custom.removing {
    animation: toast-out 0.25s var(--ease) forwards;
}

.toast-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.toast-info .toast-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.toast-msg {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: 1px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    animation: toast-progress 3s linear forwards;
}

.toast-success .toast-progress {
    background: var(--success);
}

.toast-error .toast-progress {
    background: var(--danger);
}

@keyframes toast-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ══════════════════════════════════════════════════════════════
   ADD TO CART ANIMATION
══════════════════════════════════════════════════════════════ */
.cart-fly-item {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.7s var(--ease);
}

/* ══════════════════════════════════════════════════════════════
   QUICK-VIEW MODAL
══════════════════════════════════════════════════════════════ */
.quick-view-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ══════════════════════════════════════════════════════════════
   ORDER STATUS TIMELINE
══════════════════════════════════════════════════════════════ */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-step {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    font-size: 0.65rem;
}

.timeline-step.done .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.timeline-step.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    animation: pulse-brand 1.5s infinite;
}

.timeline-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.empty-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-sub {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
══════════════════════════════════════════════════════════════ */
.filter-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 80px;
}

.filter-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 0.2rem;
    color: var(--text-secondary);
    background: var(--bg-muted);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER (minimal)
══════════════════════════════════════════════════════════════ */
.shop-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 1.5rem;
}