/*
Theme Name: AIStore Local
Theme URI: https://aistore.ge
Author: AIStore.ge
Description: Compact WooCommerce storefront theme for local development.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aistore
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  --green: #056847;
  --green-dark: #034d35;
  --green-soft: #e9f3ee;
  --ink: #171a18;
  --muted: #717873;
  --line: #e4e7e4;
  --cream: #f4eee4;
  --sale: #e53838;
  --yellow: #ffb51b;
  --page: #fff;
  --max: 1460px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans Georgian", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

.topbar { background: var(--green-dark); color: #fff; font-size: 10px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 28px; align-items: center; }
.topbar a { opacity: .95; }
.topbar-right { display: flex; gap: 14px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 95%); backdrop-filter: blur(12px); }
.header-main { display: grid; grid-template-columns: 135px minmax(250px, 1fr) auto; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; font-weight: 800; font-size: 32px; letter-spacing: -.8px; color: var(--green); }
.brand small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.search-form { display: flex; height: 38px; border: 1px solid #d9dedb; border-radius: 7px; overflow: hidden; background: #fff; }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; font: inherit; }
.search-form button { width: 45px; border: 0; color: #fff; background: var(--green); cursor: pointer; font-size: 24px; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.account { display: flex; gap: 7px; align-items: center; color: inherit; font-size: 11px; }
.account svg { width: 25px; height: 25px; flex: 0 0 25px; }
.account strong { display: block; font-size: 12px; }
.icon-action { position: relative; font-size: 25px; line-height: 1; }
.mobile-catalog-button { display: none; }
.counter { position: absolute; top: -7px; right: -8px; display: grid; place-items: center; width: 16px; height: 16px; color: #fff; background: var(--sale); border-radius: 50%; font-size: 9px; }
.nav { border-top: 1px solid #f0f2f0; }
.nav-inner { display: flex; align-items: center; min-height: 42px; gap: 25px; }
.catalog-button { border-radius: 8px; padding: 10px 16px; color: #fff; background: var(--green); font-weight: 700; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 25px; flex: 1; font-size: 12px; font-weight: 600; }
.nav-links a:hover, .sale-link { color: var(--sale); }

.hero { background: var(--cream); }
.hero-inner { display: grid; grid-template-columns: 38% 62%; min-height: 335px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 30px 34px 0; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 700; }
.hero h1 { max-width: 350px; margin: 0 0 12px; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.8px; font-weight: 700; }
.hero-copy p { max-width: 330px; margin: 0 0 20px; color: #5d625e; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--yellow); color: #191500; font-weight: 700; cursor: pointer; }
.hero-image { min-height: 335px; background: #d8c9b5 center/cover no-repeat url("assets/hero.svg"); }
.hero-dots { margin-top: 18px; color: var(--green); letter-spacing: 5px; font-size: 12px; }

.benefits { border-bottom: 1px solid var(--line); background: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { display: flex; gap: 12px; align-items: center; min-height: 66px; padding: 10px 22px; border-right: 1px solid var(--line); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { border-right: 0; }
.benefit-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--green-soft); font-size: 15px; }
.benefit strong { display: block; font-size: 14px; line-height: 1.25; }
.benefit span { color: var(--muted); font-size: 13px; line-height: 1.3; }

.section { padding: 25px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.section-title { margin: 0; font-size: 18px; letter-spacing: -.4px; }
.section-link { color: var(--green); font-size: 11px; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.category-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fafafa; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 5px 14px #12331c12; }
.category-card img { width: 100%; aspect-ratio: 1.5; object-fit: contain; background: #f6f6f4; }
.category-card span { display: block; padding: 7px 4px 8px; font-size: 10px; font-weight: 700; }
.offer-section { padding-bottom: 34px; }
.filter-pills { display: flex; gap: 8px; margin-top: -2px; margin-bottom: 12px; }
.pill { padding: 8px 16px; border-radius: 20px; background: #f1f3f1; color: #5e665f; font-size: 15px; font-weight: 600; line-height: 1.2; }
.pill.active { background: var(--green); color: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: #c7d9ce; box-shadow: 0 14px 28px rgb(2 55 35 / 8%); }
.product-media { position: relative; padding: 7px 7px 0; }
.product-media img { width: 100%; height: 260px; object-fit: contain; border-radius: 8px; background: #f7f8f6; }
.product-card-gallery { display: block; overflow: hidden; border-radius: 8px; touch-action: pan-y; user-select: none; }
.product-card-gallery-track { display: flex; width: 100%; transform: translateX(0); will-change: transform; }
.product-card-gallery-track img { min-width: 100%; flex: 0 0 100%; }
.product-card-gallery.has-gallery { cursor: grab; }
.product-card-gallery.has-gallery:active { cursor: grabbing; }

/* Dynamic shop filters */
.empty-state .filter-clear { display:block; margin:18px auto 0; }
.store-controls { display:flex; align-items:center; gap:10px; }
.mobile-filter-button { display:none; min-height:42px; padding:0 18px; border:1px solid var(--green); border-radius:8px; color:var(--green); background:#fff; font:inherit; font-weight:600; }
.shop-with-filters { display:grid; grid-template-columns:255px minmax(0,1fr); gap:28px; align-items:start; }
.filtered-results { position:relative; min-width:0; transition:opacity .18s; }
.filtered-results.is-loading { opacity:.55; pointer-events:none; }
.filter-status { position:absolute; top:-24px; right:0; color:var(--green); font-size:12px; }
.product-filters { position:sticky; top:130px; padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgb(2 55 35 / 5%); }
.filter-drawer-head { display:flex; align-items:center; justify-content:space-between; }
.filter-drawer-head h2 { margin:0; font-size:20px; }
.filter-drawer-close { display:none; border:0; color:var(--green); background:transparent; font-size:28px; }
.filter-group { padding:14px 0; border-bottom:1px solid var(--line); }
.filter-group summary { cursor:pointer; font-size:14px; font-weight:600; }
.filter-options { display:grid; gap:9px; margin-top:12px; }
.filter-options label { display:flex; gap:9px; align-items:center; min-height:28px; color:#4f5852; cursor:pointer; font-size:13px; }
.filter-options input { width:18px; height:18px; accent-color:var(--green); }
.filter-options small { color:var(--muted); }
.filter-range { margin-top:15px; }
.range-sliders { position:relative; height:26px; }
.range-sliders input { position:absolute; top:5px; left:0; width:100%; margin:0; accent-color:var(--green); pointer-events:none; }
.range-sliders input::-webkit-slider-thumb { pointer-events:auto; }
.range-sliders input::-moz-range-thumb { pointer-events:auto; }
.range-values { display:grid; grid-template-columns:1fr auto 1fr; gap:7px; align-items:end; }
.range-values label { color:var(--muted); font-size:11px; }
.range-values input { width:100%; height:38px; margin-top:4px; padding:0 7px; border:1px solid var(--line); border-radius:7px; font:inherit; font-size:12px; }
.filter-actions { display:flex; gap:8px; padding-top:16px; }
.filter-actions button,.empty-state .filter-clear { min-height:42px; padding:0 12px; border:1px solid var(--green); border-radius:8px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.filter-clear { color:var(--green); background:#fff; }
.filter-show-products { flex:1; color:#fff; background:var(--green); }
.active-filter-list { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:15px; }
.active-filter-chip,.clear-all-filters { min-height:32px; padding:0 11px; border:0; border-radius:18px; color:var(--green); background:var(--green-soft); cursor:pointer; font:inherit; font-size:12px; }
.clear-all-filters { color:var(--sale); background:#fff1f1; }
.filter-backdrop { display:none; }

@media (max-width:620px) {
  .store-controls { width:100%; }
  .mobile-filter-button { display:block; flex:0 0 auto; }
  .store-controls .sort-form { width:100%; }
  .store-controls .sort-form label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .shop-with-filters { display:block; }
  .product-filters { position:fixed; right:0; bottom:0; left:0; top:auto; z-index:80; max-height:86vh; padding:18px 16px 0; overflow:auto; border-radius:18px 18px 0 0; box-shadow:0 -14px 35px rgb(2 55 35 / 20%); transform:translateY(105%); transition:transform .25s ease; }
  body.filters-open { overflow:hidden; }
  body.filters-open .product-filters { transform:translateY(0); }
  .filter-backdrop { position:fixed; inset:0; z-index:79; background:rgb(0 0 0 / 35%); }
  body.filters-open .filter-backdrop { display:block; }
  .filter-drawer-close { display:block; }
  .filter-actions { position:sticky; bottom:0; margin:12px -16px 0; padding:12px 16px; border-top:1px solid var(--line); background:#fff; }
  .filter-options label { min-height:42px; font-size:14px; }
}
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 4px; color: #fff; background: var(--sale); font-size: 14px; font-weight: 700; line-height: 1.15; }
.badge.new { background: var(--green); }
.wishlist { position: absolute; top: 10px; right: 11px; border: 0; background: #fff; color: #788079; cursor: pointer; font-size: 17px; }
.product-body { padding: 7px 9px 9px; }
.product-brand { color: #8b938d; font-size: 9px; }
.product-title { display: -webkit-box; min-height: 35px; margin: 2px 0 4px; overflow: hidden; font-size: 12px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rating { color: #f3a918; font-size: 10px; }
.rating span { color: var(--muted); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: 8px; }
.price { color: #111; font-size: 15px; font-weight: 700; }
.price del { margin-right: 4px; color: #8b938d; font-size: 10px; font-weight: 400; }
.price ins { color: var(--green); text-decoration: none; }
.old-price { margin-left: 3px; color: #8b938d; text-decoration: line-through; font-size: 9px; }
.cart-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; color: #fff; background: var(--green); cursor: pointer; font-size: 13px; transition: background .2s; }
.cart-button:hover { background: var(--green-dark); color: #fff; }
.stock { color: var(--green); font-size: 9px; }

.site-footer { padding: 27px 0 30px; border-top: 1px solid var(--line); background: #f7f8f6; }
.footer-grid { display: grid; width: min(100%, 1200px); margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-phone-icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.footer-brand { margin-bottom: 7px; color: var(--green); font-size: 21px; font-weight: 800; }
.footer-copy { max-width: 270px; color: #68706b; font-size: 10px; }
.footer-title { margin: 3px 0 8px; font-size: 11px; }
.footer-links { display: grid; gap: 5px; color: #69726c; font-size: 10px; }
.footer-contact { display: grid; gap: 7px; color: #69726c; font-size: 10px; }
.footer-contact strong { color: var(--ink); }
.woocommerce-notices-wrapper { width: min(var(--max), calc(100% - 64px)); margin: 12px auto 0; }

/* Shared WooCommerce product page */
.product-page { padding: 22px 0 70px; background: #fff; }
.product-breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.product-breadcrumb .woocommerce-breadcrumb { margin: 0; }
.product-breadcrumb .woocommerce-breadcrumb span { padding: 0 8px; color: #b4bbb6; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.product-gallery { position: relative; min-width: 0; }
.main-product-image { display: grid; place-items: center; min-height: 470px; max-height: 620px; padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8f6; }
.main-product-image img { width: 100%; height: min(520px, 48vw); max-height: 560px; object-fit: contain; }
.single-badge-wrap { position: absolute; top: 16px; left: 16px; z-index: 1; }
.single-badge { display: inline-flex; padding: 6px 10px; border-radius: 7px; color: #fff; background: var(--sale); font-size: 11px; font-weight: 700; }
.single-badge.is-new { background: var(--green); }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.product-thumb { width: 72px; height: 72px; flex: 0 0 72px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: #f7f8f6; }
.product-summary { padding-top: 8px; }
.product-kicker { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 600; }
.product-heading { max-width: 650px; margin: 0 0 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -.5px; font-weight: 700; }
.product-rating-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.product-rating-line a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.stars { color: #e7a518; letter-spacing: 1px; }
.product-price { margin: 24px 0 16px; color: var(--green); font-size: 29px; font-weight: 700; }
.product-price del { margin-right: 10px; color: #939b95; font-size: 15px; font-weight: 400; }
.product-price ins { text-decoration: none; }
.product-description { max-width: 600px; margin: 0 0 18px; color: #606b63; font-size: 14px; line-height: 1.65; }
.availability { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--green); font-size: 12px; font-weight: 600; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #28a865; box-shadow: 0 0 0 4px #e2f4e8; }
.availability.unavailable { color: var(--sale); }
.availability.unavailable span { background: var(--sale); box-shadow: 0 0 0 4px #fde7e7; }
.buy-panel { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-panel form.cart { display: flex; align-items: center; gap: 12px; margin: 0; }
.buy-panel .quantity { margin: 0 !important; }
.buy-panel .quantity input.qty { width: 62px; height: 50px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f8faf8; text-align: center; font: inherit; }
.buy-panel .stock { display: none; }
.buy-panel .single_add_to_cart_button { min-height: 50px; flex: 1; border: 0; border-radius: 9px; color: #fff; background: var(--green); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.buy-panel .single_add_to_cart_button:hover { background: var(--green-dark); transform: translateY(-1px); }
.product-promises { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; }
.product-promises div { display: grid; gap: 3px; padding: 11px 12px; border-radius: 9px; background: var(--green-soft); }
.product-promises strong { font-size: 11px; }
.product-promises span { color: var(--muted); font-size: 10px; }
.product-meta { padding-top: 3px; color: var(--muted); font-size: 11px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.product-meta a { color: var(--green); }
.product-details { margin-top: 70px; }
.product-details .woocommerce-tabs { margin: 0; }
.product-details .tabs { display: flex; gap: 28px; margin: 0 0 24px !important; padding: 0 !important; border-bottom: 1px solid var(--line); }
.product-details .tabs::before, .product-details .tabs::after { display: none !important; }
.product-details .tabs li { margin: 0 !important; padding: 0 0 12px !important; border: 0 !important; background: none !important; }
.product-details .tabs li::before, .product-details .tabs li::after { display: none !important; }
.product-details .tabs li a { color: var(--muted); font-size: 13px; font-weight: 600; }
.product-details .tabs li.active { border-bottom: 2px solid var(--green) !important; }
.product-details .tabs li.active a { color: var(--green); }
.product-details .woocommerce-Tabs-panel { max-width: 920px; color: #5e6961; font-size: 13px; line-height: 1.75; }
.product-details .woocommerce-Tabs-panel h2 { margin: 0 0 12px; color: var(--ink); font-size: 20px; }
.product-details table.shop_attributes { width: 100%; border-collapse: collapse; }
.product-details table.shop_attributes th, .product-details table.shop_attributes td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.product-details table.shop_attributes th { width: 35%; color: var(--ink); }
.product-details #reviews { max-width: 900px; }
.product-details #reviews .commentlist { padding: 0; list-style: none; }
.product-details #reviews .comment_container { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.product-details #reviews img.avatar { position: static; width: 38px; height: 38px; border: 0; border-radius: 50%; }
.product-details #review_form_wrapper { max-width: 640px; margin-top: 22px; }
.product-details #review_form input, .product-details #review_form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fbfcfb; font: inherit; }
.product-details #review_form label { display: block; margin: 9px 0 4px; color: var(--muted); font-size: 15px; }
.product-details #review_form .submit { min-height: 42px; margin-top: 8px; padding: 0 20px; border: 0; border-radius: 8px; color: #fff; background: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
.related.products { margin-top: 65px; }
.related.products > h2 { margin: 0 0 18px; font-size: 22px; }
.related.products ul.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; }
.related.products ul.products::before, .related.products ul.products::after { display: none; }
.related.products ul.products li.product { width: auto; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.related.products ul.products li.product .woocommerce-loop-product__title { min-height: 36px; color: var(--ink); font-size: 12px; line-height: 1.35; }
.related.products ul.products li.product img { height: 210px; object-fit: contain; border-radius: 8px; background: #f7f8f6; }
.related.products ul.products li.product .price { color: var(--green); font-size: 15px; }
.related.products ul.products li.product .button { min-height: 36px; border-radius: 8px; color: #fff; background: var(--green); font-size: 11px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--green); border-radius: 8px; background: var(--green-soft); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green); }

/* Shared archive, cart, account, search, and category navigation surfaces. */
.store-page { padding: 48px 0 76px; }
.store-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.store-heading h1, .content-page h1 { margin: 0; font-size: 34px; line-height: 1.15; }
.store-heading .eyebrow { margin-bottom: 5px; }
.result-count { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.archive-products { grid-template-columns: repeat(4, 1fr); }
.sort-form { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.sort-form select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.store-pagination { margin-top: 30px; }
.store-pagination ul { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.store-pagination a, .store-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); }
.store-pagination .current { color: #fff; background: var(--green); }
.empty-state { padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.category-landing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-landing-grid .category-card small { display: block; padding: 0 8px 12px; color: var(--muted); font-size: 12px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-grid a { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--green); background: #f8faf8; font-size: 18px; font-weight: 600; }
.content-page { max-width: 900px; }
.content-copy { margin-top: 24px; color: #5e6961; font-size: 16px; line-height: 1.8; }
.category-menu { position: absolute; z-index: 30; display: none; width: 280px; margin-top: 0; padding: 10px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 16px 30px rgb(2 55 35 / 12%); }
.nav-inner { position: relative; }
@media (min-width: 621px) and (hover: hover) {
  .catalog-wrapper:hover > .category-menu, .category-menu-item:hover > .category-submenu, .account-menu-wrapper:hover > .header-account-menu { display: block; }
}
.category-menu-list { margin: 0; padding: 0; list-style: none; }
.category-menu-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #f0f2f0; }
.category-menu-item > a { flex: 1; padding: 10px; font-size: 13px; }
.category-menu-item > a:hover { color: var(--green); background: var(--green-soft); }
.category-expand { border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 18px; }
.category-submenu { display: none; width: 100%; padding-left: 12px; }
.mobile-category-drawer { display: none; }
.search-form { position: relative; overflow: visible; }
.search-form input { border-radius: 7px 0 0 7px; }
.search-form button { border-radius: 0 7px 7px 0; }
.search-form .search-results { position: absolute; top: 100%; right: 0; left: 0; z-index: 40; display: none; max-height: 430px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 30px rgb(2 55 35 / 12%); }
.search-form .search-results.is-open { display: block; }
.search-result { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #f0f2f0; }
.search-result:hover, .search-result.is-active { background: var(--green-soft); }
.search-result img { width: 44px; height: 44px; object-fit: contain; border-radius: 5px; background: #f7f8f6; }
.search-result span { display: grid; gap: 2px; min-width: 0; }
.search-result strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.search-result b { color: var(--green); font-size: 12px; }
.search-all, .search-empty { display: block; padding: 13px; color: var(--green); text-align: center; font-size: 13px; font-weight: 600; }
.cart-page .store-heading, .account-page .store-heading { margin-bottom: 24px; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) 110px 28px; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item-image img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; background: #f7f8f6; }
.cart-item-info { display: grid; gap: 5px; }
.cart-item-info strong { font-size: 15px; }
.cart-item-info span { color: var(--muted); font-size: 12px; }
.cart-item-price { color: var(--green) !important; font-size: 15px !important; font-weight: 700; }
.cart-quantity input { width: 76px; height: 40px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font: inherit; }
.remove { color: var(--sale); font-size: 22px; }
.cart-update { margin-top: 14px; }
.cart-lower { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 34px; }
.coupon-box, .cart-totals { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.coupon-box h2, .cart-totals h2 { margin: 0 0 15px; font-size: 20px; }
.coupon-box form { display: flex; gap: 8px; }
.coupon-box input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }
.total-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.total-row.total { color: var(--green); font-size: 18px; }
.checkout-button { width: 100%; margin-top: 18px; color: #fff; background: var(--green); }
.account-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.account-form { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.account-form h2 { margin: 0 0 5px; font-size: 22px; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.account-form input[type="text"], .account-form input[type="email"], .account-form input[type="password"] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; font: inherit; }
.account-form .button { color: #fff; background: var(--green); }
.check-row { display: block !important; }
.check-row input { width: auto !important; height: auto !important; }
.account-form > a { color: var(--green); font-size: 13px; }
.woocommerce-account .store-page, .woocommerce-cart .store-page { width: 100%; }
.woocommerce-account > main.container.section > h1, .woocommerce-cart > main.container.section > h1 { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 13px; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: #fff; background: var(--green); }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--green); }
.woocommerce-account .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.woocommerce-account .woocommerce-MyAccount-content th, .woocommerce-account .woocommerce-MyAccount-content td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-checkout .woocommerce form .form-row input.input-text, .woocommerce-checkout .woocommerce form .form-row textarea { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font: inherit; }
.woocommerce-checkout #payment, .woocommerce-checkout .woocommerce-checkout-review-order { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
body.drawer-open { overflow: hidden; }

/* Typography scale: one storefront-wide rhythm for Georgian and Latin text. */
body, button, input, select, textarea, .woocommerce, .woocommerce-page, .woocommerce button, .woocommerce input, .woocommerce select, .woocommerce textarea { font-family: "Noto Sans Georgian", "Noto Sans", Arial, sans-serif; }
h1, h2, h3, h4, h5, h6, strong, b, .button, .catalog-button, .nav-links, .section-link, .product-title, .price, .single_add_to_cart_button { font-weight: 600; }
.topbar { font-size: 12px; }
.account { font-size: 13px; }
.account strong { font-size: 14px; }
.search-form input { font-size: 14px; }
.catalog-button { font-size: 14px; }
.nav-links { font-size: 15px; }
.section-title { font-size: 22px; }
.section-link { font-size: 13px; }
.category-card span { padding: 9px 6px 10px; font-size: 15px; font-weight: 600; }
.product-brand { font-size: 13px; }
.product-title { min-height: 44px; font-size: 16px; font-weight: 500; }
.rating { font-size: 13px; }
.stock { font-size: 13px; }
.product-card .price { font-size: 21px; font-weight: 700; }
.product-card .price del, .product-card .old-price { font-size: 14px; }
.product-card .price ins { font-weight: 700; }
.product-breadcrumb { font-size: 14px; }
.product-kicker { font-size: 15px; font-weight: 600; }
.product-heading { font-size: clamp(32px, 3vw, 42px); }
.product-rating-line { font-size: 15px; }
.product-price { font-size: 32px; font-weight: 700; }
.product-price del { font-size: 16px; }
.product-description { font-size: 15px; }
.availability { font-size: 16px; }
.buy-panel .quantity input.qty, .buy-panel .single_add_to_cart_button { font-size: 16px; }
.product-promises strong, .product-promises span { font-size: 14px; }
.product-meta { font-size: 14px; }
.product-details .tabs li a { font-size: 15px; }
.product-details .woocommerce-Tabs-panel { font-size: 16px; }
.product-details .woocommerce-Tabs-panel h2, .product-details #reviews h2 { font-size: 26px; }
.product-details #review_form label { font-size: 15px; }
.product-details #review_form input, .product-details #review_form textarea { font-size: 16px; }
.product-details #review_form .submit { font-size: 16px; font-weight: 600; }
.related.products > h2 { font-size: 24px; }
.footer-title { font-size: 16px; font-weight: 600; }
.footer-copy, .footer-links, .footer-contact { font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .benefits, #categories { display: none; }
  .hero-copy { display: none; }
  .hero { margin-top: 12px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-image { width: 100%; min-height: 0; height: 158px; overflow: hidden; background-size: cover; background-position: center; }
  .header-main { grid-template-columns: 125px 1fr auto; gap: 13px; }
  .account { display: none; }
  .nav-links { gap: 15px; overflow: auto; white-space: nowrap; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid, .related.products ul.products { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .main-product-image img { height: min(500px, 62vw); }
  .archive-products { grid-template-columns: repeat(3, 1fr); }
  .category-landing-grid, .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  body { font-size: 14px; }
  .topbar-inner { min-height: 24px; font-size: 11px; }
  .topbar-right { gap: 7px; }
  .header-main { grid-template-columns: 1fr auto; min-height: 58px; }
  .header-main { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; padding: 10px 0 0; margin-bottom: 0; column-gap: 8px; row-gap: 10px; }
  .brand { grid-column: 1 / 3; grid-row: 1; font-size: 21px; }
  .search-form { grid-column: 2 / -1; grid-row: 2; margin-bottom: 0; }
  .mobile-catalog-button { display: grid; grid-column: 1; grid-row: 2; place-items: center; width: 38px; height: 38px; border: 1px solid var(--green); border-radius: 7px; color: var(--green); }
  .mobile-catalog-button svg { width: 21px; height: 21px; }
  .header-actions { gap: 12px; }
  .header-actions { grid-column: 3; grid-row: 1; gap: 10px; }
  .account { display: flex; width: 25px; height: 25px; }
  .account svg { width: 25px; height: 25px; }
  .account span { display: none; }
  .icon-action { font-size: 25px; }
  .nav { display: none; }
  .catalog-button { flex: 0 0 auto; padding: 9px 10px; font-size: 12px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .filter-pills { flex-wrap: wrap; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { min-height: 250px; padding: 28px 0; }
  .hero h1 { font-size: 32px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child { min-height: 52px; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit strong { font-size: 13px; }
  .benefit span { font-size: 13px; }
  .benefit:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .related.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-page { padding-top: 14px; }
  .product-layout { gap: 20px; }
  .product-breadcrumb { margin-bottom: 12px; }
  .main-product-image { min-height: 260px; max-height: 360px; padding: 18px; }
  .main-product-image img { height: 280px; }
  .product-heading { font-size: 27px; }
  .product-price { margin: 17px 0 13px; font-size: 25px; }
  .product-description { font-size: 13px; }
  .product-promises { grid-template-columns: 1fr; }
  .product-details { margin-top: 42px; }
  .product-details .tabs { gap: 16px; overflow-x: auto; white-space: nowrap; }
  .product-details .tabs li a { font-size: 12px; }
  .related.products { margin-top: 42px; }
  .related.products > h2 { font-size: 18px; }
  .related.products ul.products li.product img { height: 150px; }
  .section-title { font-size: 19px; }
  .category-card span { font-size: 14px; }
  .pill { padding: 8px 14px; font-size: 14px; }
  .badge { padding: 5px 8px; font-size: 14px; }
  .product-brand { font-size: 12px; }
  .product-title { min-height: 42px; font-size: 15px; }
  .rating, .stock { font-size: 12px; }
  .product-card .price { font-size: 19px; }
  .product-card .price del, .product-card .old-price { font-size: 13px; }
  .product-heading { font-size: 30px; }
  .product-rating-line { font-size: 14px; }
  .product-price { font-size: 29px; }
  .availability { font-size: 15px; }
  .product-promises strong, .product-promises span { font-size: 13px; }
  .product-meta { font-size: 13px; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 15px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .store-page { padding: 28px 0 48px; }
  .store-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .store-heading h1, .content-page h1 { font-size: 28px; }
  .archive-products { grid-template-columns: repeat(2, 1fr); }
  .category-landing-grid, .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sort-form { width: 100%; }
  .sort-form select { width: 100%; }
  .category-menu { display: none !important; }
  .mobile-category-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; display: block; width: min(86vw, 340px); padding: 65px 18px 24px; overflow: auto; background: #fff; box-shadow: 12px 0 30px rgb(2 55 35 / 15%); transform: translateX(-110%); transition: transform .2s ease; }
  .mobile-category-drawer.is-open { transform: translateX(0); }
  .drawer-close { position: absolute; top: 17px; right: 17px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 27px; }
  .mobile-category-drawer h2 { margin: 0 0 15px; font-size: 21px; }
  .mobile-category-drawer .category-menu-item:hover > .category-submenu { display: none; }
  .mobile-category-drawer .category-menu-item.is-expanded > .category-submenu { display: block; }
  .search-form .search-results { position: absolute; top: 100%; right: 0; left: 0; max-height: 55vh; }
  .cart-item { grid-template-columns: 66px minmax(0, 1fr) 28px; gap: 10px; }
  .cart-item-image img { width: 66px; height: 66px; }
  .cart-quantity { grid-column: 2; }
  .cart-lower, .account-forms { grid-template-columns: 1fr; gap: 14px; }
  .coupon-box form { flex-wrap: wrap; }
  .coupon-box input { min-height: 42px; }
}
/* Anchor dropdowns to their own controls; top:100% also leaves no hover gap. */
.catalog-wrapper, .account-menu-wrapper { position: relative; }
.catalog-button { display: block; }
.catalog-wrapper > .category-menu { top: 100%; left: 0; }
.header-account-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 220px; margin: 0; padding: 10px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 16px 30px rgb(2 55 35 / 12%); }
.header-account-menu a { display: block; padding: 10px; font-size: 13px; color: inherit; }
.header-account-menu a:hover { color: var(--green); background: var(--green-soft); }
@media (min-width: 621px) {
  .catalog-wrapper:focus-within > .category-menu, .account-menu-wrapper:focus-within > .header-account-menu { display: block; }
}

.product-gallery { position: relative; }
.wishlist-toggle[aria-pressed="true"] { color: var(--sale); }
.wishlist-toggle { z-index: 2; }
.wishlist-toggle:disabled { opacity: .6; cursor: wait; }
.wishlist-empty[hidden] { display: none; }

/* Admin-managed homepage banners and product sections. */
.hero-carousel { position: relative; overflow: hidden; }
.hero-slides { position: relative; display: flex; min-height: 335px; transform: translateX(0); will-change: transform; }
.hero-slide { position: relative; min-width: 100%; flex: 0 0 100%; visibility: visible; opacity: 1; }
.carousel-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; color: var(--green); background: rgb(255 255 255 / 88%); box-shadow: 0 4px 16px rgb(2 55 35 / 15%); cursor: pointer; font-size: 28px; transform: translateY(-50%); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { position: absolute; bottom: 15px; left: 50%; z-index: 3; display: flex; gap: 7px; transform: translateX(-50%); }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 70%); box-shadow: 0 0 0 1px rgb(5 104 71 / 35%); cursor: pointer; }
.carousel-dots button.is-active { width: 24px; border-radius: 8px; background: var(--green); }
.section-actions { display: flex; align-items: center; gap: 8px; }
.product-carousel-prev, .product-carousel-next { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: #fff; cursor: pointer; font-size: 23px; line-height: 1; }
.product-carousel.is-carousel { overflow: hidden; }
.product-carousel.is-carousel .product-carousel-track { display: flex; align-items: stretch; gap: 16px; overflow: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; touch-action: pan-y; }
.product-carousel.is-carousel .product-carousel-track::-webkit-scrollbar { display: none; }
.product-carousel.is-carousel .product-card { min-width: calc((100% - 64px) / 5); max-width: calc((100% - 64px) / 5); flex: 0 0 calc((100% - 64px) / 5); }
.home-product-section .added_to_cart.wc-forward { display: none; }

@media (max-width: 900px) {
  .product-carousel.is-carousel .product-card { min-width: calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 620px) {
  .site-header { position: sticky; }
  .mobile-category-drawer { position: absolute; top: 100%; right: 0; bottom: auto; left: 0; z-index: 60; display: none; width: 100%; max-height: calc(100vh - 108px); padding: 14px 16px 20px; overflow-x: hidden; overflow-y: auto; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 14px 30px rgb(2 55 35 / 18%); transform: none; transition: none; }
  .mobile-category-drawer.is-open { display: block; transform: none; }
  .drawer-close { position: absolute; top: 8px; right: 13px; }
  .mobile-category-drawer h2 { margin: 0 36px 10px 0; font-size: 17px; }
  .mobile-category-drawer .category-menu-list { width: 100%; }
  .mobile-category-drawer .category-menu-item > a { min-width: 0; padding: 10px 4px; overflow-wrap: anywhere; }
  .mobile-category-drawer .category-expand { width: 42px; min-height: 42px; }
  .hero-slides { min-height: 158px; }
  .hero-slide .hero-inner { width: 100%; }
  .hero-slide .hero-image { height: 158px; }
  .carousel-arrow { display: none; }
  .carousel-dots { bottom: 8px; }
  .product-carousel.is-carousel { margin-right: 0; }
  .product-carousel.is-carousel .product-carousel-track { gap: 8px; padding-right: 0; }
  .product-carousel.is-carousel .product-card { min-width: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); flex-basis: calc((100% - 8px) / 2); }
  .product-carousel-prev, .product-carousel-next { display: none; }
  .section-actions .section-link { white-space: nowrap; }
  .home-product-section .product-media { padding: 5px 5px 0; }
  .home-product-section .product-media img { height: 145px; }
  .home-product-section .product-body { padding: 4px 7px 7px; }
  .home-product-section .product-brand { line-height: 1.25; }
  .home-product-section .product-title { min-height: 38px; margin: 1px 0 2px; line-height: 1.28; }
  .home-product-section .rating, .home-product-section .stock { line-height: 1.3; }
  .home-product-section .price-row { margin-top: 3px; }
  .home-product-section .cart-button { width: 38px; height: 38px; flex: 0 0 38px; }
}

/* Wishlist controls */
.product-card .wishlist,
.product-gallery .wishlist {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dfe4e0;
  border-radius: 50%;
  color: #677069;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 3px 10px rgb(12 45 31 / 14%);
  appearance: none;
  -webkit-appearance: none;
  font-size: 22px;
  line-height: 1;
  transition: color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.product-card .wishlist:hover,
.product-gallery .wishlist:hover { transform: translateY(-1px); border-color: #b8ccc0; box-shadow: 0 5px 14px rgb(12 45 31 / 20%); }
.product-card .wishlist[aria-pressed="true"],
.product-gallery .wishlist[aria-pressed="true"] { color: var(--sale); -webkit-text-fill-color: var(--sale); border-color: #f1bcbc; background: #fff8f8; }
.wishlist-link { display: grid; place-items: center; width: 27px; height: 27px; }
.wishlist-link svg { width: 25px; height: 25px; }
.wishlist-link .counter { font-style: normal; font-weight: 600; }

/* My Account */
.aistore-account-dashboard .woocommerce-MyAccount-navigation { display: none; }
.aistore-account-dashboard .woocommerce-MyAccount-content { padding: 0; border: 0; }
.account-welcome { margin-bottom: 22px; padding: 26px 28px; border: 1px solid #dbe6df; border-radius: 16px; background: linear-gradient(135deg, #f3faf6, #fff); box-shadow: 0 10px 30px rgb(2 55 35 / 6%); }
.account-welcome h2 { margin: 0 0 7px; font-size: 25px; line-height: 1.3; }
.account-welcome p:last-child { margin: 0; color: var(--muted); }
.account-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-dashboard-card { position: relative; display: flex; min-height: 142px; gap: 15px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgb(2 55 35 / 5%); transition: transform .18s, border-color .18s, box-shadow .18s; }
.account-dashboard-card:hover { transform: translateY(-2px); border-color: #b9d2c3; box-shadow: 0 12px 26px rgb(2 55 35 / 10%); }
.account-card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.account-card-icon svg { width: 24px; height: 24px; }
.account-card-copy { display: grid; gap: 5px; min-width: 0; }
.account-card-copy strong { color: var(--ink); font-size: 17px; }
.account-card-copy small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.account-card-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--green); font-size: 18px; }
.account-dashboard-card--logout .account-card-icon { color: var(--sale); background: #fff0f0; }
.woocommerce-account .woocommerce-MyAccount-navigation { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgb(2 55 35 / 5%); }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; box-shadow: 0 8px 24px rgb(2 55 35 / 5%); }
.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.woocommerce-account .woocommerce-MyAccount-content table tbody,
.woocommerce-account .woocommerce-MyAccount-content table thead { min-width: 620px; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.woocommerce-account .woocommerce-MyAccount-content form { display: grid; gap: 14px; }
.woocommerce-account .woocommerce-MyAccount-content .form-row { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d6ddd8; border-radius: 8px; background: #fff; font: inherit; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { margin: 8px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.woocommerce-account .woocommerce-MyAccount-content .button { min-height: 42px; border-radius: 8px; color: #fff; background: var(--green); }

@media (max-width: 900px) {
  .account-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .product-card .wishlist,
  .product-gallery .wishlist { width: 40px; height: 40px; font-size: 22px; }
  .wishlist-link, .wishlist-link svg { width: 27px; height: 27px; }
  .account-welcome { padding: 20px; }
  .account-welcome h2 { font-size: 21px; }
  .account-card-grid { grid-template-columns: 1fr; gap: 11px; }
  .account-dashboard-card { min-height: 112px; padding: 18px; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce-account .woocommerce-MyAccount-navigation a { height: 100%; padding: 10px; text-align: center; }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 18px; }
}

/* Checkout field grid. WooCommerce still owns every input, validation, and
   gateway; only its field wrappers participate in this layout. */
.woocommerce-checkout .wc-block-checkout__form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.woocommerce-checkout .wc-block-checkout__form > * { grid-column: 1 / -1; }
.woocommerce-checkout .wc-block-checkout__contact-fields,
.woocommerce-checkout .wc-block-checkout__billing-fields,
.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content,
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-checkout-step__content,
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-address-address-wrapper,
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-address-form-wrapper,
.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-address-form,
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-address-form { display: contents; }
.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading-container {
  grid-column: 1 / -1;
  grid-row: 1;
  order: 0;
}
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-checkout-step__heading-container,
.woocommerce-checkout .wc-block-checkout__billing-fields .wc-block-components-address-card-wrapper,
.woocommerce-checkout .wc-block-checkout__guest-checkout-notice { display: none; }
.woocommerce-checkout .wc-block-checkout__form .wc-block-components-address-form > .wc-block-components-text-input { margin: 0; }
.woocommerce-checkout .wc-block-components-address-form__email { grid-column: 1 / span 3; grid-row: 2; order: 1; }
.woocommerce-checkout .wc-block-components-address-form__phone { grid-column: 4 / span 3; grid-row: 2; order: 1; }
.woocommerce-checkout .wc-block-components-address-form__first_name { grid-column: 1 / span 3; grid-row: 3; order: 2; }
.woocommerce-checkout .wc-block-components-address-form__aistore-personal-id { grid-column: 4 / span 3; grid-row: 3; order: 2; }
.woocommerce-checkout .wc-block-components-address-form__address_1 { grid-column: 1 / span 3; grid-row: 4; order: 3; }
.woocommerce-checkout .wc-block-components-address-form__city { grid-column: 4 / span 3; grid-row: 4; order: 3; }
.woocommerce-checkout .wc-block-components-address-form__aistore-comment { grid-column: 1 / -1; grid-row: 5; order: 4; }
.woocommerce-checkout .wp-block-woocommerce-checkout-payment-block { grid-column: 1 / -1; grid-row: 6; order: 5; margin-top: 10px; }
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control {
  display: grid;
  gap: 9px;
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  overflow: hidden;
  border: 1px solid #d6ddd8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:hover {
  border-color: #a7beb2;
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked) {
  border-color: var(--green);
  background: #f1f8f4;
  box-shadow: 0 0 0 1px rgba(0, 105, 69, .08);
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  min-height: 54px;
  padding: 14px 16px 14px 48px;
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input {
  accent-color: var(--green);
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label {
  font-weight: 700;
  color: var(--ink);
}
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
  margin: 0;
  padding: 0 16px 14px 48px;
  color: #516159;
  font-size: 14px;
  line-height: 1.5;
}
.woocommerce-checkout .wp-block-woocommerce-checkout-terms-block { grid-row: 7; order: 6; }
.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block { grid-row: 8; order: 7; }

@media (max-width: 720px) {
  .woocommerce-checkout .wc-block-checkout__form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .woocommerce-checkout .wc-block-components-address-form__email,
  .woocommerce-checkout .wc-block-components-address-form__phone,
  .woocommerce-checkout .wc-block-components-address-form__first_name,
  .woocommerce-checkout .wc-block-components-address-form__aistore-personal-id,
  .woocommerce-checkout .wc-block-components-address-form__address_1,
  .woocommerce-checkout .wc-block-components-address-form__city,
  .woocommerce-checkout .wc-block-components-address-form__aistore-comment { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout .wp-block-woocommerce-checkout-payment-block,
  .woocommerce-checkout .wp-block-woocommerce-checkout-terms-block,
  .woocommerce-checkout .wp-block-woocommerce-checkout-actions-block,
  .woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading-container { grid-row: auto; }
  .woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option { min-height: 52px; padding: 12px 13px 12px 44px; }
  .woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding: 0 13px 13px 42px; }
}
