/* Shared sizing and responsive layouts, loaded after page styles. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Raleway, Arial, sans-serif; }
img, video { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #b60000; outline-offset: 4px; }
.footer a:focus-visible, .footer button:focus-visible { outline-color: white; }
.sizes { flex-wrap: wrap; }
.sizes button, .quantity button { min-width: 30px; min-height: 36px; }
.email-adress input { max-width: 100%; }
.scene-text { box-sizing: border-box; }
.collection-grid:has(.product-preview) {
  min-width: 0; width: 100%; max-width: 1200px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none;
  gap: 64px clamp(24px, 7vw, 100px); margin: 80px auto; padding: 0 32px;
}
.collection-grid:has(.product-preview) > div {
  grid-column: auto; grid-row: auto; width: 100%; max-width: 440px;
  min-width: 0; margin: 0; padding: 0; justify-self: center;
}
.collection-grid:has(.collection-preview) { min-width: 0; }
@media (max-width: 1200px) {
  .collection-grid:has(.collection-preview) {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto;
    gap: 50px 8vw; padding: 50px 6vw; align-items: start;
  }
  .collection-grid:has(.collection-preview) > * { grid-column: auto; grid-row: auto; margin: 0; padding: 0; min-width: 0; }
  .collection-grid:has(.collection-preview) .collection-title { grid-column: 1 / -1; }
  .collection-grid .collection-preview { width: 100%; margin: 0; }
  .title-collection-1 { font-size: clamp(28px, 5vw, 50px); }
  .title-collection-2 { font-size: clamp(100px, 18vw, 200px); }
  .product { margin: 50px 32px 80px; gap: 32px; }
  .about { margin: 50px 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; gap: 30px; }
  .about .logo-2 { grid-column: 2 / 4; grid-row: 1; justify-self: center; }
  .about .text { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin: 0; }
  .about .text-2 { grid-column: 2 / 5; grid-row: 3; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; }
  .about .vertical-title { font-size: 90px; }
  .about .detail-2 { grid-column: 1; grid-row: 3; margin: 0; align-self: center; }
  .about .detail-1 { grid-column: 2; grid-row: 4; }
  .about .detail-3 { grid-column: 4; grid-row: 4; }
  .about > img:not(.logo-2) { width: 100%; transform: none !important; }
}
@media (max-width: 768px) {
  .product { grid-template-columns: minmax(0, 1fr); margin: 32px 20px 60px; gap: 32px; }
  .product-images { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
  .product-images img { flex: 0 0 100%; width: 100%; object-fit: contain; scroll-snap-align: start; }
  .description { position: static; }
  .description h2 { font-size: 28px; }
  .scene-copy .scene-title { font-size: clamp(32px, 8vw, 56px); }
  .new-arrivals-title { top: 24px; left: 24px; font-size: 20px; }
  .shop-new-in { bottom: 24px; right: 24px; font-size: 20px; }
  .new-arrivals > .gif-1 { min-height: 300px; object-fit: cover; }
  .bag-page h1 { max-width: 100%; }
  .checkout-1, .checkout-2 { margin: 40px auto; padding: 0 20px; }
  .order-summary { padding: 20px; }
  .payment h2, .adress h2 { font-size: 54px; }
}
@media (max-width: 600px) {
  .error-content h1 { left: 50%; transform: translateX(-50%) rotate(7deg); }
  .bag-item { gap: 16px; }
  .bag-item-info { min-width: 0; }
  .bag-totals { max-width: 100%; }
  .collection-grid:has(.collection-preview) { gap: 36px 20px; padding: 36px 20px; }
  .collection-grid:has(.collection-preview) > div { font-size: 16px; }
  .collection-grid:has(.product-preview) { padding: 0 20px; margin: 40px auto; gap: 32px 16px; }
  .collection-grid:has(.product-preview) > div { font-size: 16px; }
  .collection-grid:has(.product-preview) p { font-size: 15px; }
  .about { margin: 36px 20px; gap: 24px 16px; }
  .about .text-2 { grid-column: 1 / -1; grid-template-columns: 64px minmax(0, 1fr); }
  .about .vertical-title { font-size: 64px; }
  .about-copy { font-size: 17px; line-height: 1.5; }
  .about .detail-2 { grid-row: 4; }
  .about .detail-1 { grid-column: 2 / 4; width: 75% !important; justify-self: center; }
  .about .text a { font-size: 60px; }
  #look-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #add-look { max-width: 100%; font-size: 14px; gap: 10px; }
  .payment-actions, .continue-payment { flex-wrap: wrap; }
  .complete-purchase { font-size: 16px; gap: 12px; }
}
@media (max-width: 380px) {
  .collection-grid:has(.product-preview) { grid-template-columns: minmax(0, 1fr); }
  .header .right-section { gap: 8px; }
  .header .logo-header { width: 68px; }
  .header .build-look { font-size: 9px; }
}
