:root{
  --bg:#f4f7f9;--panel:#fff;--ink:#16212b;--muted:#64717d;--line:#dce4e9;
  --brand:#1688d4;--brand-dark:#075b90;--navy:#062238;--navy2:#0b4774;--gold:#f3b61f;
  --green:#168a55;--green-dark:#0f6e43;--shadow:0 18px 45px rgba(24,46,63,.10);--radius:20px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
button,a{font:inherit}
button{cursor:pointer}
.site-top{height:190px;background:var(--navy);color:#fff;position:relative;z-index:5;box-shadow:0 5px 18px rgba(0,0,0,.08)}
.top-nav{height:70px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--navy)}
.wordmark{color:#fff;text-decoration:none;font-size:27px;font-weight:800;letter-spacing:-.025em;white-space:nowrap}
.wordmark span{color:#198bd7}
.main-nav{display:flex;align-items:center;gap:30px}
.main-nav a{color:#fff;text-decoration:none;font-size:15px;font-weight:700}
.main-nav a:hover{color:#9fd8ff}
.gold-rule{height:4px;background:var(--gold)}
.shop-hero{height:116px;padding:18px 34px 16px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:linear-gradient(115deg,#062c49 0%,#0b4f82 100%);overflow:hidden}
.hero-kicker{margin:0 0 3px;font-size:10px;font-weight:800;letter-spacing:.17em;color:#8fd0ff}
.shop-hero h1{margin:0;font-size:clamp(34px,4.2vw,58px);line-height:.96;letter-spacing:-.045em;color:#fff}
.shop-hero p:last-child{margin:7px 0 0;color:#d7e8f5;font-size:14px}
.hero-mark{width:160px;height:100%;display:flex;align-items:center;justify-content:center;opacity:.16;transform:rotate(-4deg)}
.hero-cart{font-size:76px;filter:grayscale(1) brightness(2.5)}
.shop-shell{height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(0,1.55fr) minmax(390px,.9fr);overflow:hidden}
.catalogue{height:calc(100vh - 190px);overflow-y:auto;padding:20px 28px 30px;background:linear-gradient(180deg,#f7fafc 0%,#eef3f6 100%)}
.eyebrow{margin:0;color:var(--brand);font-size:11px;font-weight:800;letter-spacing:.14em}
.catalogue-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 4px 14px}
.catalogue-toolbar strong{display:block;font-size:17px}
.catalogue-toolbar span{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.guide-link{color:var(--brand-dark);font-weight:700;text-decoration:none;background:#fff;border:1px solid #cfe0ea;border-radius:12px;padding:10px 13px;white-space:nowrap}
.guide-link:hover{background:#eef8fd}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.product-card{appearance:none;width:100%;border:1px solid var(--line);background:#fff;border-radius:18px;padding:13px;text-align:left;display:grid;grid-template-columns:108px minmax(0,1fr);gap:14px;min-height:142px;box-shadow:0 6px 18px rgba(24,46,63,.05);transition:.18s ease}
.product-card:hover,.product-card:focus-visible{transform:translateY(-2px);border-color:#96c7e4;box-shadow:0 12px 25px rgba(24,46,63,.10);outline:none}
.product-card.selected{border:2px solid var(--brand);padding:12px;background:#f8fcff;grid-template-columns:138px minmax(0,1fr);min-height:172px;box-shadow:0 12px 25px rgba(24,46,63,.10)}
.product-thumb{width:108px;height:112px;border-radius:13px;background:#f5f7f8;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:all .18s ease}
.product-thumb img{width:100%;height:100%;object-fit:contain;padding:5px;transition:transform .18s ease}
.product-meta{min-width:0;display:flex;flex-direction:column}
.product-category{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--brand)}
.product-name{margin:6px 0 8px;font-size:15px;line-height:1.28;font-weight:700}
.product-snippet{margin:0;color:var(--muted);font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card.selected .product-thumb{width:138px;height:148px;border-radius:16px;border:1px solid #d7e7f1;background:#fff}
.product-card.selected .product-thumb img{padding:10px;transform:scale(1.02)}
.product-card.selected .product-name{font-size:17px}
.product-card.selected .product-snippet{-webkit-line-clamp:3;font-size:13px}
.product-price{margin-top:auto;padding-top:9px;font-weight:800;font-size:17px}
.catalogue-footer{display:flex;justify-content:space-between;gap:16px;margin-top:20px;padding:18px 4px 0;color:var(--muted);font-size:12px}
.catalogue-footer strong{color:var(--ink)}
.side-panel{height:calc(100vh - 190px);background:#fff;border-left:1px solid var(--line);display:block;overflow-y:auto;box-shadow:-14px 0 36px rgba(24,46,63,.06);position:relative;z-index:2}
.detail-panel{padding:24px 26px 22px;border-bottom:1px solid var(--line);overflow:visible}
.detail-wrap{display:grid;grid-template-rows:auto auto auto;gap:14px}
.detail-top{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}
.detail-image{height:180px;border-radius:16px;background:#f5f7f8;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #edf1f3}
.detail-image img{width:100%;height:100%;object-fit:contain;padding:10px}
.detail-category{font-size:11px;color:var(--brand);font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.detail-title{margin:5px 0 8px;font-size:23px;line-height:1.13;letter-spacing:-.03em}
.detail-price{font-size:23px;font-weight:800;color:var(--green-dark)}
.detail-description{overflow:visible;padding-right:0;color:#46535e;font-size:14px;line-height:1.65}
.detail-description p{margin:0 0 10px}
.detail-description::-webkit-scrollbar,.cart-items::-webkit-scrollbar,.catalogue::-webkit-scrollbar{width:8px}
.detail-description::-webkit-scrollbar-thumb,.cart-items::-webkit-scrollbar-thumb,.catalogue::-webkit-scrollbar-thumb{background:#c7d2d9;border-radius:10px}
.add-row{display:flex;align-items:center;gap:10px}
.qty{width:66px;border:1px solid var(--line);border-radius:12px;padding:12px 8px;text-align:center;font-weight:700;background:#fff}
.add-button{flex:1;border:0;border-radius:12px;background:var(--green);color:#fff;padding:13px 16px;font-weight:800;box-shadow:0 8px 18px rgba(22,138,85,.18)}
.add-button:hover{background:var(--green-dark)}
.cart-panel{padding:18px 22px 24px;display:block;background:#fbfcfd}
.cart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cart-heading h2{margin:3px 0 9px;font-size:21px}
.text-button{border:0;background:transparent;color:#9a3d3d;font-weight:700;padding:4px 0}
.cart-items{overflow:visible;padding-right:0}
.empty-cart{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:13px;padding:16px}
.cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px 0;border-top:1px solid #e8edf0}
.cart-item-name{font-size:12px;font-weight:700;line-height:1.3;margin-bottom:6px}
.cart-item-controls{display:flex;align-items:center;gap:6px}
.cart-item-controls button{width:27px;height:27px;border-radius:8px;border:1px solid var(--line);background:#fff;font-weight:800}
.cart-item-controls span{min-width:24px;text-align:center;font-size:12px;font-weight:700}
.remove-item{color:#a33;border:0!important;background:transparent!important;width:auto!important;padding:0 3px}
.cart-item-price{font-size:13px;font-weight:800;white-space:nowrap}
.cart-summary{border-top:1px solid var(--line);padding-top:10px}
.cart-summary>div{display:flex;justify-content:space-between;font-size:12px;margin:3px 0}
.total-row{font-size:17px!important;margin:6px 0!important}
.card-note{margin:5px 0;color:var(--muted);font-size:10px;line-height:1.35}
.paypal-button{width:100%;border:0;border-radius:12px;background:#ffc439;color:#10244a;padding:11px 15px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700;box-shadow:0 7px 16px rgba(55,69,95,.12)}
.paypal-button strong{font-size:18px;font-style:italic}
.paypal-button:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:980px){
  .site-top{height:auto}
  .top-nav{height:auto;min-height:64px;padding:14px 18px;align-items:flex-start}
  .wordmark{font-size:22px}
  .main-nav{gap:14px;flex-wrap:wrap;justify-content:flex-end}
  .main-nav a{font-size:12px}
  .shop-hero{height:110px;padding:18px}
  .hero-mark{display:none}
  .shop-shell{grid-template-columns:1fr;display:block;height:auto;overflow:visible}
  .catalogue{height:auto;overflow:visible;padding:16px}
  .side-panel{height:auto;display:block;border-left:0;border-top:1px solid var(--line);overflow:visible}
  .detail-panel,.cart-panel{height:auto;min-height:0;overflow:visible}
  .detail-description,.cart-items{max-height:280px}
}
@media (max-width:650px){
  .shop-header{align-items:flex-start;flex-direction:column;padding:18px}
  .brand img{width:150px}
  .catalogue-toolbar{align-items:flex-start;flex-direction:column}
  .product-grid{grid-template-columns:1fr}
  .product-card{grid-template-columns:94px minmax(0,1fr)}
  .product-card.selected{grid-column:auto;grid-template-columns:120px minmax(0,1fr);min-height:160px}
  .product-thumb{width:94px;height:100px}
  .product-card.selected .product-thumb{width:120px;height:120px}
  .catalogue-footer{flex-direction:column}
  .detail-top{grid-template-columns:120px minmax(0,1fr)}
  .detail-image{height:120px}
  .detail-title{font-size:20px}
}

.detail-image{position:relative;cursor:zoom-in;padding:0;color:inherit;font:inherit;text-align:initial}
.zoom-hint{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);padding:5px 9px;border-radius:999px;background:rgba(6,34,56,.82);color:#fff;font-size:10px;font-weight:800;white-space:nowrap;opacity:.88}
.detail-image:hover .zoom-hint{background:rgba(6,34,56,.96)}
.image-zoom{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(2,17,29,.86);backdrop-filter:blur(5px)}
.image-zoom.open{display:flex}
.image-zoom-inner{max-width:min(92vw,1100px);max-height:88vh;display:flex;flex-direction:column;align-items:center;gap:10px}
.image-zoom img{display:block;max-width:100%;max-height:78vh;object-fit:contain;background:#fff;border-radius:18px;padding:12px;box-shadow:0 24px 70px rgba(0,0,0,.38)}
.image-zoom-caption{color:#fff;font-size:14px;font-weight:700;text-align:center}
.image-zoom-close{position:fixed;top:18px;right:22px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;font-size:32px;line-height:1}
.image-zoom-close:hover{background:rgba(255,255,255,.22)}
body.zoom-open{overflow:hidden}

.image-lightbox{position:fixed;inset:0;background:rgba(6,22,37,.82);display:none;align-items:center;justify-content:center;padding:24px;z-index:9999}
.image-lightbox.open{display:flex}
.lightbox-backdrop{position:absolute;inset:0}
.lightbox-dialog{position:relative;max-width:min(92vw,1000px);max-height:88vh;z-index:1}
.lightbox-dialog img{display:block;max-width:100%;max-height:88vh;width:auto;height:auto;background:#fff;border-radius:18px;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.lightbox-close{position:absolute;top:-14px;right:-14px;width:40px;height:40px;border-radius:999px;border:0;background:#fff;color:#062238;font-size:24px;font-weight:700;box-shadow:0 10px 24px rgba(0,0,0,.2)}

.side-panel::-webkit-scrollbar{width:10px}
.side-panel::-webkit-scrollbar-thumb{background:#c7d2d9;border-radius:10px}
