/* ============================================================
   FLOWER SHOP KUWAIT - Main Stylesheet
   Supports: LTR (English) + RTL (Arabic)
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
    --gold:        #b89968;    /* champagne accent — used sparingly on logo */
    --gold-light:  #d4b683;
    --header-btn:  #f63ea0;    /* circular header icon buttons — themeable */
    --teal:        #1a1a1a;    /* all black now */
    --teal-dark:   #000000;
    --pink:        #1a1a1a;    /* all black now */
    --pink-light:  #f5f5f5;
    --dark:        #1a1a1a;
    --dark2:       #2a2a2a;
    --gray:        #666666;
    --gray-light:  #999999;
    --border:      #e8e8e8;
    --bg:          #ffffff;
    --bg-light:    #fafafa;
    --bg-cream:    #ffffff;
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
    --shadow:      0 2px 12px rgba(0,0,0,0.10);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  0.25s ease;
    --max-w:       1400px;
    --font-ar:     'Cairo', 'Arial', sans-serif;
    --font-en:     'Poppins', 'Arial', sans-serif;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-cream);
    color: var(--dark);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

body:lang(ar),
[lang="ar"] body,
.lang-ar {
    font-family: var(--font-ar);
}

body:lang(en),
[lang="en"] body,
.lang-en {
    font-family: var(--font-en);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* === CONTAINER === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* === SECTION SPACING === */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* === SECTION TITLES === */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title .subtitle {
    display: block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}
.section-title.underlined h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-title.underlined h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.header-logo img.logo-img {
    height: auto;
    max-height: 70px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .header-logo img.logo-img { max-height: 54px; }
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-brand {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logo-sub {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Center: Phone + Search */
.header-center {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.phone-icon, .hdr-svg {
    color: var(--dark);
    flex-shrink: 0;
}
.header-actions svg { transition: opacity 0.2s; }
.header-actions a:hover svg { opacity: 0.6; }
.phone-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.phone-number {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}
.header-search {
    flex: 1;
    position: relative;
}
.header-search form {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
    background: var(--bg);
}
.header-search form:focus-within {
    border-color: var(--gold);
}
.header-search input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--dark);
    background: transparent;
}
.header-search button {
    padding: 0 16px;
    background: none;
    color: var(--gray);
    font-size: 18px;
    transition: color var(--transition);
}
.header-search button:hover { color: var(--gold); }

/* Right: Account + Cart */
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
/* Search icon button — mobile-only (desktop already has the .header-search bar) */
.header-icon-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--header-btn);
    background: linear-gradient(135deg, color-mix(in srgb, var(--header-btn) 72%, #fff), var(--header-btn));
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
    padding: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--header-btn) 35%, transparent);
}
.header-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--header-btn) 45%, transparent); }
.header-icon-btn svg { display: block; }
@media (max-width: 768px) {
    .header-icon-btn { display: flex !important; }
}

/* Search dropdown panel */
.search-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    padding: 18px 0;
    z-index: 998;
}
.search-panel.open { display: block; }
.search-panel-form {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.search-panel-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--gray);
    pointer-events: none;
}
.search-panel-form input {
    flex: 1;
    padding: 14px 16px;
    padding-inline-start: 44px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.search-panel-form input:focus {
    border-color: var(--dark);
    background: #fff;
}
.search-panel-submit {
    padding: 14px 28px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--transition);
    font-family: inherit;
}
.search-panel-submit:hover { opacity: 0.85; }
.search-panel-close {
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray);
    transition: all var(--transition);
}
.search-panel-close:hover {
    border-color: var(--dark);
    color: var(--dark);
}

@media (max-width: 600px) {
    .search-panel { padding: 12px 0; }
    .search-panel-form { gap: 6px; }
    .search-panel-submit { padding: 12px 14px; font-size: 13px; }
    .search-panel-close  { width: 36px; height: 36px; }
    .search-panel-form input { padding: 12px 14px; padding-inline-start: 40px; font-size: 14px; }
}

/* Language flag button */
.header-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}
.header-lang:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
}
.header-lang svg { display: block; }

.header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--header-btn);
    background: linear-gradient(135deg, color-mix(in srgb, var(--header-btn) 72%, #fff), var(--header-btn));
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--header-btn) 35%, transparent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.header-account:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--header-btn) 45%, transparent); }
.header-account svg { display: block; }

.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--header-btn);
    background: linear-gradient(135deg, color-mix(in srgb, var(--header-btn) 72%, #fff), var(--header-btn));
    color: #fff;
    position: relative;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--header-btn) 35%, transparent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.header-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--header-btn) 45%, transparent); }
.cart-icon-wrap {
    position: static;
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ffc107;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    min-width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[dir="rtl"] .cart-badge { right: auto; left: -3px; }

.cart-info { text-align: start; }
.cart-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}
.cart-total {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}

/* Hide mobile-only elements on desktop */
.nav-mobile-bar { display: none; }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 10000;
    position: relative;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* Animate to X when open */
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only nav search — hidden by default, shown by CSS at 768px */
.mobile-search { display: none !important; }
@media (max-width: 768px) {
    .mobile-search { display: block !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    border-top: 1px solid var(--border);
    background: var(--bg);
    max-height: none;
    overflow: visible;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-list a {
    display: block;
    padding: 14px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark2);
    white-space: nowrap;
    position: relative;
    transition: color var(--transition);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
    color: var(--dark);
}
.nav-list a:hover::after,
.nav-list a.active::after {
    width: 60%;
    background: var(--dark);
}
.nav-list li.featured a { color: var(--dark); }
.nav-list li.featured a:hover { color: var(--dark); opacity: 0.6; }
.nav-list li.featured a::after { background: var(--dark); }

/* Admin-managed nav: dropdowns + badges + caret */
.nav-list li { position: relative; }
.nav-list li.has-children > a { display: flex; align-items: center; gap: 5px; }
.nav-caret { font-size: 9px; line-height: 1; opacity: 0.7; transition: transform var(--transition); }
.nav-list li.has-children:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; top: 100%; inset-inline-start: 0;
    min-width: 210px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease; z-index: 1000;
}
.nav-list li.has-children:hover > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li { display: block; }
.nav-dropdown a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 14px; border-radius: 7px;
    font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
    white-space: nowrap; color: var(--dark2);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--bg); color: var(--dark); }

/* Lang switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    white-space: nowrap;
}
.lang-switcher a {
    color: var(--gray);
    transition: color var(--transition);
}
.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--gold);
}
.lang-switcher span {
    color: var(--border);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
    padding: 20px 0 48px;
    background: var(--bg);
}
/* Banner — height adapts to the natural ratio of the uploaded image.
   All slides stack in the same grid cell so the container takes the image's
   real height with NO cropping at any screen size. */
.hero-slider {
    position: relative;
    display: grid;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
}
.hero-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: block;
    text-decoration: none;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 70px;
    left: 60px;
    right: auto;
    color: #fff;
    max-width: 540px;
    z-index: 2;
}
[dir="rtl"] .hero-content {
    left: auto;
    right: 60px;
}
.hero-tag {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.hero-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 15px;
    opacity: 0.88;
    margin-bottom: 24px;
}
.hero-btn {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 16px rgba(232, 66, 125, 0.4);
}
.hero-btn:hover {
    background: #d63570;
    color: #fff;
    transform: translateY(-2px);
}

/* Slider controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark);
    z-index: 5;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
    border: none;
}
.hero-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
[dir="rtl"] .hero-arrow-prev { left: auto; right: 20px; }
[dir="rtl"] .hero-arrow-next { right: auto; left: 20px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================================
   4-COLUMN GRID (shared: occasions, categories, products)
   ============================================================ */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ============================================================
   OCCASION CARDS
   ============================================================ */
.occasion-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.occasion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.occasion-card .card-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.occasion-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.occasion-card:hover .card-img img { transform: scale(1.06); }
.occasion-card .card-img .placeholder-flower {
    font-size: 80px;
    opacity: 0.6;
}
.occasion-card .card-name {
    text-align: center;
    padding: 12px 8px 6px;
    font-size: 13.5px;
    color: var(--dark2);
    font-weight: 500;
}

/* ============================================================
   CATEGORY (LIFESTYLE) CARDS — match occasion-card style
   ============================================================ */
.category-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card .card-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover .card-img img { transform: scale(1.05); }
.category-card .card-name {
    text-align: center;
    padding: 12px 8px 6px;
    font-size: 13.5px;
    color: var(--dark2);
    font-weight: 400;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-card .card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    position: relative;
}
.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img img { transform: scale(1.07); }

.product-card .card-img .placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.35;
}

.product-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}
[dir="rtl"] .product-card .card-badge { right: auto; left: 10px; }

.product-card .card-body {
    padding: 12px 14px 14px;
}
.product-card .card-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark2);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.product-card .card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
}
.product-card .card-add-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background var(--transition);
    border: none;
}
.product-card .card-add-btn:hover { background: var(--teal-dark); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-page {
    padding: 30px 0 60px;
    background: var(--bg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { font-size: 12px; }
.breadcrumb .current { color: var(--dark2); }

/* Product layout — mobile-first.
   HTML order: gallery first, info second → on mobile stacks naturally
   (image on top, info below). Desktop ≥900px → 2 columns;
   dir=rtl auto-flips column order so the image lands on the correct side. */
.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr 400px;
        gap: 32px;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Thumbnails — always horizontal under main image */
.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
}
.thumb-item {
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--bg-light);
}
.thumb-item.active,
.thumb-item:hover {
    border-color: var(--teal);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main image */
.product-main-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-light);
}
.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
[dir="rtl"] .product-img-actions { right: auto; left: 14px; }
.img-action-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}
.img-action-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Product Info */
.product-info {}

.product-points {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}
.product-price-main {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}
.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Add to Cart */
.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-minus, .qty-plus {
    width: 38px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark2);
    background: var(--bg-light);
    cursor: pointer;
    transition: background var(--transition);
    border: none;
}
.qty-minus:hover, .qty-plus:hover { background: var(--border); }
.qty-input {
    width: 52px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
}
.btn-add-cart {
    flex: 1;
    height: 48px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}
.btn-add-cart:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

/* Product features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.feature-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg);
}
.feature-row + .feature-row {
    border-top: 1px solid var(--border);
}
.feature-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--teal);
}
.feature-text { line-height: 1.3; }
.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.feature-desc {
    font-size: 12px;
    color: var(--gray);
}

/* Payment methods */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.payment-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}
[dir="rtl"] .payment-label { margin-left: 0; margin-right: 0; }
.payment-icon {
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 3px 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    min-width: 44px;
}
.payment-icon.knet { background: #005baa; color: #fff; font-size: 11px; }
.payment-icon.visa { background: #1a1f71; color: #fff; font-size: 12px; }
.payment-icon.mc   { background: #eb001b; color: #fff; font-size: 10px; }
.payment-icon.pp   { background: #003087; color: #fff; font-size: 10px; }

/* Card-style payment icons (white card + brand SVG inside) */
.pay-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 0 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.pay-card svg { display: block; }

/* Product tabs */
.product-tabs {
    margin-top: 40px;
    border-top: 2px solid var(--border);
}
.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: -2px;
}
.tab-btn {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}
.tab-panel {
    display: none;
    padding: 24px 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--dark2);
}
.tab-panel.active { display: block; }

/* Related products */
.related-section {
    padding: 50px 0;
    background: var(--bg-light);
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-page { padding: 30px 0 60px; }
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}
.shop-meta {
    font-size: 13px;
    color: var(--gray);
}
.shop-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--dark);
    background: var(--bg);
    outline: none;
    cursor: pointer;
    min-width: 140px;
}
.filter-select:focus { border-color: var(--gold); }

/* Category filter chips */
.category-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.chip {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--dark2);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.chip:hover,
.chip.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark2);
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    padding: 0 8px;
}
.page-btn:hover,
.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page { padding: 30px 0 60px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.cart-header {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto 32px;
    grid-template-areas: "img details qty total remove";
    column-gap: 18px;
    row-gap: 10px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-img      { grid-area: img;     }
.cart-item-details  { grid-area: details; }
.cart-qty           { grid-area: qty;     }
.cart-item-total    { grid-area: total;   }
.cart-item-remove   { grid-area: remove;  }

.cart-item-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}
.cart-item-price {
    font-size: 13px;
    color: var(--gray);
}
.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    text-align: center;
}
.cart-item-remove {
    color: var(--gray-light);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 4px;
}
.cart-item-remove:hover { color: var(--pink); }

/* Cart qty inline */
.cart-qty {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
}
.cart-qty .qty-minus,
.cart-qty .qty-plus {
    width: 32px;
    height: 36px;
    font-size: 16px;
}
.cart-qty .qty-input {
    width: 44px;
    height: 36px;
    font-size: 14px;
}

/* Cart summary box */
.cart-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.cart-summary-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark2);
}
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
}
.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}
.btn-checkout:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-2px);
}
.btn-continue-shop {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: var(--bg);
    color: var(--dark2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
}
.btn-continue-shop:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Cart empty state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    gap: 16px;
}
.cart-empty-icon { font-size: 72px; opacity: 0.3; }
.cart-empty h3 { font-size: 20px; font-weight: 700; color: var(--dark2); }
.cart-empty p { font-size: 14px; color: var(--gray); }
.btn-shop {
    display: inline-block;
    padding: 12px 32px;
    background: var(--teal);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition);
    margin-top: 8px;
}
.btn-shop:hover { background: var(--teal-dark); color: #fff; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE — professional redesign
   ═══════════════════════════════════════════════════════════ */
.checkout-page { padding: 32px 0 80px; background: #fafafa; min-height: 100vh; }

.checkout-header { text-align: center; margin-bottom: 28px; }
.checkout-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.checkout-sub {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Step indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 36px;
    gap: 4px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--gray-light);
    transition: all 0.25s;
}
.step.done .step-circle {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}
.step.active .step-circle {
    border-color: var(--dark);
    color: var(--dark);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}
.step.active .step-label, .step.done .step-label { color: var(--dark); }
.step-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 22px;
    border-radius: 1px;
}

/* Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: 20px; }

/* Form cards */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}
.form-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 3px;
}
.card-sub {
    font-size: 12.5px;
    color: var(--gray);
    margin: 0;
}

/* Form layout */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark2);
}
.form-label.required::after {
    content: ' *';
    color: #d97706;
}
.form-hint {
    font-size: 11.5px;
    color: var(--gray-light);
    margin-top: 2px;
}

/* Input with leading icon */
.input-wrap { position: relative; display: block; }
.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    pointer-events: none;
    transition: color 0.2s;
}
.input-wrap:focus-within .input-icon { color: var(--dark); }
.input-wrap > .form-input,
.input-wrap > .form-select {
    padding-inline-start: 42px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: #c0c0c0; }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: #c5c5c5; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--dark);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    background: #fff;
}
.form-input.input-error, .form-select.input-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.08); }
.form-textarea { min-height: 90px; resize: vertical; }
.field-error { font-size: 12px; color: #dc2626; }

/* ═════ Summary aside ═════ */
.checkout-aside { position: sticky; top: 100px; }
.checkout-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.checkout-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-items { display: flex; flex-direction: column; gap: 12px; max-height: 260px; overflow-y: auto; }
.summary-loading { text-align: center; padding: 20px; color: var(--gray-light); font-size: 13px; }

/* Item row with thumbnail */
.summary-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}
.summary-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}
.summary-item-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-img .qty-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    background: var(--dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.summary-item-info { min-width: 0; }
.summary-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.summary-item-meta { font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.summary-item-price { font-size: 13.5px; font-weight: 700; color: var(--dark); white-space: nowrap; }

.summary-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--dark2);
}
.summary-row.total {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

/* Pay button */
.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pay-btn:hover { transform: translateY(-1px); background: #000; box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.pay-btn:active { transform: translateY(0); }

.pay-methods-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

/* Trust badges */
.trust-badges {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--dark2);
}
.trust-row svg { color: #16a34a; flex-shrink: 0; }
.knet-logo {
    background: #fff;
    color: #005baa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 900;
}

/* ============================================================
   ORDER PAGES (success / failed)
   ============================================================ */
.order-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.order-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.order-icon { font-size: 72px; margin-bottom: 16px; }
.order-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.order-subtitle { font-size: 15px; color: var(--gray); margin-bottom: 24px; }
.order-number {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 24px;
    display: inline-block;
}
.btn-home {
    display: inline-block;
    padding: 13px 32px;
    background: var(--teal);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition);
}
.btn-home:hover { background: var(--teal-dark); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer-brand {}
.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: 4px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-text {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.social-link svg { display: block; }
.social-link:hover { transform: translateY(-2px); }
/* Brand-specific hover backgrounds */
.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 6px 16px rgba(220,39,67,0.35);
}
.social-twitter:hover  { background: #000; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.social-whatsapp:hover { background: #25d366; box-shadow: 0 6px 16px rgba(37,211,102,0.4); }

/* Footer payment cards row */
.footer-pay {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* Newsletter signup in footer */
.newsletter-signup {
    grid-column: 1 / -1; /* span the full footer width (above the columns) */
    min-width: 0;        /* allow it to shrink instead of forcing grid overflow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.newsletter-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.newsletter-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 440px;
    min-width: 280px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, background 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}
.newsletter-form button {
    padding: 12px 24px;
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.newsletter-form button:hover { transform: translateY(-1px); opacity: 0.92; }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-msg {
    font-size: 13px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
}
.newsletter-msg.ok  { color: #16a34a; background: rgba(22,163,74,0.1); }
.newsletter-msg.err { color: #fca5a5; background: rgba(220,38,38,0.1); }

@media (max-width: 768px) {
    .newsletter-signup { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
    /* Without min-width:0 the 280px input pushes the Subscribe button off-screen */
    .newsletter-form { width: 100%; max-width: 100%; min-width: 0; flex-wrap: nowrap; }
    .newsletter-form input { flex: 1 1 0; min-width: 0; width: 0; }
    .newsletter-form button { flex: 0 0 auto; padding: 12px 18px; }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — login / register
   ═══════════════════════════════════════════════════════════ */
.auth-page {
    padding: 60px 0 80px;
    background: #fafafa;
    min-height: 70vh;
}
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    text-align: center;
}
.auth-sub {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 26px;
}
.auth-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.auth-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Form label with inline "forgot password" link */
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}
.form-label-row .form-label { margin-bottom: 0; }
.forgot-link {
    font-size: 12px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.forgot-link:hover { opacity: 0.7; text-decoration: underline; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--gray);
}
.auth-footer a { color: var(--dark); font-weight: 700; text-decoration: none; margin-inline-start: 6px; }
.auth-footer a:hover { text-decoration: underline; }

/* Header account dot (logged-in indicator) */
.header-account { position: relative; }
.account-dot {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    width: 8px;
    height: 8px;
    background: #16a34a;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════ */
.account-page {
    padding: 30px 0 80px;
    background: #fafafa;
    min-height: 70vh;
}
/* Flash sale badge + price overrides */
.card-badge-sale {
    background: linear-gradient(135deg, #dc2626, #f97316) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(220,38,38,0.35);
    animation: salePulse 2.5s ease-in-out infinite;
}
@keyframes salePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.price-original-sm {
    color: var(--gray-light);
    text-decoration: line-through;
    font-size: 0.78em;
    font-weight: 500;
    margin-inline-start: 6px;
}
.price-original {
    color: var(--gray-light);
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 500;
    margin-inline-start: 12px;
}

/* Flash badge on product page */
.flash-sale-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
    letter-spacing: 0.5px;
}

.flash-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef2f2, #fff5e6);
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.countdown-label {
    font-size: 12.5px;
    color: #991b1b;
    font-weight: 600;
}
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
   ORDER TRACKING PAGE
   ═══════════════════════════════════════════════════════════ */
.track-page {
    padding: 40px 0 80px;
    background: #fafafa;
    min-height: 70vh;
}
.track-page .container {
    max-width: 720px;
    margin: 0 auto;
}
.track-lookup, .track-error {
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 50px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.track-lookup h1, .track-error h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.track-lookup p, .track-error p {
    color: var(--gray);
    font-size: 14px;
}
.track-order {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.track-label {
    font-size: 11.5px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.track-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    font-family: monospace;
}

/* Timeline */
.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 40px;
    padding: 0 4px;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 80px;
}
.timeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    opacity: 0.4;
    transition: all 0.3s;
}
.timeline-step.done .timeline-icon {
    background: #1a1a1a;
    color: #fff;
    opacity: 1;
}
.timeline-step.active .timeline-icon {
    background: #1a1a1a;
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(184,153,104,0.15);
    transform: scale(1.08);
    opacity: 1;
    animation: trackPulse 2s ease-in-out infinite;
}
@keyframes trackPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(184,153,104,0.15); }
    50%      { box-shadow: 0 0 0 12px rgba(184,153,104,0.05); }
}
.timeline-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gray);
    margin-top: 8px;
    line-height: 1.4;
}
.timeline-step.done .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--dark);
}
.timeline-line {
    flex: 1;
    height: 3px;
    background: #f3f4f6;
    margin: 0 -8px -38px;
    border-radius: 2px;
    align-self: center;
    transition: background 0.3s;
}
.timeline-line.done { background: #1a1a1a; }

.track-cancelled {
    text-align: center;
    padding: 30px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    margin: 20px 0;
    color: #991b1b;
}
.track-cancelled h3 { font-size: 18px; margin: 8px 0 6px; }

.track-items {
    background: #fafafa;
    border-radius: 10px;
    padding: 16px;
    margin: 24px 0;
}
.track-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.track-item:last-child { border-bottom: none; }
.track-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.track-item-img img { width: 100%; height: 100%; object-fit: cover; }
.track-totals {
    margin: 20px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
}
.track-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--dark2);
}
.track-total-row {
    border-top: 1px solid var(--border);
    padding-top: 12px !important;
    margin-top: 6px;
    font-size: 17px !important;
    font-weight: 800;
    color: var(--dark) !important;
}
.track-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
}
@media (max-width: 600px) {
    .track-delivery { grid-template-columns: 1fr; }
    .timeline-step { width: 60px; }
    .timeline-icon { width: 44px; height: 44px; font-size: 20px; }
    .timeline-label { font-size: 10px; }
}

/* Points redemption box in checkout */
.points-redeem-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.points-balance {
    font-size: 13.5px;
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.points-balance small {
    color: rgba(146,64,14,0.7);
    font-size: 11.5px;
}
.points-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}
.points-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #b89968;
    flex-shrink: 0;
}
.points-redeem-input[hidden] { display: none !important; }
.points-redeem-input {
    display: block;
    margin-top: 10px;
}

/* Loyalty points card */
.loyalty-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.loyalty-card::before {
    content: '';
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(184,153,104,0.25) 0%, transparent 65%);
    pointer-events: none;
}
.loyalty-icon {
    font-size: 42px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(184,153,104,0.5));
}
.loyalty-content { flex: 1; }
.loyalty-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.loyalty-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 4px;
}
.loyalty-worth {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.welcome-banner {
    background: linear-gradient(135deg, #ecfccb, #d9f99d);
    border: 1px solid #bef264;
    color: #365314;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 600;
    text-align: center;
}
.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.account-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}
.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}
.logout-link:hover { border-color: var(--dark); color: var(--dark); }
.account-flash {
    padding: 12px 16px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    margin-bottom: 18px;
    font-size: 13.5px;
}
.account-layout { display: flex; flex-direction: column; gap: 20px; }
.account-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.account-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.count-badge {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-inline-start: auto;
}
.empty-state-mini {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    font-size: 14px;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.orders-table th, .orders-table td {
    padding: 12px 14px;
    text-align: start;
    border-bottom: 1px solid var(--border);
}
.orders-table th {
    font-weight: 700;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}
.order-status-pending    { background: #fef3c7; color: #92400e; }
.order-status-processing { background: #dbeafe; color: #1e40af; }
.order-status-delivered  { background: #dcfce7; color: #166534; }
.order-status-cancelled  { background: #fee2e2; color: #dc2626; }

/* Guest banner on checkout */
.guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--dark);
}
.guest-banner.welcome { background: #f0fdf4; border-color: #86efac; color: #166534; }
.guest-banner-btn {
    padding: 8px 18px;
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.guest-banner-btn:hover { opacity: 0.8; }

/* Create account toggle in checkout */
.create-account-card {
    background: #fffbeb;
    border-color: #fde68a !important;
}
.create-account-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}
.create-account-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--dark);
}
.create-account-toggle small {
    display: block;
    color: var(--gray);
    font-size: 12.5px;
    margin-top: 4px;
}
.account-pw-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #fde68a;
}

/* Credit line */
.footer-credit {
    text-align: center;
    padding: 14px 0 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
}
.footer-credit a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.footer-credit a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
/* PWA install banner — positioned to the side of the WhatsApp button */
.pwa-banner {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 106px; /* 24px margin + 56px button + 26px gap */
    z-index: 997;
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(236, 62, 160, 0.28);
    border: 1px solid #ffd9ee;
    align-items: center;
    gap: 11px;
}
.pwa-app-icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Rotating pink gradient ring around the phone */
.pwa-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff8fcf, #f63ea0, #c026d3, #ff8fcf, #ff8fcf);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
    animation: pwaRingSpin 2.4s linear infinite;
}
@keyframes pwaRingSpin { to { transform: rotate(360deg); } }
/* Phone gently floats inside the ring */
.pwa-phone {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    animation: pwaPhoneFloat 2.4s ease-in-out infinite;
}
@keyframes pwaPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-ring, .pwa-phone { animation: none; }
}
.pwa-text {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
    color: #e0218a;
    white-space: nowrap;
}
.pwa-install-btn {
    background: linear-gradient(135deg, #ff8fcf, #f63ea0);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(246, 62, 160, 0.38);
    transition: transform 0.15s, box-shadow 0.15s;
}
.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(246, 62, 160, 0.48);
}
.pwa-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 21px;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.pwa-close:hover { color: #4b5563; }
@media (max-width: 768px) {
    /* Hug the content (don't stretch edge-to-edge), but cap the width so the
       banner never overflows the screen. Leaves room for the WhatsApp button. */
    .pwa-banner {
        bottom: 14px;
        inset-inline-end: 82px;
        inset-inline-start: auto;
        max-width: calc(100vw - 94px);
        gap: 8px;
        padding: 7px 10px 7px 7px;
    }
    .pwa-app-icon { width: 42px; height: 42px; }
    .pwa-phone { width: 27px; height: 27px; }
    .pwa-text { font-size: 13px; white-space: normal; }
    .pwa-install-btn { padding: 8px 14px; font-size: 12.5px; }
    .pwa-close { font-size: 19px; padding: 0 2px; }
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.toast-error { background: var(--pink); }
.toast.toast-success { background: #2d7a4f; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-pink { color: var(--pink); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.text-start { text-align: start; }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* ============================================================
   RESPONSIVE - TABLET (1024px)
   ============================================================ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .thumb-item { width: 70px; height: 70px; flex-shrink: 0; aspect-ratio: unset; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .checkout-aside { position: static; }
    .cart-summary { position: static; }
}

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .header-phone { display: none; }
    .header-inner { grid-template-columns: auto 1fr auto; }
}

/* ============================================================
   RESPONSIVE - MOBILE (768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Sticky header: hides on scroll down, reappears on scroll up */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid var(--border);
        transition: transform 0.3s ease, box-shadow 0.25s ease;
    }
    .site-header.scrolled {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    .site-header.header-hidden {
        transform: translateY(-100%);
    }
    .header-inner { grid-template-columns: 1fr auto; padding: 12px 0; }
    .header-center { display: none; }
    /* Compact actions on mobile to fit search + account + cart + lang + menu */
    .header-actions { gap: 8px; }
    .header-lang svg { width: 21px; height: 14px; }
    /* Smaller round action buttons on phones so the logo has room to grow
       and everything stays in harmony */
    .header-icon-btn,
    .header-account,
    .header-cart { width: 36px; height: 36px; }
    .header-icon-btn svg,
    .header-account svg,
    .header-cart svg { width: 18px; height: 18px; }
    .cart-badge { font-size: 9px; min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px; top: -4px; right: -4px; }

    .site-nav {
        display: none !important;
    }
    .site-nav.open {
        display: block !important;
        max-height: 85vh;
        overflow-y: auto;
        background: var(--bg) !important;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        position: relative;
        z-index: 9999;
    }
    .nav-inner { flex-direction: column; align-items: flex-start; padding: 8px 0; }
    .nav-list { flex-direction: column; gap: 0; width: 100%; }
    .nav-list a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
    .nav-list a::after { display: none; }
    .lang-switcher { padding: 12px 20px; }

    /* Mobile: dropdowns expand inline (accordion-style, always visible) */
    .nav-list li.has-children > a { justify-content: space-between; }
    .nav-caret { display: none; }
    .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0;
        min-width: 0; padding: 0; background: var(--bg);
    }
    .nav-dropdown a { padding: 11px 20px 11px 38px; font-size: 13px; }
    [dir="rtl"] .nav-dropdown a { padding: 11px 38px 11px 20px; }

    .mobile-menu-toggle { display: flex; }
    .nav-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--bg);
        z-index: 1;
    }
    .nav-mobile-logo { font-size: 18px; font-weight: 800; color: var(--dark); }
    .nav-close-btn {
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        padding: 4px 8px;
        color: var(--dark);
        line-height: 1;
    }
    .mobile-search {
        padding: 12px 16px;
        display: block;
    }
    .mobile-search form {
        display: flex;
        border: 1.5px solid var(--border);
        border-radius: 50px;
    }
    .mobile-search input {
        flex: 1;
        padding: 9px 16px;
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 14px;
    }
    .mobile-search button {
        padding: 0 14px;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
    }

    .hero-slider { border-radius: var(--radius); }
    .hero-arrow { display: none; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section { padding: 36px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .cart-item {
        grid-template-columns: 76px 1fr auto;
        grid-template-areas:
            "img details remove"
            "img qty     total";
        column-gap: 14px;
        row-gap: 12px;
        padding: 14px 0;
    }
    .cart-item-img { width: 76px; height: 76px; }
    .cart-item-details { align-self: start; padding-top: 2px; }
    .cart-item-remove  { align-self: start; justify-self: end; }
    .cart-qty          { justify-self: start; align-self: center; }
    .cart-item-total   { justify-self: end;   align-self: center; }

    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }

    /* Checkout — mobile adjustments */
    .checkout-title { font-size: 24px; }
    .checkout-steps { max-width: 100%; gap: 0; }
    .step-circle { width: 30px; height: 30px; font-size: 13px; }
    .step-label  { font-size: 11px; }
    .form-card { padding: 20px 18px; border-radius: 12px; }
    .card-header { gap: 10px; margin-bottom: 16px; padding-bottom: 12px; }
    .card-num { width: 28px; height: 28px; font-size: 13px; }
    .card-title { font-size: 15px; }

    .order-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .card-name { font-size: 11px; }
    .product-price-main { font-size: 26px; }
    .add-to-cart-section { flex-direction: column; align-items: stretch; }
    .btn-add-cart { width: 100%; flex: none; height: 58px; font-size: 16px; }

    /* Section titles */
    .section { padding: 28px 0; }
    .section-title { margin-bottom: 20px; }

    /* Product detail page */
    .product-title { font-size: 18px; }
    .tab-btn { padding: 12px 18px; font-size: 13px; }
    .breadcrumb { font-size: 12px; gap: 4px; }
    .flash-countdown { flex-direction: column; gap: 6px; align-items: flex-start; }

    /* Checkout */
    .checkout-title { font-size: 20px; }
    .step-circle { width: 28px; height: 28px; font-size: 12px; }
    .step-label { font-size: 9.5px; }
    .step-bar { min-width: 8px; }

    /* Auth pages */
    .auth-card { padding: 24px 16px; }
    .auth-title { font-size: 22px; }

    /* Account page */
    .account-title { font-size: 20px; }
    .loyalty-card { flex-direction: column; text-align: center; padding: 18px 16px; gap: 10px; }
    .loyalty-value { font-size: 22px; }
    .loyalty-icon { font-size: 34px; }
    .loyalty-card::before { display: none; }

    /* Order pages */
    .order-box { padding: 28px 16px; }
    .order-title { font-size: 22px; }

    /* Track page */
    .timeline-step { width: 54px; }
    .timeline-icon { width: 38px; height: 38px; font-size: 17px; }
    .timeline-label { font-size: 9.5px; }

    /* Cart */
    .cart-header { font-size: 18px; }

    /* Flash sale countdown timer */
    .countdown-timer { font-size: 16px; }
}

/* ============================================================
   MOBILE ENHANCEMENTS — Additional page-specific fixes
   ============================================================ */
@media (max-width: 768px) {

    /* ── Shop page ── */
    .shop-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .shop-filters { width: 100%; }
    .filter-select { min-width: 0; flex: 1; width: 100%; }

    /* Category chips — horizontal scroll instead of wrap */
    .category-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
        margin-bottom: 18px;
    }
    .category-chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }

    /* ── Account page ── */
    .orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .orders-table { min-width: 380px; }
    .loyalty-card { padding: 20px; gap: 14px; }
    .account-section { padding: 18px 16px; }

    /* ── Auth pages ── */
    .auth-card { padding: 28px 18px; }

    /* ── Order pages ── */
    .order-box { padding: 36px 22px; }

    /* ── Track page ── */
    .track-order { padding: 22px 16px; }
    .track-number { font-size: 18px; }

    /* ── Product detail ── */
    .product-tabs { margin-top: 24px; }
    .breadcrumb { margin-bottom: 20px; }

    /* ── Checkout ── */
    .checkout-steps { padding: 0 8px; }

    /* ── Add to cart button — taller on mobile ── */
    .btn-add-cart { height: 56px; font-size: 16px; }

    /* ── WhatsApp button — smaller on mobile ── */
    .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
    [dir="rtl"] .whatsapp-float { right: auto; left: 18px; }

    /* ── Pagination ── */
    .pagination { gap: 4px; flex-wrap: wrap; }
    .page-btn { min-width: 34px; height: 34px; font-size: 13px; }

    /* ── Footer ── */
    .footer-col-title { margin-bottom: 10px; }
    .site-footer { padding: 36px 0 0; }
}
