/* Mobile-only refinements. Desktop layout and sizing remain unchanged. */
.mobile-cart-shortcut {
  display: none;
}

@media (max-width: 980px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 78px;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .mobile-cart-shortcut {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid rgba(224, 172, 114, .36);
    color: var(--bronze2, #e0ac72);
    background: rgba(20, 16, 13, .76);
    font-size: .63rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
  }

  button,
  summary,
  .button,
  .nav-links a,
  .back-link,
  .mobile-links a {
    touch-action: manipulation;
  }

  dialog {
    max-width: calc(100vw - 20px);
  }

  .slider-window {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .slider-item {
    scroll-snap-align: start;
  }

  .mobile-links {
    z-index: 30;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .product-card-actions .button,
  .review-submit,
  .return-form .button,
  .newsletter-form .button {
    min-height: 44px;
  }

  .cart-summary,
  .media-panel,
  .account-intro {
    position: static;
  }
}

@media (max-width: 650px) {
  .shell {
    width: min(var(--max, 1240px), calc(100% - 24px));
  }

  .site-header .nav {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 11px;
  }

  .brand-copy {
    font-size: .74rem;
    white-space: nowrap;
  }

  .brand-copy small {
    margin-top: 5px;
    font-size: .49rem;
    letter-spacing: .2em;
  }

  .nav-emblem {
    width: 42px;
    flex-basis: 42px;
  }

  .nav-emblem.emblem span {
    font-size: 1.9rem;
  }

  .nav-links {
    margin-left: auto;
    gap: 8px;
  }

  .nav-links a,
  .back-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    font-size: .6rem;
    letter-spacing: .07em;
  }

  details.mobile summary {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
  }

  .mobile-links {
    top: 47px;
    width: min(260px, calc(100vw - 24px));
  }

  .mobile-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .slider-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 8px;
  }

  .slider-button {
    display: none;
  }

  .slider-window {
    width: 100%;
    mask-image: none;
  }

  .slider-track {
    gap: 8px;
  }

  .slider-item {
    flex-basis: min(78vw, 270px);
    min-height: 64px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 0;
    padding-block: 42px 52px;
  }

  .hero-copy {
    padding-top: 112px;
  }

  .hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.9rem, 15.5vw, 4.65rem);
    line-height: .84;
  }

  .hero-copy > p {
    font-size: .94rem;
    line-height: 1.65;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .hero .actions .button {
    width: 100%;
  }

  .hero .stats {
    margin-top: 34px;
  }

  .hero .stat {
    padding-block: 14px;
  }

  .emblem-wrap {
    right: 22px;
    top: 22px;
    margin: 0;
  }

  .section,
  .craft {
    padding-block: 58px;
  }

  .section-head {
    gap: 15px;
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    line-height: .9;
  }

  .section-head p {
    font-size: .9rem;
  }

  .products {
    gap: 14px;
  }

  .product {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-image {
    height: auto;
    aspect-ratio: 1.28;
  }

  .product-body {
    padding: 17px;
  }

  .product-type,
  .product-open-hint {
    font-size: .58rem;
  }

  .product h3 {
    margin-block: 8px;
    font-size: 1.05rem;
  }

  .product .price {
    font-size: .94rem;
  }

  .product .description {
    margin-block: 10px 15px;
    padding-block: 12px;
    font-size: .72rem;
    line-height: 1.6;
  }

  .product-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .product .product-card-actions .button {
    min-height: 44px;
    font-size: .57rem;
  }

  .smoke-panel {
    min-height: 92px;
  }

  .smoke-label {
    right: 12px;
    bottom: 10px;
    writing-mode: horizontal-tb;
  }

  .craft-media {
    min-height: 245px;
  }

  .craft-copy {
    padding: 34px 20px;
  }

  .craft-copy h2 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .feature {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .story {
    min-height: 290px;
  }

  .story-copy {
    left: 20px;
    right: 20px;
    bottom: 19px;
  }

  .story h3 {
    font-size: 1.3rem;
  }

  .notice {
    margin-top: 54px;
    padding: 34px 20px;
  }

  .notice h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .return-actions,
  .return-actions .button {
    width: 100%;
  }

  .return-review-note {
    font-size: .62rem;
    line-height: 1.55;
  }

  .dialog-close,
  .support-close,
  .lightbox-close {
    width: 44px;
    height: 44px;
  }

  .product-dialog,
  .newsletter-dialog,
  .return-dialog,
  .support-dialog,
  .policy-dialog {
    width: calc(100% - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-media {
    min-height: 230px;
    max-height: 34dvh;
  }

  .dialog-copy {
    padding: 25px 18px 30px;
  }

  .newsletter-art {
    min-height: 108px;
  }

  .newsletter-copy {
    padding: 23px 17px 27px;
  }

  .newsletter-copy h2 {
    padding-right: 42px;
    font-size: 2.45rem;
  }

  .return-copy,
  .policy-copy {
    padding: 29px 17px 34px;
  }

  .return-copy h2,
  .policy-copy h2 {
    font-size: 2.35rem;
  }

  .return-form input,
  .return-form select,
  .return-form textarea,
  .newsletter-form input,
  .review-field input,
  .review-field select,
  .review-field textarea,
  .field input {
    font-size: 16px;
  }

  .support-dialog-inner {
    padding: 25px 16px;
  }

  .support-heading h2 {
    font-size: 2.15rem;
  }

  .support-option {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 88px;
    padding: 13px;
  }

  .support-option b {
    overflow-wrap: anywhere;
  }

  .reviews-section {
    width: min(calc(100% - 24px), 1200px);
    margin: 32px auto 54px;
    padding: 24px 16px;
  }

  .reviews-heading {
    gap: 13px;
  }

  .reviews-heading h2 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .reviews-score {
    flex-wrap: wrap;
  }

  .review-card {
    padding: 16px;
  }

  .review-card-head {
    display: grid;
    gap: 6px;
  }

  .review-form {
    padding: 16px;
  }

  .crumbs {
    padding-block: 18px;
    overflow-wrap: anywhere;
    font-size: .63rem;
    line-height: 1.7;
  }

  .product-layout {
    gap: 21px;
    padding-bottom: 42px;
  }

  .product-copy h1,
  h1 {
    overflow-wrap: anywhere;
  }

  .product-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .specs h2,
  .details h2 {
    padding-inline: 16px;
  }

  .spec {
    padding: 15px 16px;
  }

  .details {
    padding: 26px 17px;
  }

  .image-lightbox {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .image-lightbox .lightbox-image {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .cart-main {
    padding: 40px 0 58px;
  }

  .cart-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  .cart-heading h1 {
    font-size: 2.65rem;
  }

  .cart-line-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding-block: 17px;
  }

  .cart-line-copy > a {
    font-size: .8rem;
    overflow-wrap: anywhere;
  }

  .quantity-control button,
  .quantity-control input {
    height: 44px;
  }

  .cart-summary {
    padding: 20px 17px;
  }

  .cart-empty {
    padding: 38px 19px;
  }

  .cart-empty .button {
    width: 100%;
  }

  .account-hero {
    padding: 40px 0 54px;
  }

  .account-layout {
    gap: 26px;
  }

  .account-intro h1 {
    font-size: clamp(2.75rem, 14vw, 3.8rem);
  }

  #account-create-form {
    padding: 23px 16px;
  }

  .footer-grid,
  .site-policy-links {
    flex-wrap: wrap;
  }

  .not-found {
    padding-block: 42px;
  }

  .not-found-card {
    width: calc(100% - 24px);
    padding: 42px 20px;
  }

  .not-found .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .brand-copy {
    font-size: .69rem;
  }

  .nav-links a[data-support-open] {
    display: none;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .newsletter-copy h2,
  .return-copy h2,
  .policy-copy h2 {
    font-size: 2.15rem;
  }

  .support-heading {
    grid-template-columns: 1fr;
    padding-right: 42px;
  }

  .support-emblem {
    display: none;
  }
}

@media (max-height: 680px) and (max-width: 760px) {
  .newsletter-art {
    display: none;
  }

  .newsletter-grid {
    min-height: 0;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 650px) {
    .mobile-links,
    .newsletter-copy,
    .return-copy,
    .support-dialog-inner,
    .policy-copy {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  }
}

/* V66 cross-device safeguards. These rules are intentionally mobile-only. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
  }

  .shell {
    width: calc(100% - clamp(20px, 5vw, 32px));
    max-width: 100%;
  }

  .nav,
  .brand,
  .brand-copy,
  .slider-shell,
  .slider-window,
  .slider-track,
  .product,
  .product-core,
  .product-body,
  .craft-grid,
  .story-grid,
  .footer-grid {
    min-width: 0;
  }

  .brand-copy {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-links {
    right: 0;
    left: auto;
    max-width: calc(100vw - 16px);
  }

  .slider-window {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .slider-track {
    max-width: none;
  }

  .slider-item {
    flex: 0 0 clamp(210px, 72vw, 280px);
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .slider-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
  }

  .slider-item strong {
    overflow-wrap: anywhere;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .section-head h2,
  .craft-copy h2,
  .notice h2 {
    max-width: 100%;
  }

  .products,
  .product {
    width: 100%;
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .smoke-panel {
    min-height: 76px;
  }

  .product-dialog,
  .newsletter-dialog,
  .return-dialog,
  .support-dialog,
  .policy-dialog,
  .image-lightbox {
    inset-inline: 0;
    margin-inline: auto;
  }

  .dialog-copy h2,
  .newsletter-copy h2,
  .return-copy h2,
  .policy-copy h2,
  .support-heading h2 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .site-header .nav {
    gap: 8px;
  }

  .nav-emblem {
    width: 40px;
    flex-basis: 40px;
  }

  .brand-copy {
    font-size: clamp(.66rem, 3.4vw, .74rem);
  }

  .brand-copy small {
    font-size: .46rem;
    letter-spacing: .16em;
  }

  .hero-copy {
    padding-top: 98px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.75rem);
  }

  .section-head h2 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .craft-copy h2,
  .notice h2 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .product-body {
    padding: 15px;
  }

  .dialog-copy,
  .newsletter-copy,
  .return-copy,
  .policy-copy {
    padding-inline: 16px;
  }
}

@media (max-width: 350px) {
  .shell {
    width: calc(100% - 16px);
  }

  .brand-copy small {
    display: none;
  }

  details.mobile summary {
    padding-inline: 8px;
    font-size: .61rem;
  }

  .slider-item {
    flex-basis: calc(100vw - 32px);
  }

  .hero-copy {
    padding-top: 88px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .emblem-wrap {
    right: 15px;
  }

  .emblem {
    width: 98px;
  }

  .product-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 620px) and (max-width: 760px) {
  .product-dialog,
  .newsletter-dialog,
  .return-dialog,
  .support-dialog,
  .policy-dialog {
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - 8px);
  }

  .newsletter-art,
  .dialog-media {
    display: none;
  }
}
