/* Magunas Dallas design refinements. Loaded after theme.css.
   To undo: remove the polish.css <link> from templates/storefront/base.html. */
:root {
  --brand: #08742e;
  --brand-deep: #075b2b;
  --accent: #f3cb20;
  --radius-sm: 8px;
  --radius-md: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--brand-deep); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
main:focus { outline: none; }
img { max-width: 100%; }

/* Phones: a fixed background image makes scrolling janky */
@media (max-width: 900px) {
  body.storefront-home,
  html[data-theme="dark"] body.storefront-home { background-attachment: scroll; }
}

/* Numbers line up in prices and tables */
.product-price, .product-old-price, table td, table th { font-variant-numeric: tabular-nums; }

/* Product cards and buttons */
.product-card {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-3px); border-color: var(--brand); }
}
.add-to-cart { transition: background-color .15s var(--ease), transform .1s var(--ease); }
.add-to-cart:active:not(:disabled) { transform: scale(.98); }
.add-to-cart:disabled { cursor: not-allowed; opacity: .6; }
.wishlist-action { cursor: pointer; }
.message { border-radius: var(--radius-sm); }

/* Navigation */
.primary-nav .nav-link, .primary-nav .track-button {
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.staff-sidebar nav a { transition: background-color .15s var(--ease), color .15s var(--ease); }

/* Staff layout: stop wide tables from stretching the page */
.staff-main { min-width: 0; }

/* Receipts and printouts: hide site chrome */
@media print {
  .skip-link, .topbar, .main-header, .primary-nav, .footer, .theme-toggle,
  .staff-sidebar, .staff-topbar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
