/* Glozin archive cards: same look for simple and eligible variable products. */
.woocommerce ul.products li.product.gwc-enabled .product-inner {
  display:flex; flex-direction:column; height:100%; border:1px solid #e9e9e9;
  border-radius:20px; padding:12px; background:#fff;
}
.woocommerce ul.products li.product.gwc-enabled .product-summary {
  display:flex; flex-direction:column; flex:1; width:100%;
}
/* Glozin default price and its ATC buttons would duplicate custom content. */
.woocommerce ul.products li.product.gwc-enabled .product-summary > .price,
.woocommerce ul.products li.product.gwc-enabled .product-summary > .product-price,
.woocommerce ul.products li.product.gwc-enabled .product-summary > .product-loop-button-atc,
.woocommerce ul.products li.product.gwc-enabled .product-thumbnail .product-loop-button-atc,
.woocommerce ul.products li.product.gwc-enabled .product-featured-icons .product-loop-button-atc,
.woocommerce ul.products li.product.gwc-enabled .product-summary > a.add_to_cart_button,
.woocommerce ul.products li.product.gwc-enabled .product-summary > a.product_type_variable,
.woocommerce ul.products li.product.gwc-enabled .product-summary > a.product_type_simple,
.woocommerce ul.products li.product.gwc-enabled .product-summary > .gz-button-add-to-cart-mobile,
.woocommerce ul.products li.product.gwc-enabled .product-summary > .product-attribute,
.woocommerce ul.products li.product.gwc-enabled .product-inner a.product_type_variable.glozin-button,
.woocommerce ul.products li.product.gwc-enabled .product-inner a.product_type_variable.gz-button,
.woocommerce ul.products li.product.gwc-enabled .product-inner a.product_type_simple.glozin-button,
.woocommerce ul.products li.product.gwc-enabled .product-inner a.product_type_simple.gz-button {
  display:none !important;
}
.woocommerce ul.products li.product.gwc-enabled .product-summary > .gwc-card { margin-top:auto; }
.gwc-card { box-sizing:border-box; width:100%; padding-top:14px; text-align:left; }
.gwc-options { background:#f3f3f3; border-radius:12px; padding:5px; display:flex; gap:3px; width:100%; box-sizing:border-box; }
.gwc-option { appearance:none; flex:1; min-width:0; padding:10px 5px; border:2px solid transparent; background:transparent; border-radius:9px; color:#000; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; }
.gwc-option.is-active, .gwc-option[aria-pressed="true"] { background:#000; border-color:#000; color:#fff; }
.gwc-option:not(.is-active):hover { background:#e4e4e4; }
.gwc-option:focus-visible, .gwc-add:focus-visible { outline:3px solid #777; outline-offset:2px; }
.gwc-prices { display:flex; align-items:center; flex-wrap:wrap; column-gap:9px; row-gap:4px; margin:17px 0; min-height:30px; font-size:15px; }
.gwc-current { font-size:21px; font-weight:700; color:#222; }
.gwc-regular { color:#818792; font-size:14px; text-decoration:line-through; }
.gwc-regular:empty, .gwc-saving:empty { display:none; }
.gwc-saving { color:#f03a42; font-size:14px; }
.gwc-add { width:100%; min-height:54px; display:flex; align-items:center; justify-content:center; gap:10px; background:#000; color:#fff; border:1px solid #000; border-radius:50px; padding:16px 12px; cursor:pointer; font-family:inherit; font-size:16px; font-weight:600; transition:background .2s ease; }
.gwc-add:hover { background:#242424; color:#fff; border-color:#242424; }
.gwc-add:disabled { opacity:.65; cursor:wait; }
.gwc-add svg { width:22px; height:22px; stroke:currentColor; flex-shrink:0; }
.gwc-message { font-size:12px; margin-top:6px; }
.gwc-message:empty { display:none; }
/* Existing Glozin single product keeps normal WooCommerce cart behavior. */
.single-product .woocommerce div.product .single_add_to_cart_button {
  display:inline-flex !important; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:14px 24px; background:#000 !important; color:#fff !important;
  border:1px solid #000 !important; border-radius:50px !important; font-size:16px; font-weight:600;
}
.single-product .woocommerce div.product .single_add_to_cart_button:hover { background:#242424 !important; border-color:#242424 !important; color:#fff !important; }
/* CSS icon on single-page button only if the theme has no inline SVG. */
.single-product .woocommerce div.product .single_add_to_cart_button:not(:has(svg))::after {
  content:""; display:inline-block; width:22px; height:22px; flex-shrink:0; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.4 13.4a2 2 0 0 0 2 1.6H20a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.4 13.4a2 2 0 0 0 2 1.6H20a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media(max-width:767px) {
  .gwc-option { font-size:12px; padding:9px 2px; }
  .gwc-current { font-size:18px; }
  .gwc-add { font-size:13px; padding:13px 6px; min-height:46px; }
  .gwc-add svg { width:18px; height:18px; }
}

/* Button state indicators: idle -> loading -> success -> idle. */
.gwc-add .gwc-btn-idle,
.gwc-add .gwc-btn-loading,
.gwc-add .gwc-btn-success {
  display:none;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
}
.gwc-add[data-state="idle"] .gwc-btn-idle,
.gwc-add[data-state="loading"] .gwc-btn-loading,
.gwc-add[data-state="success"] .gwc-btn-success { display:inline-flex; }
.gwc-add[data-state="success"] { background:#000; opacity:1; cursor:default; }
.gwc-add[data-state="loading"] { background:#000; opacity:.85; cursor:progress; }
.gwc-add[data-state="loading"]:disabled,
.gwc-add[data-state="success"]:disabled { opacity:1; }
.gwc-spinner {
  width:20px;
  height:20px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:gwc-spin .65s linear infinite;
  flex-shrink:0;
}
@keyframes gwc-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gwc-spinner { animation-duration:1.5s; }
}
