/* STRYT — responsive breakpoints */

/* ─── Large laptop ─── */
@media (max-width: 1280px) {
  .products-grid,
  .woocommerce .products,
  .woocommerce-page .products {
    --cols: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stryt-footer__cols {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .stryt-footer__cols > :nth-child(5) { display: none; }
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
  :root {
    --pad-x: 24px;
    --header-h: 64px;
  }
  .stryt-header__inner { padding: 14px var(--pad-x); }
  .stryt-nav__list { gap: 16px; }
  .stryt-nav__list a { font-size: 12px; }
  .stryt-cartbtn span:not(.badge):not(.stryt-cart-count) { display: none; }
  .stryt-cartbtn { padding: 0; width: 40px; justify-content: center; position: relative; }
  .stryt-cartbtn .stryt-cart-count { position: absolute; top: -2px; right: -2px; }
  .single-product div.product {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }
  .catalog-layout {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
  .page-header__title { font-size: 48px; }
  .stryt-newsletter__title { font-size: 52px; }
}

/* ─── Small tablet / large phone ─── */
@media (max-width: 860px) {
  .stryt-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .stryt-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(420px, 92vw);
    z-index: 210;
    background: var(--bg);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 320ms;
    visibility: hidden;
    box-shadow: 24px 0 60px -20px rgba(0,0,0,0.6);
  }
  .stryt-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
  }
  .stryt-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .stryt-nav__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .stryt-nav__brand-mark {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--fg);
  }
  .stryt-nav__brand-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--fg-3);
    text-transform: uppercase;
  }
  .stryt-nav__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--fg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, border-color 160ms ease;
  }
  .stryt-nav__close:hover {
    background: var(--surface);
    border-color: var(--fg);
  }
  .stryt-nav__list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    width: 100%;
  }
  .stryt-nav__list .menu-item {
    border-bottom: 1px solid var(--line);
  }
  .stryt-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    padding: 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border-bottom: none;
    transition: color 160ms ease, transform 220ms ease;
  }
  .stryt-nav__list a::after {
    content: '→';
    font-family: var(--font-mono);
    font-size: 16px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .stryt-nav__list a:hover::after,
  .stryt-nav__list .current-menu-item > a::after {
    opacity: 1;
    transform: translateX(0);
  }
  .stryt-nav__list .menu-item--accent > a { color: var(--accent); }
  .stryt-nav__foot {
    display: block;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    width: 100%;
  }
  .stryt-nav__foot-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 12px;
  }
  .stryt-nav__foot-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .stryt-nav__foot-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
  }
  .stryt-nav__foot-links a:hover { color: var(--accent); }
  .stryt-nav__foot-links .stryt-icon { color: var(--fg-3); }
  .stryt-nav__foot-count {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--accent);
    color: var(--accent-fg);
    padding: 2px 7px;
    border-radius: 999px;
  }
  .stryt-nav__foot-note {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-3);
  }

  .stryt-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
  }
  .stryt-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms ease, visibility 0s linear 0s;
  }

  .stryt-menu-toggle { display: inline-flex; }
  .stryt-actions { gap: 4px; }
  .stryt-iconbtn { width: 36px; height: 36px; }
  .stryt-logo__tag { display: none; }

  .stryt-hero { min-height: 480px; height: 70vh; }
  .stryt-hero__title { font-size: clamp(48px, 12vw, 80px); }
  .stryt-hero__desc { font-size: 14px; }

  .products-grid,
  .woocommerce .products,
  .woocommerce-page .products {
    --cols: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .section-head__title { font-size: 32px; }
  .page-header { padding-top: 24px; }
  .page-header__title { font-size: 40px; }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Sidebar becomes a slide-in drawer on mobile */
  .catalog-layout__sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    z-index: 210;
    background: var(--bg);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -20px rgba(0,0,0,0.6);
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 320ms;
    visibility: hidden;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
  }
  .catalog-layout__sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
  }
  .catalog-filters__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--line);
  }
  .catalog-filters__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .catalog-filters__title {
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--fg);
  }
  .catalog-filters__subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
  }
  .catalog-filters__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--fg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, border-color 160ms ease;
  }
  .catalog-filters__close:hover {
    background: var(--surface);
    border-color: var(--fg);
  }
  .catalog-filters__body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px 24px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-filters__footer {
    display: block;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .catalog-filters__apply {
    width: 100%;
    padding: 16px 18px;
    font-size: 13px;
  }
  .catalog-filters__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
  }
  .catalog-filters__overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms ease, visibility 0s linear 0s;
  }

  .catalog-sortbar__filters {
    display: inline-flex;
    order: -1;
  }

  /* Make the price slider feel touch-friendly inside the drawer */
  .catalog-layout__sidebar .widget_price_filter .price_slider { margin: 22px 6px 26px; }
  .catalog-layout__sidebar .widget_price_filter .ui-slider-handle {
    width: 22px;
    height: 22px;
    margin-left: -11px;
  }
  .catalog-layout__sidebar .widget_price_filter .price_slider_amount {
    font-size: 12px;
  }
  .catalog-layout__sidebar .widget_price_filter .price_slider_amount .button {
    padding: 12px 18px;
    font-size: 12px;
  }

  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px var(--pad-x);
  }
  .single-product div.product .woocommerce-product-gallery {
    position: static;
  }
  .single-product .product_title.entry-title { font-size: 40px; }

  .stryt-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stryt-footer__brand { grid-column: 1 / -1; }

  .stryt-newsletter { padding: 48px 24px; }
  .stryt-newsletter__title { font-size: 40px; }

  .woocommerce > .woocommerce-account {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    grid-template-columns: 1fr;
  }
}

/* ─── Account: orders / downloads tables → cards on narrow screens ─── */
@media (max-width: 640px) {
  /* The 5-column orders table can't fit — stack each order as a card.
     WC marks these tables .shop_table_responsive and tags every cell
     with data-title, which we surface as the row label. */
  .woocommerce-MyAccount-content table.shop_table_responsive { border: 0; }
  .woocommerce-MyAccount-content table.shop_table_responsive thead { display: none; }
  .woocommerce-MyAccount-content table.shop_table_responsive tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 16px;
  }
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr td,
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr th {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr td:last-child,
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr th:last-child { border-bottom: 0; }
  /* hover highlight is meaningless once rows are cards */
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:hover td,
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:hover th { background: transparent; }
  /* row label from the column header */
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr td::before,
  .woocommerce-MyAccount-content table.shop_table_responsive tbody tr th::before {
    content: attr(data-title);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-3);
    text-align: left;
    white-space: nowrap;
  }
  /* order number gets the most weight at the top of the card */
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number { font-size: 15px; }
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a { color: var(--fg); }
  /* actions become a full-width button stack */
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
    display: block;
    padding-top: 14px;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions::before { display: none; }
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
    display: block;
    width: 100%;
    margin: 6px 0 0;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:first-child { margin-top: 0; }
}

/* ─── Phone ─── */
@media (max-width: 560px) {
  :root {
    --pad-x: 16px;
  }
  .stryt-announce {
    font-size: 9px;
    padding: 6px 12px;
  }

  .products-grid,
  .woocommerce .products,
  .woocommerce-page .products {
    --cols: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card__title { font-size: 12px; }
  .product-card__price ins,
  .product-card__price .amount { font-size: 15px; }
  .product-card__code { font-size: 9px; }
  .editorial-slot { display: none; }

  .drop-card { width: 220px; }
  .drop-card__media { height: 280px; }
  .drop-card__label { font-size: 30px; }

  .stryt-hero { min-height: 420px; }
  .stryt-hero__ctas .btn { padding: 14px 18px; font-size: 12px; }
  .stryt-ticker__track { font-size: 14px; }

  .page-header__title { font-size: 32px; }
  .section-head__title { font-size: 24px; }

  .stryt-newsletter__title { font-size: 32px; }
  .stryt-newsletter__form { flex-direction: column; border-radius: 16px; padding: 12px; gap: 8px; }
  .stryt-newsletter__form input { text-align: center; }
  .stryt-newsletter__form button { width: 100%; }

  .stryt-footer__cols { grid-template-columns: 1fr; }

  .single-product .cart {
    flex-direction: column;
    align-items: stretch;
  }
  .single-product .quantity { align-self: flex-start; }

  .stryt-drawer { width: 100vw; }
  .catalog-layout__sidebar { width: 100vw; }

  .woocommerce-cart table.shop_table,
  .woocommerce-cart table.shop_table thead { display: block; }
  .woocommerce-cart table.shop_table thead { display: none; }
  .woocommerce-cart table.shop_table tbody,
  .woocommerce-cart table.shop_table tr,
  .woocommerce-cart table.shop_table td { display: block; width: 100%; }
  .woocommerce-cart table.shop_table tr {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .woocommerce-cart table.shop_table td {
    border: none;
    padding: 4px 16px;
  }
  .woocommerce-cart table.shop_table td::before {
    content: attr(data-title);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 8px;
  }
}
