/* ==========================================================================
   MY GIFT  —  Asosiy dizayn fayli (public sayt)
   Rang sxemasi (logotipga mos): Navy (#04165D) + Gold (#FDC600) + Orange (#FF8B00)
   Shrift: Montserrat oilasi
   ========================================================================== */

:root {
    /* --- Logotip asosiy ranglari --- */
    --primary:        #04165D;   /* asosiy: to'q ko'k (navy) */
    --primary-dark:   #02103F;
    --primary-light:  #123A8A;
    --gold:           #FDC600;   /* qo'shimcha 1: oltin */
    --gold-light:     #FFD83F;
    --gold-soft:      #FFF6D6;
    --orange:         #FF8B00;   /* qo'shimcha 2: to'q sariq */
    --orange-light:   #FFA733;
    --accent:         #FF8B00;

    --ink:            #0C1330;
    --ink-soft:       #4A5170;
    --cream:          #F7F8FD;   /* sayt foni (yengil, minimalistik) */
    --surface:        #FFFFFF;
    --muted:          #8A90A8;
    --border:         #E5E8F2;
    --success:        #16a34a;
    --danger:         #dc2626;
    --warning:        #d97706;
    --info:           #2563eb;

    --shadow-sm:  0 2px 8px rgba(4, 22, 93, .06);
    --shadow-md:  0 8px 24px rgba(4, 22, 93, .10);
    --shadow-lg:  0 18px 50px rgba(4, 22, 93, .16);
    --shadow-gold:0 10px 30px rgba(253, 198, 0, .32);

    --radius:    16px;
    --radius-sm: 10px;
    --radius-lg: 26px;

    --container: 1280px;
    --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Minimalistik, "qiziqroq" fon — yumshoq rangli dog'lar + nozik to'r */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(38% 38% at 12% 8%, rgba(4, 22, 93, .06), transparent 70%),
        radial-gradient(34% 34% at 88% 14%, rgba(253, 198, 0, .10), transparent 70%),
        radial-gradient(40% 40% at 80% 92%, rgba(255, 139, 0, .07), transparent 70%);
}
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image:
        radial-gradient(rgba(4, 22, 93, .035) 1px, transparent 1px);
    background-size: 26px 26px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--ink); letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { position: relative; }

.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

/* ----- Bo'lim sarlavhalari ----- */
.section-pad { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; font-size: 12.5px;
    color: var(--orange); margin-bottom: 14px;
    padding: 6px 16px; border: 1px solid rgba(255, 139, 0, .25); border-radius: 100px;
    background: rgba(255, 139, 0, .06);
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ==========================================================================
   TUGMALAR
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 14px 28px; border-radius: 100px; border: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(4, 22, 93, .30); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4, 22, 93, .40); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--orange)); color: var(--primary); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255, 139, 0, .45); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
/* tugmadagi yorug'lik effekti */
.btn::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: all .35s var(--ease);
    background: rgba(247, 248, 253, 0);
}
.navbar.scrolled {
    padding: 11px 0; background: rgba(247, 248, 253, .88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 23px; color: var(--ink); }
.logo img { height: 60px; width: auto; transition: height 0.3s ease; }
.logo-dark { display: block; }
.logo-light { display: none; }
.navbar.navbar-transparent-allowed:not(.scrolled) .logo-dark { display: none !important; }
.navbar.navbar-transparent-allowed:not(.scrolled) .logo-light { display: block !important; }
.navbar.scrolled .logo-dark { display: block !important; }
.navbar.scrolled .logo-light { display: none !important; }
.navbar:not(.navbar-transparent-allowed):not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.navbar-transparent-allowed):not(.scrolled) .logo-light { display: none !important; }
.logo .mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(4, 22, 93, .35);
}
.logo b { color: var(--gold); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
    font-weight: 500; font-size: 15px; padding: 9px 15px; border-radius: 100px;
    color: var(--ink-soft); transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(4, 22, 93, .06); }

.nav-actions { display: flex; align-items: center; gap: 12px; transition: margin-right 0.3s ease; }
@media (min-width: 1025px) {
    .nav-actions { margin-right: 40px; }
}
.cart-link {
    position: relative; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm);
    color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s;
}
.cart-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary); }
.cart-link svg { width: 21px; height: 21px; }
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
    background: var(--orange); color: #fff; border-radius: 100px; font-size: 11.5px;
    font-weight: 700; display: grid; place-items: center; border: 2px solid var(--cream);
}
.cart-badge.bump { animation: badgeBump .4s var(--ease); }
@keyframes badgeBump { 0%{transform:scale(1)} 40%{transform:scale(1.45)} 100%{transform:scale(1)} }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 4px; transition: .3s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
    background: radial-gradient(120% 120% at 80% 0%, #0A2472 0%, #04165D 55%, #020E3D 100%);
    color: #fff;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 18% 30%, rgba(253,198,0,.16), transparent 38%),
                      radial-gradient(circle at 85% 75%, rgba(255,139,0,.18), transparent 42%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-grid-centered {
    display: block !important;
}
.hero-grid-centered .hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-grid-centered .hero-cta {
    justify-content: center;
}
.hero-grid-centered .hero-stats {
    justify-content: center;
}
.hero-text {
    max-width: 540px;
    margin: 0;
    text-align: left;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 100px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(253,198,0,.35);
    color: var(--gold-light); font-size: 13.5px; font-weight: 600; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(253,198,0,.2); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; margin-bottom: 24px; }
.hero h1 .accent {
    background: linear-gradient(120deg, var(--gold), var(--orange)); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 17.5px; color: rgba(255,255,255,.80); max-width: 540px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; justify-content: flex-start; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; justify-content: flex-start; }
.hero-stats .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--gold-light); }
.hero-stats .lbl { font-size: 13.5px; color: rgba(255,255,255,.6); }
.hero-promo-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
}
.hero-promo-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff3e3e, #ff6b6b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 100px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
    text-transform: uppercase;
    font-family: var(--font-head);
}

/* hero o'ng tomondagi kartochkalar */
.hero-visual { position: relative; height: 460px; }
.hero-card {
    position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite;
}
.hero-card .ic {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--gold), var(--orange)); color: var(--primary);
}
.hero-card .ic svg { width: 26px; height: 26px; }
.hero-card h4 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.hero-card p { font-size: 13.5px; color: rgba(255,255,255,.65); margin: 0; }
.hc1 { top: 10px; left: 0; width: 240px; }
.hc2 { top: 150px; right: 0; width: 250px; animation-delay: 1.5s; }
.hc3 { bottom: 0; left: 40px; width: 230px; animation-delay: 3s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ==========================================================================
   XIZMATLAR
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--orange)); transform: scaleX(0);
    transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-ic {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(4,22,93,.10), rgba(255,139,0,.14)); color: var(--primary);
    transition: transform .3s var(--ease);
}
.service-card:hover .service-ic { transform: rotate(-8deg) scale(1.08); }
.service-ic svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   MAHSULOTLAR
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    max-width: 1200px; /* Expand max-width slightly for 4 columns */
    margin: 0 auto;
    justify-content: center;
}
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex; flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    cursor: pointer !important;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-thumb {
    position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gold-soft);
    display: grid; place-items: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-thumb .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    opacity: .5;
}
.product-thumb .placeholder svg {
    width: 64px !important;
    height: 64px !important;
}
.product-cat {
    position: absolute; top: 12px; left: 12px; background: rgba(12,19,48,.78); color: #fff;
    font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 18.5px; margin-bottom: 7px; font-family: var(--font-body); font-weight: 700; }
.product-body .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.price small { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.add-cart-btn, .init-add-cart-btn, .confirm-add-cart-btn {
    width: 100%; height: 48px; border: none; cursor: pointer;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .25s, transform .25s var(--ease); font-weight: 700; font-size: 14.5px;
}
.add-cart-btn:hover, .init-add-cart-btn:hover, .confirm-add-cart-btn:hover { background: var(--orange); }
.add-cart-btn svg, .init-add-cart-btn svg, .confirm-add-cart-btn svg { width: 18px; height: 18px; }

/* mahsulot kartochkasidagi miqdor steppe ri (korzinkadagi son) */
.cart-control { display: flex; align-items: center; width: 100%; }
.card-stepper {
    display: none; align-items: center; justify-content: space-between; width: 100%; height: 48px;
    overflow: hidden; background: #fff;
}
.card-stepper.active { display: flex; }
.card-stepper button {
    width: 48px; height: 48px; border: none; background: var(--cream); cursor: pointer;
    font-size: 20px; font-weight: 700; color: var(--primary); transition: background .2s, color .2s;
    display: grid; place-items: center;
}
.card-stepper button:hover { background: var(--primary); color: #fff; }
.card-stepper .q-val { flex: 1; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); }
.add-to-cart.has-qty .add-cart-btn { display: none; }

/* ----- Filtr panel ----- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: #fff;
    font-size: 14px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box { position: relative; }
.search-box input {
    padding: 11px 16px 11px 42px; border-radius: 100px; border: 1.5px solid var(--border);
    background: #fff; font-size: 14px; font-family: var(--font-body); width: 240px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--gold); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0A2472, #04165D); cursor: pointer; box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* "So'nggi ishlarimiz" — ustiga kelganda kattalashadi */
.portfolio-item:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); z-index: 3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.portfolio-item:hover img { transform: scale(1.12); }
.portfolio-empty-ic { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(253,198,0,.45); }
.portfolio-empty-ic svg { width: 56px; height: 56px; }
.portfolio-overlay {
    position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(2,14,63,.94) 0%, rgba(2,14,63,.4) 50%, transparent 100%);
    opacity: 0; transform: translateY(14px); transition: all .4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay .tag { color: var(--gold-light); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.portfolio-overlay h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.portfolio-overlay p { color: rgba(255,255,255,.78); font-size: 14px; }

/* ==========================================================================
   AYLANUVCHI LENTA (marquee) — mijozlar va otzivlar uchun
   ========================================================================== */
.marquee {
    overflow: hidden; width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--marquee-speed, 30s) linear infinite;
}
.marquee-group {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}
.marquee-group > * {
    margin-right: 26px;
}
/* o'ngdan chapga, to'xtovsiz, bir tekisda */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   "KIMLAR ISHONADI" — mijozlar lentasi
   ========================================================================== */
.clients-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.client-logo {
    flex-shrink: 0; display: grid; place-items: center; height: 84px; min-width: 180px; padding: 0 30px;
    background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink-soft);
    transition: color .3s, border-color .3s, box-shadow .3s; text-align: center;
}
.client-logo:hover { color: var(--primary); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.client-logo img { max-height: 52px; width: auto; }

/* ==========================================================================
   OTZIVLAR (mijozlar fikri + reyting)
   ========================================================================== */
.reviews-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rating-summary {
    display: inline-flex; align-items: center; gap: 14px; margin: 0 auto 14px;
    padding: 12px 24px; border-radius: 100px; background: var(--gold-soft); border: 1px solid rgba(253,198,0,.35);
}
.rating-summary .score { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.rating-summary .count { font-size: 14px; color: var(--ink-soft); }

/* yulduzlar */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.stars .on { fill: var(--gold); color: var(--gold); }
.stars .off { fill: none; color: #D9DCE8; }

.review-card {
    flex-shrink: 0; width: 340px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.review-card .r-head { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 700; font-size: 18px;
}
.review-card .r-name { font-weight: 700; font-size: 15.5px; }
.review-card .r-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* Otziv qoldirish formasi */
.review-form-wrap { max-width: 640px; margin: 48px auto 0; }
.review-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.review-form h3 { font-size: 22px; margin-bottom: 6px; text-align: center; }
.review-form .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.star-input { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; direction: ltr; }
.star-input button {
    background: none; border: none; cursor: pointer; padding: 2px; line-height: 0; color: #D9DCE8; transition: transform .15s var(--ease), color .15s;
}
.star-input button svg { width: 34px; height: 34px; }
.star-input button:hover { transform: scale(1.15); }
.star-input button.active { color: var(--gold); }
.star-input button.active svg { fill: var(--gold); }

/* ==========================================================================
   STATISTIKA
   ========================================================================== */
.stats-band { background: linear-gradient(135deg, #04165D, #0A2472); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-family: var(--font-head); font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: var(--gold-light); }
.stat-item .stat-lbl { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 6px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-band { padding: 80px 0; }
.cta-inner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; color: #fff;
    position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(253,198,0,.3), transparent 70%); border-radius: 50%;
}
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; position: relative; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-inner .hero-cta { justify-content: center; margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #020E3D; color: rgba(255,255,255,.72); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer .logo img { height: 46px; }
.footer-about p { font-size: 14.5px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14.5px; transition: color .2s, padding .2s; }
.footer ul a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact li { display: flex; gap: 11px; font-size: 14.5px; margin-bottom: 13px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 11px; margin-top: 18px; }
.socials a {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(255,255,255,.07); color: #fff; transition: all .25s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--primary); transform: translateY(-4px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: var(--gold-light); }

/* ==========================================================================
   FORMALAR (umumiy)
   ========================================================================== */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.form-group label .req { color: var(--orange); }
.form-control {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(253,198,0,.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ==========================================================================
   FLASH xabarlar
   ========================================================================== */
.flash-wrap { position: fixed; top: 84px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash {
    padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500;
    border-left: 4px solid var(--info); animation: flashIn .4s var(--ease);
}
.flash.success { border-color: var(--success); }
.flash.danger  { border-color: var(--danger); }
.flash.warning { border-color: var(--warning); }
.flash.info    { border-color: var(--info); }
.flash .ic { width: 22px; height: 22px; flex-shrink: 0; }
.flash.success .ic { color: var(--success); }
.flash.danger .ic { color: var(--danger); }
.flash.warning .ic { color: var(--warning); }
.flash.info .ic { color: var(--info); }
@keyframes flashIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.flash.hide { animation: flashOut .4s var(--ease) forwards; }
@keyframes flashOut { to { opacity: 0; transform: translateX(40px); } }

/* ==========================================================================
   SAHIFA BOSHI (page hero / breadcrumb)
   ========================================================================== */
.page-hero {
    padding: 150px 0 70px; text-align: center;
    background: radial-gradient(120% 120% at 50% 0%, #0A2472, #04165D);
    color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(253,198,0,.16), transparent 40%);
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; position: relative; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 17px; position: relative; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); position: relative; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ==========================================================================
   CART / CHECKOUT
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 30px; align-items: start; }
.cart-item {
    display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
    transition: box-shadow .25s, opacity .3s, transform .3s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item.removing { opacity: 0; transform: translateX(30px); }
.cart-item .thumb { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gold-soft); display: grid; place-items: center; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .thumb svg { width: 36px; height: 36px; color: var(--orange); opacity: .5; }
.cart-item h4 { font-family: var(--font-body); font-size: 16.5px; margin-bottom: 4px; }
.cart-item .unit { color: var(--muted); font-size: 14px; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 100px; overflow: hidden; }
.qty-box input { width: 46px; text-align: center; border: none; outline: none; font-size: 15px; font-family: var(--font-body); font-weight: 700; padding: 7px 0; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-box button { width: 36px; height: 38px; border: none; background: var(--cream); cursor: pointer; font-size: 18px; font-weight: 700; color: var(--primary); transition: background .2s, color .2s; }
.qty-box button:hover { background: var(--primary); color: #fff; }
.remove-link { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; cursor: pointer; background: none; border: none; font-family: var(--font-body); padding: 0; }
.remove-link:hover { color: var(--danger); }

.summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.summary h3 { font-size: 20px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 15px; color: var(--ink-soft); border-bottom: 1px dashed var(--border); }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; margin-top: 4px; }
.summary-total span { font-size: 16px; font-weight: 600; }
.summary-total .price { font-size: 26px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 86px; height: 86px; color: var(--border); margin: 0 auto 22px; }
.empty-state h3 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 26px; }

/* ==========================================================================
   MAHSULOT TAFSILOTI
   ========================================================================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--gold-soft); aspect-ratio: 1; display: grid; place-items: center; box-shadow: var(--shadow-md); position: sticky; top: 90px; align-self: start; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-image .placeholder svg { width: 96px; height: 96px; color: var(--orange); opacity: .5; }
.pd-info .badge-cat { display: inline-block; background: var(--gold-soft); color: var(--orange); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; }
.pd-info h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.pd-price { font-family: var(--font-head); font-size: 38px; font-weight: 800; color: var(--primary); margin-bottom: 22px; }
.pd-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.pd-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.pd-features { list-style: none; border-top: 1px solid var(--border); padding-top: 24px; }
.pd-features li { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; font-size: 15px; color: var(--ink-soft); }
.pd-features svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; }

/* ==========================================================================
   ANIMATSIYALAR (scroll reveal + sahifa ochilishi)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.left.visible, .reveal.right.visible { transform: translateX(0); }
.reveal.zoom { transform: scale(.92); }
.reveal.zoom.visible { transform: scale(1); }
/* ketma-ket (stagger) kechikishlar */
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.4s} .d6{transition-delay:.48s}

/* sahifa yuklanganda chiroyli ochilish animatsiyasi */
main { animation: pageIn .7s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { max-width: 100%; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-promo-column { align-items: center; }
    .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cart-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .pd-image { position: static; }
    .summary { position: static; }
}
@media (max-width: 760px) {
    .section-pad { padding: 64px 0; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
        background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px;
        box-shadow: var(--shadow-lg); transition: right .4s var(--ease); gap: 4px; }
    .nav-links.open { right: 0; }
    .nav-links a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
    .burger { display: flex; z-index: 1001; }
    .burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .services-grid, .portfolio-grid, .stats-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .cta-inner { padding: 44px 24px; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .flash-wrap { left: 16px; right: 16px; max-width: none; }
    .review-card { width: 280px; }
}

/* harakatni kamaytirish rejimi */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   YANGI QO'SHILGAN STYLLAR (DIZAYN VA AKSIYA ENHANCEMENTS)
   ========================================================================== */

/* Navbar shaffof bo'lganda (tepada turganda) ranglar - faqat hero bor sahifalarda */
.navbar.navbar-transparent-allowed:not(.scrolled) {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    padding: 18px 0;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .logo {
    color: #fff !important;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.8) !important;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .nav-links a:hover,
.navbar.navbar-transparent-allowed:not(.scrolled) .nav-links a.active {
    color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .cart-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .cart-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--gold) !important;
}
.navbar.navbar-transparent-allowed:not(.scrolled) .burger span {
    background: #fff !important;
}

/* Hamkorlar bloki (Qoraytirilgan va Glassmorphism dizayn) */
.clients-strip {
    background: linear-gradient(135deg, #04165D, #020e3d) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 80px 0 !important;
}
.clients-strip .section-head h2 {
    color: #fff !important;
}
.clients-strip .section-head p {
    color: rgba(255, 255, 255, 0.7) !important;
}
.client-logo {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s var(--ease) !important;
}
.client-logo:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 8px 32px 0 rgba(253, 198, 0, 0.2) !important;
}
.client-logo img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)) !important;
    transition: filter 0.3s ease !important;
}
.client-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7)) !important;
}

/* Mahsulot kartochkasidagi Aksiya banti (badge) */
.product-card {
    position: relative !important;
}
.promo-badge {
    position: absolute !important;
    top: 15px;
    right: -6px;
    background: linear-gradient(135deg, var(--orange), #ff4500) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.promo-badge::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    border-top: 5px solid #b33000;
    border-right: 5px solid transparent;
}

/* Aksiya Banneri va Taymer */
.promo-section {
    padding: 60px 0 30px !important;
}
.promo-banner-link {
    display: block;
    width: 100%;
}
.promo-banner {
    background: radial-gradient(circle at 20% 30%, #123A8A 0%, #04165D 60%, #02103F 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 80%, rgba(253, 198, 0, 0.12), transparent 45%),
                      radial-gradient(circle at 10% 90%, rgba(255, 139, 0, 0.15), transparent 45%);
    pointer-events: none;
}
.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(4, 22, 93, 0.35);
    border-color: rgba(253, 198, 0, 0.3);
}
.promo-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), #ff4500);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 139, 0, 0.3);
}
.promo-banner h2 {
    color: #fff;
    font-size: clamp(26px, 3.5vw, 42px);
    margin-bottom: 12px;
}
.promo-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 28px;
}
/* ---- 10. Aksiya orqaga sanash taymeri va yangi karusel ---- */
.promo-slider-wrapper {
    position: relative;
    overflow: visible;
    padding-right: 40px;
    padding-bottom: 30px;
    width: 100%;
}
.promo-slider {
    position: relative;
    width: 100%;
    height: 440px;
    perspective: 1000px;
}
.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s ease, 
                visibility 0.8s ease;
    transform-style: preserve-3d;
    z-index: 1;
}
.promo-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}
.promo-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 50px;
    background-repeat: no-repeat;
    background-color: #04165D;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(4, 22, 93, 0.85) 0%, rgba(4, 22, 93, 0.3) 60%, rgba(4, 22, 93, 0.75) 100%);
    z-index: 1;
}
.promo-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
    text-align: left;
}
.promo-banner .promo-countdown {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(4, 22, 93, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    gap: 16px;
    z-index: 2;
    margin: 0;
}
.promo-banner .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    min-width: 60px;
    box-shadow: none;
    animation: none;
}
.promo-banner .num-wrapper {
    height: 46px;
    overflow: hidden;
    position: relative;
    display: block;
    min-width: 44px;
    text-align: center;
}
.promo-banner .countdown-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
    line-height: 46px;
    display: block;
    font-family: var(--font-head);
    text-shadow: 0 2px 8px rgba(253, 198, 0, 0.2);
}
.promo-banner .countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-weight: 600;
}

/* Odometer rolling animation */
.num-exit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideOutDown 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.num-enter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideInDown 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes slideOutDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}
@keyframes slideInDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Slider Arrows */
.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.promo-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.promo-arrow:hover {
    background: var(--gold);
    color: #04165D;
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(253, 198, 0, 0.3);
}
.promo-arrow.prev { left: 20px; }
.promo-arrow.next { right: 20px; }
.promo-arrow.prev:hover svg { transform: translateX(-2px); }
.promo-arrow.next:hover svg { transform: translateX(2px); }

/* Confetti Popper Particles */
.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 99;
    border-radius: 2px;
    opacity: 0;
}
@keyframes burstParticle {
    0% {
        transform: translate(0, 0) scale(1.2) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(var(--rot));
        opacity: 0;
    }
}

/* Hero Custom Floating Images */
.hero-floating-img {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: pointer;
    z-index: 3;
}
.hero-floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-floating-img:hover {
    transform: scale(1.08) translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
}
.hero-floating-img.hfi1 {
    top: -12%;
    left: -2%;
    width: 200px;
    height: 200px;
    animation: floatSlow 6s ease-in-out infinite alternate;
}
.hero-floating-img.hfi2 {
    top: 5%;
    right: -8%;
    width: 180px;
    height: 180px;
    animation: floatMedium 5s ease-in-out infinite alternate-reverse;
}
.hero-floating-img.hfi3 {
    bottom: -8%;
    left: 12%;
    width: 220px;
    height: 220px;
    animation: floatFast 4s ease-in-out infinite alternate;
}
.hero-floating-img.hfi4 {
    bottom: 18%;
    right: 12%;
    width: 160px;
    height: 160px;
    animation: floatSlow 7s ease-in-out infinite alternate;
}

@keyframes floatSlow {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes floatMedium {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes floatFast {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-18px) rotate(2deg); }
}

/* Bizning Jamoa (Our Team) Marquee Card */
.team-member-card {
    flex-shrink: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    margin: 15px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.team-member-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.tm-photo {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.tm-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.tm-empty-img {
    width: 100%;
    height: 380px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
}
.tm-info {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tm-info h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}
.tm-info p {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

/* ==========================================================================
   PAGE TRANSITION & ENTRANCE ANIMATIONS
   ========================================================================== */

/* Page Transition 3-Layer Curtain Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}
.transition-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.12s cubic-bezier(0.85, 0, 0.15, 1);
}
.layer-1 {
    background: var(--gold);
    z-index: 99997;
}
.layer-2 {
    background: var(--orange);
    z-index: 99998;
}
.layer-3 {
    background: var(--ink);
    z-index: 99999;
}

/* ---------------- FORWARD (Right to Left) ---------------- */
/* Default starting position for forward leaving (hidden on the right) */
.page-transition-overlay:not(.leaving-backward):not(.loaded-backward) .transition-layer {
    transform: translateX(100%);
}

/* Entering: slide out to the left (0 to -100%) */
.page-transition-overlay.loaded-forward .layer-1 { transform: translateX(-100%); transition-delay: 0.06s; }
.page-transition-overlay.loaded-forward .layer-2 { transform: translateX(-100%); transition-delay: 0.03s; }
.page-transition-overlay.loaded-forward .layer-3 { transform: translateX(-100%); transition-delay: 0s; }

/* Leaving: slide in from the right to cover the screen (100% to 0) */
.page-transition-overlay.leaving-forward .layer-1 { transform: translateX(0); transition-delay: 0s; }
.page-transition-overlay.leaving-forward .layer-2 { transform: translateX(0); transition-delay: 0.03s; }
.page-transition-overlay.leaving-forward .layer-3 { transform: translateX(0); transition-delay: 0.06s; }

/* ---------------- BACKWARD (Left to Right) ---------------- */
/* Entering: slide out to the right (0 to 100%) */
.page-transition-overlay.loaded-backward .layer-1 { transform: translateX(100%); transition-delay: 0.06s; }
.page-transition-overlay.loaded-backward .layer-2 { transform: translateX(100%); transition-delay: 0.03s; }
.page-transition-overlay.loaded-backward .layer-3 { transform: translateX(100%); transition-delay: 0s; }

/* Leaving: slide in from the left to cover the screen (-100% to 0) */
.page-transition-overlay.leaving-backward .layer-1 { transform: translateX(0); transition-delay: 0s; }
.page-transition-overlay.leaving-backward .layer-2 { transform: translateX(0); transition-delay: 0.03s; }
.page-transition-overlay.leaving-backward .layer-3 { transform: translateX(0); transition-delay: 0.06s; }

/* Hero Section Entrance Animations (Staggered) */
.hero-text .hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.hero-text h1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.hero-text p {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.hero-text .hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
.hero-text .hero-stats {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
.hero-promo-column {
    opacity: 0;
    animation: fadeInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* Staggered Scroll Reveal Delays for Grids */
.services-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal.visible:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal.visible:nth-child(3) { transition-delay: 0.25s; }
.services-grid .reveal.visible:nth-child(4) { transition-delay: 0.35s; }
.services-grid .reveal.visible:nth-child(5) { transition-delay: 0.45s; }
.services-grid .reveal.visible:nth-child(6) { transition-delay: 0.55s; }

.products-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.products-grid .reveal.visible:nth-child(2) { transition-delay: 0.15s; }
.products-grid .reveal.visible:nth-child(3) { transition-delay: 0.25s; }

.portfolio-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .reveal.visible:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .reveal.visible:nth-child(3) { transition-delay: 0.25s; }

.stats-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.stats-grid .reveal.visible:nth-child(2) { transition-delay: 0.15s; }
.stats-grid .reveal.visible:nth-child(3) { transition-delay: 0.25s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translate3d(40px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Floating History Navigation Buttons (Fixed at Bottom-Left) */
.nav-history-buttons {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 9999;
}
.history-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(4, 22, 93, 0.1);
    box-shadow: 0 8px 32px rgba(4, 22, 93, 0.12);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.history-btn svg {
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
}
.history-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 36px rgba(4, 22, 93, 0.25);
}
.history-btn.history-back:hover svg {
    transform: translateX(-3px);
}
.history-btn.history-forward:hover svg {
    transform: translateX(3px);
}

/* Responsive adjustment for mobile */
@media (max-width: 1024px) {
    .nav-history-buttons {
        left: 16px;
        bottom: 16px;
        gap: 10px;
    }
    .history-btn {
        width: 44px;
        height: 44px;
    }
}

/* Make entire product card clickable except bottom cart controls */
.product-card {
    position: relative;
}
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 2;
}
.product-card .cart-control {
    position: relative;
    z-index: 3;
}

/* Card Image Slider */
.card-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.card-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}
.card-slider-arrow svg {
    width: 12px;
    height: 12px;
}
.product-card:hover .card-slider-arrow {
    opacity: 1;
    pointer-events: auto;
}
.card-slider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.card-prev { left: 8px; }
.card-next { right: 8px; }
.card-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}
.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}
.card-dot.active {
    background: var(--primary);
    width: 12px;
    border-radius: 4px;
}

/* Search Suggestions & Button */
.search-btn-blue {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}
.search-btn-blue:hover {
    background: var(--orange);
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--ink);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Pagination Styles */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    width: 100%;
}
.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page-num, .page-arrow {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-decoration: none;
}
.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-num:not(.active):hover, .page-arrow:not(.disabled):hover {
    border-color: var(--primary);
    color: var(--primary);
}
.page-arrow.disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.65;
    background: #f8fafc;
}

/* Floating Message Widget */
.message-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
}
.msg-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(4, 22, 93, 0.3);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: pulseBtn 2s infinite;
}
.msg-widget-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}
.msg-widget-btn:hover {
    background: var(--orange);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 36px rgba(255, 139, 0, 0.4);
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(4, 22, 93, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(4, 22, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 22, 93, 0); }
}
.msg-widget-box {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 320px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(4, 22, 93, 0.2);
    border: 1px solid var(--border);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9998;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
.msg-widget-box.open {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}
.msg-widget-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.msg-widget-header h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #fff;
}
.msg-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}
.msg-close-btn:hover {
    color: #fff;
}
.msg-widget-body {
    padding: 20px;
}
.widget-form-group {
    margin-bottom: 14px;
    text-align: left;
}
.widget-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.widget-form-group input, .widget-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-body);
}
.widget-form-group input:focus, .widget-form-group textarea:focus {
    border-color: var(--primary);
}
.widget-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.widget-submit-btn:not(:disabled):hover {
    background: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 139, 0, 0.3);
}
.widget-submit-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}
.widget-success-msg {
    text-align: center;
    padding: 30px 10px;
}
.widget-success-msg svg {
    width: 48px;
    height: 48px;
    color: #22c55e;
    margin-bottom: 14px;
}
.widget-success-msg p {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 14, 61, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}
.lightbox-modal.show {
    display: flex;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    object-fit: contain;
}
.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 44px;
    font-weight: bold;
    transition: 0.2s;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--gold);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.cart-bounce {
    animation: cartBounce 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}
.btn-clear-cart:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}


