/* ============================================================
   Custom Rubber Stamp — Site Stylesheet
   Brand colours from CRS logo:
     Purple/Blue  #5B4B8A  (C letter)
     Red          #C8102E  (R letter — primary)
     Gold         #C9940A  (S letter)
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --red:        #C8102E;
  --red-dark:   #a00d24;
  --red-light:  #f5e6e9;
  --purple:     #5B4B8A;
  --purple-dark:#44366b;
  --purple-light:#eeebf5;
  --gold:       #C9940A;
  --gold-dark:  #a07508;
  --gold-light: #fdf5e0;

  --text:       #1a1a1a;
  --text-muted: #555;
  --border:     #e0e0e0;
  --bg:         #ffffff;
  --bg-light:   #f8f8f8;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --radius:     6px;
  --radius-lg:  12px;
  --container:  1200px;
  --header-h:   72px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── Top bar ─────────────────────────────────────────────── */
.header-top {
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  padding: 7px 0;
  text-align: center;
}
.header-top a { color: #fff; }
.header-top a:hover { opacity: .8; text-decoration: none; }

/* ── Main header ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 60px; width: auto; }
.site-logo:hover { opacity: .9; text-decoration: none; }

/* Search */
.header-search { flex: 1; display: flex; max-width: 480px; }
.header-search input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 9px 14px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.header-search input:focus { border-color: var(--red); }
.header-search button {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s;
}
.header-search button:hover { background: var(--red-dark); }

/* Header actions (account / basket) */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions a {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--text); font-size: .72rem; font-weight: 500; line-height: 1.2;
  transition: background .15s, color .15s;
  position: relative;
}
.header-actions a .icon { font-size: 1.35rem; margin-bottom: 2px; }
.header-actions a:hover { background: var(--red-light); color: var(--red); text-decoration: none; }
.cart-badge {
  position: absolute; top: 4px; right: 6px;
  background: var(--red); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Main navigation ─────────────────────────────────────── */
.main-nav {
  background: var(--purple);
  position: relative;
  z-index: 200;
}
.main-nav .container { position: relative; }

/* Top-level list */
.main-nav > .container > ul {
  display: flex; flex-wrap: wrap; gap: 0; list-style: none;
}
.main-nav li { position: relative; }

/* All nav links */
.main-nav a {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px;
  color: rgba(255,255,255,.88);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav li.active > a {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

/* Dropdown chevron icon */
.nav-arrow { font-size: .75rem; transition: transform .2s; }
.main-nav li:hover .nav-arrow { transform: rotate(180deg); }

/* ── Dropdown panel ─────────────────────────────────────── */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 300;
  list-style: none;
  padding: 8px 0;
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown {
  display: block;
}

/* Dropdown items */
.dropdown li { position: relative; }
.dropdown a {
  padding: 10px 20px;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  transition: background .12s, color .12s;
}
.dropdown a:hover {
  background: var(--purple-light);
  color: var(--purple-dark);
}
.dropdown a strong { font-weight: 600; }
.dropdown-desc {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
}
.dropdown a:hover .dropdown-desc { color: var(--purple); }

/* Divider */
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; pointer-events: none; }

/* Brands dropdown — slightly wider */
.dropdown--brands { min-width: 280px; }

/* ── Mobile hamburger ────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px 0;
  cursor: pointer;
}

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--gold-light);
  border-bottom: 1px solid #e8d48a;
  padding: 10px 0;
}
.trust-bar .container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--text); }
.trust-item i { color: var(--gold-dark); font-size: 1.2rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 40%, var(--red-dark) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--gold-dark); text-decoration: none; transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s;
  display: inline-block;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  text-align: center;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-secondary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Section headings ────────────────────────────────────── */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 10px auto 0;
}

/* ── Category grid ───────────────────────────────────────── */
.categories { padding: 56px 0; background: var(--bg); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cat-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cat-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.cat-card .cat-icon {
  width: 56px; height: 56px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--red);
  transition: background .2s;
}
.cat-card:hover .cat-icon { background: var(--red); color: #fff; }
.cat-card h3 { font-size: .95rem; font-weight: 600; }
.cat-card p { font-size: .8rem; color: var(--text-muted); }

/* ── Product grid ────────────────────────────────────────── */
.products-section { padding: 52px 0; background: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--red);
}
.product-card a { color: inherit; }
.product-card a:hover { text-decoration: none; }

.product-img {
  height: 160px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.product-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-brand { font-size: .72rem; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.product-size { font-size: .78rem; color: var(--text-muted); }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--red); margin-top: auto; }
.product-card .btn { margin: 0 16px 16px; }

/* Configurable badge */
.badge-custom {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid #e8d48a;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-new {
  background: var(--purple-light);
  color: var(--purple);
  border-color: #c4b8e0;
}

/* ── Product page / detail ───────────────────────────────── */
.product-page { padding: 40px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-visual {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  padding: 40px;
}
.product-detail h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.product-meta { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.product-price-lg { font-size: 1.8rem; font-weight: 700; color: var(--red); }
.product-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 20px; }

/* Configurator */
.configurator { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.configurator h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--purple); }
.config-group { margin-bottom: 16px; }
.config-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.config-group input,
.config-group select,
.config-group textarea {
  width: 100%; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: .9rem; transition: border-color .2s; outline: none;
}
.config-group input:focus,
.config-group select:focus,
.config-group textarea:focus { border-color: var(--purple); }
.char-count { font-size: .75rem; color: var(--text-muted); text-align: right; margin-top: 3px; }

/* Stamp preview */
.stamp-preview-box {
  background: #fff;
  border: 3px dashed var(--purple);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  min-height: 80px;
  font-family: 'Times New Roman', serif;
  font-size: 1.2rem;
  color: var(--red);
  white-space: pre-line;
  margin-bottom: 16px;
}

/* Ink colour swatches */
.ink-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.ink-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: border-color .15s, transform .15s;
}
.ink-swatch:hover, .ink-swatch.active { border-color: var(--text); transform: scale(1.15); }

/* ── Cart ────────────────────────────────────────────────── */
.cart-page { padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--purple); color: #fff; padding: 12px 14px; text-align: left; font-size: .85rem; }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cart-table tr:hover td { background: var(--bg-light); }
.cart-qty-input { width: 56px; padding: 6px; border: 2px solid var(--border); border-radius: var(--radius); text-align: center; }
.cart-remove { color: var(--red); background: none; border: none; cursor: pointer; font-size: .85rem; }
.order-summary { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.order-summary h3 { font-weight: 600; margin-bottom: 16px; font-size: 1.05rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .92rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--border); padding-top: 10px; margin-top: 6px; color: var(--red); }

/* ── Checkout ────────────────────────────────────────────── */
.checkout-page { padding: 40px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.checkout-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.checkout-section h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--red); color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 13px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: .9rem; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--red); }
.form-group .error { color: var(--red); font-size: .8rem; margin-top: 4px; }

/* ── Account / auth pages ────────────────────────────────── */
.auth-page { padding: 60px 0; }
.auth-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }

.account-page { padding: 40px 0; }
.account-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.account-tabs a {
  padding: 10px 20px; font-size: .9rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.account-tabs a.active,
.account-tabs a:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

/* ── Alerts / Flash ─────────────────────────────────────── */
.alert { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: #edf7ed; color: #265226; border-color: #b2d8b2; }
.alert-error   { background: #fdf0f0; color: #8b2020; border-color: #f5b8b8; }
.alert-info    { background: var(--purple-light); color: var(--purple-dark); border-color: #c4b8e0; }
.alert-warning { background: var(--gold-light); color: var(--gold-dark); border-color: #e8d48a; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { padding: 14px 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: var(--radius); font-size: .88rem;
  border: 1px solid var(--border); color: var(--text); transition: all .15s;
}
.pagination a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Sidebar / Filter ────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 80px); }
.filter-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.filter-box h4 { font-size: .9rem; font-weight: 700; margin-bottom: 12px; color: var(--purple); text-transform: uppercase; letter-spacing: .04em; }
.filter-list li { margin-bottom: 6px; }
.filter-list a { font-size: .88rem; color: var(--text-muted); }
.filter-list a:hover, .filter-list a.active { color: var(--red); font-weight: 600; text-decoration: none; }
.filter-list .count { float: right; color: var(--text-muted); font-size: .78rem; }

/* ── About / Info pages ──────────────────────────────────── */
.info-page { padding: 52px 0; }
.info-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.info-page h2 { font-size: 1.25rem; font-weight: 600; margin: 28px 0 10px; color: var(--purple); }
.info-page p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.info-page ul { margin: 10px 0 14px 20px; list-style: disc; color: var(--text-muted); }
.info-page ul li { margin-bottom: 5px; }

/* About team grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 28px; }
.team-card { text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--red-light); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--red); }

/* ── Contact page ────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; color: var(--purple); }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: .92rem; }
.contact-detail i { color: var(--red); font-size: 1.1rem; margin-top: 2px; }

/* ── Order confirmation ───────────────────────────────────── */
.order-confirm-card { max-width: 640px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-md); }
.order-confirm-icon { font-size: 3.5rem; color: #2a7a2a; margin-bottom: 16px; }
.order-ref { font-size: 1.1rem; font-weight: 700; color: var(--purple); }

/* ── Cookie banner ───────────────────────────────────────── */
#crs-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--purple);
  color: #fff;
  padding: 18px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; font-size: .88rem; opacity: .92; min-width: 200px; }
.cookie-inner a { color: var(--gold); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  padding: 9px 20px; border-radius: var(--radius); font-weight: 600; font-size: .88rem; cursor: pointer; border: none;
}
.btn-accept { background: var(--red); color: #fff; }
.btn-accept:hover { background: var(--red-dark); }
.btn-decline { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4) !important; }
.btn-decline:hover { background: rgba(255,255,255,.25); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  margin-top: 64px;
}
.footer-main { padding: 52px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .logo-text {
  font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.footer-brand .logo-text span { color: var(--red); }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-brand img { height: 50px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: .88rem; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold); }

/* Social icons */
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 1rem;
  transition: background .15s, color .15s;
}
.social-links a:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── Brand card logo image ───────────────────────────────── */
.brand-card__icon img {
  max-height: 52px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  /* Blend so white logo backgrounds disappear on white cards */
  mix-blend-mode: multiply;
  transition: opacity .2s;
}
.brand-card:hover .brand-card__icon img { opacity: .85; }

/* ── GiveAGift sister-site banner ────────────────────────── */
.gag-banner {
  padding: 20px 0;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.gag-banner__link {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.gag-banner__link:hover { text-decoration: none; }
.gag-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #f0d080;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .15s;
}
.gag-banner__link:hover .gag-banner__inner {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.gag-banner__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.gag-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gag-banner__tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-dark);
}
.gag-banner__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.gag-banner__sub {
  font-size: .85rem;
  color: var(--text-muted);
}
.gag-banner__sub em { font-style: normal; color: var(--gold-dark); font-weight: 600; }
.gag-banner__cta {
  flex-shrink: 0;
  background: var(--gold);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .2s;
}
.gag-banner__link:hover .gag-banner__cta { background: var(--gold-dark); }

@media (max-width: 640px) {
  .gag-banner__inner { flex-wrap: wrap; padding: 14px; }
  .gag-banner__cta { width: 100%; text-align: center; }
}

/* ── Page hero (category / brand pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 60%, var(--red-dark) 100%);
  color: #fff;
  padding: 36px 0 32px;
}
.page-hero h1 { font-size: 1.8rem; margin: 8px 0 6px; }
.page-hero p  { color: rgba(255,255,255,.82); font-size: .9rem; max-width: 640px; margin: 0; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: rgba(255,255,255,.55); }
.breadcrumb__sep { color: rgba(255,255,255,.35); }

/* ── Sub-category pill bar ───────────────────────────────── */
.cat-pill-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky; top: 0; z-index: 100;
}
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.cat-pill:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.cat-pill--active { background: var(--purple); border-color: var(--purple); color: #fff; }
.cat-pill--active:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }

/* ── Listing layout ─────────────────────────────────────── */
.listing-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.listing-sidebar { position: sticky; top: 60px; }
.sidebar-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sidebar-panel__title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sidebar-filter-link {
  display: block;
  padding: 5px 0;
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .12s;
}
.sidebar-filter-link:hover { color: var(--red); text-decoration: none; }
.sidebar-filter-link.is-active { color: var(--red); font-weight: 600; }
.sidebar-filter-link small { color: #aaa; font-size: .75rem; }
.sidebar-filter-link--child { font-size: .8rem; color: #888; }

/* ── Listing bar (sort / count) ─────────────────────────── */
.listing-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.listing-count { font-size: .85rem; color: var(--text-muted); }
.listing-sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.listing-sort label { color: var(--text-muted); }
.listing-sort select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: .85rem;
  font-family: inherit;
  background: #fff;
}

/* Empty state */
.listing-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.listing-empty i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 12px; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text);
  background: #fff;
  transition: border-color .12s, background .12s, color .12s;
}
.pagination__btn:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.pagination__btn.is-active { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.pagination__ellipsis { color: var(--text-muted); padding: 0 4px; }

/* ── Cross-sell panel ────────────────────────────────────── */
.crosssell { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.crosssell__title { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; }
.crosssell__title strong { color: var(--text); }
.crosssell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Brand hub ───────────────────────────────────────────── */
.brand-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.brand-hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.brand-hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.brand-hub-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}
.brand-hub-card__logo img {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-hub-card__initial {
  font-size: 3rem;
  font-weight: 700;
  color: var(--purple);
}
.brand-hub-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px;
}
.brand-hub-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.brand-hub-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.brand-hub-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.brand-hub-card__count { font-size: .8rem; color: var(--text-muted); }
.brand-hub-card__cta   { font-size: .85rem; font-weight: 600; color: var(--red); }
.brand-hub-card:hover .brand-hub-card__cta { color: var(--red-dark); }

/* Category strip on brands hub page */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cat-strip-item {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.cat-strip-item:hover { border-color: var(--purple); box-shadow: var(--shadow-sm); text-decoration: none; }
.cat-strip-item__icon { font-size: 1.8rem; color: var(--purple); margin-bottom: 8px; }
.cat-strip-item__name { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cat-strip-item__desc { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ── 404 / Error ─────────────────────────────────────────── */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 6rem; font-weight: 900; color: var(--red); line-height: 1; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Admin (inline overrides) ────────────────────────────── */
.admin-body { background: #f0f2f5; }
.admin-sidebar { background: var(--purple); }
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover { background: var(--red); }
.admin-topbar { border-bottom: 3px solid var(--red); }

/* ── Utilities ───────────────────────────────────────────── */
.text-red    { color: var(--red); }
.text-purple { color: var(--purple); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 16px; } .align-center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; display: none; }  /* collapsed on mobile — can expand with JS later */
  .crosssell-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .header-main { flex-wrap: wrap; }
  .header-search { max-width: 100%; order: 3; flex: 0 0 100%; }
  .site-logo img { height: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { gap: 16px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav — full-width vertical */
  .nav-toggle { display: block; }
  .main-nav > .container > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--purple-dark);
  }
  .main-nav > .container > ul.is-open { display: flex; }
  .main-nav a { padding: 12px 20px; }
  .dropdown {
    position: static;
    border: none; border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: none; border-radius: 0;
    background: rgba(0,0,0,.2);
    padding: 0;
    display: none;
  }
  .main-nav li.mob-open > .dropdown { display: block; }
  .dropdown a { padding-left: 36px; color: rgba(255,255,255,.8); }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .dropdown-desc { color: rgba(255,255,255,.5); }
  .dropdown a:hover .dropdown-desc { color: rgba(255,255,255,.7); }
  .dropdown-divider { border-color: rgba(255,255,255,.15); }
  .main-nav li.mob-open .nav-arrow { transform: rotate(180deg); }
}
