/* ABC Clothing - base styles (minimal black & white with one accent colour) */

:root {
  --black: #111111;
  --white: #ffffff;
  --grey-100: #f5f5f4;
  --grey-300: #d6d6d3;
  --grey-600: #5c5c58;
  --accent: #b4532a;       /* subtle terracotta accent - change here to restyle the whole site */
  --max-width: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 0; }

/* Demo banner */
.demo-bar { background: var(--black); color: var(--white); text-align: center; font-size: 0.8rem; padding: 6px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--grey-300); background: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; }
.logo span { color: var(--accent); }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { text-decoration: none; font-weight: 600; white-space: nowrap; }
.cart-count { display: inline-block; min-width: 1.4em; padding: 0 6px; text-align: center; background: var(--accent); color: var(--white); border-radius: 999px; font-size: 0.8rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--black); border-radius: var(--radius); padding: 6px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border: 2px solid var(--black); background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; border-radius: var(--radius); cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { color: var(--white); }

/* Hero */
.hero { background: var(--grey-100); padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 16px; }
.hero p.lead { font-size: 1.1rem; color: var(--grey-600); max-width: 34em; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { aspect-ratio: 4 / 5; background: var(--black); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.1em; border-bottom: 8px solid var(--accent); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 1.7rem; margin: 0 0 8px; }
.section-sub { color: var(--grey-600); margin: 0 0 28px; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile { aspect-ratio: 1 / 1; background: var(--grey-100); border: 1px solid var(--grey-300); border-radius: var(--radius); display: flex; align-items: flex-end; padding: 18px; text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.category-tile:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Benefits */
.benefits { background: var(--grey-100); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit h3 { margin: 0 0 6px; }
.benefit p { margin: 0; color: var(--grey-600); }

/* Newsletter teaser */
.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band p { color: var(--grey-300); }
.cta-band .btn { background: var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--grey-300); padding: 40px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--grey-600); }
.site-footer a:hover { color: var(--accent); }
.footer-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--grey-300); color: var(--grey-600); font-size: 0.8rem; }

/* Mobile */
@media (max-width: 800px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--grey-300); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav a { display: block; padding: 10px 0; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 16 / 9; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
}

/* Shop page */
.page-head { padding: 40px 0 16px; border-bottom: 1px solid var(--grey-300); }
.page-head h1 { margin: 0 0 4px; font-size: 2rem; }
.page-head .section-sub { margin-bottom: 18px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 18px; border: 1px solid var(--black); border-radius: 999px; background: var(--white); font: inherit; cursor: pointer; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--black); color: var(--white); }
.sort-label { font-size: 0.9rem; color: var(--grey-600); }
.sort-label select { font: inherit; padding: 8px 10px; border: 1px solid var(--grey-300); border-radius: var(--radius); margin-left: 6px; }
.shop-section { padding: 32px 0 64px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-link { text-decoration: none; display: block; }
.product-link img { width: 100%; height: auto; border-radius: var(--radius); background: var(--grey-100); transition: opacity 0.15s; }
.product-link:hover img { opacity: 0.88; }
.product-cat { display: block; margin-top: 10px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); }
.product-name { margin: 2px 0; font-size: 1rem; }
.product-link:hover .product-name { color: var(--accent); }
.product-price { margin: 0; font-weight: 700; }
.empty-msg { text-align: center; color: var(--grey-600); padding: 40px 0; }

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Product details page */
.breadcrumb { padding: 20px 0 8px; font-size: 0.85rem; color: var(--grey-600); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 16px 0 24px; align-items: start; }
.product-detail[hidden] { display: none; }
.detail-image { width: 100%; height: auto; border-radius: var(--radius); background: var(--grey-100); }
.detail-info h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.2; }
.detail-price { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; }
.field { margin: 16px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field select, .field input { font: inherit; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius); min-width: 140px; }
.notice { margin: 12px 0 0; padding: 10px 14px; background: var(--grey-100); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.detail-points { margin: 24px 0 0; padding-left: 18px; color: var(--grey-600); }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }

/* Cookie banner and tracking debug panel */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--black); border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); z-index: 200; font-size: 0.9rem; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-options { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.cookie-options[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-actions .btn { padding: 8px 18px; font-size: 0.9rem; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--grey-600); text-decoration: underline; cursor: pointer; }
.footer-link-btn:hover { color: var(--accent); }
.debug-panel { position: fixed; right: 8px; top: 8px; width: 320px; max-height: 60vh; overflow: auto; background: #111; color: #9ef09e; font: 12px/1.4 monospace; padding: 8px 10px; border-radius: 6px; z-index: 300; }
.debug-panel ol { margin: 6px 0 0; padding-left: 20px; }
.debug-panel pre { white-space: pre-wrap; margin: 4px 0; color: #ddd; }
