/*
Theme Name: AyazmaMarket Greenmart Child
Theme URI: https://ayazmamarket.com/
Description: Ayazma header/footer, FiboSearch, store rules, SEO and Nereye Gelsin compatibility for GreenMart Organic.
Author: Ayazma Market
Template: greenmart
Version: 1.1.0
Requires PHP: 7.4
Text Domain: ayazmamarket-greenmart-child
*/

.ayz-delivery-slot {border:1px solid #000;padding:9px;background:#68ce40;color:#000}
.ayz-region-modal[hidden] {display:none!important}
.ayz-region-modal:not([hidden]) {position:fixed;inset:0;z-index:100100;display:flex!important;align-items:center;justify-content:center;background:rgba(0,0,0,.55);padding:20px}
.ayz-region-panel {position:relative;background:#fff;color:#202820;border-radius:14px;width:min(100%,540px);max-height:90vh;overflow:auto;padding:28px;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.ayz-region-panel label,.ayz-region-panel select {display:block;width:100%;margin:10px 0}
.ayz-region-panel select {height:44px;padding:6px 10px;border:1px solid #bac7bc;border-radius:6px}
.ayz-region-panel .ayz-region-close {position:absolute;right:12px;top:8px;background:transparent;color:#26382a;font-size:28px;border:0;padding:4px 10px}
.ayz-region-panel #BolgeSecBtn {width:100%;padding:12px;margin:12px 0;background:#245c35;color:#fff;border:0;border-radius:6px}
.ayz-region-panel #BolgeSecBtn:disabled {opacity:.5;cursor:not-allowed}
.ayz-region-panel #BolgeSecUyari {color:#9b1c1c;background:#fff0f0;padding:10px;border-radius:6px}
.ayz-region-panel [hidden] {display:none!important}

/* =========================
   Modernize (safe CSS-only)
   (Organic skin compatible)
========================= */

:root {
  --ayz-radius: 14px;
  --ayz-radius-sm: 10px;
  --ayz-shadow: 0 10px 26px rgba(0,0,0,.08);
  --ayz-shadow-hover: 0 16px 34px rgba(0,0,0,.10);
  --ayz-border: 1px solid rgba(0,0,0,.06);
}

/* Typography polish */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
  border-radius: var(--ayz-radius-sm) !important;
  font-weight: 600;
  letter-spacing: .1px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, opacity .12s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active {
  transform: translateY(0);
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: var(--ayz-border);
  border-radius: var(--ayz-radius);
  box-shadow: var(--ayz-shadow);
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--ayz-shadow-hover);
}

/* Product images: reduce CLS with consistent rounding */
.woocommerce ul.products li.product a img {
  border-radius: calc(var(--ayz-radius) - 2px);
}

/* Single product gallery */
.woocommerce div.product div.images img {
  border-radius: var(--ayz-radius);
}

/* Notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
  border-radius: var(--ayz-radius);
}

/* Checkout / forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .select2-container .select2-selection--single {
  border-radius: var(--ayz-radius-sm) !important;
}

.select2-container--default .select2-selection--single {
  border-radius: var(--ayz-radius-sm) !important;
}

/* Header search input (common in Greenmart) */
.header-search .search-field,
.tbay-search .search-field,
.tbay-search-form .search-field {
  border-radius: 999px !important;
}

/* Sticky header shadow (if enabled) */
.tbay-header.sticky,
.header-sticky {
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Small spacing improvements on mobile */
@media (max-width: 767px) {
  .woocommerce ul.products {
    gap: 12px;
  }
  .woocommerce ul.products li.product {
    margin: 0 0 12px !important;
  }
}

/* =========================
   IcoFont optimization
   - Ensure valid font-style descriptor
   - Keep font-display: swap
========================= */
@font-face{
  font-family: "IcoFont";
  font-weight: normal;
  font-style: normal;
  src: url("/wp-content/themes/greenmart/fonts/icofont.woff2") format("woff2"),
       url("/wp-content/themes/greenmart/fonts/icofont.woff") format("woff");
  font-display: swap;
}


/* =========================
   Modern UI pack (safe, Organic-compatible)
   - cleaner cards, better hierarchy
   - improved spacing, chips, forms
========================= */
:root{
  --ayz-bg-soft: rgba(0,0,0,.035);
  --ayz-text: rgba(0,0,0,.88);
  --ayz-muted: rgba(0,0,0,.62);
}

/* Reduce visual noise */
.widget,
.sidebar .widget,
.tbay-widget{
  border-radius: var(--ayz-radius);
}

/* Links */
a{
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

/* Headings spacing */
h1,h2,h3,h4{
  letter-spacing: -.2px;
  color: var(--ayz-text);
}

/* Header / top bar polish (does not change layout) */
.site-header,
#tbay-header,
.tbay-header{
  backdrop-filter: saturate(1.1);
}

.tbay-topbar,
.topbar{
  font-size: 13px;
}

/* Search input: modern pill + subtle bg */
.header-search .search-field,
.tbay-search .search-field,
.tbay-search-form .search-field{
  background: var(--ayz-bg-soft);
  border: var(--ayz-border);
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Product title readability */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
  font-size: 14px;
  line-height: 1.25;
  color: var(--ayz-text);
  margin: 10px 12px 6px;
}

/* Price emphasis */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price{
  font-weight: 700;
  margin: 0 12px 10px;
}

/* Add to cart button inside cards (keep theme colors) */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button{
  margin: 0 12px 12px !important;
  width: calc(100% - 24px);
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

/* Sale badge as modern chip */
.woocommerce span.onsale{
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

/* Quantity input look */
.woocommerce .quantity .qty{
  border-radius: 999px !important;
  border: var(--ayz-border) !important;
  padding: 8px 12px !important;
}

/* Cart/Checkout: section cards */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-payment{
  border-radius: var(--ayz-radius);
  border: var(--ayz-border);
  box-shadow: var(--ayz-shadow);
  padding: 14px;
  background: #fff;
}

/* Checkout fields spacing */
.woocommerce form .form-row{
  margin-bottom: 12px;
}

/* Breadcrumb readability */
.woocommerce .woocommerce-breadcrumb{
  color: var(--ayz-muted);
  font-size: 13px;
}

/* Mobile: tighter header + product grid comfort */
@media (max-width: 767px){
  .woocommerce .woocommerce-breadcrumb{
    margin: 10px 0;
  }
  .woocommerce ul.products li.product{
    border-radius: 16px;
  }
  .woocommerce ul.products li.product a.button{
    border-radius: 999px !important;
  }
}


/* =========================
   Premium product card micro-layout
   - keeps layout stable, improves hierarchy
   - aligns price + CTA, reduces jitter
========================= */

/* Make product card content a column (safe: targets common Greenmart structures) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  display: flex;
  flex-direction: column;
}

/* Ensure thumbnail block stays at top */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link{
  display: block;
}

/* Give title a consistent min-height so grid looks aligned */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
  min-height: 2.6em; /* ~2 lines */
}

/* Price sits above CTA, consistent spacing */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price{
  margin-top: auto; /* push price/cta to bottom when possible */
}

/* CTA button pinned to bottom of card */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button{
  border-radius: 999px !important;
}

/* If theme wraps meta in .product-block/.caption/.product-content, make it flex too */
.woocommerce ul.products li.product .caption,
.woocommerce ul.products li.product .product-content,
.woocommerce ul.products li.product .product-block,
.woocommerce-page ul.products li.product .caption,
.woocommerce-page ul.products li.product .product-content,
.woocommerce-page ul.products li.product .product-block{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Improve focus/hover without changing colors */
.woocommerce ul.products li.product:focus-within{
  box-shadow: var(--ayz-shadow-hover);
}

/* Small discount badge placement safety */
.woocommerce ul.products li.product .onsale{
  top: 10px;
  left: 10px;
}

/* Mobile: slightly larger tap targets */
@media (max-width: 767px){
  .woocommerce ul.products li.product a.button{
    padding-top: 12px;
    padding-bottom: 12px;
  }
}


/* =========================
   Theme Modernization Pack (safe)
   - cleaner header/nav feel
   - better spacing rhythm + dividers
   - improved focus states (accessibility)
   - nicer cart/checkout tables
========================= */

/* Global focus (keyboard) */
:where(a, button, input, select, textarea, .button):focus-visible{
  outline: 2px solid rgba(8,170,192,.45);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Subtle separators */
hr, .wp-block-separator{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.06);
}

/* Header: subtle border */
.site-header, #tbay-header, .tbay-header{
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Navigation links */
.main-menu > li > a,
.navbar-nav > li > a{
  font-weight: 600;
}

/* Product page sections feel like cards */
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-tabs{
  border-radius: var(--ayz-radius);
}

/* Tabs: modern pill feel */
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  border-radius: 999px;
  padding: 10px 14px;
}

/* Tables (cart/checkout) */
.woocommerce table.shop_table{
  border-radius: var(--ayz-radius);
  overflow: hidden;
  border: var(--ayz-border);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  padding: 12px 14px;
}

/* Coupon / totals blocks */
.woocommerce-cart .coupon,
.woocommerce .cart_totals,
.woocommerce-checkout #order_review{
  border-radius: var(--ayz-radius);
}

/* Better touch targets on mobile */
@media (max-width: 767px){
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button{
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
