@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{--wine:#55202b;--dark:#3e1720;--ink:#2b2220;--muted:#80736c;--cream:#fbf7f0;--sand:#efe4d6;--line:#e7d9ca}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:15px 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}.topline{background:var(--dark);color:#fff;text-align:center;padding:10px;font-size:12px;letter-spacing:.3px}header{background:#fffdfa;border-bottom:1px solid var(--line)}.head{max-width:1180px;margin:auto;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:24px}.logo{font:italic 40px 'Playfair Display',Georgia,serif;color:var(--wine)}.logo small{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:3px;font-style:normal}.head form{display:flex;border:1px solid #d8c8b9;border-radius:28px;padding:4px 12px;max-width:430px;flex:1}.head input{border:0;outline:0;padding:10px;flex:1;font:inherit;background:transparent}.head button{border:0;background:none;font-size:23px;color:var(--wine)}nav{max-width:1180px;margin:auto;padding:0 22px 16px;display:flex;gap:30px;align-items:center;font-size:13px}.navbutton,.btn{background:var(--wine);color:white;padding:13px 19px;border-radius:7px;display:inline-block;font-weight:600;border:0;cursor:pointer}.hero{display:grid;grid-template-columns:.85fr 1.15fr;min-height:470px;background:linear-gradient(110deg,#f5ece1,#ddc5a5)}.hero-copy{padding:65px max(30px,calc((100vw - 1180px)/2));padding-right:20px;align-self:center}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--wine);font-weight:700}.hero h1,h1,h2{font-family:'Playfair Display',Georgia,serif;color:var(--dark)}.hero h1{font-size:clamp(40px,4.2vw,58px);line-height:1.05;margin:15px 0}.hero h1 em{font-weight:500}.lead{line-height:1.65;color:#66564e;max-width:400px;margin-bottom:25px}.points{font-size:11px;color:#68483e;margin-top:27px}.hero-art{display:grid;place-items:center;background:radial-gradient(ellipse at 80% 20%,#f2d9b4,transparent 35%),linear-gradient(135deg,#8b7557,#c5a77e 50%,#725238);position:relative;overflow:hidden}.slate{width:75%;aspect-ratio:1.5;background:linear-gradient(135deg,#45443f,#171817);border:7px solid #777064;border-radius:12px;box-shadow:0 25px 35px #30211688;transform:rotate(-4deg);color:#e9dfcb;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px}.slate small{letter-spacing:5px}.slate b{font:italic clamp(27px,3vw,44px) 'Playfair Display',serif}.slate span{font-size:30px}.wrap{max-width:1180px;margin:auto;padding:38px 22px 70px}.section{max-width:1180px;margin:auto;padding:60px 22px}.section h2{font-size:34px;margin:0 0 25px}.categories{display:grid;grid-template-columns:1fr 1fr;gap:20px}.category{border-radius:11px;padding:30px;min-height:220px;display:flex;flex-direction:column;justify-content:center;background:#eee0d0}.category h3{font:600 31px 'Playfair Display',serif;color:var(--dark);margin:0 0 8px}.category p{color:#66564e;line-height:1.5}.category b{color:var(--wine);font-size:13px}.category.stone{background:linear-gradient(120deg,#e8ded1,#bdb5a8)}.category.wood{background:linear-gradient(120deg,#f1e1ce,#c9a77f)}.center{text-align:center}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.card{background:#fffdfa;border:1px solid #eee4d9;border-radius:9px;overflow:hidden}.photo{display:block;aspect-ratio:1;background:#e7d9ca}.photo img,.detail-photo img{width:100%;height:100%;object-fit:cover}.placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;color:#f5e7d0;background:linear-gradient(135deg,#bd9666,#69452d)}.placeholder.board{background:linear-gradient(135deg,#53524d,#171817)}.placeholder b{font:italic 20px 'Playfair Display',serif}.card-info{padding:13px;display:grid;gap:10px}.card-info strong{font-size:18px}.small-btn{background:var(--wine);color:#fff;border-radius:5px;padding:9px;text-align:center;font-size:12px}.empty{text-align:center;background:#f2e9df;padding:45px 20px;border-radius:10px}.empty p{color:var(--muted)}.center{margin:24px 0}.outline{border:1px solid var(--wine);color:var(--wine);padding:12px 22px;border-radius:6px;display:inline-block}.banner{background:var(--wine);color:white;padding:38px max(22px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:24px}.banner h2{color:white;margin:8px 0}.banner p:not(.eyebrow){color:#f1ded8;max-width:650px;line-height:1.6}.banner .eyebrow{color:#e9c9bd}.light{background:#fff;color:var(--wine);margin-left:auto;white-space:nowrap}.benefits{max-width:1180px;margin:auto;padding:42px 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.benefits div{display:grid;gap:8px;color:var(--wine);font-size:25px}.benefits b{font:600 16px 'Playfair Display',serif;color:var(--ink)}.benefits small{font-size:12px;color:var(--muted)}footer{background:#2f2020;color:#f5e9df;padding:35px 22px}.foot{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.foot .logo{color:#f5e9df;font-size:30px}.foot p,.foot small{font-size:12px;color:#cbbab0}.crumb{font-size:12px;color:var(--muted);margin:0 0 28px}.filters{display:flex;gap:20px;margin:25px 0}.filters a{color:var(--wine);font-size:13px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:45px}.detail-photo{aspect-ratio:1;background:#e6dbce;border-radius:10px;overflow:hidden}.detail h1{font-size:40px}.detail h2{font-family:'DM Sans';font-size:26px}.note{background:#f0e6db;border-left:3px solid var(--wine);padding:15px;margin:20px 0}.narrow{max-width:780px}.large{font:25px/1.5 'Playfair Display',serif;color:var(--wine)}.cartline{padding:14px;border-bottom:1px solid var(--line)}@media(max-width:800px){.head{flex-wrap:wrap}.head form{order:3;flex-basis:100%;max-width:none}nav{overflow:auto;white-space:nowrap;gap:20px}.hero{grid-template-columns:1fr}.hero-copy{padding:42px 25px}.hero-art{min-height:300px}.products{grid-template-columns:repeat(2,1fr)}.banner{flex-wrap:wrap}.light{margin-left:0}.benefits{grid-template-columns:repeat(2,1fr)}}@media(max-width:550px){.topline{font-size:10px}.logo{font-size:32px}.hero h1{font-size:42px}.section{padding:42px 15px}.section h2{font-size:28px}.categories{grid-template-columns:1fr}.products{gap:10px}.card-info{padding:9px}.detail{grid-template-columns:1fr}.detail h1{font-size:32px}.foot{align-items:flex-start;flex-direction:column}.benefits{gap:20px}.wrap{padding:25px 15px 50px}}

/* Nalimiha: WB portrait photos (3:4), preserve the complete source image */
.detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.95fr);gap:40px;align-items:start;margin:24px 0 54px}
.detail-gallery{min-width:0}
.detail-photo{width:100%;aspect-ratio:3/4;min-height:0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.detail-photo>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.detail-thumbnails{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.detail-thumb{width:76px;height:102px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden;cursor:pointer}
.detail-thumb.active{border:2px solid var(--wine)}
.detail-thumb img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.detail{grid-template-columns:1fr;gap:22px}.detail-photo{max-width:560px;margin:auto}.detail-thumbnails{justify-content:flex-start}}

/* v2: balanced product layout and compact WB gallery */
.detail{
  display:grid !important;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr) !important;
  gap:36px !important;
  align-items:start !important;
  width:100%;
}
.detail-gallery,.detail-info{min-width:0 !important;width:100% !important}
.detail-photo{
  width:100% !important;
  max-width:100% !important;
  aspect-ratio:3/4 !important;
  height:auto !important;
  min-height:0 !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.detail-photo>img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
.detail-thumbnails{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  width:100% !important;
  margin-top:12px !important;
}
.detail-thumbnails>.detail-thumb{
  display:block !important;
  flex:0 0 76px !important;
  width:76px !important;
  height:102px !important;
  min-width:0 !important;
  max-width:76px !important;
  padding:3px !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:7px !important;
  cursor:pointer !important;
}
.detail-thumbnails>.detail-thumb img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.detail-info h1{
  font-size:clamp(28px,2.5vw,38px) !important;
  line-height:1.2 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  margin:10px 0 16px !important;
}
.detail-info>p{line-height:1.65}
@media(max-width:900px){
  .detail{grid-template-columns:minmax(0,1fr) minmax(300px,.9fr) !important;gap:24px !important}
}
@media(max-width:700px){
  .detail{grid-template-columns:minmax(0,1fr) !important;gap:22px !important}
  .detail-photo{max-width:560px !important;margin:0 auto !important}
  .detail-info h1{font-size:30px !important}
}

/* Catalog cards: show complete Wildberries portrait photos in 3:4 */
.products{
  align-items:stretch;
}
.card{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.photo{
  display:block !important;
  width:100% !important;
  aspect-ratio:3/4 !important;
  height:auto !important;
  min-height:0 !important;
  background:#fff !important;
  overflow:hidden !important;
  border-radius:0 !important;
}
.photo img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
.photo .placeholder{
  width:100%;
  height:100%;
}
.card-info{
  flex:1 0 auto;
}
@media(max-width:800px){
  .products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .products{grid-template-columns:1fr}
}

/* Nalimiha mobile refresh v1 — responsive overrides for the complete storefront */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:320px;overflow-x:hidden}
img,video,iframe{max-width:100%}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,.btn,.navbutton,.small-btn,.outline{min-height:42px}
input,select,textarea{font-size:16px;max-width:100%}

/* Header and navigation */
@media(max-width:760px){
  .topline{padding:8px 12px;font-size:10px;line-height:1.45;letter-spacing:.1px;white-space:normal}
  header{position:relative}
  .head{padding:14px 15px;gap:10px 14px;align-items:center;flex-wrap:wrap}
  .logo{font-size:30px;line-height:1.05;white-space:nowrap}
  .logo small{font-size:8px;letter-spacing:2.2px;margin-top:3px}
  .head>a[href*="cart.php"]{margin-left:auto;padding:9px 12px;border:1px solid var(--line);border-radius:8px;color:var(--wine);font-size:13px;font-weight:700;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  .head form{order:3;flex:1 0 100%;width:100%;max-width:none;margin:2px 0 0;min-height:44px;padding:3px 10px}
  .head input{min-width:0;padding:9px 7px;font-size:16px}
  .head button{min-width:40px;min-height:38px}
  nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 15px 13px;margin:0;overflow:visible;white-space:normal;max-width:none;font-size:12px}
  nav a{min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;min-height:40px;padding:9px 7px;border-radius:7px;background:#f7f1eb;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
  nav a.navbutton{grid-column:1/-1;background:var(--wine);color:#fff;padding:11px 12px}
}

/* Home page */
@media(max-width:760px){
  .hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .hero-copy{padding:34px 18px 28px}
  .hero h1{font-size:clamp(32px,9vw,43px);line-height:1.08;margin:12px 0}
  .lead{font-size:14px;line-height:1.6;margin-bottom:19px}
  .points{font-size:11px;line-height:1.55;margin-top:18px}
  .hero-art{min-height:230px;padding:22px 0}
  .slate{width:min(82%,420px);gap:12px;border-width:5px}
  .slate small{font-size:9px;letter-spacing:3px}
  .slate b{font-size:clamp(22px,6vw,34px)}
  .slate span{font-size:24px}
  .section{padding:38px 15px}
  .section h2{font-size:27px;line-height:1.15;margin-bottom:18px}
  .categories{grid-template-columns:minmax(0,1fr);gap:12px}
  .category{min-height:160px;padding:22px}
  .category h3{font-size:26px}
  .benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:28px 15px}
  .benefits div{font-size:22px;min-width:0}
  .benefits b{font-size:14px;line-height:1.3}
  .benefits small{font-size:11px;line-height:1.45}
  .banner{padding:27px 17px;gap:12px}
  .banner h2{font-size:24px;line-height:1.2}
  .banner p:not(.eyebrow){font-size:13px;line-height:1.55}
  .banner .light{margin:0;width:100%;text-align:center}
  footer{padding:28px 17px}
  .foot{align-items:flex-start;flex-direction:column;gap:12px}
  .foot .logo{font-size:27px}
}

/* Catalog and product cards */
@media(max-width:760px){
  .wrap{padding:23px 14px 42px}
  .crumb{font-size:11px;line-height:1.5;margin-bottom:18px;overflow-wrap:anywhere}
  .filters{display:flex;gap:8px;overflow-x:auto;white-space:nowrap;padding:2px 0 8px;margin:18px 0;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .filters a{flex:0 0 auto;padding:9px 12px;border:1px solid var(--line);border-radius:24px;background:#fffdfa;font-size:12px}
  .products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  .card{min-width:0;border-radius:8px}
  .photo{aspect-ratio:3/4 !important;min-height:0 !important}
  .card-info{padding:9px 9px 11px;gap:7px;min-width:0}
  .card-info strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9em}
  .card-info .small-btn{font-size:11px;line-height:1.25;padding:10px 7px;min-height:40px;display:flex;align-items:center;justify-content:center}
  .detail{grid-template-columns:minmax(0,1fr) !important;gap:18px !important;margin:14px 0 35px}
  .detail-gallery,.detail-info{min-width:0;width:100%}
  .detail-photo{width:100%;max-width:100% !important;aspect-ratio:3/4 !important;max-height: min(118vw,620px);margin:0 auto !important}
  .detail-photo>img{object-fit:contain !important}
  .detail-thumbnails{gap:8px !important;flex-wrap:nowrap !important;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .detail-thumbnails>.detail-thumb{flex:0 0 62px !important;width:62px !important;height:82px !important}
  .detail-info h1{font-size:27px !important;line-height:1.2 !important;margin:5px 0 13px !important;overflow-wrap:anywhere}
  .detail-info h2{font-size:21px;line-height:1.25}
  .detail-info p{font-size:14px;line-height:1.6}
  .detail-info .btn,.detail-info button.btn{width:100%;text-align:center;justify-content:center}
  .detail-info input[type="number"]{min-height:44px;max-width:110px;padding:9px;border:1px solid var(--line);border-radius:7px}
}
@media(max-width:360px){
  .products{gap:8px !important}
  .card-info{padding:8px}
  .card-info strong{font-size:12px}
  .head{padding-left:12px;padding-right:12px}
  nav{padding-left:12px;padding-right:12px}
}

/* Cart — override the page-level desktop layout on phones */
@media(max-width:640px){
  .shop-flow h1{font-size:29px;line-height:1.2;margin:7px 0 18px}
  .cart-layout{grid-template-columns:minmax(0,1fr) !important;gap:13px !important}
  .cart-items,.cart-summary{padding:13px !important;border-radius:10px}
  .cart-item{grid-template-columns:68px minmax(0,1fr) !important;gap:8px 11px !important;align-items:start !important;padding:12px 0 !important}
  .cart-image{grid-column:1 !important;grid-row:1 / span 4 !important;width:68px !important;height:91px !important}
  .cart-product{grid-column:2 !important;grid-row:1 !important;min-width:0;gap:4px !important}
  .cart-product strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
  .cart-product small{font-size:11px}
  .cart-price{font-size:14px}
  .cart-qty{grid-column:2 !important;grid-row:2 !important;display:flex;align-items:center;gap:8px;font-size:12px}
  .cart-qty input{width:66px !important;min-height:40px;margin:0 !important;padding:7px !important}
  .cart-qty small{font-size:10px}
  .cart-line-total{grid-column:2 !important;grid-row:3 !important;font-size:14px;align-self:center}
  .cart-remove{grid-column:2 !important;grid-row:4 !important;justify-self:start;min-height:36px;padding:3px 0 !important}
  .cart-actions{padding-top:12px}
  .cart-actions .outline{width:100%;text-align:center;display:block}
  .cart-clear{min-height:40px}
  .cart-summary{position:static !important}
  .cart-summary h2{font-size:21px}
  .summary-row{font-size:12px;align-items:flex-start}
  .summary-total{font-size:17px}
  .checkout-button{min-height:48px;display:flex;align-items:center;justify-content:center}
  .continue-link{display:inline-block;padding:9px 0}
}

/* Checkout */
@media(max-width:760px){
  .checkout-layout{grid-template-columns:minmax(0,1fr) !important;gap:13px !important}
  .checkout-form,.checkout-summary{gap:12px !important}
  .checkout-summary{order:-1;position:static !important;padding:15px !important}
  .checkout-section{padding:16px !important}
  .checkout-section h2,.checkout-summary h2{font-size:20px !important;line-height:1.25}
  .checkout-section label{font-size:13px;margin:12px 0}
  .checkout-section input,.checkout-section select,.checkout-section textarea{min-height:45px;padding:11px !important;font-size:16px !important}
  .checkout-section textarea{min-height:100px}
  .checkout-submit{width:100%;min-height:50px;justify-self:stretch;text-align:center}
  .checkout-product,.checkout-total{font-size:12px;gap:10px;line-height:1.4}
  .checkout-product span{max-width:68%;overflow-wrap:anywhere}
  .checkout-total.final{font-size:17px}
  .form-hint{font-size:11px;line-height:1.5}
}

/* Account page: responsive profile, order history and login forms */
@media(max-width:760px){
  .account-shell{padding:20px 14px 42px !important}
  .account-hero{display:block !important;margin-bottom:18px}
  .account-hero h1{font-size:29px !important}
  .account-layout{grid-template-columns:minmax(0,1fr) !important;gap:12px !important}
  .account-card,.account-login-panel{padding:16px !important;border-radius:12px}
  .account-login-grid{grid-template-columns:minmax(0,1fr) !important;gap:12px !important}
  .account-orders{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
  .account-orders table{min-width:620px}
  .account-order-summary{align-items:flex-start !important;gap:8px !important;padding:12px !important}
  .account-order-summary-right{text-align:right;min-width:90px}
  .account-order-body{padding:12px !important}
  .account-info-row{gap:8px;font-size:12px}
  .account-info-row strong{overflow-wrap:anywhere}
  .account-form input,.account-form button,.account-btn{min-height:44px}
  .account-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .account-actions .account-btn{width:100%}
}

/* Shared forms and touch targets */
@media(max-width:760px){
  .btn,.navbutton,.outline,.small-btn{min-height:44px}
  .empty{padding:30px 15px}
  .empty h3{font-size:20px}
}


/* Nalimiha mobile v2 hotfix — prevent clipped horizontal header navigation */
@media (max-width: 760px) {
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  header > nav,
  header nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 14px 14px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    white-space: normal !important;
  }

  header > nav > a,
  header nav > a {
    display: flex !important;
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 7px !important;
    border-radius: 7px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
    font-size: 12px !important;
  }

  header > nav > a.navbutton,
  header nav > a.navbutton {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* A compact, balanced utility line on narrow screens */
  .topline {
    padding: 8px 12px !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .head {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px 12px !important;
  }

  .head > a,
  .head form {
    min-width: 0 !important;
  }

  .head .logo {
    max-width: calc(100% - 118px) !important;
    font-size: clamp(27px, 7.2vw, 32px) !important;
    line-height: 1.05 !important;
  }

  .head .logo small {
    font-size: 8px !important;
    letter-spacing: 2px !important;
    white-space: normal !important;
  }

  /* Product page gallery: keep secondary photos as small thumbnails */
  .detail-gallery > .detail-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  .detail-gallery > .detail-thumbnails > button.detail-thumb {
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 86px !important;
    min-height: 0 !important;
    max-height: 86px !important;
    padding: 3px !important;
    overflow: hidden !important;
  }

  .detail-gallery > .detail-thumbnails > button.detail-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
}

@media (max-width: 360px) {
  header > nav,
  header nav {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 6px !important;
  }
  header > nav > a,
  header nav > a {
    font-size: 11px !important;
    padding: 8px 5px !important;
  }
}


/* Nalimiha top benefits strip: keep each benefit intact on mobile */
.topline {
  padding: 10px 14px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  overflow: hidden;
}
.topline-benefits {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 26px;
}
.topline-benefits span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .topline { padding: 8px 10px !important; font-size: 10px !important; }
  .topline-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 6px 8px;
  }
  .topline-benefits span {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(8.5px, 2.45vw, 10px);
    letter-spacing: 0;
    text-align: center;
  }
}
@media (max-width: 360px) {
  .topline { padding-left: 6px !important; padding-right: 6px !important; }
  .topline-benefits { column-gap: 4px; }
  .topline-benefits span { font-size: 8.5px; }
}

/* Nalimiha fix: uniform product-card buttons on home and catalog */
.products {
  align-items: stretch;
}
.products > .card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.products > .card > .card-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.products > .card > .card-info > a:first-child {
  line-height: 1.4;
}
.products > .card > .card-info > .small-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  height: 42px;
  box-sizing: border-box;
  margin-top: auto;
  padding: 9px 10px;
  line-height: 1.2;
  white-space: normal;
}
@media (max-width: 760px) {
  .products > .card > .card-info > .small-btn {
    min-height: 42px;
    height: 42px;
    padding: 8px 6px;
    font-size: 11px;
  }
}
