/*
Theme Name: Feedy Child
Theme URI: https://feedy.jwsuperthemes.com
Template: feedy
Description: Child theme for the Feedy parent theme. Adds an archive quick-view modal and product-grid responsive tuning. Keep all customisations here — do not edit the parent theme.
Author: the JWSThemes team
Author URI: https://jwsuperthemes.com
Version: 1.0.0
Updated: 2026-08-21 15:49:50
Text Domain: feedy-child
Template Version: 2.2.2
*/

/* Design tokens (:root variables) of the parent theme are inherited from its root style.css, which is
   enqueued alongside this file — do not duplicate those.

   Pitta brand tokens (the boss's brief, 2026-11-13). Every Pitta stylesheet (header, hero, sections, order,
   the quick-view modal below) reads these, so a colour, border or title size is changed here once. */
:root {
  --pitta-bg: #FAF8F5;                         /* Main-Background (secondary background of cards on white) */
  --pitta-red: #B90000;                        /* Main-Red */
  --pitta-red-hover: #760F1B;                  /* Hover-Red */
  --pitta-ink: #30231F;                        /* Font-Color */
  --pitta-yellow: #F4C34E;                     /* Main-Yellow: the "choose" buttons that open the product modal */
  --pitta-yellow-dark: color-mix(in srgb, var(--pitta-yellow), #000 12%);
  --pitta-yellow-tint: color-mix(in srgb, var(--pitta-yellow) 20%, #fff);
  --pitta-muted: rgb(48 35 31 / 75%);          /* secondary text */
  --pitta-faint: rgb(48 35 31 / 55%);          /* tertiary text, placeholders */
  --pitta-border-color: rgb(48 35 31 / 25%);   /* Main-Border */
  --pitta-divider-color: rgb(48 35 31 / 15%);  /* Secondary-Border (Divider) */
  --pitta-border: 1px solid var(--pitta-border-color);
  --pitta-divider: 1px solid var(--pitta-divider-color);

  --pitta-title: 64px;                         /* every title; line-height is always 1 */
  --pitta-title-hero: 80px;                    /* ONLY the Hero Cream title (home page) */
  --pitta-card-pad-top: 60px;                  /* Main Cards padding */
  --pitta-card-pad-right: clamp(24px, 6.9vw, 90px);
  --pitta-card-pad-bottom: 60px;
  --pitta-card-pad-left: clamp(24px, 4vw, 60px);
  --pitta-eyebrow-pad: 20px;                   /* extra top padding of a card that opens with a small line above its title */

  --pitta-page-inset: 24px;                    /* how far the page CONTENT (cards, order / menu / cart panels, page title) sits in from the header and footer, each side. The header and footer bars keep the full 1320px. 0 = everything the same width */
  --pitta-page-max: calc(1320px - 2 * var(--pitta-page-inset)); /* widest the page content gets */

  --pitta-pad: 120px;                          /* vertical padding of a section */
  --pitta-pad-small: 40px;                     /* top padding of the small containers (hero, features strip) */
}

@media (max-width: 1024px) {
  :root {
    --pitta-pad: 80px;
    --pitta-title-hero: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --pitta-title: 40px; /* 64px does not fit a phone: Greek words would break mid-word */
    --pitta-title-hero: 40px;
    --pitta-pad: 40px; /* boss, 2026-11-27: 40px wherever phones had 64px */
  }
}

/* Page colours. The parent theme paints the body and the text from the Theme Options (a grey and a blue-grey
   written by its generated stylesheet); the boss's Main-Background and Font-Color replace them here, so the
   colours do not depend on what is saved in the admin. */
html body[class] {
  background-color: var(--pitta-bg) !important; /* !important: the grey is also a Theme Options colour and an inline rule */
  color: var(--pitta-ink); /* [class] outranks the Elementor kit's .elementor-kit-N colour */
}

html body .site,
html body .site-content {
  color: var(--pitta-ink);
}

/* Parent-theme accents (the custom cursor, the "lost password" link, its custom button) follow the brand too */
.jws-cursor--follower.jws-js-follower {
  border-color: var(--pitta-red);
}

.jws-cursor--drap.jws-js-drap {
  background: var(--pitta-red);
}

html body .lost-pass-link {
  color: var(--pitta-red);
}

html body .button-custom {
  border-color: var(--pitta-red);
  background: var(--pitta-red);
  color: #FFFFFF;
}

html body .button-custom:hover {
  border-color: var(--pitta-red-hover);
  background: var(--pitta-red-hover);
  color: #FFFFFF;
}

/* No forced capitals anywhere (the parent theme and the widgets used uppercase and capitalize): capitals are
   typed by hand in the text. !important because the parent's rules are class selectors. */
*,
*::before,
*::after {
  text-transform: none !important;
}

/* ---------------------------------------------------------------------------
   Quick-view modal — opened from product cards (child theme)
   ---------------------------------------------------------------------------
   One column at every screen size: photo on top, then title / price / options,
   with the quantity + "Add to cart" bar pinned to the bottom edge. Everything
   above the bar scrolls as ONE area (photo included), so the photo can never
   hog the screen while the options are squeezed into a small strip.
   Brand colours come from the --pitta-* tokens at the top of this file. */

.quick-view-main {
  --qv-red: var(--pitta-red);
  --qv-red-dark: var(--pitta-red-hover);
  --qv-yellow: var(--pitta-yellow);
  --qv-yellow-dark: var(--pitta-yellow-dark);
  --qv-yellow-tint: var(--pitta-yellow-tint);
  --qv-text: var(--pitta-ink);
  --qv-muted: var(--pitta-muted);
  --qv-line: var(--pitta-divider-color);
  --qv-soft: var(--pitta-bg);
  --qv-pad: 28px;
  --qv-max-h: min(90vh, 860px);
}
@supports (height: 1dvh) {
  .quick-view-main {
    --qv-max-h: min(90dvh, 860px);
  }
}

/* The chat bubble (AI Engine) sits at the highest z-index there is, so it stayed on top of any popup and covered its
   buttons. While a popup is open the chat goes behind the popup's overlay (102, or 360 with the phone toolbar) and
   comes back when it closes. !important because the chat's own stylesheet sets its z-index. */
body:has(> .mfp-wrap) .mwai-chat {
  z-index: 100 !important;
}

/* Modal container & surface */
.quick-view-main .mfp-content {
  width: min(640px, 94vw);
}
.quick-view-main #jws-quickview {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
.quick-view-main .popup-quick-view {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
  color: var(--qv-text);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgb(48 35 31 / 30%);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* The single scroll area: photo + details. The close button and the footer
   bar stay put because they are positioned against the popup / this box. */
.quick-view-main .popup-quick-view .shop-single {
  position: relative;
  padding: 0;
  max-height: var(--qv-max-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--pitta-faint) transparent;
}
.quick-view-main .popup-quick-view .main-product.product {
  padding: 0;
  margin: 0;
}
.quick-view-main .popup-quick-view .main-product.product .row {
  display: block;
  margin: 0;
}
.quick-view-main .popup-quick-view .main-product.product .row > [class*='col-'] {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding: 0;
}

/* Entrance animation */
.quick-view-main.mfp-ready #jws-quickview {
  animation: feedy-qv-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes feedy-qv-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button */
.quick-view-main .popup-quick-view .mfp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--qv-text);
  box-shadow: 0 2px 10px rgb(48 35 31 / 22%);
  z-index: 25;
  opacity: 1;
  font-size: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-view-main .popup-quick-view .mfp-close:before {
  content: '\e81a';
  font-family: 'jws_icon';
  font-size: 16px;
  line-height: 1;
  display: block;
}
.quick-view-main .popup-quick-view .mfp-close:hover {
  background: var(--qv-red);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Photo — full width, capped height so it never takes over the modal */
.quick-view-main .popup-quick-view .main-product.product .images {
  position: relative;
  display: block;
  flex: none;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--qv-soft);
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.quick-view-main .popup-quick-view .woo-variation-gallery-wrapper,
.quick-view-main .popup-quick-view .woo-variation-gallery-slider-wrapper {
  width: 100%;
}
.quick-view-main .popup-quick-view .images figure {
  margin: 0;
}
.quick-view-main .popup-quick-view .images figure img {
  display: block;
  width: 100%;
  height: clamp(170px, 30vh, 280px);
  object-fit: cover;
  border-radius: 0;
}
.quick-view-main .popup-quick-view .owl-dots {
  display: none !important;
}

/* Details */
.quick-view-main .popup-quick-view .main-product.product .jws-summary {
  display: block;
  margin: 0;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 22px var(--qv-pad) 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  box-sizing: border-box;
}

/* Typography & price */
.quick-view-main .popup-quick-view .product-title,
.quick-view-main .popup-quick-view .product_title {
  font-family: inherit;
  font-size: clamp(22px, 4.6vw, 28px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--qv-text);
  margin: 0 0 8px;
}
.quick-view-main .popup-quick-view .price-wrap {
  margin: 0 0 10px;
}
.quick-view-main .popup-quick-view .price {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--qv-red);
}
.quick-view-main .popup-quick-view .woocommerce-product-rating {
  margin-bottom: 10px;
}
.quick-view-main .popup-quick-view .woocommerce-product-details__short-description,
.quick-view-main .popup-quick-view .product-short-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--qv-muted);
  margin: 0 0 18px;
}
/* SKU + category: moved up under the description (the form is pushed below
   them with flex order) as one quiet line. */
.quick-view-main .popup-quick-view .entry-summary.quickview-summary {
  display: flex !important;
  flex-direction: column;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary > * {
  order: 5;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary > .product-title {
  order: 1;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary > .price-wrap {
  order: 2;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary > .woocommerce-product-details__short-description {
  order: 3;
}
.quick-view-main .popup-quick-view .entry-summary.quickview-summary > .product_meta {
  order: 4;
}
.quick-view-main .popup-quick-view .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: -6px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--qv-muted);
}
.quick-view-main .popup-quick-view .product_meta > span {
  display: inline;
}
.quick-view-main .popup-quick-view .product_meta .meta_label {
  color: var(--qv-muted);
}
.quick-view-main .popup-quick-view .product_meta .sku,
.quick-view-main .popup-quick-view .product_meta a {
  color: var(--qv-text);
  font-weight: 600;
  text-decoration: none;
}

/* Variations */
.quick-view-main .popup-quick-view table.variations {
  width: 100%;
  margin: 0 0 8px;
  border: 0;
}
.quick-view-main .popup-quick-view table.variations tr {
  display: block;
}
.quick-view-main .popup-quick-view table.variations td {
  display: block;
  padding: 4px 0;
  border: 0;
}
.quick-view-main .popup-quick-view table.variations td.label,
.quick-view-main .popup-quick-view table.variations td.label label {
  font-size: 15px;
  font-weight: 700;
  color: var(--qv-text);
}
.quick-view-main .popup-quick-view .variations select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--qv-line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--qv-text);
  background-color: #ffffff;
}
.quick-view-main .popup-quick-view .reset_variations {
  font-size: 13px;
  color: var(--qv-red);
}

/* ---------------------------------------------------------------------------
   Add-ons / options
   --------------------------------------------------------------------------- */
.quick-view-main .popup-quick-view .product-addon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  margin: 0 0 20px;
}
.quick-view-main .popup-quick-view .product-addon .clear {
  display: none;
}
.quick-view-main .popup-quick-view .product-addon .addon-name {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  margin: 6px 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--qv-text);
}
.quick-view-main .popup-quick-view .product-addon .form-row,
.quick-view-main .popup-quick-view .product-addon.list-style.style1 .form-row,
.quick-view-main .popup-quick-view .product-addon.list-style.style2 .form-row,
.quick-view-main .popup-quick-view .product-addon.list-style.style3 .form-row {
  width: calc(50% - 5px) !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--qv-line) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
  cursor: pointer !important;
}
.quick-view-main .popup-quick-view .product-addon .form-row:hover {
  border-color: var(--qv-yellow) !important;
}
.quick-view-main .popup-quick-view .product-addon .form-row:has(input:checked) {
  background: var(--qv-yellow-tint) !important;
  border-color: var(--qv-yellow) !important;
}
.quick-view-main .popup-quick-view .product-addon .form-row label,
.quick-view-main .popup-quick-view .product-addon .form-row .addon-info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: var(--qv-text) !important;
}
.quick-view-main .popup-quick-view .product-addon .addon,
.quick-view-main .popup-quick-view .product-addon input[type="checkbox"],
.quick-view-main .popup-quick-view .product-addon input[type="radio"] {
  margin: 0 8px 0 0 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  accent-color: var(--qv-red) !important;
}
.quick-view-main .popup-quick-view .product-addon .form-row img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  object-fit: contain !important;
  margin: 0 4px 0 0 !important;
  border-radius: 4px !important;
  display: inline-block !important;
}
.quick-view-main .popup-quick-view .product-addon .label {
  flex: 1 1 auto;
  font-weight: 500;
  color: var(--qv-text);
  line-height: 1.3;
  display: inline-block;
}
.quick-view-main .popup-quick-view .product-addon .price {
  display: inline-block !important;
  margin: 0 0 0 auto !important;
  padding-left: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--qv-muted) !important;
  white-space: nowrap !important;
}

/* ---------------------------------------------------------------------------
   Quantity stepper + Add to cart — one bar pinned to the bottom of the modal
   --------------------------------------------------------------------------- */
.quick-view-main .popup-quick-view form.cart {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* Variable products: the bar below is sticky, and a sticky box cannot leave its parent. Its parent, the variation
   wrapper, starts under the size choice, so on a phone the bar hung below the modal (buttons cut off) until the
   visitor scrolled. The form and the wrapper give up their own boxes, so the whole details column holds the bar.
   Their children become items of that flex column, hence the order (title, price, text and category are 1 to 4). */
.quick-view-main .popup-quick-view form.variations_form.cart,
.quick-view-main .popup-quick-view form.variations_form .single_variation_wrap {
  display: contents !important;
}
.quick-view-main .popup-quick-view form.variations_form > *,
.quick-view-main .popup-quick-view form.variations_form .single_variation_wrap > * {
  order: 5;
}
/* Simple products (no variation wrapper): same controls, in the flow */
.quick-view-main .popup-quick-view form.cart:not(.variations_form) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 22px !important;
}
.quick-view-main .popup-quick-view form.cart:not(.variations_form) .product-addon {
  flex: 0 0 100%;
  margin-bottom: 4px;
}

.quick-view-main .popup-quick-view .woocommerce-variation-add-to-cart {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex !important;
  align-items: center;
  gap: 12px;
  /* The theme gives this wrapper width:100%, so the negative side margins
     alone would only shift it left. Spell the full-bleed width out. */
  width: calc(100% + var(--qv-pad) * 2);
  max-width: none;
  margin: 8px calc(var(--qv-pad) * -1) 0;
  padding: 14px var(--qv-pad) calc(14px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid var(--qv-line);
  box-shadow: 0 -10px 22px rgb(48 35 31 / 7%);
}

.quick-view-main .popup-quick-view .jws-quantity-wrap,
.quick-view-main .popup-quick-view form.cart .quantity {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  /* The parent theme's phone CSS makes these 100% wide. */
  width: auto !important;
}
.quick-view-main .popup-quick-view .jws-quantity-wrap .quantity,
.quick-view-main .popup-quick-view form.cart > .quantity {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 50px !important;
  padding: 4px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--qv-line) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

/* Keep the label visually hidden but available to screen readers
   (display:none would remove it from the accessibility tree). */
.quick-view-main .popup-quick-view .quantity .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quick-view-main .popup-quick-view .quantity input[type="number"],
.quick-view-main .popup-quick-view .quantity .qty {
  width: 44px !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--qv-text) !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
  box-shadow: none !important;
}
.quick-view-main .popup-quick-view .quantity input::-webkit-outer-spin-button,
.quick-view-main .popup-quick-view .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Minus & plus — element-agnostic so both the theme's <span>s and the
   injected <button type="button"> fallbacks get the same look. */
.quick-view-main .popup-quick-view .quantity > .jws-qty-minus,
.quick-view-main .popup-quick-view .quantity > .jws-qty-plus {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--qv-soft) !important;
  color: var(--qv-text) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.quick-view-main .popup-quick-view .quantity > .jws-qty-minus:hover,
.quick-view-main .popup-quick-view .quantity > .jws-qty-plus:hover,
.quick-view-main .popup-quick-view .quantity > .jws-qty-minus:focus-visible,
.quick-view-main .popup-quick-view .quantity > .jws-qty-plus:focus-visible {
  background: var(--qv-yellow) !important;
}
.quick-view-main .popup-quick-view .quantity > .jws-qty-minus:active,
.quick-view-main .popup-quick-view .quantity > .jws-qty-plus:active {
  transform: scale(0.92);
}
.quick-view-main .popup-quick-view .quantity > .jws-qty-minus:before {
  content: '-' !important;
}
.quick-view-main .popup-quick-view .quantity > .jws-qty-plus:before {
  content: '+' !important;
}

/* Live total (inserted by archive-quickview.js): sits left of the stepper on
   wide screens, on its own row above the controls on phones. */
.quick-view-main .popup-quick-view .feedy-qv-total {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 78px;
  line-height: 1.15;
}
.quick-view-main .popup-quick-view .feedy-qv-total__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--qv-muted);
}
.quick-view-main .popup-quick-view .feedy-qv-total__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--qv-red);
  white-space: nowrap;
}
.quick-view-main .popup-quick-view .feedy-qv-total__value .woocommerce-Price-amount,
.quick-view-main .popup-quick-view .feedy-qv-total__value bdi {
  font: inherit;
  color: inherit;
}

/* Add to cart */
.quick-view-main .popup-quick-view .single_add_to_cart_button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 50px !important;
  line-height: 1.1 !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: var(--qv-red) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.quick-view-main .popup-quick-view .single_add_to_cart_button:hover {
  background: var(--qv-red-dark) !important;
  color: #FFFFFF !important;
}
.quick-view-main .popup-quick-view .single_add_to_cart_button:active {
  transform: scale(0.985);
}
.quick-view-main .popup-quick-view .single_add_to_cart_button.disabled,
.quick-view-main .popup-quick-view .single_add_to_cart_button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}
/* The modal is for ordering only: no wishlist heart next to the button. */
.quick-view-main .popup-quick-view .jws-wishlist-btn {
  display: none !important;
}

/* Focus visibility */
.quick-view-main .popup-quick-view a:focus-visible,
.quick-view-main .popup-quick-view button:focus-visible,
.quick-view-main .popup-quick-view select:focus-visible,
.quick-view-main .popup-quick-view input:focus-visible {
  outline: 2px solid var(--qv-red);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Loading state — set by archive-quickview.js while the modal content is
   fetched (body.feedy-qv-busy + .feedy-qv-loading on the clicked card)
   --------------------------------------------------------------------------- */
body.feedy-qv-busy {
  cursor: progress;
}
.feedy-qv-loading {
  position: relative;
}
.feedy-qv-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}
.feedy-qv-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid rgba(181, 36, 36, 0.25);
  border-top-color: var(--pitta-red);
  border-radius: 50%;
  z-index: 5;
  animation: feedy-qv-spin 0.7s linear infinite;
}
@keyframes feedy-qv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------
   Responsive — phones
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .quick-view-main {
    --qv-pad: 18px;
  }
  .quick-view-main .mfp-content {
    width: 94vw;
  }
  .quick-view-main .popup-quick-view {
    border-radius: 20px;
  }
  .quick-view-main .popup-quick-view .images figure img {
    height: clamp(150px, 24vh, 220px);
  }
  .quick-view-main .popup-quick-view .entry-summary.quickview-summary {
    padding-top: 18px !important;
  }
  .quick-view-main .popup-quick-view .product-addon .form-row,
  .quick-view-main .popup-quick-view .product-addon.list-style.style1 .form-row,
  .quick-view-main .popup-quick-view .product-addon.list-style.style2 .form-row,
  .quick-view-main .popup-quick-view .product-addon.list-style.style3 .form-row {
    width: 100% !important;
  }
  .quick-view-main .popup-quick-view .woocommerce-variation-add-to-cart {
    flex-wrap: wrap;
    gap: 10px;
  }
  .quick-view-main .popup-quick-view .feedy-qv-total {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .quick-view-main .popup-quick-view .feedy-qv-total__label {
    font-size: 14px;
  }
  .quick-view-main .popup-quick-view form.cart:not(.variations_form) .feedy-qv-total {
    margin-bottom: -2px;
  }
  /* flex-basis 0 so the button shares the row with the stepper instead of
     wrapping under it; the label may take two lines on very narrow phones. */
  .quick-view-main .popup-quick-view .single_add_to_cart_button {
    flex: 1 1 0 !important;
    padding: 0 10px !important;
    font-size: 14px !important;
  }
}

/* ---------------------------------------------------------------------------
   Product menu cards
   ---------------------------------------------------------------------------
   Keep these rules below #content so product-like markup in the header/mega
   menu is never styled as a card. The theme's menu list is layout2: the image
   and product information are siblings inside .product-item-inner, so that
   inner wrapper (not a :has() match) is the card surface. */

#content.site-content {
  background-color: var(--pitta-bg) !important;
}

/* Shop sidebar: separate the filters into the same white-card system used by
   the catalogue. Desktop only; the theme's mobile filter drawer keeps its
   compact full-height treatment. */
@media (min-width: 1024px) {
  #content .shop-page .shop-sidebar .jws-filter-modal,
  #content .shop-page .shop-sidebar .siderbar-inner,
  #content .shop-page .shop-sidebar .jws_sticky_move {
    background: transparent !important;
  }

  #content .shop-page .shop-sidebar .siderbar-inner > .widget {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--pitta-border-color);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(31, 27, 22, 0.05);
  }

  #content .shop-page .shop-sidebar .siderbar-inner > .widget:last-child {
    margin-bottom: 0;
  }

  #content .shop-page .shop-sidebar .siderbar-inner .widget-title,
  #content .shop-page .shop-sidebar .siderbar-inner .elementor-widget-container > h5 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
  }

  #content .shop-page .shop-sidebar .widget_product_categories ul {
    margin: 0;
  }

  #content .shop-page .shop-sidebar .widget_product_categories ul li {
    margin: 0;
    line-height: 1.45;
  }

  #content .shop-page .shop-sidebar .widget_product_categories ul li + li {
    margin-top: 5px;
  }

  #content .shop-page .shop-sidebar .widget_product_categories ul li > a {
    display: inline-block;
    margin-left: -6px;
    padding: 3px 6px;
    border-radius: 7px;
    transition: color 180ms ease, background-color 180ms ease;
  }

  #content .shop-page .shop-sidebar .widget_product_categories ul li > a:hover,
  #content .shop-page .shop-sidebar .widget_product_categories ul li.current-cat > a {
    background: var(--pitta-bg);
    color: var(--heading);
  }

  #content .shop-page .shop-sidebar .jws-product-search {
    margin-bottom: 0;
  }

  #content .shop-page .shop-sidebar .jws-product-search input.s {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 46px 0 14px;
    background: var(--pitta-bg);
    border: 1px solid var(--pitta-border-color);
    border-radius: 10px;
  }

  #content .shop-page .shop-sidebar .price_slider_wrapper {
    padding-right: 0;
  }

  #content .shop-page .shop-sidebar .price_slider_wrapper .price_slider_amount .price_label {
    font-size: 15px;
  }

  #content .shop-page .shop-sidebar .price_slider_wrapper .price_slider_amount button {
    min-height: 30px;
    padding: 2px 14px;
    background: var(--main);
    color: var(--heading);
  }

  #content .shop-page .shop-sidebar .widget_products .product_list_widget {
    margin: 0;
  }

  #content .shop-page .shop-sidebar .widget_products .product-item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--pitta-divider-color);
  }

  #content .shop-page .shop-sidebar .widget_products .product-item:first-child {
    padding-top: 0;
  }

  #content .shop-page .shop-sidebar .widget_products .product-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  #content .shop-page .shop-sidebar .widget_products .product-list-image,
  #content .shop-page .shop-sidebar .widget_products .product-item-inner .product-image {
    flex: 0 0 62px;
    width: 62px;
    max-width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 9px;
  }

  #content .shop-page .shop-sidebar .widget_products .product-item-inner .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #content .shop-page .shop-sidebar .widget_products .product-item-inner .product-content {
    box-sizing: border-box;
    max-width: calc(100% - 62px);
    padding-left: 12px;
  }

  #content .shop-page .shop-sidebar .widget_products .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.25;
  }

  #content .shop-page .shop-sidebar .widget_products .price {
    font-size: 14px;
    line-height: 1.3;
  }
}

/* Category reset injected through woocommerce_product_categories_widget_args.
   Keep it visually distinct in both the desktop card and mobile drawer. */
#content .shop-page .shop-sidebar .widget_product_categories .cat-item-all {
  margin: 0 0 10px;
}

#content .shop-page .shop-sidebar .widget_product_categories .cat-item-all > a {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  background: var(--pitta-yellow-tint);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 9px;
  color: var(--heading);
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease;
}

#content .shop-page .shop-sidebar .widget_product_categories .cat-item-all > a::before {
  content: '\21ba';
  color: var(--secondary);
  font-size: 17px;
  line-height: 1;
}

#content .shop-page .shop-sidebar .widget_product_categories .cat-item-all > a:hover {
  background: var(--main);
  border-color: var(--main);
}

#content .products-tab .product-item.product > .product-item-inner {
  box-sizing: border-box;
  padding: 16px;
  background: #ffffff !important;
  border: 1px solid var(--pitta-border-color);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(31, 27, 22, 0.05);
  transform: translateY(0);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

/* Stop the theme's image jump: movement belongs to the complete card. Keep
   the original price/icon-to-choose-button hover interaction intact. */
#content .products-tab .product-item.product > .product-item-inner .product-image img {
  transform: none !important;
}

/* AJAX category tabs can return source thumbnails with different aspect
   ratios. Keep layout-2 artwork in the same 70px square frame after a tab
   switch instead of allowing landscape images to collapse in height. */
#content .products-tab.layout2 .product-item.product > .product-item-inner > .product-image {
  flex: 0 0 70px;
  width: 70px;
  max-width: 70px;
  height: 70px;
  overflow: hidden;
}

#content .products-tab.layout2 .product-item.product > .product-item-inner > .product-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

#content .products-tab.layout2 .product-item.product > .product-item-inner > .product-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

#content .products-tab .product-item.product > .product-item-inner:focus-within {
  border-color: var(--pitta-border-color);
  box-shadow: 0 10px 24px rgba(31, 27, 22, 0.09);
}

/* Equal-height vertical cards on desktop. Flex the column itself so every
   card fills the height of the tallest product in its row, then keep the
   price/action area aligned at the bottom. */
@media (min-width: 1024px) {
  #content .products-tab.layout1.grid-layout > .product-item.product,
  #content .products-tab.layout1 .carousel .owl-item > .product-item.product {
    display: flex;
  }

  /* A carousel slide already represents one column. Remove the col-xl-* width
     carried by the product template or it becomes one-third of its own slide. */
  #content .products-tab.layout1 .carousel .owl-item > .product-item.product {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #content .products-tab.layout1.grid-layout > .product-item.product > .product-item-inner,
  #content .products-tab.layout1 .carousel .owl-item > .product-item.product > .product-item-inner {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    align-content: stretch;
    flex-direction: column;
  }

  #content .products-tab.layout1 .product-item.product > .product-item-inner > .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  #content .products-tab.layout1 .product-item.product .product-excerpt {
    flex: 1 1 auto;
  }

  #content .products-tab.layout1 .product-item.product .button-inner {
    margin-top: auto;
  }

  /* Owl Carousel uses floated items by default, so opt its stage into flex
     when this same product layout is displayed as a slider. */
  #content .products-tab.layout1 .carousel.owl-loaded .owl-stage {
    display: flex;
  }

  #content .products-tab.layout1 .carousel.owl-loaded .owl-item {
    display: flex;
    height: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  #content .products-tab .product-item.product > .product-item-inner:hover {
    border-color: var(--pitta-border-color);
    box-shadow: 0 10px 24px rgba(31, 27, 22, 0.09);
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  #content .products-tab .product-item.product > .product-item-inner {
    padding: 12px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #content .products-tab .product-item.product > .product-item-inner {
    transform: none !important;
    transition: none !important;
  }
}

/* Reduced motion: no fade/translate, content always visible; the loading
   spinner is slowed instead of removed so progress is still communicated. */
@media (prefers-reduced-motion: reduce) {
  .quick-view-main.mfp-ready #jws-quickview,
  .quick-view-main .popup-quick-view .mfp-close,
  .quick-view-main .popup-quick-view .single_add_to_cart_button {
    animation: none !important;
    transition: none !important;
  }
  .quick-view-main .mfp-content > div,
  .quick-view-main .popup-quick-view {
    opacity: 1 !important;
  }
  .feedy-qv-loading::before {
    animation-duration: 1.6s;
  }
}

/* ---------------------------------------------------------------------------
   Product grid responsiveness (child theme)
   ---------------------------------------------------------------------------
   The parent drives card columns via the default.css grid: col-xl-* >= 1024px,
   col-lg-* >= 767px, col-* < 767px. That leaves tablets (768-1023) stuck with
   the desktop column count and phones always at 2 columns even at 360px.
   These rules tune the in-between sizes and mobile typography/spacing. */

/* Tablet: desktop column count is too tight -> cap at 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .products .product-item.product,
  .related.products .product-item.product,
  .cross-sells .product-item.product {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile cards: breathing room + readable type */
@media (max-width: 767px) {
  .products .product-item,
  .related.products .product-item,
  .cross-sells .product-item {
    margin-bottom: 26px;
  }
  .products .product-item .product-item-inner .woocommerce-loop-product__title,
  .related.products .product-item .product-item-inner .woocommerce-loop-product__title,
  .cross-sells .product-item .product-item-inner .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .products .product-item .product-info,
  .related.products .product-item .product-info,
  .cross-sells .product-item .product-info {
    padding-left: 4px;
    padding-right: 4px;
  }
  .products .product-item .price,
  .related.products .product-item .price,
  .cross-sells .product-item .price {
    font-size: 15px;
  }
  /* Keep the overlay add-to-cart button compact so it doesn't crowd the title */
  .products .product-item .product-item-inner .product-image .button-addtocart .button {
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.2;
  }
}

/* Very small phones: keep 2 columns, tighten further */
@media (max-width: 400px) {
  .products .product-item .product-item-inner .woocommerce-loop-product__title,
  .related.products .product-item .product-item-inner .woocommerce-loop-product__title,
  .cross-sells .product-item .product-item-inner .woocommerce-loop-product__title {
    font-size: 13.5px;
  }
  .products .product-item .product-item-inner .product-image .button-addtocart .button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Shop category carousel: turn its Elementor section from boxed to full width.
   The element ID is the category strip shown above the product archive only. */
.elementor-element.elementor-element-a1a82f7.elementor-section-boxed > .elementor-container {
  width: 100% !important;
  max-width: none !important;
}

.elementor-element.elementor-element-a1a82f7 > .elementor-container,
.elementor-element.elementor-element-a1a82f7 .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Product Advanced category tabs: keep the mobile menu in one swipeable row.
   Desktop/tablet keep the parent theme's existing inline layout. */
@media (max-width: 767px) {
  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter {
    position: relative;
  }

  /* Arrows make the swipeable overflow discoverable without
     covering the tabs or interfering with touch input. */
  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter::before,
  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 48px;
    height: 82px;
    box-sizing: border-box;
    transform: translateY(-50%);
    color: var(--heading);
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter::before {
    content: '\2190';
    left: 0;
    justify-content: flex-start;
    padding-left: 8px;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter::after {
    right: 0;
    justify-content: flex-end;
    padding-right: 8px;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter.has-left-arrow::before,
  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter.has-right-arrow::after {
    opacity: 1;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter .jws-ajax-load.filter-cate {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter .jws-ajax-load.filter-cate::-webkit-scrollbar {
    display: none;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter .jws-ajax-load.filter-cate li {
    display: block;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .elementor-widget-jws-product-advanced .tab-horizontal .jws-head-filter .jws-ajax-load.filter-cate li a {
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------ My Account: login and lost password
   These two forms come from the parent theme's dark popup design: near-white labels on the grey page (invisible),
   a black button, a yellow link, and the form 10px from the screen edge. They now follow the Pitta look: a white
   card (Main-Border, radius 32) 24px from the edge, red title, ink labels, Main-Background fields, a red pill
   button. !important only where the parent's own selectors are more specific (label colour, button). The
   logged-in account pages (orders, addresses) are not styled here. */
body.woocommerce-account:not(.logged-in) :is(.jws-login-form .jws-login, form.lost_reset_password) {
  box-sizing: border-box;
  width: auto !important; /* the parent gives the slide width: 100%, which plus the side margin overflowed the screen */
  max-width: 520px;
  margin: 0 14px; /* + the page container's 10px = 24px from the screen edge */
  padding: 28px 22px;
  border: var(--pitta-border);
  border-radius: 32px;
  background: #FFFFFF;
  box-shadow: none;
}

@media (min-width: 600px) {
  body.woocommerce-account:not(.logged-in) :is(.jws-login-form .jws-login, form.lost_reset_password) {
    margin-right: auto;
    margin-left: auto;
    padding: 40px 36px;
  }
}

/* the parent's carousel wrapper pulls the form 15px out on each side (a carousel gutter) and made the card wider than
   the screen; there is only one slide */
body.woocommerce-account:not(.logged-in) .jws-login-form .form-contaier {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.woocommerce-account:not(.logged-in) :is(.heading-form, form.lost_reset_password > h3) {
  margin: 0 0 20px;
  font-family: 'Google Sans', system-ui, sans-serif;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--pitta-red);
}

body.woocommerce-account:not(.logged-in) form.lost_reset_password .lost-notes {
  margin: 0 0 20px;
  text-align: left;
  color: var(--pitta-muted);
}

body.woocommerce-account:not(.logged-in) .jws-login-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pitta-ink) !important; /* the parent paints these white for its dark popup */
}

body.woocommerce-account:not(.logged-in) .jws-login-form .login-remember label {
  font-weight: 400;
}

body.woocommerce-account:not(.logged-in) :is(.jws-login-form input.input, form.lost_reset_password input.input-text) {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: var(--pitta-border);
  border-radius: 16px;
  background: var(--pitta-bg);
  box-shadow: none;
  font-size: 16px;
  color: var(--pitta-ink);
}

body.woocommerce-account:not(.logged-in) :is(.jws-login-form input[type="submit"], form.lost_reset_password .woocommerce-Button) {
  width: 100%;
  height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--pitta-red) !important;
  border-radius: 999px !important;
  background: var(--pitta-red) !important;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account:not(.logged-in) :is(.jws-login-form input[type="submit"], form.lost_reset_password .woocommerce-Button):hover {
  border-color: var(--pitta-red-hover) !important;
  background: var(--pitta-red-hover) !important;
}

body.woocommerce-account:not(.logged-in) .jws-login-form .lost-pass-link {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--pitta-red) !important; /* the parent paints this link yellow (and the .lost-pass-link rule above is outranked) */
}
