/*
Theme Name: Stedrino Store (Shopify Woo child)
Theme URI: https://stedrinowear.com
Description: Stedrino store customisations on top of the Shopify Woo parent theme. Store-specific: not for other stores (use shopify-woo-child).
Author: Stedrino
Template: shopify-woo
Version: 2.0.0
Text Domain: shopify-woo-child
*/

/* Add custom overrides below. All earlier customizations are built into the parent theme (assets/css/store.css). */

/* Buttons and form fields don't inherit the page font by default (they fell back to
   Arial: the "تصفية" button, size/colour swatch pills, quantity fields…). */
button,
input,
select,
textarea,
.shopify-woo-swatch,
.shopify-woo-swatch__text,
.shopify-woo-filter-toggle,
.shopify-woo-filter-toggle span {
  font-family: inherit;
}

/* ── Text links: one clear, consistent style site-wide ──
   Links inside written content were the text colour (looked like plain text), pale sky
   blue (low contrast) or pink depending on the page. Now: brand pink-dark (5.9:1 on
   white, WCAG AA), no underline (it broke card/tile layouts); navy on hover; focus ring
   for keyboard users. Buttons, cards, image links and links on coloured banners keep their own
   design (excluded below). */
:root {
  --shopify-woo-link: #b81d72;
  --shopify-woo-link-hover: var(--st-navy, #0d3973);
}
:is(
  .entry-content,
  .page-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description,
  .shopify-woo-product-help,
  .shopify-woo-collection__desc,
  .shopify-woo-collection-about,
  .term-description,
  .comment-content,
  .woocommerce-review__description,
  .shopify-woo-pdp__whatsapp-note,
  .woocommerce-privacy-policy-text,
  .woocommerce-terms-and-conditions-checkbox-text
) a:not([class*="btn"]):not([class*="button"]):not([role="button"]):not(:has(img, svg:only-child)):not(:is(.sd-cta, .sd-hero, .sd-branch-cta, .sd-why__cards, .shopify-woo-cat-nav) a) {
  color: var(--shopify-woo-link);
  text-decoration: none;
  transition: color 0.15s ease;
}
:is(
  .entry-content,
  .page-content,
  .woocommerce-Tabs-panel,
  .woocommerce-product-details__short-description,
  .shopify-woo-product-help,
  .shopify-woo-collection__desc,
  .shopify-woo-collection-about,
  .term-description,
  .comment-content,
  .woocommerce-review__description,
  .shopify-woo-pdp__whatsapp-note,
  .woocommerce-privacy-policy-text,
  .woocommerce-terms-and-conditions-checkbox-text
) a:not([class*="btn"]):not([class*="button"]):not([role="button"]):not(:has(img, svg:only-child)):not(:is(.sd-cta, .sd-hero, .sd-branch-cta, .sd-why__cards, .shopify-woo-cat-nav) a):is(:hover, :focus-visible) {
  color: var(--shopify-woo-link-hover);
}
:is(.entry-content, .woocommerce-Tabs-panel, .shopify-woo-product-help, .shopify-woo-collection-about) a:focus-visible {
  outline: 3px solid var(--st-sky, #3098d9);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Empty-cart "الأكثر مبيعًا" next/back arrows: the cart page's generic
   `.sc-wrapper button` pill style (padding 2rem, min-height 48px) squeezed the
   40px round buttons so the arrow icon had no room and they showed as blank
   white pills. Restore the round navy-outlined arrow buttons. */
html body.woocommerce-cart .shopify-woo-slider-nav .shopify-woo-slider-nav__btn.shopify-woo-slider-nav__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--st-border, #e2e8f0) !important;
  background: var(--st-surface, #fff) !important;
  color: var(--st-navy, #0d3973) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  line-height: 1 !important;
}
html body.woocommerce-cart .shopify-woo-slider-nav .shopify-woo-slider-nav__btn.shopify-woo-slider-nav__btn:hover,
html body.woocommerce-cart .shopify-woo-slider-nav .shopify-woo-slider-nav__btn.shopify-woo-slider-nav__btn:focus-visible {
  background: var(--st-navy, #0d3973) !important;
  border-color: var(--st-navy, #0d3973) !important;
  color: #fff !important;
}
html body.woocommerce-cart .shopify-woo-empty-cart-recommendations .shopify-woo-slider-nav .shopify-woo-slider-nav__btn.shopify-woo-slider-nav__btn svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep cart checkout button styles from distorting recommendation controls. */
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-slider-nav__btn.shopify-woo-slider-nav__btn {
  width:44px !important; height:44px !important; min-width:44px !important;
  min-height:44px !important; padding:0 !important; border-radius:50% !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__quick {
  width:44px !important; height:44px !important; min-width:44px !important;
  min-height:44px !important; padding:0 !important; border-radius:50% !important;
  background:var(--st-surface) !important; color:var(--st-text) !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__dot {
  width:18px !important; height:18px !important; min-width:18px !important;
  min-height:18px !important; padding:0 !important; border:0 !important;
  border-radius:50% !important; background:var(--swatch) !important;
  box-shadow:inset 0 0 0 1px rgba(13,57,115,.25) !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__dot[aria-pressed="true"] {
  box-shadow:0 0 0 2px white,0 0 0 4px var(--st-navy) !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__panel-close {
  width:32px !important; height:32px !important; min-width:32px !important;
  min-height:32px !important; padding:0 !important; border-radius:50% !important;
  background:transparent !important; color:var(--st-text) !important; box-shadow:none !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__opt {
  width:auto !important; height:auto !important; min-width:40px !important;
  min-height:36px !important; padding:.25rem .6rem !important;
  border:1px solid var(--st-border) !important; border-radius:8px !important;
  background:var(--st-surface) !important; color:var(--st-text) !important; box-shadow:none !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__opts--color .shopify-woo-card__opt {
  width:36px !important; height:36px !important; min-width:36px !important;
  padding:3px !important; border-radius:50% !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations .shopify-woo-card__opt[aria-pressed="true"] {
  background:var(--st-navy) !important; color:white !important; border-color:var(--st-navy) !important;
}
html body.shopify-woo-cart-page.woocommerce-cart #main .shopify-woo-empty-cart-recommendations :is(button,a):focus-visible {
  outline:3px solid var(--st-navy) !important; outline-offset:3px !important;
}
/* Restore the compact WordPress toolbar search, which inherits storefront inputs. */
html body #wpadminbar #wp-admin-bar-search #adminbarsearch {
  height:32px !important; padding:0 !important; margin:0 !important;
}
html body #wpadminbar #wp-admin-bar-search #adminbarsearch .adminbar-input {
  position:absolute !important; top:0 !important; left:0 !important;
  box-sizing:border-box !important; width:32px; height:32px !important;
  min-height:0 !important; padding:0 30px 0 0 !important; margin:0 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; color:#fff !important; font-size:14px !important;
}
html body #wpadminbar #wp-admin-bar-search #adminbarsearch .adminbar-input:focus {
  width:200px; background:#fff !important; color:#1d2327 !important;
}
html body #wpadminbar #wp-admin-bar-search #adminbarsearch .adminbar-button {
  min-height:0 !important; height:32px !important; padding:0 !important;
  border:0 !important; background:transparent !important; box-shadow:none !important;
}
