/*
Theme Name: აწარმოე ქართული
Theme URI: https://producegeorgian.ge
Author: Produce Georgian
Description: შესაღობი და სამშენებლო მასალების მწარმოებლის თემა WooCommerce-ისთვის. გრაფიტი, ნარინჯისფერი აქცენტი და ლითონის ბადის ფაქტურა.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: akb
*/

:root{
  --acc:#C2410C;
  --acc-d:#9A3412;
  --ink:#14181B;
  --dark:#14181B;
  --dark2:#1E2429;
  --mut:#4B555D;
  --mut-d:#C9D0D5;
  --line:#D5DADD;
  --bg:#EEF0F1;
  --w:#fff;
  --r:8px;
  --font:'Noto Sans Georgian',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mesh-dark:repeating-linear-gradient(45deg,rgba(255,255,255,.055) 0 2px,transparent 2px 28px),repeating-linear-gradient(-45deg,rgba(255,255,255,.055) 0 2px,transparent 2px 28px);
  --mesh-light:repeating-linear-gradient(45deg,#8A949B 0 1.5px,transparent 1.5px 20px),repeating-linear-gradient(-45deg,#8A949B 0 1.5px,transparent 1.5px 20px);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:400 16px/1.6 var(--font);color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--acc)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
h1,h2,h3,h4{font-weight:800;line-height:1.2;letter-spacing:-.01em;margin:0 0 .5em}
h1{font-size:clamp(32px,5vw,62px)}
h2{font-size:clamp(26px,3.2vw,40px)}
h3{font-size:clamp(18px,2vw,22px)}
p{margin:0 0 1em}
.wrap{max-width:1240px;margin:0 auto;padding:0 clamp(16px,4vw,48px)}
.skip{position:absolute;left:-9999px;top:0;background:var(--acc);color:#fff;padding:12px 18px;z-index:1000}
.skip:focus{left:0;color:#fff}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ===== buttons ===== */
.btn,.button,button.button,input[type=submit],.wp-block-button__link,#respond input#submit{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;border:0;border-radius:6px;background:var(--acc);color:#fff;font:700 15px/1 var(--font);cursor:pointer;text-align:center;transition:background .15s}
.btn:hover,.button:hover,input[type=submit]:hover,.wp-block-button__link:hover{background:var(--acc-d);color:#fff}
.btn--lg{min-height:52px;padding:0 28px}
.btn--dark{background:var(--ink)}
.btn--dark:hover{background:#000}
.btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.btn--ghost:hover{background:var(--ink);color:#fff}
.btn--ghost-light{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px #6B767E}
.btn--ghost-light:hover{background:#fff;color:var(--ink)}
.btn--light{background:#fff;color:var(--ink)}
.btn--light:hover{background:var(--bg);color:var(--ink)}
button.button.alt,a.button.alt{background:var(--acc)}
button[disabled],.button.disabled,.button:disabled{opacity:.5;cursor:not-allowed}

/* ===== top bar ===== */
.topbar{background:var(--dark);color:var(--mut-d);font-size:14px}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:4px 24px;align-items:center;justify-content:space-between;min-height:44px}
.topbar a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#fff}
.topbar a:hover{color:#fff;opacity:.8}
.topbar__right{display:flex;flex-wrap:wrap;gap:0 20px;align-items:center}
.topbar__phone{font-weight:700}

/* ===== header ===== */
.site-head{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.admin-bar .site-head{top:32px}
.site-head__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px;padding:16px 0 8px}
.brand{display:flex;align-items:center;gap:14px;line-height:1.15}
.brand__name{display:block;font-size:26px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.brand__tag{display:block;font-size:13px;color:var(--mut);margin-top:4px}
.custom-logo{max-height:56px;width:auto}
.site-head__tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;flex:1 1 320px;justify-content:flex-end}
.akb-search{display:flex;flex:1 1 220px;max-width:460px;border:1.5px solid var(--ink);border-radius:6px;overflow:hidden;background:#fff}
.akb-search input[type=search]{flex:1;min-width:0;border:0;padding:0 14px;min-height:44px;font:inherit;font-size:15px;background:transparent;color:var(--ink);width:auto}
.akb-search input[type=search]:focus-visible{outline:0}
.akb-search:focus-within{box-shadow:0 0 0 3px rgba(194,65,12,.35)}
.akb-search button{width:48px;min-height:44px;border:0;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.akb-search button:hover{background:var(--acc)}
.akb-cart-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border:1.5px solid var(--line);border-radius:6px;font-weight:600;background:#fff}
.akb-cart-link:hover{border-color:var(--ink);color:var(--ink)}
.akb-cart-count{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--acc);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.akb-burger{display:none;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1.5px solid var(--ink);border-radius:6px;background:#fff;font:600 15px var(--font);cursor:pointer}

/* ===== nav ===== */
.akb-nav .menu,.akb-nav ul{list-style:none;margin:0;padding:0}
.akb-nav .menu{display:flex;flex-wrap:wrap;gap:0 28px}
.akb-nav .menu>li{position:relative}
.akb-nav a{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--ink)}
.akb-nav a:hover,.akb-nav .current-menu-item>a,.akb-nav .current-menu-ancestor>a{color:var(--acc)}
.akb-nav .sub-menu{display:none;position:absolute;left:-16px;top:100%;min-width:270px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--acc);border-radius:0 0 var(--r) var(--r);box-shadow:0 18px 40px rgba(20,24,27,.16);padding:8px 0;z-index:60}
.akb-nav .sub-menu a{padding:0 18px;font-weight:500;min-height:42px}
.akb-nav .sub-menu .sub-menu{left:100%;top:-11px;border-radius:var(--r)}
.akb-nav li:hover>.sub-menu,.akb-nav li:focus-within>.sub-menu{display:block}
.akb-nav .menu-item-has-children>a::after{content:"";width:6px;height:6px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}

/* ===== hero ===== */
.hero{background-color:var(--dark);background-image:var(--mesh-dark);color:#fff;overflow:hidden}
.hero .wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-top:clamp(48px,8vw,104px);padding-bottom:clamp(48px,8vw,104px)}
.hero__text{flex:1 1 480px;min-width:0}
.hero__badge{display:inline-block;padding:6px 12px;background:var(--acc);color:#fff;font-size:14px;font-weight:700;border-radius:4px}
.hero h1{margin:20px 0 0;font-size:clamp(34px,5.2vw,64px);line-height:1.12;letter-spacing:-.02em}
.hero__lead{margin:24px 0 0;max-width:560px;font-size:18px;color:var(--mut-d)}
.hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.hero__card{flex:1 1 340px;min-width:0;max-width:520px;background:#fff;color:var(--ink);border-radius:10px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.hero__card-img{aspect-ratio:16/10;border-radius:6px;overflow:hidden;background-color:#DDE2E5;background-image:var(--mesh-light);margin-bottom:20px}
.hero__card-img img{width:100%;height:100%;object-fit:cover}
.hero__card-tag{font-size:13px;font-weight:700;color:var(--acc)}
.hero__card-title{margin:6px 0 0;font-size:20px;font-weight:700;line-height:1.3;letter-spacing:0}
.hero__card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.hero__card-price{font-size:26px;font-weight:800;line-height:1.2}
.hero__card-price del{font-size:15px;color:var(--mut);font-weight:500}
.hero__card-price ins{text-decoration:none}

/* ===== hero slider ===== */
.hero__slider{
  position:relative;
  flex:1 1 340px;
  min-width:0;
  max-width:520px;
}

.hero__slider .hero__card{
  display:none;
  width:100%;
  max-width:none;
  margin:0;
}

.hero__slider .hero__card.is-active{
  display:block;
}

.hero__slider-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:18px;
}

.hero__slider-btn{
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}

.hero__slider-btn:hover{
  background:var(--acc);
  border-color:var(--acc);
  color:#fff;
}

.hero__slider-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.hero__slider-dot{
  width:9px;
  height:9px;
  min-height:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#6B767E;
  cursor:pointer;
  transition:all .15s;
}

.hero__slider-dot.is-active{
  width:26px;
  border-radius:5px;
  background:var(--acc);
}

.hero__card-content{
  display:flex;
  flex-direction:column;
}

.hero__card-text{
  margin:10px 0 0;
  color:var(--mut);
  font-size:15px;
  line-height:1.5;
}
/* ===== trust ===== */
.trust{background:#fff;border-bottom:1px solid var(--line)}
.trust .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 32px}
.trust__item{display:flex;gap:16px;padding:28px 0;align-items:flex-start}
.trust__item svg{flex:0 0 auto;stroke:var(--acc)}
.trust__item strong{display:block}
.trust__item span{display:block;margin-top:4px;font-size:15px;color:var(--mut)}

/* ===== sections ===== */
.section{padding:clamp(56px,7vw,96px) 0 0}
.section__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:32px}
.section__head h2{margin:0}
.section__more{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--acc)}
.section__more:hover{color:var(--acc-d)}

/* category tiles */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.cat-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:border-color .15s,transform .15s}
.cat-card:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-2px)}
.cat-card__img{aspect-ratio:16/9;background-color:#DDE2E5;background-image:var(--mesh-light);overflow:hidden}
.cat-card__img img{width:100%;height:100%;object-fit:cover}
.cat-card__body{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 20px}
.cat-card__num{font-size:13px;font-weight:700;color:var(--acc)}
.cat-card__name{font-size:18px;font-weight:700;line-height:1.3}
.cat-card__count{margin-top:2px;font-size:14px;color:var(--mut)}
.cat-card svg{flex:0 0 auto;margin-top:4px}

/* ===== product cards ===== */
.pgrid,ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;clear:both}
.pgrid--3{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
ul.products::before,ul.products::after{display:none}
.pcard,ul.products li.product{position:relative;display:flex;flex-direction:column;margin:0;padding:0;width:auto;float:none;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.pcard:hover,ul.products li.product:hover{border-color:var(--ink);box-shadow:0 12px 32px rgba(20,24,27,.1)}
.pcard__img,ul.products li.product a.woocommerce-LoopProduct-link>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background-color:#E3E7E9;background-image:var(--mesh-light);margin:0}
.pcard__img{overflow:hidden}
.pcard__img img{width:100%;height:100%;object-fit:cover}
.pcard__body{display:flex;flex-direction:column;flex:1;gap:12px;padding:18px 20px 20px}
.pcard__title,ul.products li.product .woocommerce-loop-product__title{margin:0;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:0}
.pcard__title{flex:1}
.pcard__title a:hover{color:var(--acc)}
.pcard__price,ul.products li.product .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:22px;font-weight:800;color:var(--ink);line-height:1.25}
.pcard__price del,ul.products li.product .price del{font-size:15px;color:var(--mut);font-weight:500;order:2}
.pcard__price ins,ul.products li.product .price ins{text-decoration:none;order:1}
.pcard .button,ul.products li.product .button{width:100%;min-height:46px;background:var(--ink);color:#fff}
.pcard .button:hover,ul.products li.product .button:hover{background:var(--acc)}
.pcard .added_to_cart,ul.products li.product .added_to_cart{display:block;margin-top:8px;text-align:center;font-weight:700;color:var(--acc);font-size:14px}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:var(--ink)}
ul.products li.product .woocommerce-loop-product__title{padding:18px 20px 0;flex:1}
ul.products li.product .price{padding:12px 20px 0}
ul.products li.product .button{margin:16px 20px 20px;width:calc(100% - 40px)}
ul.products li.product .added_to_cart{margin:-8px 20px 16px}
ul.products li.product .star-rating{margin:8px 20px 0}
.pbadge,.onsale{position:absolute;top:12px;left:12px;z-index:2;min-height:0;min-width:0;line-height:1;padding:8px 12px;border-radius:4px;background:var(--acc);color:#fff;font-size:13px;font-weight:700}

/* ===== dark band (gates) ===== */
.dark-band{margin-top:clamp(56px,7vw,96px);background-color:var(--dark);background-image:var(--mesh-dark);color:#fff;padding:clamp(48px,6vw,88px) 0}
.dark-band .wrap{display:flex;flex-wrap:wrap;gap:48px}
.dark-band__intro{flex:1 1 280px;min-width:0}
.dark-band__intro h2{color:#fff}
.dark-band__intro p{max-width:420px;color:var(--mut-d);font-size:17px}
.dark-band__intro .btn{margin-top:12px}
.dark-band__list{flex:2 1 560px;min-width:0}
.dark-band .pcard{border-color:#2D353B}
.dark-band .pcard:hover{border-color:#fff}

/* ===== service ===== */
.service{display:flex;flex-wrap:wrap;gap:40px;align-items:center;background:#fff;border:1px solid var(--line);border-left:8px solid var(--acc);border-radius:12px;padding:clamp(28px,5vw,64px)}
.service__text{flex:1 1 360px;min-width:0}
.service__eyebrow{font-size:14px;font-weight:700;color:var(--acc)}
.service h2{margin:10px 0 0}
.service p{margin:16px 0 0;max-width:520px;font-size:17px;color:var(--mut)}
.service__cta{display:flex;flex-wrap:wrap;gap:12px}

/* ===== contact ===== */
.contact{display:flex;flex-wrap:wrap;gap:40px;padding-bottom:clamp(56px,7vw,96px)}
.contact__intro{flex:1 1 340px;min-width:0}
.contact__intro h2{margin-bottom:16px}
.contact__intro p{max-width:460px;font-size:17px;color:var(--mut)}
.contact__cards{flex:1 1 360px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.contact__card{display:flex;flex-direction:column;gap:6px;padding:22px;border-radius:var(--r);background:#fff;border:1px solid var(--line)}
.contact__card small{font-size:14px;font-weight:600;color:var(--mut)}
.contact__card strong{font-size:22px;font-weight:800;line-height:1.25}
.contact__card--red{background:var(--acc);border-color:var(--acc);color:#fff}
.contact__card--red small{color:#fff}
.contact__card--red:hover{background:var(--acc-d);color:#fff}
.contact__card--dark{background:var(--dark);border-color:var(--dark);color:#fff}
.contact__card--dark small{color:var(--mut-d)}
.contact__card--dark:hover{color:#fff;opacity:.9}
.contact__card--wide{grid-column:1/-1}

/* ===== page head ===== */
.page-head{background-color:var(--dark);background-image:var(--mesh-dark);color:#fff}
.page-head .wrap{padding-top:clamp(32px,5vw,60px);padding-bottom:clamp(28px,4vw,48px)}
.page-head__eyebrow{display:inline-block;padding:5px 12px;background:var(--acc);color:#fff;font-size:13px;font-weight:700;border-radius:4px;margin-bottom:14px}
.page-head h1{margin:0;font-size:clamp(28px,4vw,46px);color:#fff}
.page-head p{margin:12px 0 0;max-width:640px;color:var(--mut-d)}
.akb-main{padding:clamp(32px,5vw,64px) 0 clamp(56px,7vw,96px)}

/* ===== content ===== */
.entry{max-width:820px}
.entry--wide{max-width:none}
.entry a:not(.btn):not(.button):not(.wp-block-button__link){color:var(--acc);text-decoration:underline;text-underline-offset:3px}
.entry img{border-radius:var(--r)}
.entry ul,.entry ol{padding-left:1.3em;margin:0 0 1em}
.entry blockquote{margin:1.5em 0;padding:8px 0 8px 20px;border-left:4px solid var(--acc);color:var(--mut)}
.entry table{width:100%;border-collapse:collapse;margin:0 0 1.5em}
.entry th,.entry td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.entry .wp-block-gallery{gap:12px}
.alignwide{max-width:1240px}
.post-meta{font-size:14px;color:var(--mut);margin-bottom:12px}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.post-card:hover{border-color:var(--ink)}
.post-card__img{display:block;aspect-ratio:16/10;background-color:#DDE2E5;background-image:var(--mesh-light)}
.post-card__img img{width:100%;height:100%;object-fit:cover}
.post-card__body{display:flex;flex-direction:column;flex:1;gap:8px;padding:22px}
.post-card__body h2{margin:0;font-size:20px;line-height:1.3}
.post-card__body p{margin:0;color:var(--mut);font-size:15px;flex:1}
.post-card__more{font-weight:700;color:var(--acc);font-size:15px}
.nav-links,.woocommerce-pagination ul{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;list-style:none;margin:40px 0 0;padding:0}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:#fff;font-weight:600}
a.page-numbers:hover{border-color:var(--ink);color:var(--ink)}
.page-numbers.current{background:var(--ink);border-color:var(--ink);color:#fff}
.not-found{text-align:center;padding:40px 0}
.not-found__code{font-size:clamp(80px,16vw,160px);font-weight:800;color:var(--acc);line-height:1}

/* ===== forms ===== */
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],input[type=url],select,textarea{
  width:100%;min-height:46px;padding:10px 14px;border:1.5px solid #B9C1C6;border-radius:6px;background:#fff;font:inherit;color:var(--ink)}
textarea{min-height:120px}
label{font-weight:600;font-size:15px}
.comment-respond{margin-top:48px;max-width:820px}
.comment-list{list-style:none;padding:0;max-width:820px}
.comment-body{padding:16px 0;border-bottom:1px solid var(--line)}

/* ===== footer ===== */
.site-foot{background:var(--dark);color:var(--mut-d)}
.site-foot__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px 48px;padding:clamp(40px,5vw,64px) 0}
.site-foot h3{font-size:16px;color:#fff;margin-bottom:14px;letter-spacing:0}
.site-foot a{color:var(--mut-d)}
.site-foot a:hover{color:#fff;text-decoration:underline}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li a{display:inline-flex;align-items:center;min-height:36px}
.site-foot .brand__name{color:#fff}
.site-foot .brand__tag{color:#A6B0B7}
.site-foot__bottom{border-top:1px solid #2D353B}
.site-foot__bottom .wrap{display:flex;flex-wrap:wrap;gap:4px 32px;align-items:center;justify-content:space-between;min-height:64px;font-size:14px}
.site-foot__bottom ul{display:flex;flex-wrap:wrap;gap:0 24px}
.to-top{position:fixed;right:16px;bottom:16px;width:48px;height:48px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(20,24,27,.3);z-index:70}
.to-top.is-on{display:flex}
.fab-call{position:fixed;left:16px;bottom:16px;display:none;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:24px;background:var(--acc);color:#fff;font-weight:700;box-shadow:0 8px 24px rgba(20,24,27,.3);z-index:70}
.fab-call:hover{color:#fff;background:var(--acc-d)}

/* ========== WooCommerce (own layout; default WC stylesheets are disabled) ========== */
.woocommerce-breadcrumb{font-size:14px;color:var(--mut);margin:0 0 24px}
.woocommerce-breadcrumb a{color:var(--acc)}
.woocommerce-products-header__title{margin:0 0 12px}
.term-description{max-width:760px;color:var(--mut);margin-bottom:20px}
.woocommerce-result-count{margin:0 0 20px;color:var(--mut);font-size:15px;float:left;line-height:44px}
.woocommerce-ordering{float:right;margin:0 0 20px}
.woocommerce-ordering select{min-height:44px;width:auto}
.woocommerce-info,.woocommerce-message,.woocommerce-error,.woocommerce-notice{list-style:none;margin:0 0 24px;padding:16px 20px;background:#fff;border:1px solid var(--line);border-left:5px solid var(--acc);border-radius:var(--r);overflow:hidden}
.woocommerce-error{border-left-color:#7A1A0B}
.woocommerce-message .button,.woocommerce-info .button{margin-left:12px;float:right;min-height:40px}
.star-rating{display:inline-block;position:relative;height:1em;width:5.4em;overflow:hidden;line-height:1;font-size:16px;color:var(--acc)}
.star-rating::before{content:"★★★★★";color:#C3CACE;position:absolute;left:0;top:0;letter-spacing:.1em}
.star-rating span{position:absolute;left:0;top:0;overflow:hidden;padding-top:1.5em;height:0}
.star-rating span::before{content:"★★★★★";color:var(--acc);position:absolute;left:0;top:0;letter-spacing:.1em}

/* ===== single product gallery ===== */

.single-product div.product{
  display:flex;
  flex-wrap:wrap;
  gap:40px 56px;
}

/* მთავარი ფოტოს ჩარჩო */
.single-product div.product .woocommerce-product-gallery{
  flex:1 1 380px;
  min-width:0;
  max-width:100%;
  position:relative;
  margin:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;

  /* ძირითადი ზომა */
  --pg-gallery-ratio:1 / 1;
  --pg-gallery-bg:#fff;
}

/* მთავარი ფოტოს ადგილი */
.single-product .woocommerce-product-gallery__wrapper{
  margin:0;
}

.single-product .woocommerce-product-gallery__image{
  width:100%;
  aspect-ratio:var(--pg-gallery-ratio);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pg-gallery-bg);
  overflow:hidden;
}

/* თვითონ ფოტო */
.single-product .woocommerce-product-gallery__image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  margin:0;
}

/* პატარა ფოტოები */
.single-product .flex-control-thumbs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  list-style:none;
  margin:8px;
  padding:0;
}

/* თითოეული პატარა ფოტოს ერთნაირი ჩარჩო */
.single-product .flex-control-thumbs li{
  aspect-ratio:1 / 1;
  overflow:hidden;
  border-radius:6px;
  background:#fff;
  border:1px solid var(--line);
}

/* პატარა ფოტო */
.single-product .flex-control-thumbs img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  cursor:pointer;
  opacity:.7;
  border-radius:4px;
  transition:opacity .15s;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover{
  opacity:1;
}

/* ===== Single Product Gallery — Desktop ===== */

@media (min-width: 901px){

  .single-product div.product .woocommerce-product-gallery{
    flex: 0 0 560px;
    width: 560px;
    max-width: 560px;
  }

  .single-product div.product .summary{
    flex: 1 1 0;
    min-width: 0;
  }

}


/* ===== Single Product Gallery — Mobile ===== */

@media (max-width: 900px){

  .single-product div.product .woocommerce-product-gallery{
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

}

/* =========================================================
 * SINGLE PRODUCT — MAIN PRODUCT FIRST / RELATED PRODUCTS LAST
 * ========================================================= */

.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 56px;
}

/* მთავარი პროდუქტის ფოტო */
.single-product div.product .woocommerce-product-gallery {
  grid-column: 1;
  grid-row: 1;
}

/* მთავარი პროდუქტის ინფორმაცია */
.single-product div.product .summary {
  grid-column: 2;
  grid-row: 1;
}

/* აღწერა / Reviews / Tabs */
.single-product div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Related Products */
.single-product .related.products {
  width: 100% !important;
  margin-top: 40px !important;
  clear: both !important;
}

/* Related Products-ის ბადე */
.single-product .related.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* მობილური */
@media (max-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }

  .single-product div.product .woocommerce-product-gallery {
    grid-column: 1;
    grid-row: 1;
  }

  .single-product div.product .summary {
    grid-column: 1;
    grid-row: 2;
  }

  .single-product div.product .woocommerce-tabs {
    grid-column: 1;
    grid-row: 3;
  }

  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:5;width:40px;height:40px;border-radius:50%;background:#fff;font-size:0;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.single-product div.product .summary{flex:1 1 380px;min-width:0}
.single-product .product_title{font-size:clamp(26px,3.2vw,38px)}
.single-product .summary .price{font-size:30px;font-weight:800;color:var(--ink);margin:0 0 20px;display:block}
.single-product .summary .price del{font-size:18px;color:var(--mut);font-weight:500}
.single-product .summary .price ins{text-decoration:none}
.single-product .woocommerce-product-details__short-description{color:var(--mut);margin-bottom:24px}

/* პროდუქტის მოკლე აღწერა — მთავარი პროდუქტის ბლოკის ქვემოთ */
.single-product .single-product-description-below{
  flex:0 0 100%;
  width:100%;
  order:3;
  color:var(--mut);
  margin-top:0;
}

.single-product .single-product-description-below > *:last-child{
  margin-bottom:0;
}

/* დამატებითი ინფორმაცია */
.single-product .woocommerce-tabs{
  order:4;
}

/* Related Products */
.single-product .related.products,
.single-product .upsells.products{
  order:10;
}

.single-product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 24px}
.single-product form.cart.variations_form{display:block}
.single-product .variations{width:100%;border-collapse:collapse;margin-bottom:16px}
.single-product .variations td,.single-product .variations th{display:block;padding:4px 0;text-align:left}
.single-product .reset_variations{display:inline-block;margin-top:8px;font-size:14px;color:var(--acc)}
.single-product .woocommerce-variation-add-to-cart{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}
.quantity .qty{width:84px;text-align:center}
.single-product .product_meta{font-size:14px;color:var(--mut);display:grid;gap:4px;padding-top:20px;border-top:1px solid var(--line)}
.single-product .product_meta a{color:var(--acc)}
.woocommerce-tabs{flex:1 1 100%}
.woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 24px;padding:0;border-bottom:1px solid var(--line)}
.woocommerce-tabs ul.tabs li a{display:flex;align-items:center;min-height:46px;padding:0 18px;font-weight:600;border-bottom:3px solid transparent}
.woocommerce-tabs ul.tabs li.active a{border-bottom-color:var(--acc);color:var(--acc)}
.woocommerce-tabs .panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(20px,3vw,32px)}
.woocommerce-tabs .panel h2{font-size:22px}
.related.products,.upsells.products{flex:1 1 100%;margin-top:24px}
.related.products>h2,.upsells.products>h2{font-size:clamp(24px,2.6vw,32px)}
.shop_attributes{width:100%;border-collapse:collapse}
.shop_attributes th,.shop_attributes td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}

/* cart */
.woocommerce-cart-form{margin-bottom:32px}
table.shop_table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
table.shop_table th,table.shop_table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
table.shop_table thead th{background:var(--bg);font-size:14px}
table.shop_table .product-thumbnail img{width:72px;height:72px;object-fit:cover;border-radius:6px}
table.shop_table a.remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--bg);color:var(--acc);font-size:20px;line-height:1}
table.shop_table a.remove:hover{background:var(--acc);color:#fff}
.actions .coupon{display:flex;flex-wrap:wrap;gap:8px;align-items:center;float:left}
.actions .coupon input{width:auto;min-width:160px}
.actions>.button{float:right}
.cart-collaterals{display:flex;justify-content:flex-end}
.cart_totals{width:100%;max-width:460px}
.cart_totals h2{font-size:24px}
.wc-proceed-to-checkout .checkout-button{width:100%;min-height:54px;font-size:16px}

/* checkout and account */
form.checkout .col2-set{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:32px;margin-bottom:32px}
form.checkout .col2-set .col-1,form.checkout .col2-set .col-2{width:auto;float:none}
.woocommerce form .form-row{margin:0 0 16px;display:block}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none}
.woocommerce form .form-row label{display:block;margin-bottom:6px}
#order_review_heading{margin-top:8px}
.woocommerce-checkout-payment{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;margin-top:20px}
.woocommerce-checkout-payment ul{list-style:none;padding:0;margin:0 0 16px}
.woocommerce-checkout-payment #place_order{width:100%;min-height:54px;font-size:16px}
.woocommerce-MyAccount-navigation{margin-bottom:24px}
.woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.woocommerce-MyAccount-navigation a{display:flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:6px;background:#fff;font-weight:600}
.woocommerce-MyAccount-navigation .is-active a{background:var(--ink);border-color:var(--ink);color:#fff}
.woocommerce-MyAccount-content{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(20px,3vw,32px)}
.u-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:32px}
.u-columns .u-column1,.u-columns .u-column2{width:auto;float:none;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(20px,3vw,32px)}

/* ===== responsive ===== */
@media (max-width:900px){
  .admin-bar .site-head{top:46px}
  .site-head{position:relative}
  .akb-burger{display:inline-flex}
  .site-head__tools{flex:1 1 100%;order:3;justify-content:stretch}
  .akb-search{max-width:none}
  .akb-nav{display:none;width:100%;padding:8px 0 12px;border-top:1px solid var(--line)}
  .site-head.is-open .akb-nav{display:block}
  .akb-nav .menu{flex-direction:column;gap:0}
  .akb-nav .sub-menu{display:block;position:static;border:0;box-shadow:none;padding:0 0 0 16px;min-width:0}
  .akb-nav .menu-item-has-children>a::after{display:none}
  .akb-nav a{min-height:46px}
  .fab-call{display:inline-flex}
  .woocommerce-message .button,.woocommerce-info .button{float:none;margin:12px 0 0}
  .actions .coupon,.actions>.button{float:none}
  table.shop_table_responsive thead{display:none}
  table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--line)}
  table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px;border-bottom:0;padding:8px 16px}
  table.shop_table_responsive td::before{content:attr(data-title);font-weight:600}
  table.shop_table_responsive td.product-remove::before,table.shop_table_responsive td.product-thumbnail::before,table.shop_table_responsive td.actions::before{display:none}
  .cart-collaterals{justify-content:stretch}
  .cart_totals{max-width:none}
}
@media (max-width:560px){
  .topbar .wrap{justify-content:center;text-align:center}
  .topbar__right{justify-content:center}
  .brand__name{font-size:22px}
  .pgrid,ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .pcard__body{padding:14px}
  .pcard__price,ul.products li.product .price{font-size:18px}
  ul.products li.product .woocommerce-loop-product__title{padding:14px 14px 0;font-size:15px}
  ul.products li.product .price{padding:10px 14px 0}
  ul.products li.product .button{margin:12px 14px 16px;width:calc(100% - 28px)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

