/* HandyPack Storefront - Default Theme */
:root {
    --navy: #0a1a33;
    --navy-light: #122544;
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --teal-light: #2dd4bf;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e5eaf1;
    --text: #1e293b;
    --muted: #64748b;
    --light: #94a3b8;
    --amber: #f59e0b;
    --danger: #dc2626;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ Topbar ============ */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-inner svg { color: var(--teal-light); }

/* ============ Header ============ */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 30px; padding-top: 16px; padding-bottom: 16px; }

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.logo-badge {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--navy); color: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
}
.logo-name { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.logo-name em { font-style: normal; color: var(--teal-dark); }
.logo-name small { display: block; font-size: 10px; color: var(--light); font-weight: 500; }
.logo-name.light { color: #fff; }

.header-search {
    flex: 1; display: flex; align-items: stretch;
    border: 2px solid var(--border); border-radius: 12px; overflow: hidden;
    background: var(--card); max-width: 560px;
}
.header-search input {
    flex: 1; border: none; padding: 11px 16px; font-size: 14px; outline: none; min-width: 0;
}
.header-search .search-cat {
    border: none; border-left: 1px solid var(--border); padding: 0 12px;
    font-size: 13px; color: var(--muted); background: var(--card); outline: none; max-width: 160px;
}
[dir="rtl"] .header-search .search-cat { border-left: none; border-right: 1px solid var(--border); }
.search-btn {
    background: var(--teal-dark); color: #fff; border: none;
    padding: 0 18px; display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: #0f766e; }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
.header-action {
    position: relative; display: flex; flex-direction: column; align-items: center;
    gap: 3px; color: var(--navy); font-size: 12px; font-weight: 600;
}
.header-action:hover { color: var(--teal-dark); }
.cart-badge {
    position: absolute; top: -6px; right: -2px;
    background: var(--teal); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
[dir="rtl"] .cart-badge { right: auto; left: -2px; }

/* ============ Nav ============ */
.main-nav { background: var(--card); border-top: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 26px; }

.nav-cats { position: relative; }
.nav-cats-btn {
    display: flex; align-items: center; gap: 10px;
    background: var(--navy); color: #fff; border: none;
    padding: 13px 20px; font-size: 14px; font-weight: 600; border-radius: 10px 10px 0 0;
}
.nav-cats-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 90;
    background: var(--card); border: 1px solid var(--border); border-radius: 0 0 10px 10px;
    min-width: 240px; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); padding: 8px;
}
[dir="rtl"] .nav-cats-menu { left: auto; right: 0; }
.nav-cats:hover .nav-cats-menu, .nav-cats.open .nav-cats-menu { display: block; }
.nav-cats-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text); }
.nav-cats-menu a:hover { background: var(--bg); color: var(--teal-dark); }

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
    display: block; padding: 13px 14px; font-size: 14.5px; font-weight: 600; color: var(--navy);
    border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; width: 100%; }
.hero-track { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img, .hero-slide-link img { width: 100%; height: auto; display: block; }
.hero-slide-link { display: block; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.12); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--teal-dark); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-next svg { transform: rotate(180deg); }
[dir="rtl"] .hero-next svg { transform: none; }
[dir="rtl"] .hero-prev svg { transform: rotate(180deg); }

.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.3); }
.hero-dot.active { background: var(--teal-light); width: 24px; border-radius: 6px; }

/* ============ Sections ============ */
.home-section { margin: 44px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 24px; color: var(--navy); }
.view-all { color: var(--teal-dark); font-weight: 600; font-size: 14px; }
.view-all:hover { text-decoration: underline; }

/* Category circles */
.cat-circles { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; }
.circle-img {
    width: 84px; height: 84px; border-radius: 50%; background: var(--card);
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--teal-dark); overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .circle-img { border-color: var(--teal); transform: translateY(-3px); }
.circle-name { font-size: 13px; font-weight: 600; text-align: center; }

/* ============ Product cards ============ */
.products-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 218px;
    gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory;
}
.products-row::-webkit-scrollbar { height: 6px; }
.products-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.products-row .product-card { scroll-snap-align: start; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.product-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15,23,42,0.1); }

.product-img { position: relative; display: block; height: 190px; background: #eef2f7; }
.product-img img, .product-img video { width: 100%; height: 100%; object-fit: cover; }
.card-video-badge {
    position: absolute; bottom: 8px; left: 8px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--light); }

.badge-promo {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--teal-dark); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
[dir="rtl"] .badge-promo { left: auto; right: 10px; }

.product-info { padding: 14px; position: relative; }
.product-name {
    display: block; font-size: 14px; font-weight: 600; line-height: 1.35;
    height: 38px; overflow: hidden; margin-bottom: 8px;
}
.product-name:hover { color: var(--teal-dark); }
.product-prices { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 17px; font-weight: 800; color: var(--navy); }
.old-price { font-size: 13px; color: var(--light); text-decoration: line-through; }

.card-cart-btn {
    position: absolute; bottom: 12px; right: 12px;
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: var(--teal-dark); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
[dir="rtl"] .card-cart-btn { right: auto; left: 12px; }
.card-cart-btn:hover { background: #0f766e; }

/* ============ Promo cards ============ */
.promo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo-card {
    border-radius: var(--radius); padding: 26px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 130px;
}
.promo-card h3 { font-size: 20px; margin-bottom: 6px; }
.promo-card p { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
.promo-teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.promo-navy { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.promo-amber { background: linear-gradient(135deg, #d97706, var(--amber)); }
.promo-link {
    display: inline-block; background: rgba(255,255,255,0.2); padding: 7px 16px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
}
.promo-card:hover .promo-link { background: #fff; color: var(--navy); }

/* ============ Trust row ============ */
.trust-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; margin: 44px 0;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { color: var(--teal-dark); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 18px 0; font-size: 13px; color: var(--light); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* ============ Shop layout ============ */
.category-banner {
    background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: #fff;
    border-radius: var(--radius); padding: 34px 38px; margin-bottom: 28px;
}
.category-banner h1 { font-size: 28px; margin-bottom: 4px; }
.category-banner p { color: #94a3b8; font-size: 14px; }

.shop-heading { margin-bottom: 24px; }
.shop-heading h1 { font-size: 26px; color: var(--navy); }
.shop-heading p { color: var(--muted); font-size: 14px; }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-bottom: 50px; }

.sidebar-block {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 18px;
}
.sidebar-block h3 { font-size: 15px; margin-bottom: 14px; color: var(--navy); }

.sidebar-cats { list-style: none; }
.sidebar-cats a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted);
}
.sidebar-cats a:hover { background: var(--bg); }
.sidebar-cats a.active { background: #f0fdfa; color: var(--teal-dark); font-weight: 600; }
.sidebar-cats span { font-size: 12px; color: var(--light); }

.price-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.price-filter input {
    width: calc(50% - 4px); padding: 9px 10px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 13px; outline: none;
}
.price-filter button { width: 100%; }

.shop-toolbar {
    display: flex; justify-content: flex-end; align-items: center;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 12px 18px; margin-bottom: 20px;
}
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.sort-form select {
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 13.5px; outline: none; background: var(--card);
}

.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.page-btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--card); border: 1px solid var(--border);
    font-size: 14px; font-weight: 600; color: var(--muted);
}
.page-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.page-btn.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--light); }
.empty-state p { margin: 12px 0 20px; font-size: 15px; }

/* ============ Product page ============ */
.product-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 30px; margin-bottom: 30px;
}

.product-gallery .gallery-main {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: #eef2f7; aspect-ratio: 1 / 1;
}
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--border); background: none; padding: 0;
    position: relative;
}
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--teal); }
.gallery-thumb .thumb-video-badge {
    position: absolute; bottom: 4px; left: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff;
    display: flex; align-items: center; justify-content: center;
}

.product-details h1 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }

.product-price-block { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.current-price { font-size: 32px; font-weight: 800; color: var(--teal-dark); }
.product-price-block .old-price { font-size: 17px; }
.product-price-block .badge-promo { position: static; }

.product-short { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

.product-delivery { margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.product-delivery .delivery-title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.product-delivery .delivery-item { margin-bottom: 2px; }
.product-delivery .delivery-price { color: var(--teal-dark); font-weight: 800; font-size: 15px; }

.variant-block { margin-bottom: 20px; }
.variant-block label, .qty-block label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 9px; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Color swatches: rounded squares */
.color-swatch {
    width: 40px; height: 40px; padding: 3px; border-radius: 12px;
    border: 2px solid var(--border); background: var(--card);
    display: inline-flex; align-items: center; justify-content: center;
}
.color-swatch:hover { border-color: var(--teal); }
.color-swatch.active { border-color: var(--teal); box-shadow: 0 0 0 3px #ccfbf1; }
.color-swatch .swatch {
    display: block; width: 100%; height: 100%; border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Size tags */
.size-tag {
    min-width: 46px; padding: 9px 14px; border-radius: 10px; border: 2px solid var(--border);
    background: var(--card); font-size: 14px; font-weight: 700; text-align: center;
}
.size-tag:hover { border-color: var(--teal); }
.size-tag.active { border-color: var(--teal); background: #f0fdfa; color: var(--teal-dark); }

/* Offer tags (pack/qty offers with price) */
.offer-btn {
    padding: 9px 16px; border-radius: 10px; border: 2px solid var(--border);
    background: var(--card); font-size: 14px; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.offer-btn:hover { border-color: var(--teal); }
.offer-btn.active { border-color: var(--teal); background: #f0fdfa; color: var(--teal-dark); }
.offer-price { font-size: 13px; font-weight: 800; color: var(--navy); }
.offer-btn.active .offer-price { color: var(--teal-dark); }
.offer-discount { font-size: 11px; color: var(--danger); font-weight: 700; }

/* Composite variant buttons */
.composite-btn {
    padding: 9px 16px; border-radius: 10px; border: 2px solid var(--border);
    background: var(--card); font-size: 14px; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.composite-btn:hover { border-color: var(--teal); }
.composite-btn.active { border-color: var(--teal); background: #f0fdfa; color: var(--teal-dark); }
.composite-btn .variant-name { line-height: 1.2; }
.composite-btn .variant-price-hint { font-size: 11px; font-weight: 700; color: var(--teal); opacity: 0.8; }
.composite-btn .variant-price-hint s { opacity: 0.5; font-weight: 400; }

.qty-block { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-block label { margin: 0; }
.qty-selector { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-selector button {
    width: 38px; height: 38px; border: none; background: var(--card); font-size: 18px; color: var(--muted);
}
.qty-selector button:hover { background: var(--bg); color: var(--teal-dark); }
.qty-selector input {
    width: 52px; height: 38px; border: none; text-align: center; font-size: 15px; font-weight: 700; outline: none;
}
.stock-status { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock-status.in { color: var(--teal-dark); }
.stock-status.out { color: var(--danger); }

.product-actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }

.why-buy { background: var(--bg); border-radius: var(--radius); padding: 20px 22px; }
.why-buy h4 { font-size: 14.5px; margin-bottom: 12px; color: var(--navy); }
.why-buy ul { list-style: none; }
.why-buy li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--muted); }
.why-buy svg { color: var(--teal-dark); flex-shrink: 0; }

.product-description {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 30px; margin-bottom: 30px;
}
.product-description h2 { font-size: 20px; color: var(--navy); margin-bottom: 14px; }
.product-description p { color: var(--muted); font-size: 14.5px; }

/* ============ Buttons ============ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--teal-dark); color: #fff; border: none; border-radius: 12px;
    padding: 13px 26px; font-size: 15px; font-weight: 700;
}
.btn-primary:hover { background: #0f766e; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--card); color: var(--navy); border: 2px solid var(--border);
    border-radius: 12px; padding: 13px 26px; font-size: 15px; font-weight: 700;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-secondary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-big { flex: 1; padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--card); color: var(--navy); border: 2px solid var(--border);
    border-radius: 12px; padding: 13px 26px; font-size: 15px; font-weight: 700; flex: 1;
}
.btn-outline:hover { border-color: #25d366; color: #128c4b; }
.btn-dark {
    padding:0px 10px;background: var(--navy); color: #fff; border: none; border-radius: 10px;
}

/* Sticky Buy Now Bar */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sticky-buy-bar .sticky-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}
.sticky-buy-bar .sticky-actions {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 400px;
}
.sticky-buy-bar .btn-primary {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
}
@media (max-width: 768px) {
    .sticky-buy-bar {
        display: flex;
        padding: 10px 16px;
    }
    .sticky-buy-bar .sticky-price {
        font-size: 16px;
    }
    .sticky-buy-bar .sticky-actions {
        width: 100%;
        max-width: none;
    }
}
.btn-dark:hover { background: var(--navy-light); }

/* ============ CMS page ============ */
.page-heading { font-size: 26px; color: var(--navy); margin-bottom: 22px; }
.cms-page {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 34px 38px; margin-bottom: 50px;
}
.cms-page h1 { font-size: 26px; color: var(--navy); margin-bottom: 18px; }
.cms-content { color: var(--muted); font-size: 15px; line-height: 1.7; }
.cms-content p { margin-bottom: 1em; }
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4, .cms-content h5, .cms-content h6 {
    color: var(--navy); margin: 1.2em 0 0.6em; line-height: 1.35;
}
.cms-content h1 { font-size: 26px; }
.cms-content h2 { font-size: 22px; }
.cms-content h3 { font-size: 19px; }
.cms-content h4 { font-size: 17px; }
.cms-content h5 { font-size: 15.5px; }
.cms-content h6 { font-size: 14.5px; }
.cms-content ul, .cms-content ol { margin: 1em 0; padding-left: 2em; }
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 0.35em; }
.cms-content a { color: var(--teal); text-decoration: underline; }
.cms-content img, .cms-content video, .cms-content iframe { max-width: 100%; height: auto; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.cms-content th, .cms-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.cms-content th { background: var(--bg); font-weight: 600; }
.cms-content blockquote { border-left: 4px solid var(--teal); padding-left: 16px; margin: 1em 0; color: var(--muted); }

/* ============ Cart ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; margin-bottom: 50px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px;
}
.cart-item-img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #eef2f7; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-weight: 700; font-size: 14.5px; }
.cart-item-name:hover { color: var(--teal-dark); }
.cart-item-variant { display: block; font-size: 12.5px; color: var(--muted); }
.cart-item-price { font-size: 13.5px; color: var(--teal-dark); font-weight: 700; }
.cart-qty-form input { width: 70px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.cart-item-total { font-weight: 800; min-width: 90px; text-align: right; }
[dir="rtl"] .cart-item-total { text-align: left; }
.cart-remove { background: none; border: none; color: var(--light); }
.cart-remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14.5px; padding: 8px 0; color: var(--muted);
}
.summary-row.discount { color: var(--danger); }
.summary-row strong { font-weight: 700; color: var(--text); }
.summary-row.discount strong { color: var(--danger); }
.summary-row .text-success { color: var(--teal-dark); }
.summary-row.sub-row { font-size: 13px; padding: 3px 0 3px 16px; }
.summary-row.sub-row strong { font-weight: 700; color: var(--teal-dark); }
.delivery-zone-group .delivery-zone-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-zone-group .checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.delivery-zone-group .checkbox-row input { accent-color: var(--teal); }
.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 17px; padding: 14px 0 18px; margin-bottom: 18px; border-top: 1px solid var(--border);
}
.summary-total strong { font-size: 24px; color: var(--teal-dark); }
.checkout-form h3 { font-size: 16px; margin-bottom: 16px; color: var(--navy); }

.coupon-form { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; }
.coupon-remove { display: inline-block; font-size: 13px; color: var(--danger); margin-top: 8px; }
.coupon-remove:hover { text-decoration: underline; }

/* ============ Reviews ============ */
.product-reviews {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 30px;
}
.reviews-summary {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--teal-dark);
}
.reviews-summary svg { color: var(--amber); }
.reviews-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.review-item {
    background: var(--bg); border-radius: 10px; padding: 16px 18px;
}
.review-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.review-author { font-weight: 700; font-size: 14px; color: var(--navy); }
.review-rating { display: flex; gap: 2px; }
.review-rating svg { color: var(--amber); }
.review-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.review-form {
    background: var(--bg); border-radius: 10px; padding: 20px 22px;
    margin-top: 20px;
}
.review-form h3 { font-size: 16px; margin-bottom: 16px; color: var(--navy); }

/* Star rating */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; align-items: center; }
.rating-input input { display: none; }
.rating-input label {
    cursor: pointer; color: var(--light); transition: color 0.2s, transform 0.15s;
    line-height: 1;
}
.rating-input label svg { width: 26px; height: 26px; }
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--amber); }
.rating-input input:checked ~ label { color: var(--amber); }
.rating-input input:checked ~ label:hover,
.rating-input input:checked ~ label:hover ~ label { color: var(--amber); }
.rating-input label:hover { transform: scale(1.15); }

/* Review media upload */
.review-upload {
    position: relative; border: 2px dashed var(--border);
    border-radius: 12px; padding: 24px; text-align: center;
    background: var(--card); transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.review-upload:hover { border-color: var(--teal); background: #f0fdfa; }
.review-upload.dragover { border-color: var(--teal-dark); background: #ccfbf1; }
.review-upload input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.review-upload-icon { color: var(--teal); margin-bottom: 10px; }
.review-upload-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.review-upload-hint { font-size: 12px; color: var(--muted); }
.review-upload-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.review-upload-thumb {
    position: relative; width: 72px; height: 72px; border-radius: 8px;
    overflow: hidden; background: var(--bg); border: 1px solid var(--border);
}
.review-upload-thumb img,
.review-upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.review-upload-video-badge {
    position: absolute; bottom: 4px; right: 4px; color: #fff; background: rgba(0,0,0,0.6);
    border-radius: 50%; padding: 3px;
}

/* ============ Forms (storefront) ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--teal); }

/* ============ Modal ============ */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(10, 26, 51, 0.55); align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
    position: relative; background: var(--card); border-radius: 16px;
    width: 100%; max-width: 440px; max-height: 92vh;
    display: flex; flex-direction: column;
}
.modal-header {
    flex-shrink: 0; padding: 20px 30px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 20px; color: var(--navy); margin: 0; }
.modal-header .modal-product { color: var(--teal-dark); font-weight: 700; font-size: 14px; margin: 0; }
.modal-x {
    background: var(--bg); border: none;
    width: 32px; height: 32px; border-radius: 50%; color: var(--muted);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
[dir="rtl"] .modal-x { right: auto; left: 14px; }
.modal-x:hover { color: var(--danger); }
.modal-body {
    flex: 1; overflow-y: auto; padding: 20px 30px;
}
.modal-footer {
    flex-shrink: 0; padding: 20px 30px; border-top: 1px solid var(--border);
}
.modal-cod {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 13px; color: var(--teal-dark); font-weight: 600;
}

/* Order recap in modal */
.order-recap {
    background: var(--bg); border-radius: 10px; padding: 16px;
    margin-bottom: 20px; border: 1px solid var(--border);
}
.recap-item {
    display: flex; justify-content: space-between; margin-bottom: 8px;
    font-size: 14px; color: var(--muted);
}
.recap-item:last-child { margin-bottom: 0; }
.recap-item span:last-child { font-weight: 700; color: var(--navy); }
.recap-discount { color: var(--danger); }
.recap-total {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
    font-size: 16px;
}
.recap-total span:last-child { color: var(--teal-dark); font-size: 18px; }

/* Modal form sections */
.modal-form-sections { display: flex; flex-direction: column; gap: 14px; }

/* Toggle buttons/links */
.modal-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; color: var(--primary);
    font-size: 14px; font-weight: 600; cursor: pointer;
    padding: 0; text-decoration: none;
}
.modal-toggle-btn:hover { color: var(--primary-dark); }
.modal-toggle-btn svg { flex-shrink: 0; }

/* Checkbox rows */
.checkbox-row {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--navy);
    line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer;
    flex-shrink: 0; margin: 0; accent-color: var(--teal-dark);
}

/* Coupon section */
.coupon-section { margin-bottom: 0; }
.coupon-input {
    display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.coupon-input-row {
    display: flex; gap: 8px;
}
.coupon-input-row input { flex: 1; }
.coupon-input-row .btn-secondary {
    white-space: nowrap; padding: 10px 18px; font-size: 13px;
    border-radius: 10px; font-weight: 700;
}
.coupon-message {
    display: block; font-size: 12px; margin-top: 4px;
}
.coupon-message.success { color: #2e7d32; }
.coupon-message.error { color: var(--danger); }

/* ============ Points Redemption ============ */
.points-section { margin-bottom: 0; }
.points-info {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0;
}
.points-input-group {
    display: flex; gap: 8px;
}
.points-input-group .form-control { flex: 1; }
.points-input-group .btn-secondary {
    white-space: nowrap; padding: 10px 18px; font-size: 13px;
    border-radius: 10px; font-weight: 700;
}
.hidden { display: none; }

/* New address form in modal */
.new-address-form {
    background: none; padding: 0; border-radius: 0; border: none; margin-top: 14px;
}
.new-address-form .form-group { margin-bottom: 12px; }
.new-address-form .form-group:last-child { margin-bottom: 0; }

/* ============ Newsletter ============ */
.newsletter-band { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #fff; margin-top: 50px; }
.newsletter-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
    padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap;
}
.newsletter-text { display: flex; align-items: center; gap: 16px; }
.newsletter-text strong { font-size: 19px; display: block; }
.newsletter-text p { font-size: 13.5px; opacity: 0.9; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.newsletter-form input {
    flex: 1; border: none; border-radius: 10px; padding: 12px 16px; font-size: 14px; outline: none; min-width: 0;
}

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #94a3b8; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
    padding-top: 46px; padding-bottom: 36px;
}
.footer-brand p { font-size: 13.5px; margin-top: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--teal-light); }
.footer-contact { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 5px 0; }
.footer-contact svg { color: var(--teal-light); }
.footer-langs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-langs a {
    padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; font-size: 12.5px;
}
.footer-langs a.active, .footer-langs a:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; font-size: 12.5px; text-align: center; }

/* ============ Thank you ============ */
.thankyou-box {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 560px; margin: 60px auto; padding: 50px 40px; text-align: center;
}
.thankyou-section {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 560px; margin: 60px auto; padding: 50px 40px; text-align: center;
}
.thankyou-icon {
    width: 88px; height: 88px; border-radius: 50%; background: #f0fdfa; color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.thankyou-section h1 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.thankyou-section p { color: var(--muted); margin-bottom: 22px; }
.thankyou-box h1 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.thankyou-box p { color: var(--muted); margin-bottom: 22px; }
.thankyou-total {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg); border-radius: 12px; padding: 16px 22px; margin-bottom: 26px;
    font-size: 16px;
}
.thankyou-total strong { font-size: 22px; color: var(--teal-dark); }

/* ============ Upsells (post-purchase) ============ */
.upsell-section { max-width: 900px; margin: 0 auto 60px; }
.upsell-section.upsell-first { margin-top: 0; }
.upsell-header {
    text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
    border-radius: 16px; margin-bottom: 30px;
}
.upsell-icon { color: var(--teal-dark); margin-bottom: 16px; }
.upsell-header .upsell-title { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.upsell-header .upsell-sub { color: var(--muted); font-size: 16px; }
.upsell-title { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.upsell-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.upsell-card {
    background: var(--card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.upsell-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.upsell-img {
    display: block; height: 160px; background: #eef2f7; position: relative;
    overflow: hidden;
}
.upsell-img img { width: 100%; height: 100%; object-fit: cover; }
.upsell-img .img-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}
.upsell-info { padding: 16px; }
.upsell-name {
    display: block; font-size: 15px; font-weight: 700; color: var(--navy);
    margin-bottom: 8px; line-height: 1.4;
}
.upsell-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.upsell-prices { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.upsell-prices .price { font-size: 18px; font-weight: 800; color: var(--teal-dark); }
.upsell-prices .old-price { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.upsell-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.upsell-actions { text-align: center; margin-top: 30px; }

/* ============ Alerts (storefront) ============ */
.store-alert {
    border-radius: 10px; padding: 13px 18px; font-size: 14px; margin: 18px 0;
}
.store-alert.success { background: #d1fae5; color: #065f46; }
.store-alert.error { background: #fee2e2; color: #991b1b; }

/* ============ Auth pages ============ */
.auth-box {
    max-width: 420px; margin: 60px auto; padding: 40px; background: var(--card);
    border-radius: 16px; border: 1px solid var(--border); text-align: center;
}
.auth-box h1 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-footer { margin-top: 24px; color: var(--muted); font-size: 14px; }
.auth-footer a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ============ Profile pages ============ */
.profile-layout {
    display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 40px;
}
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }
.profile-card {
    background: var(--card); border-radius: 12px; border: 1px solid var(--border);
    padding: 24px;
}
.profile-header { text-align: center; margin-bottom: 20px; }
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; background: #e0f2fe; color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.profile-header h2 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.profile-phone { color: var(--muted); font-size: 14px; }
.profile-nav { display: flex; flex-direction: column; gap: 8px; }
.profile-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px;
    color: var(--muted); text-decoration: none; font-size: 15px; transition: all 0.2s;
}
.profile-nav-item:hover { background: var(--bg); color: var(--navy); }
.profile-nav-item.active { background: #e0f2fe; color: var(--teal-dark); font-weight: 600; }
.points-card { text-align: center; }
.points-card h3 { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.points-value { font-size: 36px; font-weight: 800; color: var(--teal-dark); margin-bottom: 4px; }
.points-sub { color: var(--muted); font-size: 13px; }
.points-card.pending .points-value { color: #f59e0b; }
.profile-main .profile-card { margin-bottom: 20px; }
.logout-form { margin-top: 20px; }
.logout-form button { width: 100%; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-item {
    background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border);
}
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-ref { font-weight: 700; color: var(--navy); }
.order-details { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.order-total { margin-left: auto; font-weight: 600; color: var(--teal-dark); }
.order-items-list {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.order-item-product {
    display: flex; gap: 12px; align-items: center;
}
.order-item-thumb {
    width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg);
}
.order-item-info {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.order-item-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.order-item-variant { font-size: 12px; color: var(--muted); }
.order-item-qty { font-size: 13px; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
    background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-product { font-weight: 700; color: var(--navy); }
.review-rating { color: #f59e0b; font-size: 16px; }
.review-text { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.review-date { color: var(--muted); font-size: 12px; }

/* Review media */
.review-media { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-media-item {
    width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg);
}
.review-media-item img, .review-media-item video {
    width: 100%; height: 100%; object-fit: cover;
}
.review-login-prompt {
    background: var(--bg); border-radius: 8px; padding: 20px; text-align: center;
}
.review-login-prompt p { color: var(--muted); margin-bottom: 12px; }

/* Products for review */
.products-for-review { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.product-review-item {
    display: flex; gap: 12px; background: var(--bg); border-radius: 8px; padding: 12px;
    border: 1px solid var(--border);
}
.product-review-thumb {
    width: 60px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--card);
    flex-shrink: 0;
}
.product-review-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-review-info { flex: 1; }
.product-review-info h4 { font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.product-review-price { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* ============ Signup prompt ============ */
.signup-prompt { margin-top: 40px; }
.signup-prompt-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); border-radius: 12px;
    padding: 32px; text-align: center; border: 1px solid #bae6fd;
}

/* ============ Shipping addresses ============ */
.address-recap-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px; margin-bottom: 12px;
}
.address-recap-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.address-recap-header strong { color: var(--navy); font-size: 14px; }
.address-recap-body { display: flex; flex-direction: column; gap: 4px; }
.address-recap-name { font-weight: 600; color: var(--navy); font-size: 14px; margin: 0; }
.address-recap-phone { color: var(--muted); font-size: 13px; margin: 0; }
.address-recap-details { color: var(--muted); font-size: 13px; margin: 0; }
.address-badge {
    display: inline-block; background: var(--primary); color: white; font-size: 11px;
    padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.customer-info-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px; margin-bottom: 12px;
}
.customer-info-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.customer-info-header strong { color: var(--navy); font-size: 14px; }
.customer-info-body { display: flex; flex-direction: column; gap: 4px; }
.customer-info-name { font-weight: 600; color: var(--navy); font-size: 14px; margin: 0; }
.customer-info-phone { color: var(--muted); font-size: 13px; margin: 0; }
.new-address-form { background: var(--card); padding: 16px; border-radius: 8px; border: 1px solid var(--border); margin-top: 12px; }
.btn-link {
    background: none; border: none; color: var(--primary); font-size: 13px;
    cursor: pointer; padding: 0; text-decoration: underline;
}
.btn-link:hover { color: var(--primary-dark); }
.btn-link.text-danger { color: var(--danger); }
.btn-link.text-danger:hover { color: var(--danger-dark); }

/* ============ My Addresses ============ */
.addresses-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.address-card-item {
    background: var(--card); border: 1px solid var(--border); border-radius: 8px;
    padding: 24px; transition: border-color 0.2s; display: flex; flex-direction: column;
    min-height: 180px;
}
.address-card-item:hover { border-color: var(--primary); }
.address-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px; gap: 12px;
}
.address-card-title {
    display: flex; align-items: center; gap: 8px; flex: 1;
}
.address-card-actions { display: flex; gap: 6px; align-items: center; }
.address-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.address-card-phone { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.address-card-details { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.address-card-city { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.address-icon-btn {
    background: none; border: none; cursor: pointer; padding: 6px;
    border-radius: 6px; transition: background 0.2s; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
}
.address-icon-btn:hover { background: var(--bg); color: var(--primary); }
.address-icon-btn.delete:hover { color: #ef4444; background: #fef2f2; }

.address-add-card {
    background: var(--card); border: 2px dashed var(--border); border-radius: 8px;
    padding: 24px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; cursor: pointer; transition: all 0.2s; min-height: 180px;
    text-decoration: none; color: var(--muted);
}
.address-add-card:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.address-add-card-icon { font-size: 32px; margin-bottom: 12px; }
.address-add-card-text { font-size: 14px; font-weight: 500; }

.signup-prompt-card h2 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.signup-prompt-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.inline-form { display: inline; }
.card-subtitle-spaced { margin-bottom: 24px; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
    .product-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .promo-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .addresses-list { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .header-inner { flex-wrap: wrap; gap: 14px; }
    .header-search { order: 3; max-width: none; flex-basis: 100%; }
    .nav-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 56px; }
    .hero-content h1 { font-size: 28px; }
    .hero-image { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .topbar-inner span:nth-child(2) { display: none; }
    .products-row { grid-auto-columns: 180px; }
}
