:root {
    --store-red: #ef394e;
    --store-red-dark: #d8273d;
    --store-navy: #17213c;
    --store-ink: #23254a;
    --store-muted: #707487;
    --store-bg: #f5f5f7;
    --store-card: #ffffff;
    --store-line: #e7e8ed;
    --store-green: #00a049;
    --store-blue: #1677ff;
    --store-radius: 18px;
    --store-shadow: 0 10px 32px rgba(29, 35, 65, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--store-bg);
    color: var(--store-ink);
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1340px; }
.form-control, .form-select {
    min-height: 48px;
    border: 1px solid #dfe1e8;
    border-radius: 12px;
    color: var(--store-ink);
    background-color: #fff;
    font-size: 14px;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(239, 57, 78, .55);
    box-shadow: 0 0 0 .22rem rgba(239, 57, 78, .1);
}

/* Header */
.store-announcement {
    background: var(--store-navy);
    color: #fff;
    font-size: 12px;
}
.store-announcement .container {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.store-announcement span i { color: #ffd166; margin-left: 5px; }
.store-announcement div { display: flex; gap: 24px; }
.store-announcement a { color: #dce0ec; transition: color .2s; }
.store-announcement a:hover { color: #fff; }
.store-announcement a i { margin-left: 5px; }
.store-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--store-line);
    box-shadow: 0 4px 18px rgba(26, 31, 57, .045);
}
.store-top {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.store-brand {
    min-width: 245px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--store-navy);
}
.brand-mark {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--store-red), #ff6d7f);
    box-shadow: 0 9px 22px rgba(239, 57, 78, .22);
    font-size: 23px;
}
.store-brand b, .store-brand small { display: block; }
.store-brand b { font-size: 17px; font-weight: 800; }
.store-brand small { margin-top: 1px; color: var(--store-muted); font-size: 11px; }
.store-search {
    height: 50px;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    border-radius: 13px;
    background: #f5f5f7;
}
.store-search .search-prefix { padding-right: 16px; color: #8b8e9c; font-size: 19px; }
.store-search input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--store-ink);
    background: transparent;
}
.store-search a {
    height: 100%;
    min-width: 76px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--store-red);
    font-size: 13px;
    font-weight: 700;
}
.store-search a:hover { background: var(--store-red-dark); }
.store-actions { display: flex; gap: 9px; }
.action-link, .cart-link {
    min-width: 130px;
    min-height: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    border: 1px solid var(--store-line);
    border-radius: 13px;
    color: var(--store-navy);
    transition: .2s;
}
.action-link:hover, .cart-link:hover { border-color: #cbd0dc; background: #fafafa; }
.action-link > i, .cart-link > i { font-size: 21px; }
.action-link span, .cart-link span { display: block; line-height: 1.4; }
.action-link small, .cart-link small { display: block; color: var(--store-muted); font-size: 10px; }
.action-link b, .cart-link b { display: block; font-size: 11px; }
.cart-link em, .mobile-cart em {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -8px;
    left: -7px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: var(--store-red);
    color: #fff;
    font-size: 10px;
    font-style: normal;
}
.store-nav {
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
}
.store-nav::-webkit-scrollbar { display: none; }
.store-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #575b6e;
    white-space: nowrap;
    font-size: 12px;
    transition: color .2s;
}
.store-nav a:hover { color: var(--store-red); }
.store-nav .all-categories { color: var(--store-navy); font-weight: 700; }
.store-nav .all-categories i { font-size: 18px; }
.store-nav .nav-spacer { flex: 1; }
.store-nav .special-link { color: var(--store-red); font-weight: 700; }

/* Hero */
.home-hero {
    margin: 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
}
.hero-carousel, .hero-slide { min-height: 390px; }
.hero-carousel {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--store-shadow);
}
.hero-slide {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-slide-primary { background: linear-gradient(125deg, #17213c, #28376c 58%, #415695); }
.hero-slide-secondary { background: linear-gradient(125deg, #7b1430, var(--store-red) 55%, #ff7c8b); }
.hero-copy {
    z-index: 2;
    align-self: center;
    padding: 48px 55px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 30px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
}
.hero-copy h1, .hero-copy h2 {
    margin: 16px 0 10px;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.55;
}
.hero-copy h1 em, .hero-copy h2 em { color: #ffd166; font-style: normal; }
.hero-copy p { max-width: 520px; color: #e2e5ef; font-size: 14px; line-height: 2; }
.hero-button, .store-btn-primary, .store-btn-outline {
    min-height: 45px;
    padding: 10px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    font-weight: 700;
    transition: .2s;
}
.hero-button { margin-top: 8px; color: var(--store-navy); background: #fff; }
.hero-button:hover { color: var(--store-red); transform: translateY(-2px); }
.store-btn-primary { color: #fff !important; background: var(--store-red); }
.store-btn-primary:hover { color: #fff; background: var(--store-red-dark); transform: translateY(-1px); }
.store-btn-primary:disabled { background: #b9bbc4; opacity: 1; }
.store-btn-outline { border: 1px solid #d9dbe2; color: var(--store-ink); background: #fff; }
.store-btn-outline:hover { border-color: var(--store-red); color: var(--store-red); }
.hero-illustration {
    display: grid;
    place-items: center;
    position: relative;
    font-size: 150px;
    color: rgba(255, 255, 255, .9);
}
.hero-illustration > i { z-index: 2; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18)); }
.hero-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; }
.orbit-one { width: 270px; height: 270px; }
.orbit-two { width: 350px; height: 350px; }
.floating-tag {
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
}
.tag-one { top: 86px; right: 5px; }
.tag-two { bottom: 78px; left: 20px; }
.hero-side { display: grid; gap: 16px; }
.mini-banner {
    min-height: 187px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: var(--store-ink);
    transition: transform .2s;
}
.mini-banner:hover { color: var(--store-ink); transform: translateY(-3px); }
.mini-banner span, .mini-banner b { display: block; position: relative; z-index: 2; }
.mini-banner span { font-size: 12px; }
.mini-banner b { margin-top: 5px; font-size: 20px; font-weight: 900; }
.mini-banner > i { position: absolute; left: 23px; bottom: 8px; opacity: .17; font-size: 88px; }
.mini-banner-coffee { background: linear-gradient(135deg, #f4dfc5, #fff0dd); }
.mini-banner-digital { background: linear-gradient(135deg, #d8ecff, #eef7ff); }
.carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }
.carousel-control-next, .carousel-control-prev {
    width: 38px;
    height: 38px;
    top: auto;
    bottom: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
.carousel-control-next { left: 24px; right: auto; }
.carousel-control-prev { left: 68px; right: auto; }

/* Home sections */
.home-section { margin: 45px 0; }
.section-heading, .product-list-head {
    margin-bottom: 19px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--store-red);
    font-size: 11px;
    font-weight: 700;
}
.section-heading h2, .product-list-head h2, .product-list-head h1 {
    margin: 0;
    color: var(--store-navy);
    font-size: 23px;
    font-weight: 900;
}
.section-heading > a { color: var(--store-muted); font-size: 12px; }
.section-heading > a:hover { color: var(--store-red); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}
.category-tile {
    min-height: 155px;
    padding: 17px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    transition: .22s;
}
.category-tile:hover { color: var(--store-ink); transform: translateY(-5px); box-shadow: var(--store-shadow); }
.category-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 28px;
}
.category-tile b { font-size: 13px; }
.category-tile small { margin-top: 2px; color: var(--store-muted); font-size: 10px; }
.category-color-0 .category-icon { background: #fff0f2; color: #e9364d; }
.category-color-1 .category-icon { background: #eaf3ff; color: #3979d7; }
.category-color-2 .category-icon { background: #fff4df; color: #bf7c14; }
.category-color-3 .category-icon { background: #e7f8ef; color: #168a55; }
.category-color-4 .category-icon { background: #f4ebff; color: #8050bd; }
.category-color-5 .category-icon { background: #e5f7f7; color: #137d85; }
.category-color-6 .category-icon { background: #fff0e8; color: #c86431; }
.category-color-7 .category-icon { background: #edf0ff; color: #555fc0; }

/* Offers */
.offer-strip {
    margin: 45px 0;
    padding: 28px 0;
    overflow: hidden;
    background: linear-gradient(125deg, #e52f46, var(--store-red) 58%, #ff6376);
}
.offer-layout { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 20px; }
.offer-title { padding: 12px 8px; color: #fff; text-align: center; }
.offer-title > i { font-size: 55px; color: #ffd166; }
.offer-title h2 { margin: 4px 0; font-size: 25px; font-weight: 900; line-height: 1.45; }
.offer-title p { color: #ffdfe3; font-size: 11px; }
.offer-title a { display: inline-block; margin-top: 7px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 9px; font-size: 11px; }
.offer-products { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.offer-card {
    min-width: 190px;
    padding: 12px;
    position: relative;
    border-radius: 14px;
    background: #fff;
}
.offer-card a { display: block; }
.discount-badge {
    min-width: 38px;
    height: 24px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    border-radius: 20px;
    background: var(--store-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.offer-image { height: 145px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f7f7f9; }
.offer-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.offer-card h3 { height: 44px; margin: 9px 0; overflow: hidden; color: var(--store-ink); font-size: 12px; font-weight: 700; line-height: 1.8; }
.offer-price { text-align: left; }
.offer-price strong { color: var(--store-navy); font-size: 15px; }
.offer-price span { margin-right: 3px; color: var(--store-muted); font-size: 9px; }
.offer-price del { display: block; height: 19px; color: #a8aab5; font-size: 10px; }
.offer-progress { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #f1c4ca; }
.offer-progress span { height: 100%; display: block; background: var(--store-red); }
.offer-card > a > small { display: block; margin-top: 4px; color: var(--store-muted); font-size: 9px; }

.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.featured-card {
    min-height: 130px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--store-line);
    border-radius: 17px;
    background: #fff;
    transition: .2s;
}
.featured-card:hover { color: var(--store-ink); border-color: #d2d5df; box-shadow: var(--store-shadow); transform: translateY(-3px); }
.featured-card img { width: 105px; height: 105px; flex: none; object-fit: contain; border-radius: 12px; background: #f7f7f9; }
.featured-card div { min-width: 0; }
.featured-card small, .featured-card b, .featured-card strong { display: block; }
.featured-card small { color: var(--store-muted); font-size: 10px; }
.featured-card b { height: 48px; margin: 4px 0; overflow: hidden; font-size: 12px; line-height: 2; }
.featured-card strong { color: var(--store-red); font-size: 13px; }
.wide-promos { margin: 45px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide-promo {
    min-height: 190px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 22px;
}
.wide-promo:hover { color: var(--store-ink); }
.wide-promo span small, .wide-promo span b, .wide-promo span em { display: block; }
.wide-promo span small { font-size: 12px; }
.wide-promo span b { margin: 3px 0 15px; font-size: 25px; font-weight: 900; }
.wide-promo span em { font-size: 12px; font-style: normal; font-weight: 700; }
.wide-promo > i { font-size: 92px; opacity: .15; }
.wide-promo-one { background: linear-gradient(135deg, #ffe7c0, #fff5e4); }
.wide-promo-two { background: linear-gradient(135deg, #f9dce7, #fff0f6); }
.store-benefits {
    padding: 23px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    border: 1px solid var(--store-line);
    border-radius: 19px;
    background: #fff;
}
.store-benefits > div { display: flex; align-items: center; justify-content: center; gap: 10px; border-left: 1px solid var(--store-line); }
.store-benefits > div:last-child { border-left: 0; }
.store-benefits > div > i { color: var(--store-red); font-size: 28px; }
.store-benefits b, .store-benefits small { display: block; }
.store-benefits b { font-size: 12px; }
.store-benefits small { color: var(--store-muted); font-size: 10px; }

/* Product listing */
.products-section { margin-top: 45px; padding-bottom: 25px; }
.product-list-head { align-items: center; }
.product-list-head p { margin: 3px 0 0; color: var(--store-muted); font-size: 12px; }
.product-sort { display: flex; align-items: center; gap: 10px; }
.product-sort > span { color: var(--store-muted); white-space: nowrap; font-size: 12px; }
.product-sort .form-select { width: 155px; min-height: 42px; font-size: 12px; }
.available-toggle {
    min-height: 42px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--store-line);
    border-radius: 11px;
    background: #fff;
    white-space: nowrap;
    font-size: 11px;
    cursor: pointer;
}
.available-toggle input { accent-color: var(--store-red); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 18px;
    background: #fff;
    transition: .22s;
}
.product-card:hover { border-color: #d5d7df; box-shadow: var(--store-shadow); transform: translateY(-4px); }
.product-link { display: block; }
.product-badges {
    min-height: 30px;
    padding: 10px 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    z-index: 3;
    inset: 0 0 auto 0;
    pointer-events: none;
}
.product-badges .discount-badge { position: static; }
.stock-dot { margin-right: auto; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.in-stock { color: #087943; background: #e6f7ee; }
.out-stock { color: #b43d4b; background: #ffedef; }
.product-image { height: 245px; padding: 24px 16px 10px; display: grid; place-items: center; overflow: hidden; background: #fafafd; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-info { padding: 14px 15px 12px; }
.product-meta { display: block; overflow: hidden; color: var(--store-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.product-info h3 { height: 52px; margin: 5px 0 8px; overflow: hidden; color: var(--store-ink); font-size: 13px; font-weight: 700; line-height: 2; }
.rating-row { display: flex; align-items: center; justify-content: space-between; color: var(--store-muted); font-size: 10px; }
.rating-row span i { color: #f5a623; margin-left: 3px; }
.price-row { min-height: 50px; margin-top: 10px; display: flex; align-items: flex-end; justify-content: flex-end; text-align: left; }
.price-row strong { color: var(--store-navy); font-size: 17px; font-weight: 900; }
.price-row span { margin-right: 3px; color: var(--store-muted); font-size: 10px; }
.price-row del { display: block; color: #a7a9b5; font-size: 10px; }
.quick-add {
    height: 42px;
    margin: 0 13px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    color: #fff;
    background: var(--store-red);
    font-size: 12px;
    font-weight: 700;
}
.quick-add:hover { color: #fff; background: var(--store-red-dark); }
.quick-add.disabled { background: #c6c7ce; pointer-events: none; }
.store-empty {
    padding: 55px 20px;
    border: 1px dashed #d9dbe2;
    border-radius: 20px;
    background: #fff;
    color: var(--store-muted);
    text-align: center;
}
.store-empty > i { font-size: 48px; color: #b5b8c3; }
.store-empty h2, .store-empty h3 { margin: 12px 0 4px; color: var(--store-ink); font-size: 19px; font-weight: 800; }
.store-empty p { margin-bottom: 18px; }
.search-result-header { margin: 6px 0 30px; }
.search-result-header h1 { margin: 8px 0 2px; font-size: 25px; font-weight: 900; }
.search-result-header p { color: var(--store-muted); font-size: 12px; }
.store-toast {
    max-width: 620px;
    min-height: 54px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    position: fixed;
    z-index: 1080;
    right: 24px;
    bottom: 24px;
    border: 1px solid #a9dfc2;
    border-radius: 13px;
    background: #effbf4;
    box-shadow: 0 16px 40px rgba(22, 75, 46, .18);
    color: #146b3c;
}
.store-toast > i { font-size: 19px; }
.store-toast span { flex: 1; }
.store-toast a { color: #0c6134; font-size: 12px; font-weight: 800; }

/* Breadcrumb and product details */
.store-page, .product-detail { padding-top: 27px; padding-bottom: 35px; }
.store-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--store-muted); font-size: 11px; }
.store-breadcrumb a:hover { color: var(--store-red); }
.store-breadcrumb i { font-size: 9px; }
.store-alert {
    margin: 18px 0;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}
.store-alert-success { border: 1px solid #abe0c3; color: #116a3b; background: #effbf4; }
.store-alert-danger { border: 1px solid #f2b6be; color: #9e2636; background: #fff1f3; }
.store-alert a { text-decoration: underline; font-weight: 800; }
.product-detail-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr) 330px;
    gap: 20px;
    align-items: start;
}
.product-gallery, .product-main-info, .purchase-card, .detail-content, .track-card, .track-intro, .track-subcard {
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
}
.product-gallery { padding: 18px; position: relative; }
.gallery-actions { display: flex; flex-direction: column; gap: 8px; position: absolute; z-index: 3; top: 20px; right: 20px; }
.gallery-actions button {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid var(--store-line);
    border-radius: 50%;
    background: #fff;
    color: var(--store-muted);
}
.gallery-actions button:hover { color: var(--store-red); border-color: #f1a8b1; }
.gallery-main { min-height: 430px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #fafafd; }
.gallery-main img { width: 100%; max-height: 440px; object-fit: contain; padding: 20px; }
.gallery-thumbs { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { width: 66px; height: 66px; padding: 4px; flex: none; overflow: hidden; border: 1px solid var(--store-line); border-radius: 10px; background: #fff; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--store-red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-main-info { min-height: 510px; padding: 25px; }
.product-labels { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.product-brand { color: var(--store-red); font-size: 12px; font-weight: 700; }
.product-code { color: var(--store-muted); font-size: 10px; }
.product-main-info h1 { margin: 11px 0 9px; color: var(--store-navy); font-size: 23px; font-weight: 900; line-height: 1.7; }
.product-rating { display: flex; align-items: center; gap: 15px; color: var(--store-muted); font-size: 10px; }
.product-rating i { color: #f4a621; }
.product-rating a { color: var(--store-blue); }
.product-short { margin-top: 18px; color: #5f6374; line-height: 2; }
.product-highlights { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--store-line); }
.product-highlights h2 { font-size: 14px; font-weight: 800; }
.product-highlights ul { margin: 8px 0 0; padding-right: 20px; color: #5f6374; font-size: 12px; line-height: 2.2; }
.variant-select { margin-top: 22px; }
.variant-select label, .field-block label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.purchase-card { padding: 20px; position: sticky; top: 160px; background: #fbfbfc; }
.seller-head { padding-bottom: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--store-line); }
.seller-head > i { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--store-red); background: #fff0f2; font-size: 20px; }
.seller-head small, .seller-head b { display: block; }
.seller-head small { color: var(--store-muted); font-size: 10px; }
.seller-head b { font-size: 13px; }
.purchase-benefit { padding: 12px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--store-line); }
.purchase-benefit > i { color: var(--store-green); font-size: 19px; }
.purchase-benefit b, .purchase-benefit small { display: block; }
.purchase-benefit b { font-size: 11px; }
.purchase-benefit small { color: var(--store-muted); font-size: 9px; }
.stock-line { margin-top: 15px; }
.stock-ok, .stock-out { padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.stock-ok { color: #087943; background: #e5f7ed; }
.stock-out { color: #b02c3d; background: #ffeaed; }
.detail-price { margin: 17px 0; text-align: left; }
.detail-price strong { color: var(--store-navy); font-size: 26px; font-weight: 900; }
.detail-price span { margin-right: 5px; color: var(--store-muted); font-size: 11px; }
.detail-price del { display: block; color: #a4a7b2; font-size: 11px; }
.buy-box { margin-top: 12px; }
.buy-box > label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.buy-controls { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.price-note { margin-top: 11px; display: block; color: var(--store-muted); font-size: 9px; }
.detail-tabs { margin-top: 25px; }
.detail-tab-nav { padding: 0 18px; display: flex; gap: 28px; border: 1px solid var(--store-line); border-radius: 16px 16px 0 0; background: #fff; }
.detail-tab-nav a { padding: 15px 2px; color: var(--store-muted); font-size: 12px; }
.detail-tab-nav a.active { border-bottom: 3px solid var(--store-red); color: var(--store-ink); font-weight: 800; }
.detail-content { margin-top: 12px; padding: 27px; }
.detail-content h2 { margin: 0 0 15px; font-size: 18px; font-weight: 900; }
.description-content, .detail-content p { color: #565a6b; line-height: 2.25; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid #ececf0; }
.spec-list dt, .spec-list dd { margin: 0; padding: 11px 14px; }
.spec-list dt { color: var(--store-muted); background: #f7f7f9; font-weight: 500; }
.related-products { margin-top: 38px; }
.compact-grid { grid-template-columns: repeat(4, 1fr); }

/* Cart and checkout */
.checkout-steps { max-width: 680px; margin: 22px auto; display: flex; align-items: center; justify-content: center; gap: 12px; }
.checkout-steps > div { display: flex; align-items: center; gap: 7px; color: #9a9daa; }
.checkout-steps > div > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #d8dae1; border-radius: 50%; background: #fff; font-size: 11px; }
.checkout-steps > div b { font-size: 11px; }
.checkout-steps > i { color: #c1c3cb; font-size: 9px; }
.checkout-steps .active { color: var(--store-red); }
.checkout-steps .active > span { border-color: var(--store-red); color: #fff; background: var(--store-red); }
.checkout-steps .done { color: var(--store-green); }
.checkout-steps .done > span { border-color: var(--store-green); color: #fff; background: var(--store-green); }
.cart-page-head { margin-top: 24px; }
.cart-card, .checkout-form-card, .checkout-summary {
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
}
.cart-card { padding: 20px; }
.cart-card-head { padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--store-line); }
.cart-card-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.cart-card-head h2 i { margin-left: 5px; color: var(--store-red); }
.cart-card-head span { color: var(--store-muted); font-size: 10px; }
.cart-item { padding: 18px 0; display: grid; grid-template-columns: 105px minmax(0, 1fr) 95px 130px 38px; align-items: center; gap: 14px; border-bottom: 1px solid var(--store-line); }
.cart-item-image { width: 100px; height: 100px; padding: 6px; overflow: hidden; border-radius: 13px; background: #f7f7f9; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info h3 { margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.cart-item-info span, .cart-item-info small { display: block; color: var(--store-muted); font-size: 10px; }
.quantity-box label { display: block; margin-bottom: 4px; color: var(--store-muted); font-size: 9px; }
.quantity-box .form-control { min-height: 42px; }
.cart-item-price { text-align: left; }
.cart-item-price strong, .cart-item-price span { display: block; }
.cart-item-price strong { font-size: 15px; }
.cart-item-price span { color: var(--store-muted); font-size: 9px; }
.remove-cart-item { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #a6a8b2; background: #f5f5f7; }
.remove-cart-item:hover { color: var(--store-red); background: #fff0f2; }
.cart-actions { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.cart-actions > a { color: var(--store-muted); font-size: 11px; }
.checkout-summary { padding: 21px; position: sticky; top: 160px; }
.checkout-summary h2 { margin: 0 0 15px; font-size: 15px; font-weight: 900; }
.checkout-row { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--store-muted); font-size: 11px; }
.checkout-row strong { color: var(--store-ink); }
.checkout-row.total { margin-top: 10px; padding-top: 15px; align-items: center; border-top: 1px solid var(--store-line); color: var(--store-ink); font-size: 13px; }
.checkout-row.total b { color: var(--store-red); font-size: 18px; }
.summary-note { margin: 12px 0 0; color: var(--store-muted); text-align: center; font-size: 9px; line-height: 1.9; }
.large-empty { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-illustration { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; color: #b3b5bf; background: #f4f4f7; font-size: 47px; }
.checkout-form-card { padding: 24px; }
.checkout-form-title { margin-bottom: 20px; display: flex; align-items: center; gap: 11px; }
.checkout-form-title > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--store-red); background: #fff0f2; font-size: 20px; }
.checkout-form-title h2, .checkout-form-title p { margin: 0; }
.checkout-form-title h2 { font-size: 15px; font-weight: 900; }
.checkout-form-title p { color: var(--store-muted); font-size: 10px; }
.field-block label em { color: var(--store-red); font-style: normal; }
.field-error { margin-top: 4px; display: block; color: #c22d41; font-size: 10px; }
.payment-option {
    padding: 15px;
    display: grid;
    grid-template-columns: auto 45px 1fr auto;
    align-items: center;
    gap: 11px;
    border: 1px solid #a9dac0;
    border-radius: 13px;
    background: #f3fbf7;
    cursor: pointer;
}
.payment-option input { accent-color: var(--store-green); }
.payment-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color: #087a44; background: #e0f5ea; font-size: 20px; }
.payment-option b, .payment-option small { display: block; }
.payment-option b { font-size: 12px; }
.payment-option small { margin-top: 3px; color: var(--store-muted); font-size: 9px; }
.selected-check { color: var(--store-green); font-size: 19px; }
.checkout-summary-items { max-height: 250px; overflow-y: auto; }
.summary-product { padding: 9px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #e4e5e9; font-size: 10px; }
.summary-product span { max-width: 62%; }
.summary-product span small { display: block; color: var(--store-muted); }
.summary-product strong { white-space: nowrap; }
.coupon-box { margin: 15px 0; }
.coupon-box label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; }
.order-success {
    max-width: 680px;
    min-height: 540px;
    margin: 35px auto;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--store-shadow);
    text-align: center;
}
.success-icon { width: 88px; height: 88px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--store-green); box-shadow: 0 12px 28px rgba(0,160,73,.2); font-size: 45px; }
.order-success h1 { margin: 4px 0; font-size: 25px; font-weight: 900; }
.order-success > p { color: var(--store-muted); }
.success-order-no { margin-top: 15px; padding: 13px 30px; border: 1px dashed #c9ccd5; border-radius: 12px; background: #f7f7f9; }
.success-order-no span, .success-order-no strong { display: block; }
.success-order-no span { color: var(--store-muted); font-size: 10px; }
.success-order-no strong { font-size: 20px; letter-spacing: 1px; }
.success-amount { margin: 16px 0; }
.success-amount span { margin-left: 10px; color: var(--store-muted); }
.success-amount b { color: var(--store-red); font-size: 18px; }
.success-actions { display: flex; gap: 9px; }

/* Order tracking */
.track-layout { margin-top: 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.track-intro { min-height: 380px; padding: 42px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(135deg, var(--store-navy), #344b88); }
.track-intro .section-kicker { color: #ffd166; }
.track-intro h1 { margin: 5px 0 8px; font-size: 31px; font-weight: 900; }
.track-intro p { max-width: 520px; color: #dfe4f1; line-height: 2; }
.track-art { position: absolute; left: 30px; bottom: 20px; color: rgba(255,255,255,.16); font-size: 95px; }
.track-art i:last-child { margin-right: -15px; font-size: 75px; }
.track-card { padding: 35px; }
.privacy-note { margin: 13px 0 0; color: var(--store-muted); text-align: center; font-size: 9px; }
.track-result { margin-top: 25px; }
.order-result-head { padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--store-line); border-radius: 18px 18px 0 0; background: #fff; }
.order-result-head span { color: var(--store-muted); font-size: 10px; }
.order-result-head h2 { margin: 2px 0 0; font-size: 20px; font-weight: 900; }
.order-state { padding: 7px 13px; border-radius: 20px; font-size: 11px !important; font-weight: 800; }
.order-state-new, .order-state-confirmed, .order-state-packing { color: #a6670a !important; background: #fff3d9; }
.order-state-shipped { color: #1767b8 !important; background: #e8f3ff; }
.order-state-delivered { color: #087943 !important; background: #e4f7ec; }
.order-state-cancelled { color: #b02c3d !important; background: #ffeaed; }
.order-facts { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border: 1px solid var(--store-line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; }
.order-facts > div { padding: 12px; display: grid; grid-template-columns: 35px 1fr; align-items: center; border-radius: 12px; background: #f7f7f9; }
.order-facts i { grid-row: span 2; color: var(--store-red); font-size: 20px; }
.order-facts span, .order-facts strong { display: block; }
.order-facts span { color: var(--store-muted); font-size: 9px; }
.order-facts strong { font-size: 11px; }
.track-subcard { height: 100%; padding: 21px; }
.track-subcard h3 { margin: 0 0 13px; font-size: 14px; font-weight: 900; }
.tracked-item { padding: 11px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; border-bottom: 1px dashed #e2e3e8; }
.tracked-item b, .tracked-item small { display: block; }
.tracked-item b { font-size: 11px; }
.tracked-item small { color: var(--store-muted); font-size: 9px; }
.tracked-item span, .tracked-item strong { font-size: 10px; }
.timeline-item { display: flex; gap: 10px; position: relative; }
.timeline-item:after { width: 1px; position: absolute; top: 23px; right: 8px; bottom: -5px; content: ""; background: #d7d9e0; }
.timeline-item:last-child:after { display: none; }
.timeline-item > i { z-index: 2; color: var(--store-green); }
.timeline-item > div { padding-bottom: 16px; }
.timeline-item b, .timeline-item small { display: block; }
.timeline-item b { font-size: 11px; }
.timeline-item small { color: var(--store-muted); font-size: 9px; }
.timeline-item p { margin: 3px 0 0; color: var(--store-muted); font-size: 9px; }

/* Footer */
.store-footer { margin-top: 65px; padding: 35px 0 18px; color: #fff; background: var(--store-navy); }
.footer-promise { padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-promise > div { display: flex; align-items: center; gap: 10px; }
.footer-promise i { color: #ffd166; font-size: 27px; }
.footer-promise b, .footer-promise small { display: block; }
.footer-promise b { font-size: 12px; }
.footer-promise small { color: #9fa8bd; font-size: 9px; }
.footer-main { padding: 34px 0 25px; }
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand h4 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.store-footer h5 { margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.store-footer p, .store-footer a { display: block; color: #aab1c3; font-size: 11px; line-height: 2; }
.store-footer a:hover { color: #fff; }
.trust-badges { display: flex; gap: 7px; }
.trust-badges span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #cbd0dd; font-size: 10px; }
.footer-bottom { padding-top: 17px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #818ba3; font-size: 10px; }
.mobile-store-nav { display: none; }

@media (max-width: 1199px) {
    .store-top { gap: 15px; }
    .store-brand { min-width: auto; }
    .store-brand small { display: none; }
    .action-link { display: none; }
    .home-hero { grid-template-columns: minmax(0, 1fr) 260px; }
    .category-grid { grid-template-columns: repeat(6, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr 1fr; }
    .purchase-card { grid-column: 1 / -1; position: static; }
    .store-benefits { grid-template-columns: repeat(3, 1fr); }
    .store-benefits > div { border-left: 0; }
}

@media (max-width: 991px) {
    body { padding-bottom: 66px; }
    .store-announcement { display: none; }
    .store-top { min-height: 76px; flex-wrap: wrap; padding: 12px 0; }
    .store-brand { min-width: 190px; }
    .store-search { order: 3; flex-basis: 100%; }
    .store-actions span { display: none; }
    .cart-link { min-width: 50px; justify-content: center; }
    .store-nav { display: none; }
    .home-hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; }
    .mini-banner { min-height: 145px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .offer-layout { grid-template-columns: 125px minmax(0, 1fr); }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .product-grid, .compact-grid { grid-template-columns: repeat(3, 1fr); }
    .store-benefits { grid-template-columns: 1fr 1fr; }
    .footer-promise { grid-template-columns: 1fr 1fr; }
    .mobile-store-nav {
        height: 64px;
        padding: 7px 18px 5px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        z-index: 1040;
        right: 0;
        bottom: 0;
        left: 0;
        border-top: 1px solid var(--store-line);
        background: #fff;
        box-shadow: 0 -7px 22px rgba(20,26,50,.08);
    }
    .mobile-store-nav a { min-width: 55px; display: flex; flex-direction: column; align-items: center; position: relative; color: var(--store-muted); font-size: 9px; }
    .mobile-store-nav i { font-size: 20px; }
    .mobile-cart em { top: -6px; left: 3px; }
    .track-layout { grid-template-columns: 1fr; }
    .track-intro { min-height: 280px; }
    .order-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    body { font-size: 13px; }
    .container { padding-right: 13px; padding-left: 13px; }
    .brand-mark { width: 43px; height: 43px; }
    .store-brand b { font-size: 14px; }
    .store-search { height: 46px; }
    .hero-carousel, .hero-slide { min-height: 335px; }
    .hero-slide { grid-template-columns: 1fr; }
    .hero-copy { padding: 36px 28px; }
    .hero-copy h1, .hero-copy h2 { font-size: 28px; }
    .hero-illustration { display: none; }
    .hero-side { display: none; }
    .section-heading h2, .product-list-head h2, .product-list-head h1 { font-size: 19px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-tile { min-height: 135px; }
    .category-icon { width: 58px; height: 58px; font-size: 24px; }
    .offer-layout { grid-template-columns: 1fr; }
    .offer-title { display: flex; align-items: center; gap: 10px; text-align: right; }
    .offer-title > i { font-size: 35px; }
    .offer-title h2 { font-size: 18px; }
    .offer-title p { flex: 1; }
    .featured-grid { grid-template-columns: 1fr; }
    .wide-promos { grid-template-columns: 1fr; }
    .wide-promo { min-height: 155px; padding: 25px; }
    .store-benefits { grid-template-columns: 1fr 1fr; padding: 14px; }
    .product-list-head { display: block; }
    .product-sort { margin-top: 13px; flex-wrap: wrap; }
    .product-sort .form-select { flex: 1; }
    .product-grid, .compact-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .product-image { height: 185px; padding: 22px 8px 8px; }
    .product-info { padding: 10px; }
    .product-info h3 { height: 48px; font-size: 12px; }
    .quick-add { margin: 0 9px 9px; }
    .quick-add span { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .gallery-main { min-height: 330px; }
    .product-main-info { min-height: auto; }
    .spec-list div { grid-template-columns: 110px 1fr; }
    .cart-item { grid-template-columns: 82px 1fr 38px; align-items: start; }
    .cart-item-image { width: 78px; height: 78px; }
    .quantity-box { grid-column: 2; }
    .cart-item-price { grid-column: 2; text-align: right; }
    .remove-cart-item { grid-column: 3; grid-row: 1; }
    .checkout-steps > div b { display: none; }
    .checkout-summary { position: static; }
    .payment-option { grid-template-columns: auto 38px 1fr; }
    .selected-check { display: none; }
    .success-actions { flex-direction: column; width: 100%; }
    .order-success { padding: 28px 20px; }
    .track-intro { padding: 30px; }
    .order-result-head { align-items: flex-start; }
    .tracked-item { grid-template-columns: 1fr auto; }
    .tracked-item strong { grid-column: 1 / -1; }
    .footer-promise { grid-template-columns: 1fr 1fr; }
    .footer-bottom { display: block; text-align: center; }
}

@media (max-width: 430px) {
    .store-brand { min-width: 150px; }
    .store-brand small { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-image { height: 155px; }
    .product-info h3 { line-height: 1.8; }
    .price-row strong { font-size: 14px; }
    .wide-promo span b { font-size: 20px; }
    .store-benefits { grid-template-columns: 1fr; }
    .store-benefits > div { justify-content: flex-start; }
    .order-facts { grid-template-columns: 1fr; }
    .footer-promise { grid-template-columns: 1fr; }
}
