/* ============================================================
   RESPONSIVE — new pages
   ============================================================ */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 1rem var(--gutter) 0;
    font-size: 0.625rem;
  }
  .page-head {
    padding: 2.125rem var(--gutter) 1.625rem;
  }
  .page-head__title {
    font-size: 2rem;
  }
  main > .woocommerce {
    padding: 1.375rem var(--gutter) 3.75rem;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0; /* the wrapper's 3.75rem bottom already spaces it from the footer */
  }

  /* off-canvas filter drawer (standard mobile e-commerce pattern) */
  .widget-area {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: 86%;
    max-width: 21.25rem;
    background: var(--cream);
    box-shadow: -4px 0 30px rgba(51, 42, 32, 0.18);
    padding: 1.25rem 1.375rem calc(1.75rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }
  .filter-toggle:checked ~ .widget-area {
    transform: translateX(0);
    visibility: visible;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(51, 42, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .filter-toggle:checked ~ .filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .widget-area__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.375rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--line);
  }
  .widget-area__title {
    font-family: "Marcellus", serif;
    font-size: 1.375rem;
    color: var(--ink);
  }
  .widget-area__close {
    display: inline-flex;
    padding: 0.375rem;
    margin: -0.375rem;
    cursor: pointer;
    color: var(--ink-muted);
  }
  .widget-area__close .icon {
    width: 1.375rem;
    height: 1.375rem;
  }

  /* filter groups stack in the drawer; each stays an accordion (see base
     .widget__toggle / .widget__body rules) so desktop + mobile behave alike */
  .widget {
    margin: 0 0 1.625rem;
    padding: 0 0 1.375rem;
    border-bottom: 1px solid var(--line);
  }
  .widget:last-child {
    border-bottom: 0;
  }
  .widget--scroll ul {
    max-height: none;
    overflow: visible;
  }

  /* the "Filters" trigger in the toolbar */
  .filter-open {
    display: inline-flex;
    align-items: center;
    gap: 0.5625rem;
    align-self: flex-start;
    border: 1px solid var(--line-gold);
    border-radius: 62.4375rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--cream);
    cursor: pointer;
  }
  .filter-open .icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--maroon);
  }

  .shop-toolbar {
    flex-direction: column;
    gap: 0.875rem;
    align-items: stretch;
  }
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.375rem 1rem;
  }

  .single-product-main {
    grid-template-columns: 1fr;
    gap: 1.875rem;
  }
  /* stack gallery above summary; the page scrolls on mobile, so drop the desktop
     sticky + viewport height cap and let the image take its natural width. Keep
     position:relative (not static) so the zoom/lightbox trigger still anchors to
     the image container's top-right rather than the viewport. */
  .woocommerce-product-gallery {
    position: relative;
    top: auto;
  }
  .woocommerce-product-gallery__image img,
  .woocommerce-product-gallery__image > a img {
    max-height: none;
    width: 100%;
  }
  .flex-control-thumbs li {
    width: 4rem;
  }
  .summary .product_title {
    font-size: 1.75rem;
  }
  .product-meta-list {
    grid-template-columns: 1fr;
  }
  .the-details {
    padding: 2.75rem var(--gutter);
  }
  .the-details__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.375rem;
  }
  .woocommerce-tabs {
    padding: 2.5rem var(--gutter);
  }
  .wc-tabs {
    gap: 1.125rem;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .wc-tabs li a {
    white-space: nowrap;
  }
  .related.products,
  .up-sells.products {
    padding: 0.625rem 0 3.75rem;
  }

  /* smaller quantity stepper so rows never overflow narrow screens */
  .quantity button {
    width: 2.375rem;
    height: 2.75rem;
  }
  .quantity input {
    width: 2.75rem;
    height: 2.75rem;
  }

  .prose,
  .faq {
    padding: 0.625rem var(--gutter) 3.75rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.875rem;
    padding: 0.625rem var(--gutter) 3.75rem;
  }
  .form-row--split {
    grid-template-columns: 1fr;
  }
}

