/* SmartFlow Shop — дополнување на оригиналниот styles.css за продавницата.
   Ги користи истите токени (--ink, --muted, --line, --blue, --pink, --wash) и Roboto Condensed. */

/* ---------- Header: кошничка ---------- */

/* ---------- Мега-мени „Продавница“ (брендови → производи) ---------- */
.nav-shop-top { display: flex; align-items: center; gap: 6px; }
.nav-shop-top > a { display: inline-flex; align-items: center; gap: 6px; }
.chev { width: 11px; height: 11px; transition: transform .25s; flex-shrink: 0; }
.nav-shop-toggle { display: none; }
.mega-head { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: default; }
.mega-head img { object-fit: contain; mix-blend-mode: multiply; }
.mega-head span { display: grid; gap: 2px; }
.mega-head b { font-size: 1rem; letter-spacing: -.02em; }
.mega-head small { font-size: .72rem; color: var(--muted); font-weight: 500; line-height: 1.35; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; transition: background .15s; }
.mega li a:hover { background: var(--wash); color: var(--ink); }
.mega-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: linear-gradient(145deg, #f7fbfd, #fff2f8); display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); }
.mega-thumb img { width: 30px; height: 30px; object-fit: contain; }
.mega-name { display: grid; gap: 1px; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.mega-name small { font-size: .72rem; color: var(--pink); font-weight: 700; }
.mega-all a { font-size: .78rem; font-weight: 800; color: var(--pink) !important; padding-top: 10px !important; }
.mega-all a:hover { background: none !important; text-decoration: underline; }
.mega-foot { display: flex; justify-content: center; gap: 8px; font-size: .85rem; font-weight: 700; padding: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.mega-foot b { color: var(--pink); }
.mega-foot:hover { color: var(--pink); }

@media (min-width: 1051px) {
  .site-header nav { align-self: stretch; align-items: center; }
  .nav-shop { align-self: stretch; display: flex; align-items: center; }
  .nav-shop:hover .nav-shop-top .chev, .nav-shop:focus-within .nav-shop-top .chev { transform: rotate(180deg); }
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px; box-shadow: 0 30px 60px rgba(12,21,38,.14); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; font-size: 1rem; }
  .nav-shop:hover .mega, .nav-shop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; padding: 26px clamp(24px, 3vw, 44px) 18px; max-height: calc(100vh - 160px); overflow-y: auto; }
  .mega-col { display: grid; align-content: start; gap: 10px; }
  .mega-head { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .mega-head img { height: 54px; width: 110px; object-position: left center; margin-left: -8px; }
  .mega-head .chev { display: none; }
}

@media (max-width: 1050px) {
  .site-header.open nav { max-height: calc(100vh - 82px); overflow-y: auto; gap: 18px; }
  .nav-shop-top { justify-content: space-between; }
  .nav-shop-top .chev { display: none; }
  .nav-shop-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
  .nav-shop-toggle svg { width: 12px; height: 12px; transition: transform .25s; }
  .nav-shop.open .nav-shop-toggle { border-color: var(--pink); color: var(--pink); }
  .nav-shop.open .nav-shop-toggle svg { transform: rotate(180deg); }
  .mega { display: none; margin-top: 12px; }
  .nav-shop.open .mega { display: block; }
  .mega-inner { display: grid; gap: 8px; }
  .mega-col { border: 1px solid var(--line); border-radius: 14px; background: var(--wash); overflow: hidden; }
  .mega-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
  .mega-head img { width: 46px; height: 28px; }
  .mega-head span { flex: 1; }
  .mega-col.open .mega-head .chev { transform: rotate(180deg); }
  .mega-col ul { display: none; padding: 0 8px 10px; background: #fff; border-top: 1px solid var(--line); }
  .mega-col.open ul { display: grid; }
  .mega-foot { border: 0; justify-content: flex-start; padding: 14px 4px 0; }
}
.cart-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, color .2s; }
.cart-link:hover, .cart-link.active { border-color: var(--pink); color: var(--pink); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: linear-gradient(100deg, #ff008d, #ed0a93); color: #fff; font-size: .7rem; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(242,11,136,.35); }
.cart-count[hidden] { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }

/* ---------- Брендови на почетна ---------- */
.brand-grid { grid-template-columns: repeat(5, 1fr); }
.brand-grid .mini-product { padding: 24px; }
.brand-grid .mini-product h3 { margin-top: 14px; }
.brand-logo { width: 100%; height: 70px; object-fit: contain; margin-top: 18px; mix-blend-mode: multiply; }

/* ---------- Мрежа на производи ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e7eaf0; border-radius: 20px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.product-card:hover { transform: translateY(-6px); border-color: #f5a7d2; box-shadow: 0 24px 45px rgba(20,30,45,.09); }
.product-card-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(145deg, #f7fbfd, #fff 55%, #fff2f8); display: grid; place-items: center; padding: 22px; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.pc-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); color: #167ba9; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pc-badge.pc-out { left: auto; right: 14px; color: var(--pink); }
.product-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card-body .eyebrow { margin: 0 0 8px; font-size: .66rem; }
.product-card-body h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.15; }
.pc-desc { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 10px 0 18px; flex: 1; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.pc-foot strong { font-size: 1.15rem; letter-spacing: -.02em; }
.pc-foot b { color: var(--pink); }
.center-actions { display: flex; justify-content: center; margin-top: 40px; }
.featured-products .product-grid { grid-template-columns: repeat(3, 1fr); }
.featured-products .section-heading.split, .related-products .section-heading { margin-bottom: 40px; }
.empty-note { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- Продавница ---------- */
.shop-section { padding-top: 60px; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; transition: .2s; }
.chip small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip:hover { border-color: #f5a7d2; }
.chip.active { color: #fff; border-color: transparent; background: linear-gradient(100deg, #ff008d, #ed0a93); box-shadow: 0 10px 24px rgba(242,11,136,.2); }
.chip.active small { color: rgba(255,255,255,.8); }
.brand-intro { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: 30px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--wash); }
.brand-intro img { width: 100%; max-height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.brand-intro h2 { font-size: 2.2rem; margin: 0 0 10px; letter-spacing: -.05em; }
.brand-intro p:last-child { color: var(--muted); line-height: 1.7; margin: 0; }
.brand-intro .eyebrow { margin-bottom: 8px; }

/* ---------- Детали за производ ---------- */
.product-detail { padding-top: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb b { color: var(--ink); }
.pd-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.pd-gallery { position: sticky; top: 24px; }
.pd-main { aspect-ratio: 1 / 1; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, #f7fbfd, #fff 55%, #fff2f8); display: grid; place-items: center; padding: 36px; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumbs button { aspect-ratio: 1 / 1; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--pink); }
.pd-info h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.06em; margin: 0; }
.pd-short { color: #3c4757; font-size: 1.08rem; line-height: 1.65; margin: 18px 0 26px; }
.pd-buy { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px rgba(20,30,50,.07); display: grid; gap: 20px; }
.pd-price { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pd-price strong { font-size: 2.3rem; letter-spacing: -.05em; }
.pd-stock { font-size: .78rem; font-weight: 800; color: #28a662; text-transform: uppercase; letter-spacing: .08em; }
.pd-stock.out { color: var(--pink); }
.pd-variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-variants legend { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #167ba9; margin-bottom: 10px; }
.variant { cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: grid; gap: 2px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: .92rem; transition: .2s; background: #fff; }
.variant small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.variant input:checked + span { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--blue), var(--pink)) border-box; border: 2px solid transparent; padding: 10px 15px; }
.variant input:focus-visible + span { box-shadow: 0 0 0 3px rgba(9,174,234,.25); }
.variant.disabled span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.pd-actions { display: flex; gap: 12px; }
.pd-actions .btn { flex: 1; border: 0; cursor: pointer; font-family: inherit; }
.pd-actions .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--wash); }
.qty button { width: 40px; height: 48px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--pink); }
.qty input { width: 56px; height: 48px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-perks { list-style: none; padding: 0; margin: 26px 0 16px; display: grid; gap: 10px; font-size: .9rem; }
.pd-perks li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 10px; }
.pd-datasheet { display: inline-block; font-weight: 800; font-size: .9rem; border-bottom: 2px solid var(--pink); padding-bottom: 2px; }
.pd-details { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--line); }
.pd-desc p:not(.eyebrow) { color: #3c4757; line-height: 1.8; font-size: 1.02rem; }
.pd-specs dl { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pd-specs dl div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; padding: 13px 18px; font-size: .88rem; }
.pd-specs dl div:nth-child(odd) { background: var(--wash); }
.pd-specs dt { color: var(--muted); font-weight: 600; }
.pd-specs dd { margin: 0; font-weight: 700; }
.related-products { background: var(--wash); }

/* ---------- Кошничка и нарачка ---------- */
.cart-section .section-heading { margin-bottom: 34px; }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto 36px; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cl-img { width: 84px; height: 84px; border-radius: 14px; background: var(--wash); display: grid; place-items: center; padding: 8px; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-info { display: grid; gap: 4px; }
.cl-info b { font-size: 1.05rem; }
.cl-info small { color: var(--muted); font-size: .8rem; }
.cl-total { font-size: 1.05rem; white-space: nowrap; }
.cl-remove { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.cl-remove:hover { border-color: var(--pink); color: var(--pink); }
.cart-line .qty input { width: 64px; }
.cart-line-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.cart-line-actions .btn { cursor: pointer; font-family: inherit; }
.cart-summary { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px rgba(20,30,50,.07); display: grid; gap: 14px; position: sticky; top: 24px; }
.cart-summary h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -.03em; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; }
.cart-summary > div span { color: var(--muted); }
.cs-total { border-top: 1px solid var(--line); padding-top: 14px; align-items: baseline; }
.cs-total strong { font-size: 1.7rem; letter-spacing: -.04em; }
.cs-total span { color: var(--ink) !important; font-weight: 700; }
.free-hint { margin: 0; font-size: .8rem; color: #167ba9; background: rgba(9,174,234,.08); padding: 8px 12px; border-radius: 10px; }
.cs-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.checkout-items { position: static; margin-bottom: 16px; box-shadow: none; }
.checkout-items > div span { color: var(--ink); }
.checkout-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
.checkout-form label i { font-weight: 400; color: var(--muted); }
.checkout-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.has-error input { border-color: var(--pink) !important; }
.has-error em { color: var(--pink); font-style: normal; font-size: .78rem; font-weight: 600; }
.form-note { background: rgba(242,11,136,.07); color: #b10764; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem; margin: 0 0 20px; }
.form-note.ok { background: rgba(40,166,98,.09); color: #1e7d4a; }
.thanks-hero { min-height: 60vh; }
.thanks-hero b { color: var(--ink); }
.about-photo img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Мобилен ---------- */
@media (max-width: 1050px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-products .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid, .pd-details, .cart-grid { grid-template-columns: 1fr; gap: 34px; }
  .pd-gallery, .cart-summary { position: static; }
}
@media (max-width: 700px) {
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card-body { padding: 14px; }
  .product-card-body h3 { font-size: 1rem; }
  .pc-desc { display: none; }
  .pc-foot { padding-top: 10px; margin-top: 10px; }
  .pc-foot strong { font-size: .95rem; }
  .brand-intro { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .brand-intro img { max-width: 180px; }
  .cart-line { grid-template-columns: 64px 1fr 36px; gap: 12px; }
  .cl-img { width: 64px; height: 64px; }
  .cart-line .qty, .cl-total { grid-column: 2; }
  .cl-remove { grid-row: 1; grid-column: 3; }
  .form-row-2 { grid-template-columns: 1fr; }
  .pd-actions { flex-direction: column; }
  .pd-actions .qty { align-self: flex-start; }
  .cart-link { width: 38px; height: 38px; }
}
