/*
Theme Name: Kyere Offline Store
Theme URI:  https://example.com/
Author:     Automated Assistant
Description: Minimal WooCommerce-compatible theme used to temporarily disable purchasing and cart UI while site is under construction.
Version:    1.0.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyere-offline-store
Tags: ecommerce, woocommerce, minimal
*/

/* Basic reset so the theme is usable immediately */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;600&display=swap&subset=cyrillic');
body{margin:0;font-family:'Manrope',Arial,Helvetica,sans-serif;font-weight:300;color: rgb(239, 239, 239);background:#000;}
a{color: rgb(239, 239, 239);text-decoration:none;}
header,footer{padding:20px;background:#000;}
.site-content{padding:20px;}

/* Header layout: left menu, centered logo, right icons */
.site-header {
  background: #000;
  border-bottom: none;
}
.site-header .header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  padding-bottom: 0;
}
.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}
.header-left { flex:1; }
/* Make header-left wider so logo has more space from the center menu */
.site-header .header-left { flex: 0 0 22% !important; max-width: 22% !important; padding-left: 16px; justify-content: flex-start; }
/* Central block width as percentage; adjust as needed (30% here) */
.header-center { flex: 0 0 18% !important; max-width: 18% !important; justify-content:center; }
.header-right { flex:1; justify-content:flex-end; gap:18px; }

/* Primary menu */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 15px;
}
.primary-menu li { display:inline-block; }
.primary-menu li a { color: rgb(255, 255, 255); text-decoration:none; display:inline-block; padding:6px 0; font-family: 'Manrope', Arial, Helvetica, sans-serif; font-weight:400; font-size:18px; }
.primary-menu li a:hover { color: #d4af37; }

/* Branding */
.site-branding a { font-family: 'Manrope', Arial, Helvetica, sans-serif; font-weight:600; font-size:20px; color: rgb(239, 239, 239); text-decoration:none; display:block; text-align:center; }

/* Header icons (non-clickable) */
.header-icon {
  display:flex;
  align-items:center;
  gap:8px;
  color: rgb(239, 239, 239);
  opacity:0.95;
}
.header-icon svg { width:20px;height:20px;fill:currentColor; display:block; }
.header-icon .icon-label { font-size:13px; color:#666; display:none; }

/* Ensure icons do not scale unexpectedly (override theme/global rules) */
.header-right .header-icon {
  flex: 0 0 auto;
  width: auto;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-right .header-icon svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 32px;
  max-height: 32px;
  display: block;
}
.header-right .header-icon svg * {
  vector-effect: non-scaling-stroke;
}
/* Ensure fallback menus (wp_page_menu) are also styled */
.main-navigation ul,
.main-navigation .menu,
.main-navigation .primary-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 24px !important;
  align-items: center !important;
}
.main-navigation ul li,
.main-navigation .menu li,
.main-navigation .primary-menu li {
  display: inline-block !important;
}
.main-navigation ul li a,
.main-navigation .menu li a,
.main-navigation .primary-menu li a {
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
  padding: 6px 0 !important;
  display: inline-block !important;
  font-family: 'Manrope', Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
}
.main-navigation ul li a:hover,
.main-navigation .menu li a:hover,
.main-navigation .primary-menu li a:hover {
  color: #d4af37 !important;
}
.main-navigation ul li a:hover,
.main-navigation .menu li a:hover,
.main-navigation .primary-menu li a:hover {
  color: #0073aa !important;
}

/* Defensive: some themes set svg {width:100%} globally — override it inside header */
.site-header svg {
  width: auto !important;
  height: auto !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Ensure left navigation displays inline and items have small gaps */
.header-left .main-navigation { display: block !important; }
.header-left .main-navigation ul,
.header-left .main-navigation .menu,
.header-left .main-navigation .primary-menu {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.header-left .main-navigation li {
  display: inline-block !important;
  margin: 0 !important;
}
.header-left .main-navigation a {
  padding: 6px 8px !important;
  white-space: nowrap;
  font-size: 15px !important;
}

/* Center branding */
.header-center { text-align: center; }
.site-branding { display: inline-block; }
/* Logo image sizing */
.site-branding img {
  /* Make logo scale to center block */
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  max-height: 60px; /* keep reasonable cap */
}

/* Slightly smaller logo on small screens */
@media (max-width:800px) {
  .site-branding img {
    max-height: 40px;
  }
  .site-header .header-center { width: 160px; }
}

/* Banner slider styles */
.kyere-banner-slider {
  /* Full-bleed banner: stretch to viewport width and remove surrounding gaps */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: calc(-50vw + 0px);
  margin-right: calc(-50vw + 0px);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
.kyere-banner-slides { position: relative; display:block; }
.kyere-banner-slide { display: none; width:100%; }
.kyere-banner-slide.active { display:block; }
.kyere-banner-slide img { width:100%; height:auto; display:block; }
.kyere-banner-prev, .kyere-banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color:#fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 20;
}
.kyere-banner-prev { left: 12px; }
.kyere-banner-next { right: 12px; }
.kyere-banner-dots { position: absolute; left:50%; transform:translateX(-50%); bottom:12px; z-index:20; display:flex; gap:8px; }
.kyere-banner-dot { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.6); border:none; cursor:pointer; }
.kyere-banner-dot.active { background: #fff; box-shadow:0 0 0 3px rgba(0,0,0,0.08); }

@media (max-width:800px) {
  .kyere-banner-prev, .kyere-banner-next { padding:6px 10px; }
  .kyere-banner-dots { bottom:8px; }
}

/* Remove default padding around main content for banner area */
.content-area { padding: 0; }

/* Remove gap between header and banner */
.site-header { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.site-content, main.site-content, .content-area { padding-top: 0 !important; margin-top: 0 !important; }
.content-area, .site-content, main.site-content {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.kyere-banner-slider { margin-top: 0 !important; }

/* Responsive */
@media (max-width:800px) {
  .header-container { padding:10px; }
  .primary-menu { gap:12px; font-size:14px; }
  .header-center { width: 140px; }
  .header-icon .icon-label { display:none; }
}

/* Mobile header: burger left, logo center, icons right. Toggle main-navigation as full-width dropdown */
.mobile-burger { display:none; background:transparent; border:0; color:#222; padding:6px; }
.mobile-burger svg { display:block; width:24px; height:24px; }

@media (max-width:800px) {
  /* Swap ordering: left (burger), center (logo), right (icons) */
  .site-header .header-left { order: 1; flex: 0 0 auto; max-width: none; }
  .site-header .header-center { order: 2; flex: 1 1 auto; max-width: none; justify-content:center; }
  .site-header .header-right { order: 3; }

  /* Show burger, hide desktop logo, show mobile logo */
  .mobile-burger { display: inline-flex !important; align-items:center; justify-content:center; }
  .desktop-logo { display: none !important; }
  .mobile-logo { display: block !important; text-align:center; width:100%; }
  .mobile-logo .custom-logo-link, .mobile-logo img.custom-logo { margin: 0 auto; max-height:44px; height:auto; display:inline-block; }

  /* Hide the normal horizontal menu and show it when header has mobile-nav-open */
  .site-header .main-navigation { display: none !important; }
  .site-header.mobile-nav-open .main-navigation {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #000 !important;
    padding: 12px 16px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    z-index: 9999 !important;
  }
  .site-header.mobile-nav-open .main-navigation ul,
  .site-header.mobile-nav-open .main-navigation .primary-menu { flex-direction: column !important; gap: 10px !important; }
  .site-header.mobile-nav-open .main-navigation a { display: block !important; padding: 10px 6px !important; }
}

/* Mobile menu overlay fix: ensure mobile navigation appears above banners and other content */
#mobile-nav,
.mobile-nav,
.mobile-menu,
.main-mobile-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: rgba(0,0,0,0.95) !important;
  overflow: auto !important;
}

/* Also ensure the theme's mobile main-navigation is fixed and on top when open */
.site-header.mobile-nav-open .main-navigation {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
}

.mobile-burger,
button.mobile-burger {
  position: relative !important;
  z-index: 100001 !important;
}

/* Visible state guard */
#mobile-nav.open,
.mobile-nav.open,
.mobile-menu.open,
.site-header.mobile-nav-open .main-navigation.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure WooCommerce product lists render as a grid (remove bullets and default list styling) */
/* Product grid styling applied separately for category and attribute pages (kept identical) */
.content-area.product-archive .products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}
.content-area.product-archive .products li.product {
  display: block;
  box-sizing: border-box;
}
.kyere-attr-products.product-archive .products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}
.kyere-attr-products.product-archive .products li.product {
  display: block;
  box-sizing: border-box;
}
@media (max-width:900px){
  .content-area.product-archive .products,
  .kyere-attr-products.product-archive .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width:480px){
  .content-area.product-archive .products,
  .kyere-attr-products.product-archive .products {
    grid-template-columns: 1fr;
  }
}
.content-area.product-archive .products li.product img,
.kyere-attr-products.product-archive .products li.product img {
  width: 100%;
  height: auto;
  display: block;
}
/* Ensure product archive containers have a consistent max width so images scale the same */
.content-area.product-archive .products {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* For attribute pages use 95% width */
.kyere-attr-products.product-archive .products {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* Thumbnails: attr pages use cropped large thumbnails, category pages use natural images (no crop) */
.kyere-attr-products.product-archive .products li.product .attachment-woocommerce_thumbnail,
.kyere-attr-products.product-archive .products li.product img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.content-area.product-archive .products li.product .attachment-woocommerce_thumbnail,
.content-area.product-archive .products li.product img {
  width: 100%;
  height: auto;
  object-fit: none;
  display: block;
}
/* Variants scroller styles */
.kyere-variants-block { margin-top:18px; }
.kyere-variants-title { font-family: Manrope, Arial, Helvetica, sans-serif; font-weight:600; font-size:20px; color: rgb(239,239,239); margin-bottom:8px; }
.kyere-variants-scroller { display:flex; gap:18px; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; }
.kyere-variants-scroller { display:flex; gap:18px; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; scroll-behavior:smooth; }
.kyere-variants-scroller .kyere-variant-item { min-width:160px; max-width:240px; flex:0 0 auto; }
.kyere-variant-thumb img { width:100%; height:140px; object-fit:cover; display:block; }
.kyere-variants-prev, .kyere-variants-next { background:transparent;border:none;color:rgb(239,239,239);font-size:28px;line-height:1;padding:6px 8px;cursor:pointer;opacity:0.9;}
.kyere-variants-prev:hover, .kyere-variants-next:hover { opacity:1; color:#d4af37; }

/* Hide native scrollbar visually but keep scroll functionality */
.kyere-variants-scroller {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  scrollbar-color: transparent transparent;
}
.kyere-variants-scroller::-webkit-scrollbar { height: 0; background: transparent; }
.kyere-variants-scroller::-webkit-scrollbar-thumb { background: transparent; }
.kyere-variant-title { margin-top:6px; font-size:13px; color:rgb(239,239,239); font-weight:400; text-align:center; }
.kyere-variant-price { margin-top:6px; color:#bb9d7b; font-size:16px; font-weight:600; text-align:center; }
/* Ensure product link block stretches so image occupies top area */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
}

/* Make scroller reserve space for arrows and show 3 smaller items */
.kyere-variants-wrap .kyere-variants-scroller {
  padding-left: 48px !important;
  padding-right: 48px !important;
  gap: 12px !important;
}
.kyere-variants-wrap .kyere-variants-scroller .kyere-variant-item {
  min-width: 140px !important;
  max-width: 170px !important;
}
/* Buy button styles */
.kyere-buy-wrap { margin-bottom: 8px; }
.kyere-buy-btn {
  --beige: #bb9d7b;
  width: 100%;
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--beige) 50%, rgba(0,0,0,0) 50%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  border: 2px solid var(--beige);
  color: #fff;
  text-transform: uppercase;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-position 400ms ease, color 200ms ease;
}
/* on hover slide fill to the left (opposite direction) and make text the border color */
.kyere-buy-btn:hover { background-position: -100% 0%; color: var(--beige); }
.kyere-buy-btn.active { background-position: -100% 0%; color: var(--beige); }
/* Disabled visual state: not clickable */
.kyere-buy-btn[disabled], .kyere-buy-btn[aria-disabled="true"] {
  opacity: 0.85;
  /* keep hover visual but remain functionally disabled via attribute */
}
.kyere-buy-btn[disabled]:hover, .kyere-buy-btn[aria-disabled="true"]:hover {
  background-position: -100% 0;
  color: var(--beige);
}

/* Make product title and price identical on category and attribute pages */
.content-area.product-archive .products li.product .woocommerce-loop-product__title,
.kyere-attr-products.product-archive .products li.product .woocommerce-loop-product__title {
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500; /* Medium */
  margin: 12px 0 6px;
  color: rgb(239, 239, 239);
  line-height: 1.2;
}
.content-area.product-archive .products li.product .price,
.kyere-attr-products.product-archive .products li.product .price {
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgb(239, 239, 239);
  margin-top: 6px;
}

/* Center page titles for category and attribute pages and set Medium weight */
.content-area.product-archive .page-header h1,
.kyere-attr-products.product-archive .page-header h1,
.product-archive .page-header h1,
.archive-product .page-header h1,
.taxonomy-product_cat .page-header h1,
.content-area.product-archive h1.page-title,
.archive-product h1.page-title,
.taxonomy-product_cat h1.page-title,
.product-archive h1.page-title,
body.tax-product_cat h1.page-title,
body.archive h1.page-title,
body.post-type-archive-product h1.page-title {
  text-align: center !important;
  font-family: 'Manrope', Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important; /* Medium */
  line-height: 1.2; /* keep existing height */
  color: rgb(239, 239, 239) !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Product tabs (Описание / Детали / Отзывы) - active: black with beige border; others: solid beige fill */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  --beige: #bb9d7b;
  display: inline-block;
  padding: 10px 14px;
  background: var(--beige);
  color: #000;
  border: 2px solid var(--beige);
  text-decoration: none;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: none;
  border-radius: 2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  /* make active/hovered look like the buy button: black fill with beige border and beige text */
  background: #000;
  color: var(--beige);
  border-color: var(--beige);
}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; /* remove inline gaps */
  box-shadow: none !important;
  outline: none !important;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:active {
  box-shadow: none !important;
  outline: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  margin: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs .panel {
  border-top: none;
  background: transparent;
  color: rgb(239, 239, 239);
  padding-top: 8px;
}

/* Hover zoom effect for single product gallery images */
.woocommerce-product-gallery.kyere-gallery-js-enabled .woocommerce-product-gallery__image img {
  transition: transform 260ms ease;
  will-change: transform;
  transform-origin: 50% 50%;
  cursor: zoom-in;
}
.woocommerce-product-gallery__image.kyere-zoom-active img {
  transform: none;
  cursor: zoom-in;
}

/* Ensure anchors don't show outlines/white backgrounds during interactions */
.woocommerce-product-gallery__image a {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Loupe styles: circular magnifier */
.kyere-loupe {
  width: 200px;
  height: 200px;
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  background-repeat: no-repeat;
  background-size: 220%;
  display: none;
  z-index: 99999;
  border: 3px solid #bb9d7b;
}

/* Single product main price: slightly larger and beige like the buy button */
.single-product .product .summary .price,
.single-product .product .summary .price .woocommerce-Price-amount {
  color: #bb9d7b !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

/* kyere-banners: scale typography proportionally with viewport */
.kyere-banner-overlay .hero-banner-content h1 {
  font-size: clamp(24px, 4.5vw, 48px);
  line-height: 1.05;
  margin: 0 0 8px;
}
.kyere-banner-overlay .hero-banner-content {
  font-size: clamp(14px, 1.8vw, 18px);
}
.kyere-banner-slide img { width:100%; height:auto; display:block; }

/* kyere-home-inserts responsive behavior */
.khi-full-width-wrap { width:100vw; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; position:relative; }
.kyere-home-insert-wrap { margin-top:50px; }
.kyere-home-layout { display:grid; gap:12px; align-items:start; }
.kyere-home-layout-cols-2 { grid-template-columns: repeat(2, 1fr); }
.kyere-home-layout-cols-3 { grid-template-columns: repeat(3, 1fr); }
.kyere-home-layout-cols-4 { grid-template-columns: repeat(4, 1fr); }
.kyere-home-layout .kh-block { position:relative; min-height:220px; overflow:hidden; display:flex; align-items:center; }
.kyere-home-layout .kh-block .kh-block-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.kyere-home-layout .kh-block .kh-block-html { position:relative; padding:18px; color:#fff; background:transparent; width:100%; box-sizing:border-box; }

/* Indent helper (used inside content) */
.khi-indent { padding-left:70px; padding-right:20px; }
@media (max-width:800px) { .khi-indent { padding-left:12px; padding-right:12px; } }

/* Behavior for cols 2 & 3: scale down slightly on medium screens, then stack under 800px */
@media (max-width:1200px) {
  .kyere-home-layout-cols-2 .kh-block,
  .kyere-home-layout-cols-3 .kh-block {
    min-height: 180px;
  }
  .kyere-home-layout .kh-block .kh-block-html { font-size: 0.95rem; }
}
@media (max-width:800px) {
  .kyere-home-layout-cols-2,
  .kyere-home-layout-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .kyere-home-layout .kh-block { min-height: 160px; }
}

/* Behavior for cols 4: -> 2x2 under 800px, -> single column under 600px */
@media (max-width:800px) {
  .kyere-home-layout-cols-4 { grid-template-columns: repeat(2,1fr) !important; gap:12px; }
}
@media (max-width:600px) {
  .kyere-home-layout-cols-4,
  .kyere-home-layout-cols-2,
  .kyere-home-layout-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .kyere-home-layout .kh-block { min-height: 140px; }
}

/* Ensure images inside blocks scale down responsively */
.kyere-home-layout .kh-block .kh-block-bg { background-size: cover; background-position: center; }
.kyere-home-layout .kh-block img { max-width:100%; height:auto; display:block; }
