/* ==========
   Base
   ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #111827;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* ==========
   Header
   ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  color: #374151;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #111827;
}

.nav-link.active {
  color: #111827;
  border-bottom-color: #111827;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon-button {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.icon-button:hover {
  background: #f3f4f6;
}

.icon {
  font-size: 0.9rem;
}

/* ==========
   Buttons
   ========== */

.primary-button,
.secondary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.secondary-button {
  background: white;
  border-color: #d1d5db;
  color: #111827;
}

.secondary-button:hover {
  background: #f3f4f6;
}

.ghost-button {
  background: transparent;
  border-color: #4b5563;
  color: #111827;
}

.ghost-button:hover {
  background: rgba(17, 24, 39, 0.04);
}

.ghost-button.small {
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
}

.primary-button.large,
.ghost-button.large {
  padding: 0.65rem 1.4rem;
}

.link-button {
  background: transparent;
  border: none;
  color: #2563eb;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2563eb;
  font-size: 0.9rem;
}

.secondary-link:hover {
  text-decoration: underline;
}

/* ==========
   Hero (Home)
   ========== */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: #4b5563;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-meta .meta-label {
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.15rem;
}

.hero-card {
  background: radial-gradient(circle at top left, #1d4ed8, #020617);
  color: #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: #f9fafb;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.checklist li::before {
  content: "✔";
  font-size: 0.7rem;
  color: #a5b4fc;
}

.brands-strip {
  background: #020617;
  color: #e5e7eb;
  padding: 0.6rem 0;
  border-top: 1px solid #111827;
  border-bottom: 1px solid #111827;
}

.brands-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.strip-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.brands-list span {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.8);
}

/* ==========
   Sections & grids
   ========== */

.section {
  padding: 2.5rem 0 3rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sample-grid {
  margin-bottom: 1.75rem;
}

.section-footer {
  display: flex;
  justify-content: center;
}

/* ==========
   Product card
   ========== */

.product-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  background: #111827;
}

.product-info {
  padding: 0.9rem 1rem 1rem;
}

.product-info h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.product-meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.product-price {
  margin: 0;
  font-size: 0.92rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.product-price .current {
  font-weight: 600;
  color: #111827;
}

.product-price .original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.8rem;
}

.product-price.large .current {
  font-size: 1.25rem;
}

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(55, 65, 81, 0.8);
  color: #e5e7eb;
}

.badge-sale {
  background: rgba(22, 163, 74, 0.96);
  border-color: rgba(22, 163, 74, 1);
}

.badge-soldout {
  background: rgba(220, 38, 38, 0.95);
  border-color: rgba(220, 38, 38, 1);
}

.product-card .card-actions {
  padding: 0 1rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.card-actions .quick-view {
  font-size: 0.8rem;
}

/* ==========
   Page header (collection)
   ========== */

.page {
  padding-bottom: 3rem;
}

.page-header {
  padding: 2.25rem 0 1.5rem;
}

.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.page-header h1 {
  margin-bottom: 0.3rem;
}

.page-subtitle {
  margin: 0;
  max-width: 560px;
  color: #4b5563;
  font-size: 0.95rem;
}

.pill-strip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.pill-strip span {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #e5e7eb;
}

/* ==========
   Collection layout
   ========== */

.collection-layout {
  padding-bottom: 2.5rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.filters {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem 1.1rem 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 4.5rem;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filters-header h2 {
  margin: 0;
  font-size: 1rem;
}

.filter-group {
  margin-bottom: 1.2rem;
}

.filter-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: #f3f4f6;
  border-radius: 999px;
}

.search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.85rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  background: white;
  cursor: pointer;
}

.chip.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.range-inputs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.range-inputs div {
  flex: 1;
}

.range-inputs label {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.range-inputs input {
  width: 100%;
  padding: 0.3rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  font-size: 0.8rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.checkbox input {
  width: 14px;
  height: 14px;
}

.collection-main {
  min-width: 0;
}

.checkout-form {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.1rem 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.checkout-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
}

.checkout-form .form-grid .full {
  grid-column: 1 / -1;
}

.checkout-form label span {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.15rem;
}

.checkout-form input {
  width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.radio-row input {
  margin-top: 0.15rem;
}

.radio-row strong {
  display: block;
  color: #111827;
}

.radio-row small {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.payment-details {
  margin-bottom: 0.75rem;
}

.payment-details [data-payment-panel] {
  display: none;
}

.payment-details [data-payment-panel].active {
  display: block;
}

.summary-totals {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.summary-row.total {
  margin-top: 0.4rem;
  font-weight: 600;
}

.summary-row.total span:last-child {
  font-size: 1.05rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.cart-item-meta {
  color: #9ca3af;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  gap: 0.4rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-qty input {
  width: 48px;
  padding: 0.15rem 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.78rem;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  font-size: 0.78rem;
  cursor: pointer;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

#results-count {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filters-toggle {
  display: none;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.select select {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
}

.collection-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.hint {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* ==========
   Modal (Quick view)
   ========== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.25rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: #020617;
  color: #e5e7eb;
  border-radius: 1.25rem;
  max-width: 840px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  color: #9ca3af;
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  padding: 1.4rem 1.25rem 1.25rem;
}

.modal-image img {
  border-radius: 0.9rem;
  height: 260px;
  object-fit: cover;
  background: #020617;
}

.modal-details h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.modal-meta {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
  margin-bottom: 0.7rem;
}

/* ==========
   Toast (add to cart)
   ========== */

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 60;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .toast {
    left: 50%;
    right: auto;
    transform: translate(-50%, 8px);
  }

  .toast.visible {
    transform: translate(-50%, 0);
  }
}

/* ==========
   Footer
   ========== */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.75rem 0;
  background: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner h3 {
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin: 0;
}

/* ==========
   Responsive
   ========== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr);
  }

  .filters {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .brands-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-header-inner {
    flex-direction: column;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    display: none;
  }

  .filters.mobile-visible {
    display: block;
    margin-bottom: 1rem;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .modal-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

