:root{--forest:#071b14;--forest-2:#0e2d22;--forest-3:#17392d;--gold:#d2b66f;--gold-soft:#e8cf89;--cream:#f5efe3;--paper:#fffaf1;--ink:#0d241b;--muted:#63746c;--line:rgba(210,182,111,.44);--glass:rgba(10,27,20,.52);--glass-strong:rgba(10,27,20,.72);--shadow:0 22px 70px rgba(0,0,0,.22);--serif:'Cormorant Garamond',Georgia,serif;--sans:Inter,Arial,sans-serif;--r:10px;--r-card:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--sans);background:var(--cream);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{color:inherit}img{max-width:100%}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.site-header{position:fixed;left:18px;right:18px;top:14px;z-index:50;display:flex;align-items:center;gap:28px;height:76px;padding:10px 22px;color:#fff;background:linear-gradient(180deg,rgba(18,35,27,.58),rgba(8,23,17,.46));border:1px solid rgba(210,182,111,.28);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.18);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.inner-header{position:sticky}.ft-logo{display:flex;align-items:center;flex:0 0 auto}.ft-logo img{height:58px;width:auto;display:block}.burger{display:none;color:var(--gold);background:transparent;border:0;font:500 15px var(--sans);align-items:center;gap:12px;cursor:pointer}.burger span{display:block;width:34px;height:3px;background:var(--gold);border-radius:5px;margin:5px 0}.burger b{font-weight:500}.menu{display:flex;align-items:center;gap:30px;flex:1}.menu a{text-decoration:none;font:500 15px/1 var(--sans);letter-spacing:.01em;color:rgba(255,255,255,.86);transition:.22s}.menu a:hover{color:var(--gold)}.actions{display:flex;align-items:center;gap:12px}.glass-btn,.btn{min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:14px;border-radius:var(--r);border:1px solid rgba(210,182,111,.76);text-decoration:none;font:600 15px/1 var(--sans);letter-spacing:.01em;cursor:pointer;transition:.22s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 28px rgba(0,0,0,.14)}.glass-btn{background:rgba(7,27,20,.48);color:#fff;padding:0 22px}.glass-btn:hover,.btn:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 16px 34px rgba(0,0,0,.2)}.header-cart{color:var(--gold-soft)}.header-cart #cartCounter,.floating-cart span{background:var(--gold);color:var(--forest);border-radius:50%;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}.contact{min-width:220px}.hero{min-height:100svh;position:relative;color:white;display:flex;align-items:center;padding:155px 7.5vw 90px;background-image:linear-gradient(90deg,rgba(4,16,12,.86) 0%,rgba(4,16,12,.55) 32%,rgba(4,16,12,.12) 62%,rgba(4,16,12,.45) 100%),url('assets/hero-desktop-v5.png');background-size:cover;background-position:center center;overflow:hidden}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 69% 15%,rgba(237,200,118,.25),transparent 30%),linear-gradient(180deg,transparent 75%,rgba(7,27,20,.56));pointer-events:none}.hero-text{position:relative;z-index:1;max-width:590px;margin-top:18px}.kicker,.label{margin:0 0 18px;letter-spacing:.42em;text-transform:uppercase;font:700 14px/1 var(--sans);color:var(--gold)}.hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(52px,5.25vw,88px);line-height:.95;letter-spacing:-.035em;margin:0;text-shadow:0 2px 15px rgba(0,0,0,.28)}.line{width:110px;height:2px;background:var(--gold);margin:32px 0 28px}.lead{max-width:510px;margin:0 0 34px;font:400 20px/1.65 var(--serif);color:rgba(255,255,255,.92)}.hero-buttons{display:flex;gap:18px;flex-wrap:wrap}.btn{padding:0 28px;color:#fff}.btn.primary{background:linear-gradient(180deg,rgba(239,207,128,.93),rgba(196,159,80,.9));color:var(--forest);border-color:rgba(255,226,158,.85)}.btn.secondary{background:rgba(8,26,19,.46);color:#fff}.btn.secondary.light-bg{color:var(--forest);background:rgba(255,255,255,.2)}.btn span{font-size:26px;line-height:0}.btn svg{width:17px;height:17px}.brand-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:linear-gradient(180deg,#092016,#102b20);color:white;border-top:1px solid rgba(210,182,111,.35);border-bottom:1px solid rgba(210,182,111,.2);padding:0 7vw}.brand-strip article{padding:28px 26px;text-align:center;border-right:1px solid rgba(210,182,111,.25)}.brand-strip article:last-child{border-right:0}.brand-strip span{font:600 31px/1 var(--serif);color:var(--gold-soft)}.brand-strip p{margin:8px 0 0;color:rgba(255,255,255,.74)}.premium-section{padding:78px 7vw}.soft-bg{background:#fbf6ec}.center-intro{text-align:center;max-width:760px;margin:0 auto 36px}.center-intro h2,.section-head h2,.story-card h2,.trust h2,.delivery h2,.reviews h2,.catalog-hero h1,.cart-drawer h2{font-family:var(--serif);font-size:clamp(42px,4vw,64px);line-height:.95;margin:0 0 12px;font-weight:600;letter-spacing:-.025em}.center-intro p,.delivery p,.story-card p{font-size:18px;line-height:1.65;color:#4a5b53}.category-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.category-tile{min-height:245px;border-radius:20px;overflow:hidden;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;text-decoration:none;color:#fff;position:relative;background:var(--bg) center/cover no-repeat;box-shadow:0 20px 55px rgba(15,40,30,.16);border:1px solid rgba(210,182,111,.22);transition:.24s}.category-tile:hover{transform:translateY(-4px)}.category-tile:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(7,27,20,.72))}.category-tile>*{position:relative}.category-tile span{font:700 12px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-soft)}.category-tile b{font:600 32px/.95 var(--serif);margin:4px 0}.category-tile small{opacity:.92;line-height:1.35}.catalog-more{text-align:center;margin-top:28px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:26px}.section-head a{text-decoration:none;color:var(--forest-2);font-weight:600}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.shop-card{background:rgba(255,255,255,.72);border:1px solid rgba(210,182,111,.32);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 46px rgba(16,47,37,.08);backdrop-filter:blur(8px)}.card-image{height:250px;background:#eee;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.shop-card:hover .card-image img{transform:scale(1.035)}.card-body{padding:20px;flex:1}.card-body small{color:#9b7b30;font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:11px}.card-body h3{font:600 28px/1 var(--serif);margin:10px 0;color:var(--forest)}.card-body p{color:#56665e;line-height:1.5}.shop-card footer{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-top:1px solid rgba(210,182,111,.22)}.shop-card footer b{font:700 22px var(--serif)}.shop-card footer button{border:1px solid rgba(210,182,111,.75);background:var(--forest);color:white;border-radius:10px;padding:12px 16px;font-weight:700}.main-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}.story-card,.trust,.review-grid article,.delivery,.catalog-tools,.empty-category{background:rgba(255,255,255,.68);border:1px solid rgba(210,182,111,.28);border-radius:22px;padding:30px;box-shadow:0 18px 45px rgba(16,47,37,.08)}.story-card{min-height:360px;background:linear-gradient(90deg,rgba(255,250,241,.95),rgba(255,250,241,.62)),url('assets/about-horse.jpg') center/cover no-repeat}.trust{background:linear-gradient(180deg,var(--forest-2),#071b14);color:white}.trust ul{list-style:none;padding:0;margin:0}.trust li{margin:18px 0;padding-left:24px;position:relative}.trust li:before{content:"✓";position:absolute;left:0;color:var(--gold)}.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.review-grid span{color:var(--gold)}.delivery{display:flex;align-items:center;justify-content:space-between}.footer{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#071b14;color:white;padding:52px 7vw;border-top:1px solid rgba(210,182,111,.3)}.footer img{height:72px}.footer a{text-decoration:none;color:var(--gold-soft)}.floating-cart{position:fixed;right:30px;bottom:30px;z-index:80;width:78px;height:78px;border-radius:50%;border:1px solid rgba(210,182,111,.85);background:rgba(7,27,20,.7);color:var(--gold-soft);box-shadow:0 18px 42px rgba(0,0,0,.3);cursor:pointer;backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center}.floating-cart svg{width:31px;height:31px}.floating-cart span{position:absolute;right:-8px;top:-8px}.back-to-top{position:fixed;right:30px;bottom:120px;z-index:70;width:46px;height:46px;border-radius:50%;border:1px solid var(--gold);background:rgba(255,255,255,.8);color:var(--forest);opacity:0;pointer-events:none;transition:.2s}.back-to-top.visible{opacity:1;pointer-events:auto}.cart-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);opacity:0;pointer-events:none;z-index:90}.cart-drawer{position:fixed;right:0;top:0;height:100vh;width:min(470px,94vw);background:#fffaf1;z-index:100;transform:translateX(105%);transition:.25s;padding:28px;overflow:auto;box-shadow:-20px 0 45px rgba(0,0,0,.2)}.cart-open .cart-backdrop{opacity:1;pointer-events:auto}.cart-open .cart-drawer{transform:translateX(0)}.cart-close{float:right;border:1px solid var(--gold);background:var(--forest);color:white;border-radius:50%;width:38px;height:38px;font-size:24px}.cart-line{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #eadfbe}.qty{display:flex;align-items:center;gap:8px}.qty button{width:30px;height:30px;border-radius:50%;border:1px solid var(--gold);background:white}.cart-total{display:flex;justify-content:space-between;font-size:22px;margin:20px 0}.order-form{display:grid;gap:12px}.order-form input,.order-form select,.order-form textarea,.catalog-tools input,.catalog-tools select,.admin-form input,.admin-form textarea,.admin-search{width:100%;padding:13px 14px;border-radius:10px;border:1px solid rgba(210,182,111,.55);background:white}.catalog-page{padding:112px 4vw 70px}.catalog-hero{border-radius:22px;background:linear-gradient(135deg,#071b14,#123226);color:white;padding:54px 6vw;margin-bottom:24px;border:1px solid rgba(210,182,111,.32)}.catalog-layout{display:grid;grid-template-columns:280px 1fr;gap:24px}.catalog-sidebar{position:sticky;top:112px;align-self:start;background:rgba(255,255,255,.76);border:1px solid rgba(210,182,111,.28);border-radius:22px;padding:18px;box-shadow:0 18px 45px rgba(16,47,37,.07)}.category-list{display:grid;gap:8px}.category-list button{text-align:left;border:1px solid rgba(210,182,111,.35);background:#fffaf1;border-radius:12px;padding:12px}.category-list button.active{background:var(--forest);color:white}.category-list small{display:block;opacity:.75}.catalog-tools{display:grid;grid-template-columns:1.6fr 1fr 1fr auto auto;gap:10px;align-items:center;margin-bottom:20px}.reset-filters{border:1px solid var(--gold);background:#fffaf1;border-radius:10px;padding:12px 14px}.empty-category{text-align:center;margin-bottom:20px}.admin-page{max-width:1280px;margin:0 auto;padding:112px 16px 80px}.admin-card{background:white;border:1px solid rgba(210,182,111,.3);border-radius:22px;padding:22px;margin-bottom:18px}.admin-actions{display:flex;gap:10px;flex-wrap:wrap}.admin-log{background:#102f25;color:white;border-radius:16px;padding:14px;white-space:pre-wrap}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.admin-tabs button{border:1px solid var(--gold);border-radius:10px;background:#fffaf1;padding:10px 14px}.admin-section[hidden]{display:none}.admin-products,.admin-orders,.admin-categories{display:grid;gap:14px}.admin-product,.admin-order,.admin-category{display:grid;grid-template-columns:78px 1fr auto;gap:14px;border:1px solid #eadfbe;border-radius:18px;padding:12px;background:#fffaf1}.admin-product img,.admin-category img{width:78px;height:78px;object-fit:cover;border-radius:14px}.admin-edit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.admin-controls{display:flex;flex-direction:column;gap:8px}.admin-controls button{border:1px solid var(--gold);border-radius:10px;padding:9px 12px;background:white}.admin-controls button.active{background:var(--gold)}.manual-form,.category-form,.admin-form{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.manual-form .wide,.category-form .wide,.admin-form .wide{grid-column:1/-1}@media(max-width:900px){.site-header{left:0;right:0;top:0;height:116px;border-radius:0;border-left:0;border-right:0;border-top:0;padding:14px 18px;gap:16px;background:linear-gradient(90deg,rgba(10,29,21,.84),rgba(17,53,40,.68));}.ft-logo img{height:68px}.burger{display:flex;order:2;border-left:1px solid rgba(210,182,111,.5);padding-left:18px}.burger span{width:32px}.burger b{display:inline;color:var(--gold)}.ft-logo{order:1}.menu{position:absolute;left:16px;right:16px;top:104px;background:rgba(7,27,20,.95);border:1px solid rgba(210,182,111,.38);border-radius:16px;padding:18px;display:none;flex-direction:column;align-items:flex-start;gap:18px}.menu.open{display:flex}.actions{order:3;margin-left:auto}.contact{min-width:0;width:auto;padding:0 18px}.contact span{display:none}.header-cart{width:58px;height:58px;padding:0}.header-cart .cart-label{display:none}.hero{min-height:100svh;padding:250px 24px 60px;background-image:linear-gradient(90deg,rgba(4,16,12,.82) 0%,rgba(4,16,12,.55) 44%,rgba(4,16,12,.2) 100%),url('assets/hero-mobile-v5.png');background-position:58% center;background-size:cover;align-items:flex-start}.hero-text{max-width:100%;margin-top:0}.kicker{font-size:13px;letter-spacing:.38em;margin-bottom:18px}.hero h1{font-size:clamp(44px,10.7vw,66px);line-height:.98;max-width:92vw}.line{width:128px;margin:28px 0 26px}.lead{font-size:25px;line-height:1.55;max-width:90vw;margin-bottom:28px}.hero-buttons{display:grid;grid-template-columns:1fr;gap:14px}.hero-buttons .btn{width:100%;height:72px;font-size:24px;font-family:var(--serif);font-weight:700}.brand-strip{display:none}.premium-section{padding:54px 24px}.center-intro h2,.section-head h2,.story-card h2,.trust h2,.delivery h2,.reviews h2{font-size:48px}.category-photo-grid,.product-grid,.compact-grid,.review-grid,.main-grid,.footer,.catalog-layout{grid-template-columns:1fr}.category-photo-grid{gap:14px}.category-tile{min-height:122px;border-radius:18px}.category-tile b{font-size:25px}.card-image{height:225px}.section-head,.delivery{display:block}.footer{padding-bottom:110px}.floating-cart{right:26px;bottom:104px;width:82px;height:82px}.back-to-top{right:26px;bottom:195px}.catalog-page{padding:136px 18px 70px}.catalog-layout{gap:16px}.catalog-sidebar{position:static}.catalog-tools{grid-template-columns:1fr}.manual-form,.category-form,.admin-form,.admin-edit-grid{grid-template-columns:1fr}.admin-page{padding-top:136px}.admin-product,.admin-category{grid-template-columns:64px 1fr}.admin-controls{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}}@media(max-width:430px){.site-header{height:106px;padding:12px 15px;gap:12px}.ft-logo img{height:56px}.burger b{display:none}.burger{padding-left:14px}.contact{height:58px;padding:0 16px}.hero{padding-top:220px;background-position:60% center}.hero h1{font-size:42px}.lead{font-size:22px}.hero-buttons .btn{height:68px;font-size:22px}.floating-cart{width:76px;height:76px;right:22px;bottom:100px}}

/* === ForestTrail v5.0.1 Hero + Mobile Header Fix ===
   Minimal patch only: desktop/mobile hero swap, mobile header alignment,
   cleaner phone icon rendering, slightly glossier glass header. */
.site-header{
  background:linear-gradient(180deg,rgba(18,35,27,.50),rgba(8,23,17,.38)) !important;
  backdrop-filter:blur(22px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(118%) !important;
  box-shadow:0 8px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.contact svg{width:20px;height:20px;stroke-width:1.9;color:var(--gold-soft)}
.hero{
  background-image:linear-gradient(90deg,rgba(4,16,12,.88) 0%,rgba(4,16,12,.58) 32%,rgba(4,16,12,.10) 62%,rgba(4,16,12,.34) 100%),url('assets/hero-desktop-v5.png') !important;
  background-position:center center !important;
}
@media(max-width:900px){
  .site-header{
    height:106px !important;
    padding:14px 18px !important;
    display:grid !important;
    grid-template-columns:auto 1fr auto auto !important;
    align-items:center !important;
    gap:12px !important;
    background:linear-gradient(90deg,rgba(8,28,21,.74),rgba(16,50,38,.58)) !important;
    border-bottom:1px solid rgba(210,182,111,.34) !important;
  }
  .ft-logo{order:0 !important;grid-column:1 !important;align-self:center !important}
  .ft-logo img{height:58px !important}
  .burger{
    order:0 !important;grid-column:2 !important;justify-self:start !important;
    display:inline-flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;
    width:58px !important;height:58px !important;padding:0 !important;margin-left:8px !important;
    border:1px solid rgba(210,182,111,.62) !important;border-radius:10px !important;background:rgba(7,27,20,.42) !important;
  }
  .burger span{display:block !important;width:28px !important;height:3px !important;margin:0 !important;background:var(--gold) !important;border-radius:4px !important}
  .burger b{display:none !important}
  .actions{order:0 !important;grid-column:3 / 5 !important;margin-left:0 !important;display:flex !important;gap:10px !important;justify-self:end !important}
  .header-cart,.contact{width:58px !important;height:58px !important;min-height:58px !important;padding:0 !important;border-radius:10px !important;background:rgba(7,27,20,.42) !important}
  .contact span,.header-cart .cart-label{display:none !important}
  .contact svg{width:22px !important;height:22px !important;stroke-width:1.9 !important;color:var(--gold-soft) !important}
  .menu{top:96px !important}
  .hero{
    background-image:linear-gradient(90deg,rgba(4,16,12,.84) 0%,rgba(4,16,12,.62) 43%,rgba(4,16,12,.24) 100%),url('assets/hero-mobile-v5.png') !important;
    background-position:64% center !important;
    padding-top:218px !important;
  }
  .hero-text{max-width:82vw !important}
  .hero h1{max-width:80vw !important}
  .lead{max-width:78vw !important}
}
@media(max-width:430px){
  .site-header{height:96px !important;padding:12px 14px !important;gap:10px !important}
  .ft-logo img{height:52px !important}
  .burger,.header-cart,.contact{width:54px !important;height:54px !important;min-height:54px !important}
  .burger span{width:26px !important}
  .hero{padding-top:198px !important;background-position:66% center !important}
  .hero-text{max-width:84vw !important}
  .hero h1{max-width:82vw !important}
  .lead{max-width:82vw !important}
}

/* === ForestTrail v5.0.2 Mobile Hero + Single Cart Fix ===
   Only mobile changes: zoom out horse background and remove duplicate header cart.
   Desktop and all logic are untouched. */
@media(max-width:900px){
  /* Leave only the floating cart on mobile; hide the duplicate cart in the header */
  .site-header .header-cart{
    display:none !important;
  }
  .site-header .actions{
    grid-column:3 / 4 !important;
    justify-self:end !important;
    display:flex !important;
    gap:0 !important;
  }
  .site-header .contact{
    display:inline-flex !important;
  }

  /* Zoom out the mobile horse so the headline does not cover the whole muzzle */
  .hero{
    background-size:auto 88% !important;
    background-position:72% 0 !important;
    background-repeat:no-repeat !important;
    background-color:#071b14 !important;
  }
}

@media(max-width:430px){
  .site-header .header-cart{
    display:none !important;
  }
  .site-header .actions{
    grid-column:3 / 4 !important;
    justify-self:end !important;
  }
  .hero{
    background-size:auto 84% !important;
    background-position:73% 0 !important;
    background-repeat:no-repeat !important;
    background-color:#071b14 !important;
  }
}

/* === ForestTrail v5.0.3 Mobile Hero Warm Zoom Fix ===
   Only mobile hero composition/color. Desktop, catalog, Ozon, JS untouched.
   Goal: move horse farther from viewer and remove green tint from hero image. */
@media(max-width:900px){
  .hero{
    /* Warmer overlay instead of green cast; keep the same mobile photo */
    background-image:
      linear-gradient(90deg,
        rgba(10,8,4,.78) 0%,
        rgba(12,9,4,.56) 39%,
        rgba(80,45,12,.16) 68%,
        rgba(20,13,5,.20) 100%),
      url('assets/hero-mobile-v5.png') !important;
    /* Make the horse smaller/farther so text does not cover the whole muzzle */
    background-size:auto 68% !important;
    background-position:88% 18% !important;
    background-repeat:no-repeat !important;
    background-color:#1b140d !important;
  }
  .hero:after{
    /* Replace green bottom veil with warm forest toning */
    background:
      radial-gradient(circle at 74% 18%, rgba(236,177,78,.22), transparent 31%),
      linear-gradient(180deg, rgba(105,62,16,.06) 0%, rgba(22,14,5,.20) 56%, rgba(10,8,4,.42) 100%) !important;
  }
}

@media(max-width:430px){
  .hero{
    background-image:
      linear-gradient(90deg,
        rgba(10,8,4,.80) 0%,
        rgba(12,9,4,.58) 41%,
        rgba(80,45,12,.14) 69%,
        rgba(20,13,5,.20) 100%),
      url('assets/hero-mobile-v5.png') !important;
    background-size:auto 64% !important;
    background-position:90% 16% !important;
    background-repeat:no-repeat !important;
    background-color:#1b140d !important;
  }
  .hero:after{
    background:
      radial-gradient(circle at 75% 16%, rgba(236,177,78,.24), transparent 32%),
      linear-gradient(180deg, rgba(105,62,16,.05) 0%, rgba(22,14,5,.18) 56%, rgba(10,8,4,.44) 100%) !important;
  }
}

/* === ForestTrail v5.0.4 New Mobile Hero Photo ===
   Only mobile hero background is replaced. All prior UI/Ozon/admin logic is preserved. */
@media(max-width:900px){
  .hero{
    background-image:
      linear-gradient(90deg,
        rgba(10,8,4,.78) 0%,
        rgba(12,9,4,.54) 40%,
        rgba(71,41,12,.12) 68%,
        rgba(18,12,5,.16) 100%),
      url('assets/hero-mobile-v5.png?v=504') !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    background-color:#1b140d !important;
  }
}
@media(max-width:430px){
  .hero{
    background-size:cover !important;
    background-position:52% center !important;
  }
}

/* === ForestTrail v5.0.5 Mobile Lead Placement + Desktop Header Transparency ===
   Only two visual adjustments:
   1) mobile hero description stays in the left text column and no longer crosses the horse's muzzle;
   2) desktop header glass is ~20% more transparent.
   All other styles and functionality are untouched. */
@media (min-width:901px){
  .site-header{
    background:linear-gradient(180deg,rgba(18,35,27,.40),rgba(8,23,17,.30)) !important;
  }
}

@media (max-width:900px){
  .hero .lead{
    width:54vw !important;
    max-width:300px !important;
    margin-right:auto !important;
    padding-right:0 !important;
    position:relative !important;
    z-index:3 !important;
  }
}

@media (max-width:430px){
  .hero .lead{
    width:55vw !important;
    max-width:228px !important;
    font-size:21px !important;
    line-height:1.48 !important;
  }
}


/* v5.0.6 micro refinements */
@media (max-width:768px){
.hero .hero-text p,
.hero-description{
max-width:240px!important;
margin-left:-12px!important;
position:relative;
z-index:2;
}
}
@media (min-width:769px){
.site-header,.header,.navbar{
background:rgba(18,28,20,.42)!important;
backdrop-filter:blur(18px) saturate(160%)!important;
-webkit-backdrop-filter:blur(18px) saturate(160%)!important;
box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 24px rgba(0,0,0,.18)!important;
}
}


/* === ForestTrail v5.0.8 Forced mobile lead line break === */
.mobile-lead-break{display:none;}
@media (max-width:900px){
  .mobile-lead-break{display:block;}
}

/* === ForestTrail v5.0.9 Mobile Hero Lift ===
   Mobile only: lifts the entire hero composition (text, divider, description, buttons)
   and shifts the background image upward. Desktop and functionality are untouched. */
@media (max-width:900px){
  .hero{
    padding-top:200px !important;
    background-position:52% calc(50% - 28px) !important;
  }
  .hero-text{
    transform:translateY(-46px) !important;
  }
}

@media (max-width:430px){
  .hero{
    padding-top:170px !important;
    background-position:52% calc(50% - 30px) !important;
  }
  .hero-text{
    transform:translateY(-48px) !important;
  }
}

/* === ForestTrail v5.0.10 Mobile Lead + Buttons Position ===
   Mobile only: keep the main headline untouched, add forced line breaks
   in the lower description and move both hero buttons closer to the horse's legs. */
@media (max-width:900px){
  .hero .hero-buttons{
    margin-top:34px !important;
  }
}
@media (max-width:430px){
  .hero .hero-buttons{
    margin-top:38px !important;
  }
}

/* === ForestTrail v5.0.11 Mobile Hero Buttons Lower ===
   Mobile only: move the complete hero button group lower so neither button covers the horse's muzzle.
   Text, image, desktop styles and site functionality remain unchanged. */
@media (max-width:900px){
  .hero .hero-buttons{
    margin-top:84px !important;
  }
}
@media (max-width:430px){
  .hero .hero-buttons{
    margin-top:102px !important;
  }
}


/* === ForestTrail v5.0.12 Mobile Hero Buttons Lower More ===
   Mobile only: move both hero buttons 35px lower.
   Everything else remains unchanged. */
@media (max-width:900px){
  .hero .hero-buttons{
    margin-top:119px !important;
  }
}
@media (max-width:430px){
  .hero .hero-buttons{
    margin-top:137px !important;
  }
}


/* === ForestTrail v5.1.0 Cart UX upgrade === */
.shop-card footer button.added{background:var(--gold);color:var(--forest);border-color:var(--gold);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.shop-card.is-in-cart{border-color:rgba(210,182,111,.72);box-shadow:0 20px 54px rgba(16,47,37,.12)}
.cart-line{align-items:center}
.cart-line-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:8px;padding-right:8px}
.cart-product-name{display:block;font-size:18px;line-height:1.3;color:var(--forest);overflow-wrap:anywhere}
.cart-product-price{display:block;font-size:17px;line-height:1.25;color:#6c5730;font-weight:600}
.cart-close{float:none;position:absolute;top:24px;right:24px;display:grid;place-items:center;padding:0;line-height:1;font-family:Arial,sans-serif}
.cart-drawer{position:fixed}
.order-form label{display:grid;gap:7px}
@media(max-width:900px){
  .floating-cart{bottom:68px}
  .cart-drawer{width:min(94vw,470px);padding:32px 24px 36px}
  .cart-close{top:22px;right:22px;width:46px;height:46px;font-size:30px}
  .cart-line{align-items:flex-start;gap:14px;padding:18px 0}
  .cart-product-name{font-size:21px;line-height:1.22}
  .cart-product-price{font-size:19px;margin-top:2px}
  .qty{flex:0 0 auto;padding-top:4px}
  .qty button{width:44px;height:44px;font-size:22px}
  .qty strong{font-size:21px;min-width:22px;text-align:center}
  .drawer-order-form label{font-size:20px;line-height:1.2}
  .drawer-order-form input,.drawer-order-form select,.drawer-order-form textarea{font-size:19px;line-height:1.35;padding:16px 17px;min-height:58px}
  .drawer-order-form textarea{min-height:126px}
  .drawer-order-form input::placeholder,.drawer-order-form textarea::placeholder{font-size:18px}
}
@media(max-width:430px){
  .floating-cart{bottom:62px}
  .cart-drawer{width:93vw;padding:30px 20px 34px}
  .cart-close{top:18px;right:18px}
  .cart-product-name{font-size:20px}
  .cart-product-price{font-size:18px}
}

/* === ForestTrail v5.1.1 Cart controls, prices, mobile categories, admin buttons === */
/* 1) Perfectly center + / − controls on mobile and desktop */
.qty button{
  display:inline-grid !important;
  place-items:center !important;
  padding:0 !important;
  line-height:1 !important;
  font-family:Arial,sans-serif !important;
  font-size:0 !important;
  text-align:center !important;
  vertical-align:middle !important;
}
.qty button::before{
  display:block;
  font-family:Arial,sans-serif;
  font-size:22px;
  line-height:1;
  font-weight:400;
  transform:translateY(-1px);
}
.qty button[data-delta="-1"]::before{content:"−";}
.qty button[data-delta="1"]::before{content:"+";}
.qty strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

/* 2) Clearer, more readable price typography everywhere */
.shop-card footer b,
.cart-product-price,
.cart-total strong,
#cartTotal,
.admin-order h3{
  font-family:var(--sans) !important;
  font-weight:750 !important;
  letter-spacing:-.015em !important;
  font-variant-numeric:tabular-nums lining-nums !important;
}
.shop-card footer b{font-size:21px !important;line-height:1.15 !important;}
.cart-product-price{color:#765f32 !important;}
.cart-total strong,#cartTotal{font-size:1.08em !important;}

/* 3) Slightly larger mobile category typography */
@media(max-width:900px){
  .category-list button{
    font-size:18px !important;
    line-height:1.22 !important;
    padding:16px 14px !important;
  }
  .category-list button > span,
  .category-list button > b{
    font-size:18px !important;
  }
  .category-list small{
    font-size:15px !important;
    line-height:1.3 !important;
    margin-top:3px !important;
  }
  .qty button::before{font-size:24px;}
}

/* 4) Admin header/action buttons: high contrast and readable */
.admin-actions .btn.dark,
.manual-form .btn.dark,
.category-form .btn.dark,
.admin-form .btn.dark{
  background:linear-gradient(180deg,var(--forest-2),var(--forest)) !important;
  color:#fff !important;
  border-color:rgba(210,182,111,.82) !important;
  text-shadow:0 1px 0 rgba(0,0,0,.18);
  box-shadow:0 10px 24px rgba(7,27,20,.18),inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.admin-actions .btn.ghost,
#reloadOrders.btn.ghost{
  background:#fffaf1 !important;
  color:var(--forest) !important;
  border-color:rgba(210,182,111,.82) !important;
  font-weight:700 !important;
}
.admin-actions .btn.dark:hover,
.admin-actions .btn.ghost:hover,
.manual-form .btn.dark:hover,
.category-form .btn.dark:hover,
.admin-form .btn.dark:hover,
#reloadOrders.btn.ghost:hover{
  filter:brightness(1.04);
  transform:translateY(-1px);
}


/* === ForestTrail v5.2.0 admin categories + homepage picks + exact cart controls === */
/* Draw + / − with CSS bars: exact centering in Safari/Chrome regardless of font metrics. */
.qty button{position:relative !important;display:block !important;font-size:0 !important;line-height:0 !important;padding:0 !important;overflow:hidden}
.qty button::before{content:"" !important;position:absolute !important;left:50% !important;top:50% !important;width:14px !important;height:2px !important;background:#1683ff !important;border-radius:2px !important;transform:translate(-50%,-50%) !important}
.qty button[data-delta="1"]::after{content:"";position:absolute;left:50%;top:50%;width:2px;height:14px;background:#1683ff;border-radius:2px;transform:translate(-50%,-50%)}

.admin-edit-grid select,.manual-form select,.admin-home-product input[type="number"]{width:100%;padding:10px 12px;border-radius:10px;border:1px solid rgba(210,182,111,.62);background:#fff;color:var(--forest);font:inherit}
.admin-help{color:#56665e;line-height:1.5}
.admin-home-products{display:grid;gap:12px;margin-top:14px}
.home-selection-count{margin:0 0 4px;padding:12px 14px;border-radius:12px;background:#f7efd9;border:1px solid rgba(210,182,111,.45)}
.admin-home-product{display:grid;grid-template-columns:64px minmax(0,1fr) auto 110px auto;align-items:center;gap:12px;padding:12px;border:1px solid #eadfbe;border-radius:16px;background:#fffaf1}
.admin-home-product.selected{border-color:var(--gold);box-shadow:inset 4px 0 0 var(--gold)}
.admin-home-product img{width:64px;height:64px;object-fit:cover;border-radius:12px}
.admin-home-product h3{margin:0 0 5px;font-size:17px;line-height:1.25}
.admin-home-product p{margin:0;color:#66766e}
.admin-home-product label{display:grid;gap:5px;font-size:14px}
.admin-home-product .home-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap}
.admin-home-product .home-toggle input{width:20px;height:20px}
.admin-home-product button{border:1px solid var(--gold);background:var(--forest);color:#fff;border-radius:10px;padding:11px 14px;font-weight:700;cursor:pointer}
@media(max-width:900px){
 .admin-home-product{grid-template-columns:54px minmax(0,1fr);gap:10px}
 .admin-home-product img{width:54px;height:54px}
 .admin-home-product .home-toggle,.admin-home-product .home-order,.admin-home-product button{grid-column:1/-1}
 .admin-home-product button{width:100%}
}


/* === ForestTrail v6.0 Catalog content + reviews === */
.card-image{
  aspect-ratio:3/4 !important;
  height:auto !important;
  min-height:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:14px !important;
  background:#fff !important;
}
.card-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
}
.shop-card:hover .card-image img{transform:scale(1.025) !important;}
.shop-card .card-body small{display:block;min-height:1.2em;}
.review-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.admin-reviews{display:grid;gap:14px;margin-top:18px}
.admin-review{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:18px;border:1px solid #eadfbe;border-radius:18px;background:#fffaf1}
.admin-review h3{margin:0 0 8px;color:var(--forest)}
.admin-review p{line-height:1.5;white-space:pre-wrap}
.admin-review small{color:#6b766f}
.review-form select{width:100%;padding:13px 14px;border-radius:10px;border:1px solid rgba(210,182,111,.55);background:white}
@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
  .card-image{padding:8px !important;}
  .shop-card .card-body{padding:14px !important;}
  .shop-card .card-body h3{font-size:21px !important;}
  .shop-card footer{padding:13px 14px !important;gap:8px;flex-wrap:wrap;}
  .review-grid{grid-template-columns:1fr !important;}
  .admin-review{grid-template-columns:1fr;}
}

/* === ForestTrail v6.1.0: compact category picker === */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.catalog-layout{grid-template-columns:1fr}
.catalog-tools-modern{grid-template-columns:minmax(210px,.9fr) minmax(260px,1.45fr) minmax(190px,.9fr) auto auto;position:relative;overflow:visible;padding:18px}
.category-picker{position:relative;min-width:0}
.category-toggle{width:100%;min-height:48px;border:1px solid rgba(210,182,111,.72);background:linear-gradient(180deg,#123226,#071b14);color:#fff;border-radius:12px;padding:0 15px;display:flex;align-items:center;gap:10px;font:700 15px/1 var(--sans);cursor:pointer;box-shadow:0 10px 24px rgba(7,27,20,.14)}
.category-toggle-icon{color:var(--gold-soft);font-size:20px}.category-toggle-chevron{margin-left:auto;color:var(--gold-soft);font-size:21px;transition:transform .2s}.category-toggle[aria-expanded="true"] .category-toggle-chevron{transform:rotate(180deg)}
.category-panel{position:absolute;left:0;top:calc(100% + 10px);z-index:65;width:min(420px,88vw);max-height:min(620px,70vh);overflow:auto;background:#fffaf1;border:1px solid rgba(210,182,111,.55);border-radius:18px;padding:16px;box-shadow:0 26px 70px rgba(7,27,20,.24)}
.category-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:2px 2px 14px}.category-panel-head .label{margin:0 0 5px;font-size:10px}.category-panel-head h3{margin:0;font:600 30px/1 var(--serif)}
.category-close{width:38px;height:38px;border-radius:50%;border:1px solid var(--gold);background:var(--forest);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.category-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-list button{min-height:52px;display:flex;flex-direction:column;justify-content:center;text-align:left;cursor:pointer;transition:.18s}.category-list button:hover{transform:translateY(-1px);border-color:var(--gold)}.category-list button.active{background:linear-gradient(180deg,var(--forest-2),var(--forest));color:#fff;border-color:var(--gold)}
.catalog-search{min-height:48px;display:flex;align-items:center;gap:9px;border:1px solid rgba(210,182,111,.55);background:#fff;border-radius:12px;padding:0 13px}.catalog-search span{font-size:24px;color:#8b7137}.catalog-search input{border:0!important;padding:0!important;background:transparent!important;outline:0;min-width:0}
.catalog-tools-modern>select{min-height:48px}.stock-check{min-height:48px;display:flex;align-items:center;gap:8px;white-space:nowrap;padding:0 4px}.stock-check input{width:18px;height:18px;accent-color:var(--forest)}.reset-filters{min-height:48px;font-weight:700;cursor:pointer}
.catalog-summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 2px 18px}.catalog-summary p{margin:0}.catalog-summary #activeCategoryText{font:600 31px/1 var(--serif);color:var(--forest)}.catalog-count{color:var(--muted);font-weight:600}
.category-backdrop{display:none}
@media(max-width:1050px){.catalog-tools-modern{grid-template-columns:1fr 1.4fr 1fr}.stock-check,.reset-filters{justify-self:start}.category-list{grid-template-columns:1fr}}
@media(max-width:900px){
 .catalog-tools-modern{grid-template-columns:1fr;gap:11px;padding:14px}.category-toggle,.catalog-search,.catalog-tools-modern>select,.stock-check,.reset-filters{min-height:54px}
 .category-panel{position:fixed;left:0;right:0;top:auto;bottom:0;width:100%;max-height:78vh;border-radius:24px 24px 0 0;padding:20px 18px calc(22px + env(safe-area-inset-bottom));z-index:111;transform:translateY(0);animation:categorySheetIn .22s ease-out}
 .category-panel-head{position:sticky;top:-20px;background:#fffaf1;z-index:2;padding:12px 2px 16px}
 .category-list{grid-template-columns:1fr}.category-list button{font-size:17px!important;min-height:58px;padding:14px!important}
 .category-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:110;display:block;backdrop-filter:blur(2px)}
 .catalog-summary{align-items:flex-start;flex-direction:column;gap:5px}.catalog-summary #activeCategoryText{font-size:30px}
 body.category-open{overflow:hidden}
}
@keyframes categorySheetIn{from{transform:translateY(100%)}to{transform:translateY(0)}}

/* === ForestTrail v6.1.1: mobile category overlay visibility fix === */
.category-panel[hidden],
.category-backdrop[hidden]{
  display:none !important;
}
body:not(.category-open) .category-backdrop{
  display:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* ForestTrail v6.2.0 — mobile category close alignment */
.category-panel-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-right:58px}
.category-close{position:absolute;top:2px;right:0;display:flex;align-items:center;justify-content:center;padding:0;margin:0;line-height:1;font-family:Arial,sans-serif}
@media(max-width:900px){
  .category-panel-head{padding-right:64px}
  .category-close{top:4px;right:2px;width:54px;height:54px;font-size:34px;line-height:1}
}

/* ForestTrail v6.2.0 — Excel price tools */
.excel-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.excel-upload-btn{cursor:pointer}
.excel-note,.excel-result{margin-top:14px;padding:16px;border:1px solid rgba(210,182,111,.38);border-radius:14px;background:#fffaf1;line-height:1.5}
.excel-result:empty{display:none}
.excel-result pre{white-space:pre-wrap;max-height:260px;overflow:auto}
@media(max-width:600px){.excel-actions .btn{width:100%}}


/* === ForestTrail v6.2.1: coloured Excel price buttons === */
#exportPricesExcel{
  background:linear-gradient(180deg,#237a57,#13533b) !important;
  color:#fff !important;
  border:1px solid #13533b !important;
  font-weight:800 !important;
  box-shadow:0 10px 22px rgba(19,83,59,.22) !important;
}
#exportPricesExcel:hover{
  background:linear-gradient(180deg,#2b8b64,#176047) !important;
  transform:translateY(-1px);
  filter:none !important;
}
.excel-upload-btn{
  background:linear-gradient(180deg,#e5c97f,#caa85a) !important;
  color:#173d2e !important;
  border:1px solid #b7903f !important;
  font-weight:800 !important;
  box-shadow:0 10px 22px rgba(183,144,63,.20) !important;
}
.excel-upload-btn:hover{
  background:linear-gradient(180deg,#edd691,#d3b361) !important;
  transform:translateY(-1px);
  filter:none !important;
}
#exportPricesExcel:active,.excel-upload-btn:active{
  transform:translateY(0) scale(.99);
  box-shadow:0 5px 12px rgba(0,0,0,.14) !important;
}

/* ForestTrail v7.0 — real reviews */
.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.review-card{overflow:hidden;border:1px solid rgba(26,64,52,.13);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(18,54,45,.07)}.review-photo{width:100%;height:145px;object-fit:cover;display:block}.review-card-body{padding:20px;display:grid;gap:10px}.review-card-body p{margin:0;line-height:1.65;color:#344b43}.review-card-body b{color:#153d33}.review-card-body small{color:#6c776f}.review-stars{color:#c89d2d;letter-spacing:.08em}.product-review{margin-top:13px;padding:12px 13px;border-radius:14px;background:#f8f2e3;border:1px solid #eadcb8}.product-review span{display:block;color:#9b7521;font-weight:800;font-size:12px}.product-review p{margin:6px 0 0!important;font-size:13px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:900px){.review-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.review-grid{grid-template-columns:1fr}.review-photo{height:170px}}
\n\n/* === ForestTrail v7.1 Product Details Modal === */
.compact-product-card .card-image{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}
.compact-product-card .card-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em}
.compact-product-card footer{align-items:flex-end;gap:14px}
.compact-product-card .card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.compact-product-card .details-button{background:transparent!important;color:var(--green,#173f32)!important;border:1px solid rgba(23,63,50,.28)!important}
.compact-product-card .details-button:hover{border-color:var(--gold,#d2b66f)!important;background:rgba(210,182,111,.1)!important}
body.product-modal-open{overflow:hidden}
.product-modal[hidden]{display:none}
.product-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:24px;opacity:0;transition:opacity .22s ease}
.product-modal.open{opacity:1}
.product-modal-backdrop{position:absolute;inset:0;background:rgba(3,13,10,.72);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.product-modal-panel{position:relative;width:min(980px,100%);max-height:min(90vh,920px);overflow:auto;background:#fffdf8;border:1px solid rgba(210,182,111,.55);border-radius:28px;box-shadow:0 30px 90px rgba(0,0,0,.38);transform:translateY(18px) scale(.985);transition:transform .22s ease;color:#173f32}
.product-modal.open .product-modal-panel{transform:none}
.product-modal-close{position:sticky;float:right;top:16px;right:16px;z-index:5;width:44px;height:44px;border-radius:50%;border:1px solid rgba(23,63,50,.16);background:rgba(255,253,248,.94);font-size:30px;line-height:1;color:#173f32;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.product-modal-main{display:grid;grid-template-columns:minmax(280px,44%) 1fr;gap:34px;padding:36px 36px 22px}
.product-modal-image{border-radius:22px;overflow:hidden;background:#f2eee3;min-height:340px}
.product-modal-image img{width:100%;height:100%;max-height:470px;object-fit:cover;display:block}
.product-modal-info{align-self:center;padding-right:34px}
.product-modal-info small{letter-spacing:.12em;text-transform:uppercase;color:#7b806f}
.product-modal-info h2{font-family:var(--serif);font-size:clamp(34px,4vw,58px);line-height:1.02;margin:12px 0 16px;color:#173f32}
.product-modal-rating{margin-bottom:22px;color:#666}.product-modal-rating span,.modal-review-card .review-stars{color:#b88a2c;letter-spacing:.08em}
.product-modal-info strong{display:block;font-size:32px;margin-bottom:22px}
.product-modal-buy,.product-modal-sticky button{border:0;border-radius:14px;background:#173f32;color:white;font-weight:700;padding:15px 22px;cursor:pointer}
.product-modal-buy.added,.product-modal-sticky button.added{background:#9b7a2b}
.product-modal-tabs{display:flex;gap:8px;padding:0 36px;border-bottom:1px solid rgba(23,63,50,.12);overflow-x:auto}
.product-modal-tabs button{flex:0 0 auto;border:0;background:transparent;padding:16px 18px;color:#657166;font-weight:700;border-bottom:3px solid transparent;cursor:pointer}
.product-modal-tabs button.active{color:#173f32;border-bottom-color:#d2b66f}
.product-modal-tab{display:none;padding:28px 36px 100px;font-size:17px;line-height:1.75;white-space:pre-line}
.product-modal-tab.active{display:block}
.product-modal-empty{color:#777}
.modal-review-list{display:grid;gap:16px}.modal-review-card{display:grid;grid-template-columns:110px 1fr;gap:18px;padding:18px;border:1px solid rgba(23,63,50,.12);border-radius:18px;background:white}.modal-review-card img{width:110px;height:110px;object-fit:cover;border-radius:13px}.modal-review-card p{margin:8px 0}.modal-review-card small{display:block;color:#777;margin-top:5px}
.product-modal-sticky{position:sticky;bottom:0;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 36px;background:rgba(255,253,248,.96);backdrop-filter:blur(12px);border-top:1px solid rgba(23,63,50,.12);box-shadow:0 -10px 26px rgba(0,0,0,.06)}
.product-modal-sticky b{font-size:25px}
@media(max-width:700px){
 .product-modal{padding:0;align-items:end}
 .product-modal-panel{width:100%;max-height:94svh;border-radius:24px 24px 0 0;transform:translateY(100%);border-bottom:0}
 .product-modal.open .product-modal-panel{transform:translateY(0)}
 .product-modal-panel:before{content:'';display:block;width:54px;height:5px;border-radius:5px;background:rgba(23,63,50,.18);margin:10px auto -2px}
 .product-modal-close{top:12px;right:12px}
 .product-modal-main{grid-template-columns:1fr;gap:18px;padding:20px 18px 18px}
 .product-modal-image{min-height:240px;max-height:36svh}
 .product-modal-image img{height:100%;max-height:36svh}
 .product-modal-info{padding-right:0}
 .product-modal-info h2{font-size:36px}
 .product-modal-info strong{font-size:27px;margin-bottom:14px}
 .product-modal-buy{width:100%}
 .product-modal-tabs{padding:0 12px}
 .product-modal-tabs button{padding:14px 12px}
 .product-modal-tab{padding:22px 18px 96px;font-size:16px}
 .product-modal-sticky{padding:13px 18px calc(13px + env(safe-area-inset-bottom))}
 .product-modal-sticky button{padding:13px 16px}
 .modal-review-card{grid-template-columns:76px 1fr;padding:14px;gap:12px}.modal-review-card img{width:76px;height:76px}
 .compact-product-card footer{display:block}.compact-product-card .card-actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr}.compact-product-card .card-actions button{width:100%}
}

/* ForestTrail v7.2 — действительно компактные карточки каталога */
.compact-product-card{
  min-height:0!important;
  height:auto!important;
}
.compact-product-card .card-image{
  height:250px!important;
}
.compact-product-card .card-body{
  flex:0 0 auto!important;
  padding:18px 20px 14px!important;
}
.compact-product-card .card-body h3{
  margin:9px 0 0!important;
  min-height:2.05em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.compact-product-card .card-body>p,
.compact-product-card .card-body>ul,
.compact-product-card .card-body>ol,
.compact-product-card .card-summary,
.compact-product-card .product-review{
  display:none!important;
}
.compact-product-card .card-rating{
  margin-top:10px;
  min-height:22px;
  color:#65756d;
  font-size:14px;
  font-weight:600;
}
.compact-product-card .card-rating span{
  color:var(--gold);
  font-size:17px;
}
.compact-product-card footer{
  margin-top:auto;
  padding:14px 20px 18px!important;
  align-items:center!important;
}
.compact-product-card .card-actions{
  display:grid!important;
  grid-template-columns:auto auto;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
.compact-product-card .card-actions button{
  min-height:42px;
  white-space:nowrap;
}
@media(max-width:1100px) and (min-width:901px){
  .compact-product-card .card-actions{grid-template-columns:1fr!important;width:100%;}
  .compact-product-card footer{align-items:flex-start!important;flex-direction:column!important;}
  .compact-product-card .card-actions button{width:100%;}
}
@media(max-width:900px){
  .compact-product-card .card-image{height:240px!important;}
  .compact-product-card .card-body h3{min-height:0;}
  .compact-product-card footer{display:block!important;}
  .compact-product-card .card-actions{grid-template-columns:1fr 1fr!important;margin-top:12px;}
  .compact-product-card .card-actions button{width:100%;}
}

/* ForestTrail v7.2.1 — фото карточек 3:4 без тёмной рамки */
.compact-product-card .card-image{
  width:100%!important;
  height:auto!important;
  aspect-ratio:3/4!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.compact-product-card .card-image:focus,
.compact-product-card .card-image:focus-visible{
  outline:0!important;
  box-shadow:none!important;
}
.compact-product-card .card-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:3/4!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
@media(max-width:900px){
  .compact-product-card .card-image{
    height:auto!important;
    aspect-ratio:3/4!important;
  }
}

/* ForestTrail v7.2.2 — только описание в окне товара + мобильное выравнивание */
.product-modal-tabs,
.product-modal-tab,
.product-modal-rating,
.modal-review-list{
  display:none!important;
}
.product-modal-description{
  padding:26px 36px 100px;
  border-top:1px solid rgba(23,63,50,.12);
  font-size:17px;
  line-height:1.75;
  white-space:pre-line;
}
.product-modal-description h3{
  margin:0 0 16px;
  font:600 34px/1 var(--serif);
  color:var(--forest,#173f32);
}
.product-modal-description p{margin:0;}

@media(max-width:900px){
  .catalog-page{padding-left:10px!important;padding-right:10px!important;}
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .compact-product-card{
    height:100%!important;
    min-width:0!important;
    border-radius:20px!important;
  }
  .compact-product-card .card-body{
    padding:13px 12px 10px!important;
    min-height:112px!important;
  }
  .compact-product-card .card-body small{
    font-size:10px!important;
    min-height:1.2em!important;
  }
  .compact-product-card .card-body h3{
    font-size:22px!important;
    line-height:1.05!important;
    min-height:2.1em!important;
    margin-top:8px!important;
  }
  .compact-product-card footer{
    margin-top:auto!important;
    padding:13px 10px 14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:11px!important;
  }
  .compact-product-card footer>b{
    display:block!important;
    min-height:30px!important;
    font-size:24px!important;
    line-height:1.2!important;
  }
  .compact-product-card .card-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;
    gap:7px!important;
    margin:0!important;
  }
  .compact-product-card .card-actions button{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:8px 5px!important;
    font-size:13px!important;
    line-height:1.1!important;
    white-space:normal!important;
    text-align:center!important;
  }
  .product-modal-main{padding-bottom:20px!important;}
  .product-modal-description{
    padding:22px 18px 96px!important;
    font-size:16px!important;
    line-height:1.65!important;
  }
  .product-modal-description h3{font-size:30px!important;margin-bottom:13px!important;}
}
@media(max-width:390px){
  .catalog-page{padding-left:7px!important;padding-right:7px!important;}
  .product-grid{gap:7px!important;}
  .compact-product-card .card-body h3{font-size:20px!important;}
  .compact-product-card .card-actions button{font-size:12px!important;}
}

/* ForestTrail v7.2.3 — финальная полировка карточек и фото отзывов */
.compact-product-card{
  display:flex!important;
  flex-direction:column!important;
}
.compact-product-card .card-body h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
.compact-product-card footer{
  margin-top:auto!important;
}

/* Фото отзывов показываем полностью: животное больше не обрезается */
.review-photo{
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
}

@media(max-width:900px){
  .catalog-page{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .compact-product-card{
    border-radius:18px!important;
    overflow:hidden!important;
  }
  .compact-product-card .card-image{
    aspect-ratio:3/4!important;
  }
  .compact-product-card .card-body{
    padding:12px 11px 9px!important;
    min-height:105px!important;
  }
  .compact-product-card .card-body small{
    font-size:9px!important;
    letter-spacing:.08em!important;
  }
  .compact-product-card .card-body h3{
    font-size:21px!important;
    line-height:1.02!important;
    min-height:2.04em!important;
    margin:7px 0 0!important;
  }
  .compact-product-card footer{
    padding:12px 9px 13px!important;
    gap:10px!important;
  }
  .compact-product-card footer>b{
    min-height:29px!important;
    font-size:23px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .compact-product-card .card-actions{
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;
    gap:6px!important;
  }
  .compact-product-card .card-actions button{
    min-height:46px!important;
    padding:7px 4px!important;
    border-radius:11px!important;
    font-size:12px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  .compact-product-card .details-button{
    font-size:11.5px!important;
  }
  .floating-cart{
    width:68px!important;
    height:68px!important;
    right:14px!important;
    bottom:84px!important;
  }
  .floating-cart svg{width:27px!important;height:27px!important;}
  .back-to-top{
    width:42px!important;
    height:42px!important;
    right:17px!important;
    bottom:162px!important;
  }
  .review-photo{
    height:auto!important;
    max-height:300px!important;
  }
}

@media(max-width:390px){
  .catalog-page{padding-left:6px!important;padding-right:6px!important;}
  .product-grid{gap:6px!important;}
  .compact-product-card .card-body{padding-left:9px!important;padding-right:9px!important;}
  .compact-product-card .card-body h3{font-size:19px!important;}
  .compact-product-card footer>b{font-size:21px!important;}
  .compact-product-card .card-actions button{font-size:11px!important;}
  .compact-product-card .details-button{font-size:10.5px!important;}
}

/* ForestTrail v7.2.4 — mobile product modal close button */
@media (max-width:700px){
  .product-modal-close{
    position:sticky!important;
    float:none!important;
    top:12px!important;
    right:auto!important;
    margin:12px 12px -56px auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:50%!important;
    border:1px solid rgba(23,63,50,.18)!important;
    background:#fffdf8!important;
    color:#173f32!important;
    font-size:30px!important;
    font-weight:400!important;
    line-height:1!important;
    box-shadow:0 6px 18px rgba(0,0,0,.14)!important;
    z-index:20!important;
    transform:none!important;
  }
  .product-modal-close:active{
    transform:scale(.96)!important;
  }
}

/* === ForestTrail v7.2.5 — final mobile product modal polish === */
@media (max-width:700px){
  .product-modal-panel{
    position:relative!important;
  }

  /* Compact close control inside the card, over the image corner */
  .product-modal-close{
    position:absolute!important;
    float:none!important;
    top:18px!important;
    right:18px!important;
    margin:0!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:rgba(255,253,248,.76)!important;
    color:#173f32!important;
    font-size:30px!important;
    font-weight:300!important;
    line-height:1!important;
    box-shadow:0 3px 12px rgba(0,0,0,.10)!important;
    backdrop-filter:blur(7px)!important;
    -webkit-backdrop-filter:blur(7px)!important;
    z-index:30!important;
    transform:none!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  .product-modal-close:active{
    background:rgba(23,63,50,.12)!important;
    transform:scale(.94)!important;
  }

  /* Denser layout and a slightly larger product image */
  .product-modal-main{
    gap:16px!important;
    padding:16px 14px 18px!important;
  }
  .product-modal-image{
    width:100%!important;
    min-height:250px!important;
    max-height:39svh!important;
    border-radius:20px!important;
  }
  .product-modal-image img{
    width:100%!important;
    height:100%!important;
    max-height:39svh!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .product-modal-info{
    padding:0 2px!important;
  }
  .product-modal-info small{
    display:block!important;
    margin-top:2px!important;
  }
  .product-modal-info h2{
    margin:10px 0 14px!important;
    line-height:1.03!important;
  }
}

@media (max-width:390px){
  .product-modal-close{
    top:16px!important;
    right:16px!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    font-size:28px!important;
  }
  .product-modal-main{
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
