/* =============================
   GASLY — Style System
   Color-matched to original site
   ============================= */

:root {
  --bg:       #f8f8f8;
  --surface:  #efefef;
  --border:   #e0e0e0;
  --text:     #111111;
  --muted:    #888888;
  --accent:   #c2185b;
  --accent-d: #a01049;
  --white:    #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --transition: 0.25s ease;
}

/* DARK MODE */
body.dark {
  --bg:      #111111;
  --surface: #1a1a1a;
  --border:  #2a2a2a;
  --text:    #f5f5f5;
  --muted:   #888888;
  --white:   #1a1a1a;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================
   HEADER
   ============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.logo img {
    height: 50px;   /* adjust as needed */
    width: auto;
    display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active-page { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--surface); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--text);
  transition: color var(--transition);
}
.cart-btn:hover { color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-badge.visible { opacity: 1; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* =============================
   BUTTONS
   ============================= */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-d); }

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =============================
   HERO
   ============================= */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 40px;
  background: #111;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img--front {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-img--back  { display: none; }
.hero-visual     { display: none; }

/* dark gradient overlay so text is readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 60px 40px;
  width: 100%;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  color: #ffffff;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  max-width: 380px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-tag { display: none; }

/* =============================
   CATEGORY STRIP
   ============================= */
.cat-strip {
  display: flex;
  gap: 12px;
  padding: 36px 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  transition: border-color var(--transition), color var(--transition);
}
body.dark .cat-pill { background: var(--surface); }
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cat-pill span {
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* =============================
   PROMO GRID
   ============================= */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0 40px 64px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.promo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
}
.promo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.promo-card:hover img { transform: scale(1.04); }
.promo-text {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  gap: 8px;
}
.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
}
.promo-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.promo-text .btn-primary {
  align-self: flex-start;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
}
.promo-text .btn-primary:hover { background: var(--accent); border-color: var(--accent); }

/* =============================
   PRODUCTS SECTION
   ============================= */
.products-section {
  padding: 0 40px 72px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}
.see-more {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.see-more:hover { color: var(--accent); }

/* FILTER ROW */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); }
body.dark .product-card { background: #1a1a1a; }

.card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3/4;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-img-wrap:hover img { transform: scale(1.05); }

/* Hover-swap (Jersey) */
.img-hover-swap .img-primary,
.img-hover-swap .img-secondary {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transition: opacity 0.4s ease;
}
.img-hover-swap .img-primary  { opacity: 1; }
.img-hover-swap .img-secondary { opacity: 0; }
.card-img-wrap.img-hover-swap:hover .img-primary  { opacity: 0; }
.card-img-wrap.img-hover-swap:hover .img-secondary { opacity: 1; }

/* Quick Add */
.quick-add {
  position: absolute;
  bottom: 10px;
  left: 10px; right: 10px;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  z-index: 2;
}
.card-img-wrap:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}
.quick-add:hover { background: var(--accent-d); }

/* Card Info */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 14px;
}
.card-info h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* =============================
   TOAST
   ============================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================
   REVEAL ANIMATION
   ============================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-note {
  font-size: 11px !important;
  margin-top: 12px;
  opacity: 0.55;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.subscribe-row {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.subscribe-row input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-body);
}
.subscribe-row input::placeholder { color: var(--muted); }
.subscribe-row button {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--transition);
}
.subscribe-row button:hover { background: var(--accent-d); }
.subscribe-msg {
  font-size: 12px !important;
  color: var(--accent) !important;
  margin-top: 8px !important;
  min-height: 16px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* =============================
   CART PAGE
   ============================= */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
  min-height: 60vh;
}
.cart-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.cart-empty p { font-size: 16px; margin-bottom: 24px; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-row { border-bottom: 1px solid var(--border); }
.cart-row td { padding: 20px 0; vertical-align: middle; }
.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-thumb {
  width: 72px; height: 90px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface);
  flex-shrink: 0;
}
.cart-name { font-size: 14px; font-weight: 400; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: fit-content;
}
.qty-control button {
  width: 32px; height: 32px;
  font-size: 16px;
  color: var(--text);
  transition: color var(--transition);
}
.qty-control button:hover { color: var(--accent); }
.qty-control span {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
}
.remove-btn {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: color var(--transition);
}
.remove-btn:hover { color: var(--accent); }
.cart-summary {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cart-totals { text-align: right; }
.cart-totals .subtotal {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cart-totals .total-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}
.checkout-btn {
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--transition);
  border: none;
  cursor: pointer;
}
.checkout-btn:hover { background: var(--accent-d); }

/* =============================
   PRODUCT DETAIL PAGE
   ============================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 40px;
}
.product-detail-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
}
.product-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}
.product-detail-info .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}
.detail-price {
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
}
.detail-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.size-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  transition: all var(--transition);
}
.size-btn:hover, .size-btn.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.add-to-cart-btn {
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.add-to-cart-btn:hover { background: var(--accent-d); }

/* Not Found */
.not-found {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.not-found h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; }
  .menu-toggle { display: flex; }

  .hero { min-height: 90vh; }
  .hero-content { padding: 40px 20px 52px; }
  .hero-title { font-size: 44px; }

  .cat-strip      { padding: 24px 20px; }
  .promo-grid     { grid-template-columns: 1fr; margin: 0 20px 48px; }
  .products-section { padding: 0 20px 48px; }
  .product-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .footer         { padding: 40px 20px 20px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; gap: 8px; }

  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; margin: 40px auto; }
  .cart-page      { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-title   { font-size: 40px; }
  .hero-cta     { flex-direction: column; }
  .promo-grid   { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
