/* ShirtGo – Shared Design Tokens & Responsive Rules
   Loaded on every page via <link rel="stylesheet" href="./sg-shared.css"> */

/* ─── Design Tokens ─── */
:root {
  --sg-orange: #FF6A13;
  --sg-black: #101010;
  --sg-white: #FFFFFF;
  --sg-grey-50: #FAFAFA;
  --sg-grey-100: #F3F4F5;
  --sg-grey-200: #E9E9E9;
  --sg-grey-300: #DFDFDF;
  --sg-grey-400: #C9C9C9;
  --sg-grey-500: #9A9A9A;
  --sg-grey-600: #8A8A8A;
  --sg-grey-700: #5C5C5C;
  --sg-grey-800: #3C3C3C;
  --sg-grey-900: #2A2A2A;
  --sg-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sg-font-display: 'Chakra Petch', sans-serif;
  --sg-max-w: 1320px;
  --sg-radius: 3px;
}

/* ─── Focus Visible (all pages) ─── */
*:focus-visible {
  outline: 2px solid var(--sg-orange) !important;
  outline-offset: 2px !important;
}

/* ─── Top Bar (black announcement bar) ─── */
.sg-top-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── Header / Nav ─── */
.sg-nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.sg-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.sg-nav-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--sg-grey-300);
  border-radius: var(--sg-radius);
  padding: 0 14px;
  height: 44px;
  background: var(--sg-grey-50);
}

/* ─── Responsive: Tablet & Below ─── */
@media (max-width: 960px) {
  /* Top bar: stack vertically */
  .sg-top-bar { flex-direction: column; gap: 6px; text-align: center; }

  /* Nav: search goes full width on its own row */
  .sg-nav-inner { gap: 12px; }
  .sg-nav-search { order: 10; flex-basis: 100%; height: 40px; }

  /* Nav actions: hide text labels, keep icons */
  .sg-nav-actions .sg-nav-label { display: none; }
  .sg-nav-actions { gap: 14px; }

  /* Generic page grids */
  .sg-page-2col { grid-template-columns: 1fr !important; }
  .sg-page-3col { grid-template-columns: 1fr !important; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 640px) {
  /* Nav: compress further */
  .sg-nav-inner { padding: 10px 14px !important; gap: 10px; }

  /* Hide "Selbst gestalten" button on very small screens */
  .sg-nav-actions .sg-nav-cta { display: none; }

  /* Full-width sections */
  .sg-section-pad { padding-left: 16px !important; padding-right: 16px !important; }

  /* Cart lines stack */
  .sg-cart-line { grid-template-columns: 1fr !important; }

  /* Two-column forms → single column */
  .sg-form-grid { grid-template-columns: 1fr !important; }
  .sg-form-grid > [style*="grid-column:span 2"],
  .sg-form-grid > [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Product detail: image + info stack */
  .sg-pdp-layout { grid-template-columns: 1fr !important; }

  /* Designer: sidebar + canvas + toolbar stack */
  .sg-designer-layout { grid-template-columns: 1fr !important; }
  .sg-designer-toolbar { display: flex !important; flex-direction: row !important; overflow-x: auto; }

  /* Checkout steps: horizontal scroll */
  .sg-steps { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Breadcrumb wrap */
  .sg-breadcrumb { font-size: 11.5px !important; }

  /* Footer columns stack */
  .sg-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ─── Responsive: Small Mobile ─── */
@media (max-width: 400px) {
  .sg-nav-actions .sg-nav-admin { display: none; }
}

/* ─── Print ─── */
@media print {
  .sg-top-bar-wrap, #sg-widget-root, .sg-nav-cta { display: none !important; }
}
