/* =========================================================
   CreatinePro — phone-first refinements + redesigned "Zgjedh sipas qëllimit".
   Loaded last. Desktop rules are only touched where stated (goal section, card brand label).
   ========================================================= */

/* ---------- Product cards: brand label removed on every device (brand stays on the packaging + product page) ---------- */
.card-brand { display: none; }
.lbl-s { display: none; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Burger icon (menu button sits at the right end of the header on phones/tablets) ---------- */
.burger { position: relative; display: block; width: 22px; height: 16px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 7px; } .burger i:nth-child(3) { top: 14px; right: 6px; }
.menu-btn.is-active .burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-btn.is-active .burger i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.menu-btn.is-active .burger i:nth-child(3) { top: 7px; right: 0; transform: rotate(-45deg); }

/* ---------- Mobile menu: full-screen (approved reference design) ---------- */
.mnav-scrim { display: none !important; }
.mobile-nav { position: fixed; inset: 0; z-index: 95; width: auto; display: flex; flex-direction: column; overflow: hidden; animation: none; isolation: isolate;
  background: #060709; opacity: 0; visibility: hidden; transform: translateY(-10px); overscroll-behavior: contain;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
/* diagonal light streaks in the corners (pure CSS, no image) */
.mnav-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mnav-glow::before, .mnav-glow::after { content: ""; position: absolute; width: 140px; height: 160%; transform: rotate(38deg);
  background: linear-gradient(90deg, transparent 0 40%, rgba(29, 99, 242, .55) 47%, rgba(130, 205, 255, .9) 50%, rgba(29, 99, 242, .55) 53%, transparent 60% 100%),
              linear-gradient(90deg, transparent 0 74%, rgba(29, 99, 242, .35) 79%, rgba(20, 169, 242, .6) 80%, transparent 86%);
  filter: blur(.4px); opacity: .55; }
.mnav-glow::before { top: -80%; left: -88px; }
.mnav-glow::after { bottom: -78%; right: -70px; opacity: .7; }
.mobile-nav-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; margin: 0 22px; padding: 0 0 0 2px; border-bottom: 1px solid var(--line-2); }
.mobile-nav .logo-word { font-size: 22px; }
.mobile-nav .logo-bolt { width: 24px; height: 32px; }
.mnav-close { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--text); background: rgba(7, 8, 10, .6); }
.mnav-close .ic { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.mnav-close:hover .ic { transform: rotate(90deg); }
.mnav-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 22px 8px; -webkit-overflow-scrolling: touch; }

.mobile-links { padding: 0; }
.mobile-links > li { border-bottom: 1px solid var(--line); }
.mobile-links > li:last-child { border-bottom: 0; }
.mnav-row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 58px; padding: 0 12px 0 14px; margin: 0;
  font-family: var(--ui); font-weight: 500; font-size: 18px; letter-spacing: -.005em; color: var(--text); text-align: left; border-radius: 9px;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.mnav-row > span { flex: 1; min-width: 0; }
.mnav-row .mi { width: 26px; height: 26px; flex-shrink: 0; color: var(--text-2); transition: color var(--t-fast) ease, transform var(--t) var(--ease-out); }
.mnav-row .chev-r { width: 20px; height: 20px; flex-shrink: 0; color: #8E95A0; transform: rotate(-90deg); transition: transform var(--t) var(--ease-out), color var(--t-fast) ease; }
.mnav-row:hover .chev-r, .mnav-row:focus-visible .chev-r { transform: rotate(-90deg) translateY(3px); color: var(--text); }
.mnav-row:active { background: rgba(255, 255, 255, .04); }
.mnav-row:active .mi { transform: scale(.92); }
/* current page: blue left bar, soft blue gradient, blue label */
.mnav-row.is-active { color: var(--accent); font-weight: 600; background: linear-gradient(90deg, rgba(20, 120, 242, .22), rgba(20, 120, 242, .04) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px rgba(20, 169, 242, .32); }
.mnav-row.is-active .mi { color: var(--accent); }
.mobile-links > li:has(> .mnav-row.is-active), .mobile-links > li:has(+ li > .mnav-row.is-active) { border-bottom-color: transparent; }
/* "Dyqani" accordion: chevron turns down; panel height eases open */
#mShopToggle[aria-expanded="true"] .chev-r { transform: rotate(0deg); color: var(--accent); }
.m-shop-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s var(--ease-out), opacity .24s ease; }
.m-shop-panel.is-open { grid-template-rows: 1fr; opacity: 1; }
.m-shop-in { min-height: 0; overflow: hidden; display: grid; gap: 2px; padding: 0 0 0 56px; }
.m-shop-panel.is-open .m-shop-in { padding-bottom: 10px; }
.m-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px; font-size: 16px; color: var(--text-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.m-cat small { font-size: 13px; color: var(--muted); }
.m-cat:active, .m-cat:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.m-cat.m-all { color: var(--accent); font-weight: 600; }
.m-cat.m-all .ic { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.m-cat.m-all:hover .ic { transform: translateX(3px); }

/* promo card (copy = approved hero eyebrow; photo = real product) */
.mnav-promo { position: relative; display: flex; align-items: center; min-height: 150px; margin: 22px 0 26px; padding: 20px 20px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: 16px; background: radial-gradient(120% 140% at 100% 50%, rgba(20, 110, 242, .28), transparent 55%), #0B0D12; }
.mnav-promo::before { content: ""; position: absolute; z-index: -1; top: -40%; right: 18%; width: 46px; height: 190%; transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, rgba(40, 140, 255, .55) 45%, rgba(170, 220, 255, .9) 50%, rgba(40, 140, 255, .55) 55%, transparent); opacity: .5; }
.mp-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 64%; }
.mp-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.mp-title { margin-top: 2px; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 6.6vw, 27px); line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.mp-text { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.mp-cta { display: inline-flex; align-items: center; gap: 10px; height: 38px; margin-top: 14px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 10px; font-size: 14px; font-weight: 500; color: #fff;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.mp-cta .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.mnav-promo:hover .mp-cta, .mnav-promo:active .mp-cta { background: #fff; color: var(--bg); }
.mnav-promo:hover .mp-cta .ic { transform: translateX(3px); }
.mnav-promo img { position: absolute; right: -6px; top: 50%; width: 44%; max-width: 190px; height: auto; transform: translateY(-50%) rotate(8deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); transition: transform .5s var(--ease-out); }
.mnav-promo:active img { transform: translateY(-50%) rotate(8deg) scale(.98); }

.mobile-links-2 { border-top: 1px solid var(--line-2); padding-top: 8px; }
.mnav-row.sm { min-height: 52px; font-size: 16.5px; font-weight: 400; color: var(--text-2); }
.mnav-row.sm .mi { width: 24px; height: 24px; }

.mobile-nav-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 22px; padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: none; }
.mobile-nav-foot:not(:has(.mnav-ig:not([hidden]))) { justify-content: flex-end; }
.mnav-ig { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--text); transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
.mnav-ig[hidden] { display: none; }
.mnav-ig .ic { width: 22px; height: 22px; }
.mnav-ig:hover { border-color: var(--accent); color: var(--accent); }
.mnav-ig:active { transform: scale(.94); }
.mobile-nav .lang-footer { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 11px; }
.mobile-nav .lang-footer button { min-width: 48px; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.mobile-nav .lang-footer button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-height: 640px) { .mnav-row { min-height: 50px; } .mnav-promo { min-height: 128px; margin: 16px 0 18px; } }
@media (min-width: 600px) { .mnav-body, .mobile-nav-head, .mobile-nav-foot { width: min(560px, calc(100% - 44px)); margin-inline: auto; } .mnav-body { padding-inline: 0; } }

/* ---------- Shop by goal (all devices) ---------- */
.gi-ic { width: 24px; height: 24px; }
.goal-stage { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 2.3fr); gap: clamp(24px, 3vw, 56px); align-items: center; margin-top: 18px; padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(70% 90% at 0% 0%, rgba(20, 169, 242, .06), transparent 60%), var(--bg-2); outline: none; }
.goal-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.goal-stage .goal-name { font-size: clamp(28px, 2.4vw, 40px); }
.goal-stage .goal-text { max-width: 320px; }
.goal-stage .goal-ctas { margin-top: 22px; }
.goal-stage .goal-products { gap: 14px; }
.goal-stage .gp-media { aspect-ratio: 4 / 3; }
.goal-stage .gp-body { padding: 14px 16px 16px; }
.goal-empty { display: grid; justify-items: start; gap: 16px; padding: 28px; border: 1px dashed #2E333B; border-radius: 10px; color: var(--text-2); font-size: 15.5px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots[hidden] { display: none; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: #3A4049; position: relative; }
.dots button::before { content: ""; position: absolute; inset: -14px -6px; }          /* 36px+ touch target, small visual dot */
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }

@media (max-width: 1280px) {
}
@media (max-width: 1080px) {
  .goal-stage { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* =========================================================
   Phones & small tablets
   ========================================================= */
@media (max-width: 1080px) {
  .menu-btn { display: grid; order: 10; margin: 0 -8px 0 0; }
  .header-in { gap: 8px; }
  .logo { min-width: 0; }
}
@media (max-width: 760px) {
  /* Header: logo · search · cart · menu — compact, aligned, never overflowing */
  .header-tools { gap: 0; margin-right: 0; }
  .header-tools .icon-btn { width: 44px; height: 44px; }
  .logo-word { font-size: 21px; }

  .section { padding: 56px 0; }
  .h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .sec-head { margin-bottom: 22px; gap: 14px; }
  .lead { font-size: 15.5px; }

  /* "Produktet tona" tabs: one tidy segmented row instead of an overflowing strip */
  .products .filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; overflow: visible; padding: 4px; gap: 4px; }
  .products .filter { padding: 0 4px; height: 40px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Product cards: compact, balanced, price + action easy to reach */
  .product-grid { gap: 10px; }
  .card-media { aspect-ratio: 1 / .9; padding-top: 0; }
  .card-media img { height: 82%; max-width: 76%; }
  .card .tag { top: 8px; right: 8px; font-size: 10.5px; padding: 4px 7px; }
  .card-body { padding: 11px 11px 12px; gap: 3px; }
  .card-title { font-size: 14.5px; line-height: 1.25; min-height: 2.5em; }
  .card-details { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .swatches { margin-top: 4px; gap: 0; }
  .card .swatch { width: 24px; height: 24px; }
  .card .swatch i { width: 13px; height: 13px; }
  .card-foot { padding-top: 8px; gap: 8px; }
  .card-price { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
  .card .price-tbd { font-size: 12.5px; }
  .card .price { font-size: 17px; }
  .card .add-btn { height: 44px; width: 100%; font-size: 14px; gap: 6px; border-radius: 10px; }
  .card .add-btn .ic { width: 17px; height: 17px; }

  /* Goal section */
  .gi-ic { width: 20px; height: 20px; }
  .goal-stage { margin-top: 12px; padding: 18px 16px; gap: 18px; border-radius: 14px; }
  .goal-stage .goal-name { font-size: 28px; }
  .goal-stage .goal-text { font-size: 15px; margin-top: 8px; }
  .goal-stage .goal-ctas { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .goal-stage .goal-ctas .btn { width: 100%; height: 48px; }
  .goal-carousel { margin-inline: -16px; }
  .goal-stage .goal-products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding-inline: 16px; scroll-padding-inline: 16px; margin: 0; }
  .goal-stage .goal-products::-webkit-scrollbar { display: none; }
  .goal-stage .goal-prod { flex: 0 0 76%; scroll-snap-align: start; transform: none; }
  .goal-stage .gp-media { aspect-ratio: 16 / 11; }
  .goal-stage .gp-body h3 { font-size: 16px; }
  .goal-empty { padding: 20px; font-size: 14.5px; }
  .goal-empty .btn { width: 100%; }

  /* Flavours: clear swipe row with peek + dots, stacked label/button */
  .flavours .sec-head .lead { font-size: 15px; }
  .flavour-row { gap: 10px; padding-bottom: 2px; }
  .flv { flex: 0 0 66%; scroll-snap-align: center; border: 1px solid var(--line) !important; border-radius: 12px; padding: 20px 14px 14px; }
  .flv-img { width: 72%; }
  .flv-meta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
  .flv-name { justify-content: center; font-size: 15px; }
  .flv-add { justify-content: center; height: 44px; width: 100%; border-radius: 10px; font-size: 14px; }

  /* Bundle preview + how-to-order breathing room */
  .bundle-offer { margin: 18px 0 12px; }
  .how { padding: 44px 0; }
}
@media (max-width: 480px) {
  .card .lbl-l { display: none; }
  .card .lbl-s { display: inline; }
}
@media (max-width: 374px) {
  :root { --gut: 16px; }
  .logo-word { font-size: 18px; }
  .logo-bolt { width: 20px; height: 27px; }
  .logo { gap: 6px; }
  .header-tools .icon-btn { width: 40px; height: 40px; }
  .products .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 46px; }
  .card-title { font-size: 13.5px; }
}

/* Long goal names wrap inside their button instead of being clipped; builder never exceeds the screen. */
@media (max-width: 760px) {
  .goal-stage .goal-ctas .btn { white-space: normal; height: auto; min-height: 48px; padding: 10px 18px; text-align: center; line-height: 1.25; }
  .bp-layout > * { min-width: 0; }
  .bp-stack { padding: 18px 16px; }
  .bp-line { gap: 8px; }
}

/* The stack panel's grid column must never be wider than the panel. */
.bp-stack { grid-template-columns: minmax(0, 1fr); }

/* Goal product photos: definite media height so every card in a row is the same size (no %-of-auto loop). */
.goal-stage .gp-media { aspect-ratio: auto; height: clamp(180px, 15vw, 240px); }
.goal-stage .gp-media img { height: 84%; width: auto; max-width: 78%; object-fit: contain; }
@media (max-width: 760px) {
  .goal-stage .gp-media { height: 176px; }
  .goal-stage .gp-body { gap: 4px; }
  .goal-stage .gp-foot { padding-top: 12px; }
}

/* Fix: in a grid cell with an auto row, a %-height image falls back to its natural size and spills out.
   A flex box with a definite height resolves the percentage, so the photo always fits its frame. */
.goal-stage .gp-media { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.goal-stage .gp-media img { height: auto; max-height: 84%; max-width: 78%; width: auto; }

@media (max-width: 760px) {
  /* one card is in view at a time: let each take its natural height (no stretched empty space) */
  .goal-stage .goal-products { align-items: flex-start; }
}

@media (max-width: 760px) {
  /* product-card photos: same definite-height fix as the goal cards (phones only; desktop cards unchanged) */
  .card-media { display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .card-media img { height: auto; max-height: 84%; max-width: 78%; width: auto; }
}

/* desktop goal panel: keep the long "Të gjitha për: …" CTA inside its column (it was touching the first card) */
.goal-stage > * { min-width: 0; }
.goal-stage .goal-ctas .btn { max-width: 100%; white-space: normal; height: auto; min-height: 46px; padding-block: 12px; text-align: left; line-height: 1.3; }

/* full-screen menu: fit one phone screen like the reference */
.mnav-body { scrollbar-width: none; padding-top: 12px; }
.mnav-body::-webkit-scrollbar { display: none; }
.mobile-nav-head { height: 70px; }
.mnav-row { min-height: 52px; }
.mnav-row.sm { min-height: 44px; font-size: 16px; }
.mnav-promo { min-height: 136px; margin: 18px 0 20px; padding: 18px; }
.mp-copy { max-width: 66%; }
.mp-title { font-size: clamp(21px, 6.2vw, 26px); }
.mp-text { font-size: 13px; margin-top: 4px; }
.mp-cta { height: 36px; margin-top: 12px; font-size: 13.5px; }
.mnav-promo img { width: 34%; max-width: 150px; right: 4%; }
.mobile-links-2 { padding-top: 6px; }
.mnav-glow::before, .mnav-glow::after { opacity: .8; }
.mnav-promo img { width: 29%; max-width: 124px; right: 5%; }
.mp-copy { max-width: 70%; }
@media (max-width: 374px) { .mp-copy { max-width: 64%; } .mnav-promo img { width: 26%; right: 3%; } .mp-title { font-size: 19px; } }
.mp-cta { white-space: nowrap; } @media (max-width: 374px) { .mp-cta { padding: 0 12px; gap: 8px; font-size: 13px; } }
