/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 90px;

    /* Reserve the scrollbar space so the page does not
       jump sideways when the cart locks scrolling */
    scrollbar-gutter: stable;

    overflow-y: scroll;
}

body {
    font-family: Arial, sans-serif;

    background-color: #f6f8fc;

    color: #0f172a;

    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

body.no-scroll {
    overflow: hidden;
}


/* =========================
   VARIABLES
========================= */

:root {

    --primary: #4f46e5;

    --primary-dark: #4338ca;

    --secondary: #0891b2;

    --accent: #9333ea;

    --bg: #f6f8fc;

    --surface: #ffffff;

    --surface-soft: #f1f5f9;

    --navbar-bg: rgba(255, 255, 255, 0.85);

    --border: #e2e8f0;

    --border-strong: #c7d2fe;

    --text-primary: #0f172a;

    --text-secondary: #64748b;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);

    --shadow-md: 0 10px 30px rgba(79, 70, 229, 0.12);

}


/* =========================
   CONTAINER
========================= */

.container {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 0 24px;

}


/* =========================
   NAVBAR
========================= */

#navbar {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    height: 70px;

    background-color: var(--navbar-bg);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;

    transition: all 0.3s ease;

}


/* Scrolled */

#navbar.scrolled {

    box-shadow: var(--shadow-sm);

}


/* =========================
   NAVBAR CONTENT
========================= */

.navbar-content {

    position: relative;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* =========================
   LOGO
========================= */

.logo {

    display: flex;

    align-items: center;

}


/* Logo Icon */

.logo-icon {

    position: relative;

    width: 40px;

    height: 40px;

    margin-right: 10px;

    border-radius: 10px;

    background: linear-gradient(135deg,
            #6366f1,
            #a855f7);

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);

}


/* Inner Logo */

.logo-inner {

    width: 34px;

    height: 34px;

    border-radius: 8px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* EL */

.logo-inner span {

    font-size: 16px;

    font-weight: bold;

    background: linear-gradient(to right,
            #4f46e5,
            #9333ea);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


/* Logo Text */

.logo-text {

    font-size: 20px;

    font-weight: bold;

    background: linear-gradient(to right,
            #4f46e5,
            #0891b2,
            #9333ea);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


/* =========================
   DESKTOP NAVIGATION
========================= */

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 4px;

}


/* Links sit in the middle of the navbar */

.nav-links {

    position: absolute;

    top: 50%;

    left: 50%;

    display: flex;

    align-items: center;

    gap: 4px;

    transform: translate(-50%, -50%);

}


/* Empty Cart Icon */

.empty-cart-icon {

    width: 46px;

    height: 46px;

    color: #cbd5e1;

}


.empty-cart-icon.big {

    width: 62px;

    height: 62px;

    margin: 0 auto 16px;

    display: block;

}


/* Navigation Links */

.nav-link {

    position: relative;

    color: #475569;

    padding: 10px 16px;

    border-radius: 6px;

    transition:
        color 0.3s ease;

}


/* Hover */

.nav-link:hover {

    color: var(--primary);

}


/* Underline */

.nav-link::after {

    content: "";

    position: absolute;

    bottom: 2px;

    left: 50%;

    width: 0;

    height: 2px;

    border-radius: 2px;

    background: linear-gradient(to right,
            #0891b2,
            #6366f1);

    transform: translateX(-50%);

    transition:
        width 0.3s ease;

}


/* Underline Hover */

.nav-link:hover::after,

.nav-link.active::after {

    width: 70%;

}


/* Active Link */

.nav-link.active {

    color: var(--primary);

    font-weight: bold;

}


/* =========================
   CART BUTTON
========================= */

.cart-btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    height: 42px;

    padding: 0 18px;

    border: none;

    border-radius: 21px;

    color: white;

    font-size: 14px;

    font-weight: bold;

    font-family: inherit;

    letter-spacing: 0.2px;

    background: linear-gradient(135deg,
            #4f46e5,
            #7c3aed);

    cursor: pointer;

    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

}


/* Button Hover */

.cart-btn:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.4);

}


.cart-btn:active {

    transform: translateY(0);

}


/* Cart Icon */

.cart-icon {

    width: 19px;

    height: 19px;

    flex-shrink: 0;

}


/* Divider */

.cart-divider {

    width: 1px;

    height: 16px;

    background: rgba(255, 255, 255, 0.4);

}


/* Cart Counter */

.cart-count {

    min-width: 12px;

    color: #ffffff;

    font-size: 14px;

    font-weight: bold;

    line-height: 1;

    text-align: center;

}


/* Counter Pop */

.cart-count.pop {

    animation: pop 0.3s ease;

}


@keyframes pop {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================
   MOBILE BUTTON
========================= */

#mobile-menu-button {

    display: none;

    width: 40px;

    height: 40px;

    background: transparent;

    border: none;

    cursor: pointer;

}


/* Hamburger Lines */

#mobile-menu-button span {

    display: block;

    width: 20px;

    height: 2px;

    margin: 5px auto;

    border-radius: 2px;

    background: var(--primary);

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;

}


/* =========================
   MOBILE MENU
========================= */

#mobile-menu {

    display: none;

}


/* =========================
   CART DRAWER
========================= */

#cart-overlay {

    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, 0.4);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

    opacity: 0;

    visibility: hidden;

    z-index: 1500;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


/* Overlay Open */

#cart-overlay.open {

    opacity: 1;

    visibility: visible;

}


/* Drawer */

#cart-drawer {

    position: fixed;

    top: 0;

    right: 0;

    width: 380px;

    max-width: 90vw;

    height: 100%;

    display: flex;

    flex-direction: column;

    background: var(--surface);

    border-left: 1px solid var(--border);

    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);

    transform: translateX(100%);

    z-index: 2000;

    transition:
        transform 0.35s ease;

}


/* Drawer Open */

#cart-drawer.open {

    transform: translateX(0);

}


/* Drawer Header */

.cart-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border);

}


.cart-header h3 {

    font-size: 18px;

}


#cart-close {

    padding: 0;

    background: transparent;

    border: none;

    color: var(--text-secondary);

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease;

}


#cart-close:hover {

    color: var(--primary);

}


/* Drawer Body */

.cart-body {

    flex: 1;

    overflow-y: auto;

    padding: 16px 24px;

}


/* Cart Item */

.cart-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    margin-bottom: 12px;

    border-radius: 12px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

}


.cart-item-image {

    width: 50px;

    height: 50px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    background: #ffffff;

    border: 1px solid var(--border);

}


.cart-item-info {

    flex: 1;

    min-width: 0;

}


.cart-item-info h4 {

    font-size: 14px;

    margin-bottom: 4px;

}


.cart-item-info span {

    font-size: 13px;

    font-weight: bold;

    color: var(--primary);

}


/* Quantity */

.qty {

    display: flex;

    align-items: center;

    gap: 8px;

}


.qty button {

    width: 24px;

    height: 24px;

    border-radius: 6px;

    border: 1px solid var(--border);

    background: #ffffff;

    color: var(--text-secondary);

    cursor: pointer;

    transition: all 0.2s ease;

}


.qty button:hover {

    color: var(--primary);

    border-color: var(--primary);

}


.qty span {

    min-width: 18px;

    text-align: center;

    font-size: 14px;

}


/* Empty State */

.cart-empty {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: var(--text-secondary);

}


.cart-empty span {

    font-size: 40px;

    opacity: 0.5;

}


.cart-empty.hidden,

.cart-body.hidden {

    display: none;

}


/* Drawer Footer */

.cart-footer {

    padding: 20px 24px;

    border-top: 1px solid var(--border);

    background: var(--surface-soft);

}


.cart-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;

    font-size: 15px;

    color: var(--text-secondary);

}


#cart-total {

    font-size: 22px;

    font-weight: bold;

    color: var(--text-primary);

}


/* =========================
   BUTTONS
========================= */

.btn-primary {

    display: inline-block;

    padding: 14px 28px;

    border: none;

    border-radius: 10px;

    color: white;

    font-size: 15px;

    font-family: inherit;

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

    cursor: pointer;

    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);

    transition: all 0.3s ease;

}


.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);

}


.btn-ghost {

    display: inline-block;

    padding: 14px 28px;

    border: 1px solid var(--border-strong);

    border-radius: 10px;

    color: var(--primary);

    font-size: 15px;

    font-family: inherit;

    background: var(--surface);

    cursor: pointer;

    transition: all 0.3s ease;

}


.btn-ghost:hover {

    background: #eef2ff;

    transform: translateY(-2px);

}


.full {

    width: 100%;

}


/* =========================
   SECTIONS
========================= */

main section {

    padding: 90px 0;

}


/* Section Head */

.section-head {

    max-width: 620px;

    margin: 0 auto 45px;

    text-align: center;

}


.section-head h2 {

    font-size: 36px;

    margin: 14px 0 12px;

}


.section-head p {

    color: var(--text-secondary);

    line-height: 1.7;

}


/* Section Head With Link */

.section-head-row {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 32px;

}


.section-head-row h2 {

    font-size: 30px;

    margin-top: 12px;

}


.link-more {

    color: var(--primary);

    font-size: 14px;

    font-weight: bold;

    white-space: nowrap;

    transition: gap 0.3s ease;

}


.link-more:hover {

    text-decoration: underline;

}


/* Gradient Text */

.gradient-text {

    background: linear-gradient(to right,
            #4f46e5,
            #0891b2,
            #9333ea);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


/* Badge */

.badge {

    display: inline-block;

    padding: 6px 14px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 13px;

    font-weight: bold;

}


/* Alternate Background */

.alt-bg {

    background: var(--surface);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

}


/* =========================
   HERO
========================= */

#home {

    min-height: 100vh;

    display: flex;

    align-items: center;

    background:
        radial-gradient(circle at 15% 20%,
            rgba(99, 102, 241, 0.12),
            transparent 45%),
        radial-gradient(circle at 85% 30%,
            rgba(168, 85, 247, 0.12),
            transparent 45%);

}


.hero-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

}


.hero-text {

    flex: 1;

}


.hero-text h1 {

    font-size: 54px;

    line-height: 1.15;

    margin: 20px 0;

}


.hero-text p {

    max-width: 500px;

    color: var(--text-secondary);

    line-height: 1.8;

}


.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    margin: 32px 0;

}


/* Hero Stats */

.hero-stats {

    display: flex;

    gap: 40px;

}


.stat {

    display: flex;

    flex-direction: column;

}


.stat strong {

    font-size: 26px;

    color: var(--primary);

}


.stat span {

    font-size: 13px;

    color: var(--text-secondary);

}


/* Hero Visual */

.hero-visual {

    position: relative;

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

}


.glow-circle {

    position: absolute;

    width: 320px;

    height: 320px;

    border-radius: 50%;

    background: radial-gradient(circle,
            rgba(99, 102, 241, 0.25),
            transparent 70%);

    filter: blur(10px);

}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }

}


/* =========================
   HERO BENTO
========================= */

.bento {

    position: relative;

    display: grid;

    grid-template-columns: 1.4fr 1fr;

    grid-template-rows: 132px 132px auto;

    gap: 12px;

    width: 100%;

    max-width: 430px;

}


/* Tiles */

.tile {

    position: relative;

    overflow: hidden;

    border-radius: 16px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

}


.tile:hover {

    transform: translateY(-4px);

    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.18);

}


.tile-main {

    grid-column: 1;

    grid-row: 1 / 3;

}


.tile-side {

    grid-column: 2;

}


.tile .art {

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;

}


.tile:hover .art {

    transform: scale(1.06);

}


/* Fade Between Products */

.bento.fading .art {

    opacity: 0;

}


.bento.fading .tile-text {

    opacity: 0;

}


/* Tags */

.tile-tag {

    position: absolute;

    top: 12px;

    left: 12px;

    z-index: 2;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);

    color: var(--primary);

    font-size: 11px;

    font-weight: bold;

    box-shadow: var(--shadow-sm);

}


.tile-rating {

    position: absolute;

    right: 12px;

    bottom: 12px;

    z-index: 2;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(15, 23, 42, 0.72);

    color: #fbbf24;

    font-size: 12px;

    font-weight: bold;

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

}


/* Info Bar */

.tile-info {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    padding: 16px 18px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);

}


.tile-text {

    min-width: 0;

    transition: opacity 0.4s ease;

}


.tile-text h4 {

    font-size: 17px;

}


.tile-text p {

    margin-top: 3px;

    font-size: 13px;

    color: var(--text-secondary);

}


/* Dots */

.showcase-dots {

    display: flex;

    gap: 6px;

    flex-shrink: 0;

}


.showcase-dots button {

    width: 7px;

    height: 7px;

    padding: 0;

    border: none;

    border-radius: 999px;

    background: #cbd5e1;

    cursor: pointer;

    transition: all 0.3s ease;

}


.showcase-dots button.active {

    width: 20px;

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

}


/* =========================
   GRIDS
========================= */

.grid-3 {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

}


.grid-4 {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;

}


/* =========================
   CATEGORIES
========================= */

.category-grid {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 16px;

}


.category-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    padding: 22px 10px;

    border-radius: 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    text-align: center;

    transition: all 0.3s ease;

}


.category-card:hover {

    transform: translateY(-6px);

    border-color: var(--border-strong);

    box-shadow: var(--shadow-md);

}


.category-card .cat-icon {

    width: 100%;

    height: 78px;

    overflow: hidden;

    border-radius: 10px;

}


.category-card:hover .art {

    transform: scale(1.08);

}


.category-card h3 {

    font-size: 15px;

}


.category-card span {

    font-size: 12px;

    color: var(--text-secondary);

}


/* =========================
   CARD
========================= */

.card {

    padding: 28px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    transition: all 0.3s ease;

}


.card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-md);

}


.card-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    margin-bottom: 16px;

    border-radius: 14px;

    background: #eef2ff;

    font-size: 24px;

}


.card h3 {

    font-size: 18px;

    margin-bottom: 10px;

}


.card p {

    color: var(--text-secondary);

    line-height: 1.7;

    font-size: 14px;

}


/* =========================
   PRODUCT CARD
========================= */

.product {

    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    transition: all 0.3s ease;

}


.product:hover {

    transform: translateY(-6px);

    border-color: var(--border-strong);

    box-shadow: var(--shadow-md);

}


.product-image {

    position: relative;

    height: 200px;

    overflow: hidden;

    background: var(--surface-soft);

}


/* =========================
   PRODUCT PHOTOS
========================= */

.art {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;

}


.product:hover .art {

    transform: scale(1.06);

}


/* Tags */

.tag {

    position: absolute;

    top: 12px;

    left: 12px;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: bold;

    color: white;

}


.tag-sale {

    background: #ef4444;

}


.tag-hot {

    background: #f97316;

}


.tag-new {

    background: #0891b2;

}


/* Info */

.product-info {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 18px;

}


.product-info h3 {

    font-size: 16px;

}


.product-info .desc {

    margin: 6px 0 10px;

    font-size: 13px;

    color: var(--text-secondary);

}


/* Rating */

.rating {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 14px;

    font-size: 13px;

    color: var(--text-secondary);

}


.rating strong {

    color: #f59e0b;

}


/* Bottom */

.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

}


/* Price */

.price {

    font-size: 19px;

    font-weight: bold;

    color: var(--text-primary);

}


.old-price {

    margin-left: 6px;

    font-size: 13px;

    font-weight: normal;

    color: #94a3b8;

    text-decoration: line-through;

}


/* Add To Cart */

.btn-add {

    padding: 9px 14px;

    border: 1px solid var(--border-strong);

    border-radius: 9px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 13px;

    font-family: inherit;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

}


.btn-add:hover {

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

    color: white;

    border-color: transparent;

}


/* =========================
   DEALS BANNER
========================= */

.deal-banner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 24px;

    padding: 40px;

    border-radius: 20px;

    background: linear-gradient(120deg,
            #4f46e5,
            #7c3aed 55%,
            #0891b2);

    color: white;

}


.deal-banner h2 {

    font-size: 30px;

    margin-bottom: 10px;

}


.deal-banner p {

    opacity: 0.9;

    line-height: 1.7;

}


.deal-banner .btn-ghost {

    background: white;

    border-color: white;

    color: var(--primary);

}


/* Countdown */

.countdown {

    display: flex;

    gap: 12px;

}


.count-box {

    min-width: 66px;

    padding: 12px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.18);

    text-align: center;

}


.count-box strong {

    display: block;

    font-size: 24px;

}


.count-box span {

    font-size: 11px;

    opacity: 0.85;

}


/* =========================
   VIEW ALL
========================= */

.view-all {

    margin-top: 45px;

    text-align: center;

}


.view-all .btn-primary {

    padding: 16px 40px;

    font-size: 16px;

}


/* =========================
   CONTACT FORM
========================= */

.contact-form {

    max-width: 640px;

    margin: 0 auto;

    padding: 32px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.form-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

    margin-bottom: 16px;

}


.contact-form input,

.contact-form textarea {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    resize: none;

    transition: all 0.3s ease;

}


.contact-form input:focus,

.contact-form textarea:focus {

    outline: none;

    background: #ffffff;

    border-color: var(--primary);

}


.contact-form textarea {

    margin-bottom: 20px;

}


/* =========================
   FOOTER
========================= */

footer {

    padding: 40px 0;

    border-top: 1px solid var(--border);

    background: var(--surface);

}


.footer-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 20px;

    text-align: center;

}


.footer-links {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 24px;

}


.footer-links a {

    color: var(--text-secondary);

    font-size: 14px;

    transition: color 0.3s ease;

}


.footer-links a:hover {

    color: var(--primary);

}


.copy {

    font-size: 13px;

    color: #94a3b8;

}


/* =========================
   TOAST
========================= */

#toast {

    position: fixed;

    bottom: 30px;

    left: 50%;

    padding: 14px 24px;

    border-radius: 12px;

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

    color: white;

    font-size: 14px;

    font-weight: bold;

    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);

    opacity: 0;

    visibility: hidden;

    transform: translate(-50%, 20px);

    z-index: 2500;

    transition: all 0.3s ease;

}


#toast.show {

    opacity: 1;

    visibility: visible;

    transform: translate(-50%, 0);

}


/* =========================
   REVEAL ON SCROLL
========================= */

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* =========================
   SHOP PAGE
========================= */

.page-header {

    padding: 86px 0 20px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

}


.breadcrumb {

    margin-bottom: 12px;

    font-size: 13px;

    color: var(--text-secondary);

}


.breadcrumb a:hover {

    color: var(--primary);

}


.page-header h1 {

    font-size: 36px;

    margin-bottom: 8px;

}


.page-header p {

    color: var(--text-secondary);

}


/* Shop Layout */

.shop-layout {

    display: grid;

    grid-template-columns: 260px 1fr;

    gap: 30px;

    padding: 24px 0 80px;

}


/* Sidebar */

.shop-sidebar {

    position: sticky;

    top: 86px;

    align-self: start;

    padding: 22px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.filter-group {

    margin-bottom: 26px;

}


.filter-group:last-child {

    margin-bottom: 0;

}


.filter-group h4 {

    margin-bottom: 14px;

    font-size: 15px;

}


/* Category List */

.filter-list {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.filter-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding: 9px 12px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;

}


.filter-item:hover {

    background: var(--surface-soft);

    color: var(--text-primary);

}


.filter-item.active {

    background: #eef2ff;

    color: var(--primary);

    font-weight: bold;

}


.filter-item .count {

    font-size: 12px;

    color: #94a3b8;

}


/* Price Filter */

.price-value {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 13px;

    color: var(--text-secondary);

}


input[type="range"] {

    width: 100%;

    accent-color: var(--primary);

    cursor: pointer;

}


/* Checkbox */

.check {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 6px 0;

    font-size: 14px;

    color: var(--text-secondary);

    cursor: pointer;

}


.check input {

    width: 16px;

    height: 16px;

    accent-color: var(--primary);

    cursor: pointer;

}


/* Reset */

.btn-reset {

    width: 100%;

    padding: 11px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.2s ease;

}


.btn-reset:hover {

    background: #fee2e2;

    border-color: #fecaca;

    color: #dc2626;

}


/* Toolbar */

.shop-toolbar {

    display: flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-bottom: 22px;

}


/* Search */

.search-box {

    position: relative;

    flex: 1;

    min-width: 220px;

}


.search-box input {

    width: 100%;

    height: 46px;

    padding: 0 16px 0 42px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    transition: all 0.3s ease;

}


.search-box input:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);

}


.search-box .search-icon {

    position: absolute;

    top: 50%;

    left: 14px;

    transform: translateY(-50%);

    font-size: 15px;

    opacity: 0.6;

}


/* Sort */

.sort-box select {

    min-width: 190px;

    height: 46px;

    padding: 0 40px 0 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background-color: var(--surface);

    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 16px center;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    -moz-appearance: none;

    transition: all 0.25s ease;

}


.sort-box select:hover {

    border-color: var(--border-strong);

}


.sort-box select:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);

}


.sort-box option {

    background: var(--surface);

    color: var(--text-primary);

}


/* Filter Toggle (mobile) */

#filter-toggle {

    display: none;

    height: 46px;

    padding: 0 18px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

}


/* Results Count */

.results-count {

    margin-bottom: 16px;

    font-size: 14px;

    color: var(--text-secondary);

}


.results-count strong {

    color: var(--text-primary);

}


/* Shop Grid */

.shop-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

}


/* No Results */

.no-results {

    padding: 60px 20px;

    text-align: center;

    color: var(--text-secondary);

}


.no-results span {

    display: block;

    margin-bottom: 12px;

    font-size: 44px;

    opacity: 0.5;

}


/* =========================
   PAGINATION
========================= */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 40px;

    flex-wrap: wrap;

}


.page-btn {

    min-width: 40px;

    height: 40px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.2s ease;

}


.page-btn:hover:not(:disabled) {

    border-color: var(--primary);

    color: var(--primary);

}


.page-btn.active {

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

    border-color: transparent;

    color: white;

    font-weight: bold;

}


.page-btn:disabled {

    opacity: 0.45;

    cursor: not-allowed;

}


/* =========================
   NAV AUTH
========================= */

.nav-auth {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: 16px;

}


.nav-auth .cart-btn {

    margin-left: 0;

}


/* Login Button */

.login-btn {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 10px 20px;

    border-radius: 10px;

    color: white;

    font-size: 14px;

    font-weight: bold;

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed);

    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);

    transition: all 0.3s ease;

}


.login-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);

}


/* Avatar */

.account-wrap {

    position: relative;

}


.avatar-btn {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--border-strong);

    border-radius: 50%;

    background: #eef2ff;

    color: var(--primary);

    font-family: inherit;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

}


.avatar-btn:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

}


/* Dropdown */

.account-menu {

    position: absolute;

    top: 52px;

    right: 0;

    width: 210px;

    padding: 8px;

    border-radius: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition: all 0.25s ease;

}


.account-menu.open {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.menu-head {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 10px 12px;

    margin-bottom: 6px;

    border-bottom: 1px solid var(--border);

}


.menu-head strong {

    font-size: 14px;

}


.menu-head small {

    font-size: 12px;

    color: var(--text-secondary);

    overflow: hidden;

    text-overflow: ellipsis;

}


.account-menu a,

.account-menu button {

    display: block;

    width: 100%;

    padding: 10px 12px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;

}


.account-menu a:hover {

    background: var(--surface-soft);

    color: var(--primary);

}


.account-menu button:hover {

    background: #fee2e2;

    color: #dc2626;

}


/* =========================
   LOGIN PAGE
========================= */

.auth-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 100px 0 60px;

}


.auth-wrap {

    width: 100%;

    max-width: 430px;

    margin: 0 auto;

}


/* Card */

.login-card {

    padding: 36px 32px;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-md);

    text-align: center;

}


.login-card h2 {

    font-size: 24px;

}


.form-sub {

    margin: 8px 0 26px;

    font-size: 14px;

    color: var(--text-secondary);

}


/* =========================
   AUTH TABS
========================= */

.auth-tabs {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 6px;

    padding: 6px;

    margin-bottom: 26px;

    border-radius: 12px;

    background: var(--surface-soft);

}


.auth-tab {

    padding: 11px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.25s ease;

}


#login-form,

#signup-form {

    animation: tab-in 0.4s ease;

}


@keyframes tab-in {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

}


.auth-tab.active {

    background: var(--surface);

    color: var(--primary);

    font-weight: bold;

    box-shadow: var(--shadow-sm);

}


/* =========================
   PASSWORD FIELD
========================= */

.password-wrap {

    position: relative;

}


.password-wrap input {

    padding-right: 62px;

}


/* Hide the browser's own reveal icon (Edge / IE) */

.password-wrap input::-ms-reveal,

.password-wrap input::-ms-clear {

    display: none;

}


.eye {

    position: absolute;

    top: 50%;

    right: 10px;

    transform: translateY(-50%);

    padding: 6px 10px;

    border: none;

    border-radius: 7px;

    background: transparent;

    color: var(--primary);

    font-family: inherit;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

}


.eye:hover {

    background: #eef2ff;

}


/* Strength Meter */

.strength {

    display: flex;

    gap: 5px;

    margin-top: 8px;

}


.strength span {

    height: 4px;

    flex: 1;

    border-radius: 999px;

    background: var(--border);

    transition: background 0.3s ease;

}


.strength.level-1 span:nth-child(1) {

    background: #f97316;

}


.strength.level-2 span:nth-child(-n+2) {

    background: #eab308;

}


.strength.level-3 span {

    background: #10b981;

}


.switch-link {

    color: var(--primary);

    font-weight: bold;

}


.switch-link:hover {

    text-decoration: underline;

}


.login-card .field {

    text-align: left;

}


.login-card .btn-primary {

    margin-top: 8px;

}


.login-note {

    margin-top: 18px;

    font-size: 12px;

    line-height: 1.7;

    color: var(--text-secondary);

}


/* =========================
   ACCOUNT PAGE
========================= */

.account-page {

    padding: 26px 0 80px;

}


/* The landing page section spacing must not
   leak into the account views */

.account-page section {

    padding: 0;

}


.account-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    padding: 24px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.account-user {

    display: flex;

    align-items: center;

    gap: 16px;

}


.avatar {

    width: 56px;

    height: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(135deg,
            #6366f1,
            #a855f7);

    color: white;

    font-size: 22px;

    font-weight: bold;

}


.account-user h2 {

    font-size: 20px;

}


.account-user p {

    font-size: 13px;

    color: var(--text-secondary);

}


.sign-out {

    width: auto;

    padding: 11px 22px;

}


/* Stats */

.account-stats {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    margin: 20px 0 40px;

}


.stat-box {

    padding: 20px;

    border-radius: 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    text-align: center;

}


.stat-box strong {

    display: block;

    margin-bottom: 4px;

    font-size: 26px;

    color: var(--primary);

}


.stat-box span {

    font-size: 13px;

    color: var(--text-secondary);

}


.block-title {

    margin-bottom: 18px;

    font-size: 19px;

}


/* =========================
   ORDER CARD
========================= */

.orders-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}


.order-card {

    padding: 20px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    transition: all 0.3s ease;

}


.order-card:hover {

    border-color: var(--border-strong);

    box-shadow: var(--shadow-md);

}


.order-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    padding-bottom: 16px;

    border-bottom: 1px solid var(--border);

}


.order-num {

    display: block;

    font-size: 16px;

    font-weight: bold;

}


.order-date {

    font-size: 12px;

    color: var(--text-secondary);

}


/* Status Badge */

.status-badge {

    padding: 7px 14px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

}


.status-badge.done {

    background: #ecfdf5;

    color: #047857;

}


/* Thumbs */

.order-thumbs {

    display: flex;

    gap: 8px;

    margin: 16px 0;

}


.order-thumb {

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 10px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    font-size: 20px;

}


.order-thumb.more {

    background: var(--surface-soft);

    font-size: 13px;

    font-weight: bold;

    color: var(--text-secondary);

}


.order-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 14px;

    color: var(--text-secondary);

}


/* =========================
   TRACK ORDER
========================= */

.back-link {

    margin-bottom: 20px;

    padding: 10px 18px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.2s ease;

}


.back-link:hover {

    color: var(--primary);

    border-color: var(--border-strong);

}


.track-card {

    padding: 28px;

    margin-bottom: 22px;

    border-radius: 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.track-head {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 14px;

}


.track-label {

    font-size: 12px;

    color: var(--text-secondary);

}


.track-head h2 {

    font-size: 26px;

    letter-spacing: 0.5px;

}


.track-head p {

    margin-top: 4px;

    font-size: 13px;

    color: var(--text-secondary);

}


/* Progress Bar */

.track-progress {

    margin: 26px 0 30px;

}


.track-bar {

    height: 8px;

    border-radius: 999px;

    background: var(--surface-soft);

    overflow: hidden;

}


.track-bar-fill {

    height: 100%;

    width: 0;

    border-radius: 999px;

    background: linear-gradient(to right,
            #4f46e5,
            #7c3aed,
            #0891b2);

    transition: width 0.8s ease;

}


/* Timeline */

.timeline {

    position: relative;

    padding-left: 8px;

}


.timeline-step {

    position: relative;

    display: flex;

    gap: 16px;

    padding-bottom: 26px;

}


.timeline-step:last-child {

    padding-bottom: 0;

}


/* Connector */

.timeline-step::before {

    content: "";

    position: absolute;

    top: 40px;

    left: 19px;

    width: 2px;

    height: calc(100% - 40px);

    background: var(--border);

}


.timeline-step:last-child::before {

    display: none;

}


.timeline-step.done::before,

.timeline-step.current::before {

    background: var(--border-strong);

}


/* Dot */

.timeline-dot {

    position: relative;

    z-index: 1;

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--surface-soft);

    border: 2px solid var(--border);

    font-size: 17px;

    filter: grayscale(1);

    opacity: 0.6;

}


.timeline-step.done .timeline-dot {

    background: #ecfdf5;

    border-color: #a7f3d0;

    filter: none;

    opacity: 1;

}


.timeline-step.current .timeline-dot {

    background: #eef2ff;

    border-color: var(--primary);

    filter: none;

    opacity: 1;

    animation: pulse 1.8s ease-in-out infinite;

}


@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

}


/* Body */

.timeline-body h4 {

    font-size: 15px;

}


.timeline-body p {

    margin: 3px 0 5px;

    font-size: 13px;

    color: var(--text-secondary);

}


.timeline-time {

    font-size: 12px;

    color: #94a3b8;

}


.timeline-step.next h4,

.timeline-step.next p {

    color: #94a3b8;

}


.timeline-step.current h4 {

    color: var(--primary);

}


/* ETA */

.eta-box {

    margin-top: 26px;

    padding: 16px;

    border-radius: 12px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 14px;

    text-align: center;

}


/* =========================
   STEPS
========================= */

.steps {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;

}


.step {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 16px;

    border-radius: 999px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 13px;

}


.step-num {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background: #cbd5e1;

    color: white;

    font-size: 11px;

    font-weight: bold;

}


.step.active {

    background: #eef2ff;

    border-color: var(--border-strong);

    color: var(--primary);

    font-weight: bold;

}


.step.active .step-num {

    background: var(--primary);

}


.step.done {

    color: #059669;

}


.step.done .step-num {

    background: #10b981;

}


/* =========================
   CHECKOUT LAYOUT
========================= */

.checkout-layout {

    display: grid;

    grid-template-columns: 1fr 370px;

    align-items: start;

    gap: 26px;

    padding: 24px 0 80px;

}


/* =========================
   FORM CARD
========================= */

.checkout-form {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


.form-card {

    padding: 26px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.form-card h3 {

    margin-bottom: 20px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

    font-size: 17px;

}


/* Field */

.field {

    margin-bottom: 16px;

}


.field:last-child {

    margin-bottom: 0;

}


.field label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: bold;

}


.field label span {

    color: var(--text-secondary);

    font-weight: normal;

}


.field input,

.field textarea {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    resize: vertical;

    transition: all 0.25s ease;

}


.field input:focus,

.field textarea:focus {

    outline: none;

    background: #ffffff;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);

}


/* Field Row */

.field-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

}


/* Error */

.error {

    display: block;

    margin-top: 5px;

    font-size: 12px;

    color: #dc2626;

}


.field.invalid input,

.field.invalid textarea {

    border-color: #f87171;

    background: #fef2f2;

}


/* =========================
   PAYMENT OPTIONS
========================= */

.pay-options {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.pay-option {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface-soft);

    cursor: pointer;

    transition: all 0.25s ease;

}


.pay-option:hover {

    border-color: var(--border-strong);

}


.pay-option input {

    width: 17px;

    height: 17px;

    accent-color: var(--primary);

    cursor: pointer;

}


.pay-body {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.pay-body strong {

    font-size: 14px;

}


.pay-body small {

    font-size: 12px;

    color: var(--text-secondary);

}


/* Selected (fallback) */

.pay-option input:checked ~ .pay-body strong {

    color: var(--primary);

}


/* Selected */

.pay-option:has(input:checked) {

    background: #eef2ff;

    border-color: var(--primary);

}


.secure-note {

    margin-top: 16px;

    font-size: 12px;

    color: var(--text-secondary);

}


/* =========================
   ORDER SUMMARY
========================= */

.summary-card {

    position: sticky;

    top: 86px;

    padding: 24px;

    border-radius: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

}


.summary-card h3 {

    margin-bottom: 18px;

    font-size: 17px;

}


.summary-items {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 18px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);

}


.summary-item {

    display: flex;

    align-items: center;

    gap: 12px;

}


.summary-emoji {

    position: relative;

    width: 50px;

    height: 50px;

    flex-shrink: 0;

    border-radius: 10px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

}


.summary-emoji .art {

    border-radius: 9px;

}


.summary-qty {

    position: absolute;

    top: -7px;

    right: -7px;

    min-width: 19px;

    height: 19px;

    border-radius: 999px;

    background: var(--primary);

    color: white;

    font-size: 11px;

    font-weight: bold;

    line-height: 19px;

    text-align: center;

}


.summary-name {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.summary-name strong {

    font-size: 14px;

}


.summary-name small {

    font-size: 12px;

    color: var(--text-secondary);

}


.summary-price {

    font-size: 14px;

    font-weight: bold;

}


/* Lines */

.summary-line {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 14px;

    color: var(--text-secondary);

}


.summary-line.total {

    margin: 16px 0;

    padding-top: 14px;

    border-top: 1px solid var(--border);

    font-size: 17px;

    font-weight: bold;

    color: var(--text-primary);

}


.ship-note {

    margin-bottom: 16px;

    padding: 10px 12px;

    border-radius: 9px;

    background: #ecfdf5;

    color: #047857;

    font-size: 12px;

    text-align: center;

}


/* Trust */

.trust-row {

    display: flex;

    justify-content: space-between;

    gap: 8px;

    margin-top: 16px;

    font-size: 12px;

    color: var(--text-secondary);

}


/* Submit Buttons */

.submit-mobile {

    display: none;

}


/* =========================
   EMPTY CHECKOUT
========================= */

.empty-checkout {

    padding: 90px 20px;

    text-align: center;

}


/* The icon only - not the text inside the button */

.empty-checkout > span {

    display: block;

    margin-bottom: 16px;

    font-size: 56px;

    opacity: 0.5;

}


.empty-checkout h2 {

    margin-bottom: 10px;

}


.empty-checkout p {

    margin-bottom: 26px;

    color: var(--text-secondary);

}


/* =========================
   ORDER SUCCESS
========================= */

.order-success {

    padding: 50px 0 80px;

}


.success-card {

    max-width: 780px;

    margin: 0 auto;

    padding: 40px;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-md);

    text-align: center;

}


.success-icon {

    width: 78px;

    height: 78px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ecfdf5;

    font-size: 38px;

    animation: pop 0.5s ease;

}


.success-card h2 {

    font-size: 28px;

    margin-bottom: 10px;

}


.success-card > p {

    color: var(--text-secondary);

}


.order-id {

    display: inline-block;

    margin: 20px 0 30px;

    padding: 11px 22px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 14px;

}


.order-id strong {

    letter-spacing: 0.5px;

}


/* Detail Blocks */

.success-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;

}


.detail-block {

    margin-bottom: 20px;

    padding: 20px;

    border-radius: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    text-align: left;

}


.detail-block h4 {

    margin-bottom: 14px;

    font-size: 15px;

}


.detail-block ul {

    list-style: none;

}


.detail-block li {

    display: flex;

    gap: 10px;

    padding: 7px 0;

    border-bottom: 1px dashed var(--border);

    font-size: 13px;

}


.detail-block li:last-child {

    border-bottom: none;

}


.detail-block li span {

    min-width: 80px;

    color: var(--text-secondary);

}


.detail-block .summary-items {

    margin-bottom: 0;

}


.detail-block .summary-line.total {

    margin-bottom: 0;

}


/* Actions */

.success-actions {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 10px;

}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .category-grid {

        grid-template-columns: repeat(4, 1fr);

    }


    .grid-4 {

        grid-template-columns: repeat(2, 1fr);

    }


    .shop-layout {

        grid-template-columns: 1fr;

    }


    .shop-sidebar {

        display: none;

        position: static;

    }


    .shop-sidebar.open {

        display: block;

    }


    #filter-toggle {

        display: block;

    }


    .shop-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


@media (max-width: 991px) {

    .grid-3 {

        grid-template-columns: repeat(2, 1fr);

    }


    /* Checkout One Column */

    .checkout-layout {

        grid-template-columns: 1fr;

    }


    .summary-card {

        position: static;

        order: -1;

    }


    .submit-desktop {

        display: none;

    }


    .submit-mobile {

        display: block;

    }


    .hero-content {

        flex-direction: column;

        text-align: center;

    }


    .hero-text p {

        margin: 0 auto;

    }


    .hero-actions,

    .hero-stats {

        justify-content: center;

    }


    .bento {

        margin: 0 auto;

    }

}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 767px) {


    /* Hide Desktop Nav */

    .desktop-nav,

    .nav-links {

        display: none;

    }


    /* Show Hamburger */

    #mobile-menu-button {

        display: block;

    }


    /* Mobile Menu */

    #mobile-menu {

        display: flex;

        flex-direction: column;

        gap: 5px;

        max-height: 0;

        overflow: hidden;

        transition:
            max-height 0.4s ease;

    }


    /* Open Menu */

    #mobile-menu.open {

        max-height: 400px;

        padding: 10px 0 20px;

    }


    /* Mobile Links */

    #mobile-menu a {

        padding: 10px 16px;

        color: #475569;

        border-radius: 8px;

        transition: all 0.2s ease;

    }


    /* Mobile Link Hover */

    #mobile-menu a:hover {

        color: var(--primary);

        background: var(--surface-soft);

    }


    /* Mobile Button */

    #mobile-menu .cart-btn {

        margin: 8px 0 0;

        width: 100%;

    }


    /* Mobile Auth */

    #mobile-auth {

        display: flex;

        flex-direction: column;

        gap: 5px;

    }


    .mobile-login {

        margin-top: 8px;

        text-align: center;

        color: white !important;

        font-weight: bold;

        background: linear-gradient(to right,
                #4f46e5,
                #7c3aed);

    }


    /* Account Page */

    .account-stats {

        grid-template-columns: 1fr;

    }


    .order-top,

    .order-bottom {

        flex-direction: column;

        align-items: flex-start;

    }


    /* Navbar Height */

    #navbar {

        height: auto;

    }


    /* One Column */

    .grid-3,

    .grid-4,

    .shop-grid {

        grid-template-columns: 1fr;

    }


    .category-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .form-row,

    .field-row,

    .success-grid {

        grid-template-columns: 1fr;

    }


    /* Success Card */

    .success-card {

        padding: 26px 20px;

    }


    .success-card h2 {

        font-size: 23px;

    }


    /* Hide Floating Chips */

    .chip {

        display: none;

    }


    /* Typography */

    .hero-text h1 {

        font-size: 34px;

    }


    .section-head h2 {

        font-size: 27px;

    }


    .page-header h1 {

        font-size: 28px;

    }


    .hero-stats {

        gap: 24px;

    }


    /* Section Head Row */

    .section-head-row {

        flex-direction: column;

        align-items: flex-start;

    }


    /* Deal Banner */

    .deal-banner {

        padding: 28px;

    }


    .deal-banner h2 {

        font-size: 24px;

    }

}


/* =========================
   HAMBURGER → X
========================= */

#mobile-menu-button.active #line1 {

    transform:
        translateY(7px) rotate(45deg);

}


#mobile-menu-button.active #line2 {

    opacity: 0;

}


#mobile-menu-button.active #line3 {

    transform:
        translateY(-7px) rotate(-45deg);

}


/* =========================
   RTL  (Arabic)
========================= */

[dir="rtl"] {

    text-align: right;

}


/* Cart drawer slides in from the left */

[dir="rtl"] #cart-drawer {

    right: auto;

    left: 0;

    border-left: none;

    border-right: 1px solid var(--border);

    transform: translateX(-100%);

}


[dir="rtl"] #cart-drawer.open {

    transform: translateX(0);

}


/* Navbar */

[dir="rtl"] .logo-icon {

    margin-right: 0;

    margin-left: 10px;

}


[dir="rtl"] .cart-btn,

[dir="rtl"] .nav-auth {

    margin-left: 0;

    margin-right: 16px;

}


[dir="rtl"] .account-menu {

    right: auto;

    left: 0;

}


/* Tags sit on the other corner */

[dir="rtl"] .tag,

[dir="rtl"] .tile-tag,

[dir="rtl"] .showcase-label {

    left: auto;

    right: 12px;

}


[dir="rtl"] .tile-rating {

    right: auto;

    left: 12px;

}


/* Search icon */

[dir="rtl"] .search-box input {

    padding: 0 42px 0 16px;

}


[dir="rtl"] .search-box .search-icon {

    left: auto;

    right: 14px;

}


/* Selects */

[dir="rtl"] .sort-box select {

    padding: 0 16px 0 40px;

    background-position: left 16px center;

}


/* Password toggle */

[dir="rtl"] .password-wrap input {

    padding-right: 15px;

    padding-left: 62px;

}


[dir="rtl"] .eye {

    right: auto;

    left: 10px;

}


/* Lists and timeline */

[dir="rtl"] .filter-item,

[dir="rtl"] .detail-block,

[dir="rtl"] .login-card .field,

[dir="rtl"] .admin-auth-card .field {

    text-align: right;

}


[dir="rtl"] .timeline {

    padding-left: 0;

    padding-right: 8px;

}


[dir="rtl"] .timeline-step::before {

    left: auto;

    right: 19px;

}


[dir="rtl"] .summary-qty {

    right: auto;

    left: -7px;

}


[dir="rtl"] .old-price {

    margin-left: 0;

    margin-right: 6px;

}


[dir="rtl"] .message-card.unread {

    border-left: 1px solid var(--border);

    border-right: 3px solid var(--primary);

}


/* Arabic reads better with a slightly larger line height */

[dir="rtl"] body {

    line-height: 1.6;

}


/* =========================
   LANGUAGE SWITCH
========================= */

.lang-btn {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    height: 42px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 21px;

    background: var(--surface);

    color: var(--text-secondary);

    font-family: inherit;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;

}


.lang-btn svg {

    width: 17px;

    height: 17px;

    flex-shrink: 0;

}


.lang-btn:hover {

    border-color: var(--primary);

    background: #eef2ff;

    color: var(--primary);

    transform: translateY(-2px);

}


/* Mobile language link */

#mobile-lang {

    font-weight: bold;

    color: var(--primary) !important;

}


/* =========================
   REMOVE FROM CART
========================= */

.cart-remove {

    width: 28px;

    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid transparent;

    border-radius: 50%;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    transition: all 0.2s ease;

}


.cart-remove svg {

    width: 15px;

    height: 15px;

    display: block;

}


.cart-remove:hover {

    border-color: #fecaca;

    background: #fef2f2;

    color: #dc2626;

    transform: rotate(90deg);

}


/* A little breathing room from the quantity buttons */

.cart-item .cart-remove {

    margin-inline-start: 2px;

}


/* =========================
   FOOTER
========================= */

.footer-top {

    display: grid;

    grid-template-columns: 1.6fr 1fr 1.2fr;

    gap: 40px;

    padding-bottom: 30px;

    border-bottom: 1px solid var(--border);

}


.footer-brand .logo {

    margin-bottom: 14px;

}


.footer-brand p {

    max-width: 330px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.8;

}


/* Socials */

.socials {

    display: flex;

    gap: 10px;

    margin-top: 18px;

}


.socials a {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--text-secondary);

    transition: all 0.25s ease;

}


.socials a:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

    transform: translateY(-2px);

}


.socials svg {

    width: 17px;

    height: 17px;

}


/* Columns */

.footer-col h4 {

    margin-bottom: 16px;

    font-size: 15px;

}


.footer-col .footer-links {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 11px;

}


/* Contact list */

.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 13px;

    list-style: none;

}


.footer-contact li a,

.footer-contact li {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-secondary);

    font-size: 14px;

}


.footer-contact li a:hover {

    color: var(--primary);

}


.footer-contact svg {

    width: 17px;

    height: 17px;

    flex-shrink: 0;

    color: var(--primary);

}


/* Bottom bar */

.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    padding-top: 22px;

}


.footer-admin {

    font-size: 13px;

    color: var(--text-secondary);

}


.footer-admin:hover {

    color: var(--primary);

}


@media (max-width: 900px) {

    .footer-top {

        grid-template-columns: 1fr 1fr;

        gap: 30px;

    }

    .footer-brand {

        grid-column: 1 / -1;

    }

}


@media (max-width: 560px) {

    .footer-top {

        grid-template-columns: 1fr;

    }

    .footer-bottom {

        flex-direction: column;

        text-align: center;

    }

}


/* =========================
   SOLD OUT
========================= */

.tag-out {

    background: #64748b;

}


.product.sold-out .art {

    filter: grayscale(0.85);

    opacity: 0.6;

}


.product.sold-out:hover .art {

    transform: none;

}


.btn-add.out {

    background: var(--surface-soft);

    border-color: var(--border);

    color: #94a3b8;

    cursor: not-allowed;

}


.btn-add.out:hover {

    background: var(--surface-soft);

    border-color: var(--border);

    color: #94a3b8;

}


/* Low stock hint */

.low-stock {

    margin-inline-start: auto;

    padding: 3px 9px;

    border-radius: 999px;

    background: #fff7ed;

    color: #c2410c;

    font-size: 11px;

    font-weight: bold;

}
