:root {
  /* Brand — derived from the SM Gifts logo (red + black), kept soft and subtle */
  --gh-primary: #C5362F;        /* refined logo red */
  --gh-primary-soft: #FAE9E7;   /* pastel blush tint */
  --gh-primary-dark: #A62B25;   /* hover / pressed */
  --gh-ink: #1b1b1b;            /* logo black — dark sections */
  /* Status colours kept for semantics (not branding) */
  --gh-success: #3B6D11;
  --gh-success-soft: #EAF3DE;
  --gh-warn: #854F0B;
  --gh-warn-soft: #FAEEDA;
  /* Neutrals nudged slightly warm to sit nicely with the red */
  --gh-border: #ebe5e4;
  --gh-bg: #f7f5f4;
  --gh-text-secondary: #6b7280;
  --gh-text-tertiary: #9ca3af;
}
body { background: var(--gh-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #1f2937; }
.top-nav { background: #fff; border-bottom: 1px solid var(--gh-border); padding: 12px 24px; position: sticky; top: 0; z-index: 100; }
.logo-brand { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; color:#111; text-decoration:none; }
.logo-brand i { color: var(--gh-primary); }
.logo-img { height: 40px; width: auto; display: block; }
/* On the dark footer the red+black logo needs a light plate to stay legible */
.site-footer .logo-img { height: 48px; background: #fff; padding: 9px 13px; border-radius: 10px; box-sizing: content-box; }
.role-badge { background: var(--gh-primary-soft); color: var(--gh-primary); font-size:12px; font-weight:600; padding:3px 10px; border-radius:6px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gh-text-secondary); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gh-primary-soft); color: var(--gh-primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.screen-nav { background: #fafaf9; border-bottom: 1px solid var(--gh-border); padding: 10px 24px; display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 57px; z-index: 99; }
.screen-nav a { font-size: 12px; padding: 5px 12px; border-radius: 6px; background: transparent; border: 1px solid transparent; color: var(--gh-text-secondary); white-space: nowrap; text-decoration:none; }
.screen-nav a:hover { background: #fff; color: #111; }
.screen-nav a.active { background: #fff; color: #111; font-weight: 500; border-color: var(--gh-border); }
.gh-container { padding: 24px; max-width: 1280px; margin: 0 auto; }
.screen-title { font-size: 22px; font-weight: 600; margin: 0; }
.screen-sub { font-size: 13px; color: var(--gh-text-secondary); margin: 4px 0 0; }
.breadcrumb-mini { font-size: 12px; color: var(--gh-text-tertiary); margin-bottom: 6px; }
.breadcrumb-mini a { color: var(--gh-primary); cursor: pointer; text-decoration: none; }
.breadcrumb-mini a:hover { text-decoration: underline; }
.stat-card { background: #fff; border: 1px solid var(--gh-border); border-radius: 10px; padding: 16px 18px; }
.stat-label { font-size: 12px; color: var(--gh-text-secondary); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500; }
.stat-val { font-size: 26px; font-weight: 600; margin: 0; color: #111; }
.panel { background: #fff; border: 1px solid var(--gh-border); border-radius: 10px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--gh-border); }
.panel-title { font-size: 15px; font-weight: 600; margin: 0; }
.panel-body { padding: 16px 18px; }
.panel-body-flush { padding: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.brand-card { background: #fff; border: 1px solid var(--gh-border); border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.15s; text-decoration:none; display:block; color:inherit; }
.brand-card:hover { border-color: var(--gh-primary); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.brand-name { font-size: 15px; font-weight: 600; margin: 0 0 4px; color:#111; }
.brand-meta { font-size: 12px; color: var(--gh-text-secondary); margin: 0; }
.upload-zone { border: 2px dashed var(--gh-border); border-radius: 10px; padding: 30px 20px; text-align: center; background: #fafaf9; }
.upload-zone i { font-size: 32px; color: var(--gh-text-secondary); }
.table-prods { font-size: 13px; margin-bottom: 0; width:100%; }
.table-prods th { font-size: 11px; font-weight: 600; color: var(--gh-text-secondary); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid var(--gh-border); padding: 12px; background: #fafaf9; }
.table-prods td { padding: 12px; border-bottom: 1px solid var(--gh-border); vertical-align: middle; }
.table-prods tr:last-child td { border-bottom: none; }
.prod-row-cell { display: flex; align-items: center; gap: 10px; }
.prod-thumb { width: 40px; height: 40px; border-radius: 6px; background: var(--gh-bg); display: flex; align-items: center; justify-content: center; color: var(--gh-text-tertiary); flex-shrink: 0; }
.prod-name { font-weight: 500; font-size: 13px; margin: 0; line-height: 1.3; }
.prod-sub { font-size: 11px; color: var(--gh-text-secondary); margin: 2px 0 0; }
.price-input { width: 110px; padding: 5px 8px; border: 1px solid var(--gh-border); border-radius: 6px; font-size: 13px; text-align: right; }
.price-input:focus { outline: none; border-color: var(--gh-primary); box-shadow: 0 0 0 2px var(--gh-primary-soft); }
.qty-input { width: 64px; padding: 5px 8px; border: 1px solid var(--gh-border); border-radius: 6px; font-size: 13px; text-align: center; }
.badge-soft-success { background: var(--gh-success-soft); color: var(--gh-success); font-weight: 500; }
.badge-soft-warn { background: var(--gh-warn-soft); color: var(--gh-warn); font-weight: 500; }
.badge-soft-info { background: var(--gh-primary-soft); color: var(--gh-primary); font-weight: 500; }
.badge-soft-muted { background: #eee; color:#666; font-weight:500; }
.strike { text-decoration: line-through; color: var(--gh-text-tertiary); font-size: 12px; }
.price-cost { font-size: 12px; color: var(--gh-text-secondary); }
.btn-gh-primary { background: var(--gh-primary); color: #fff; border: 1px solid var(--gh-primary); }
.btn-gh-primary:hover { background: var(--gh-primary-dark); color: #fff; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .form-control, .filter-bar .form-select { font-size: 13px; padding: 7px 12px; }
.info-banner { background: var(--gh-primary-soft); border-radius: 8px; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; }
.info-banner i { color: var(--gh-primary); }
.info-banner p { font-size: 12px; color: var(--gh-primary); margin: 0; line-height: 1.5; }
.markup-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--gh-border); border-radius: 10px; margin-bottom: 12px; font-size: 13px; flex-wrap:wrap; }
.markup-row .form-select { width: auto; font-size: 13px; }
.selected-bar { background: var(--gh-primary-soft); border-radius: 8px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.selected-bar span { color: var(--gh-primary); font-weight: 500; font-size: 13px; }
.login-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card { background: #fff; padding: 32px; border-radius: 12px; border: 1px solid var(--gh-border); width: 100%; max-width: 380px; }
.logo-slot { width: 80px; height: 80px; border-radius: 8px; background: var(--gh-bg); display: flex; align-items: center; justify-content: center; color: var(--gh-text-tertiary); font-size: 12px; flex-shrink: 0; }
.logo-slot.has-logo { background: var(--gh-primary-soft); color: var(--gh-primary); font-weight: 600; font-size: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.summary-row.total { border-top: 1px solid var(--gh-border); margin-top: 8px; padding-top: 12px; font-weight: 600; font-size: 14px; }
.form-label-mini { font-size: 12px; color: var(--gh-text-secondary); margin-bottom: 5px; font-weight: 500; }
.margin-positive { color: var(--gh-success); font-size: 12px; font-weight: 500; }
.margin-negative { color: #b91c1c; font-size: 12px; font-weight: 500; }
.table-hover tbody tr:hover { background: #fafaf9; }
.pdf-preview { background: white; border: 1px solid var(--gh-border); border-radius: 8px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); font-size: 12px; }
.pdf-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--gh-primary); margin-bottom: 16px; }
.pdf-logo { width: 50px; height: 50px; background: var(--gh-primary-soft); color: var(--gh-primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.pdf-prod-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.pdf-prod-img { width: 60px; height: 60px; background: #f0f0f0; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.pdf-prod-name { font-size: 12px; font-weight: 600; color: #222; margin: 0 0 4px; }
.pdf-prod-desc { font-size: 10px; color: #666; line-height: 1.4; margin: 0; }
.pdf-prod-price { font-size: 13px; font-weight: 600; color: var(--gh-primary); white-space: nowrap; }
.guide-banner { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #92400e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   PUBLIC SMGifts SITE
   ═══════════════════════════════════════════════════════════════════ */
.section-inner { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* --- public nav --- */
.site-nav { background: #fff; border-bottom: 1px solid var(--gh-border); position: sticky; top: 0; z-index: 200; }
.site-nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-brand { font-weight: 700; font-size: 20px; color: #111; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-brand i { color: var(--gh-primary); }
.site-nav-toggle { display: none; background: none; border: 1px solid var(--gh-border); border-radius: 6px; font-size: 20px; padding: 2px 10px; }
.site-nav-links { display: flex; align-items: center; gap: 4px; }
.site-nav-links > a { font-size: 14px; color: #374151; text-decoration: none; padding: 8px 14px; border-radius: 6px; }
.site-nav-links > a:hover { background: var(--gh-bg); color: #111; }
.site-nav-links > a.active { color: var(--gh-primary); font-weight: 600; }
.site-nav-dropdown > .dropdown-toggle { font-size: 14px; color: #374151; text-decoration: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; display: inline-block; }
.site-nav-dropdown > .dropdown-toggle:hover { background: var(--gh-bg); color: #111; }
/* The menu carries Bootstrap's .collapse for the mobile hamburger, but this bar
   is a custom .site-nav (not a .navbar-expand-*). Without this, Bootstrap's
   `.collapse:not(.show){display:none}` would hide the whole menu on desktop and
   leave only the logo. From the tablet breakpoint up, force the menu bar open;
   below it the hamburger toggles Bootstrap's `.show` class as usual. */
@media (min-width: 861px) {
  /* Custom bar (not a Bootstrap .navbar-expand-*): undo Bootstrap's collapse
     hiding AND its flex-basis:100% / flex-grow:1, which would otherwise push the
     menu onto its own full-width row below the logo and left-align it. Keep the
     menu content-width, pinned to the right, with uniform gaps between items. */
  .site-nav-links.collapse:not(.show),
  .site-nav-links { display: flex !important; flex: 0 1 auto; margin-left: auto; gap: 8px; }
}
@media (max-width: 860px) {
  .site-nav-toggle { display: inline-block; }
  .site-nav-links { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 10px; }
  .site-nav-links .dropdown { margin: 6px 0 0; }
  .site-nav-dropdown > .dropdown-toggle { padding: 8px 14px; }
}

/* --- hero --- */
.hero { background: var(--gh-ink) url('../img/hero.svg') center/cover no-repeat; color: #fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
.hero-copy { max-width: 620px; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.9); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero h1 { font-size: 30px; } .hero-inner { padding: 60px 24px; } }

/* --- sections --- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 28px; font-weight: 700; margin: 0 0 10px; color: #111; }
.section-lead { font-size: 16px; color: var(--gh-text-secondary); line-height: 1.6; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.section-link { color: var(--gh-primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.section-link:hover { text-decoration: underline; }

/* --- value props --- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--gh-border); border-radius: 12px; padding: 24px; }
.value-card i { font-size: 28px; color: var(--gh-primary); }
.value-card h3 { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.value-card p { font-size: 14px; color: var(--gh-text-secondary); margin: 0; }

/* --- about teaser/content --- */
.about-teaser { max-width: 760px; }
.about-content { max-width: 900px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.about-block { background: #fff; border: 1px solid var(--gh-border); border-radius: 12px; padding: 22px; }
.about-block h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.about-block p { font-size: 14px; color: var(--gh-text-secondary); margin: 0; }

/* --- buttons --- */
.btn-outline-gh { border: 1px solid var(--gh-primary); color: var(--gh-primary); background: #fff; }
.btn-outline-gh:hover { background: var(--gh-primary-soft); color: var(--gh-primary); }

/* --- product grid + cards --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--gh-border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: all .15s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--gh-primary); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.product-thumb { aspect-ratio: 1/1; background: var(--gh-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb i { font-size: 40px; color: var(--gh-text-tertiary); }
.product-body { padding: 14px; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--gh-text-secondary); margin: 0 0 4px; }
.product-name { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 8px; line-height: 1.35; min-height: 38px; }
.product-price { font-size: 16px; font-weight: 700; color: var(--gh-primary); margin: 0; }

/* Mobile: always show 2 products per row across the site */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 10px; }
  .product-name { font-size: 13px; min-height: 34px; }
  .product-price { font-size: 15px; }
  .product-thumb i { font-size: 32px; }
}

/* --- catalog head + layout --- */
.catalog-head { background: #fff; border-bottom: 1px solid var(--gh-border); padding: 28px 0; }
.catalog-title { font-size: 28px; font-weight: 700; margin: 8px 0 6px; }
.catalog-sub { font-size: 14px; color: var(--gh-text-secondary); margin: 0; }
.crumbs { font-size: 12px; color: var(--gh-text-tertiary); }
.crumbs a { color: var(--gh-primary); text-decoration: none; }
.crumbs span { margin: 0 6px; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 820px) {
  .catalog-layout { grid-template-columns: 1fr; }
  /* Stacked layout: the filter card sits above the product list, so drop the
     sticky pin — otherwise it stays fixed and the product grid scrolls under it.
     Scoped with .catalog-layout so it outranks the base .filter-sidebar rule
     that appears later in the file (equal specificity would lose on order). */
  .catalog-layout .filter-sidebar { position: static; top: auto; }
}

/* --- brand storefront hero + category nav --- */
.brand-hero { background: linear-gradient(120deg, var(--gh-ink) 0%, var(--gh-primary-dark) 100%); color: #fff; padding: 40px 0 44px; }
.brand-hero-title { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 10px 0 6px; }
.brand-hero-sub { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }
.crumbs-light { color: rgba(255,255,255,0.7); }
.crumbs-light a { color: #fff; }

.brand-catnav { background: #fff; border-bottom: 1px solid var(--gh-border); }
.brand-catnav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.brand-catnav .catnav-link { display: inline-block; white-space: nowrap; padding: 13px 14px; font-size: 14px; font-weight: 500; color: var(--gh-text-secondary); text-decoration: none; border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; }
.brand-catnav .catnav-link:hover { color: var(--gh-primary); }
.brand-catnav .catnav-link.active { color: var(--gh-primary); border-bottom-color: var(--gh-primary); }
.brand-catnav .dropdown-toggle::after { vertical-align: middle; margin-left: 4px; }
.brand-catnav .dropdown-menu { border: 1px solid var(--gh-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 6px; }
.brand-catnav .dropdown-item { font-size: 13px; border-radius: 6px; padding: 7px 12px; }
.brand-catnav .dropdown-item:hover { background: var(--gh-bg); }
.brand-catnav .dropdown-item.active, .brand-catnav .dropdown-item:active { background: var(--gh-primary-soft); color: var(--gh-primary); }
@media (max-width: 640px) {
  .brand-hero { padding: 26px 0 30px; }
  .brand-hero-title { font-size: 26px; }
  .brand-catnav .catnav-link { padding: 11px 12px; font-size: 13px; }
}

/* --- filter sidebar --- */
.filter-sidebar { align-self: start; position: sticky; top: 80px; background: #fff; border: 1px solid var(--gh-border); border-radius: 12px; padding: 18px; }
.filter-h { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--gh-text-secondary); font-weight: 600; margin: 0 0 8px; }
.result-count { font-size: 13px; color: var(--gh-text-secondary); margin: 0 0 14px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--gh-text-secondary); }
.empty-state i { font-size: 34px; display: block; margin-bottom: 10px; color: var(--gh-text-tertiary); }

/* --- product detail --- */
.product-detail { padding-top: 24px; padding-bottom: 56px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-gallery img { width: 100%; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.product-gallery-ph { aspect-ratio: 1/1; border: 1px solid var(--gh-border); border-radius: 12px; background: var(--gh-bg); display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--gh-text-tertiary); }
.product-gallery-thumb { max-width: 120px; margin-top: 12px; }
.product-brand-link { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--gh-primary); text-decoration: none; font-weight: 600; }
.product-title { font-size: 28px; font-weight: 700; margin: 8px 0 14px; }
.product-detail-price { font-size: 26px; font-weight: 700; color: var(--gh-primary); margin: 0 0 16px; }
.product-tags .tag { display: inline-block; background: var(--gh-bg); border: 1px solid var(--gh-border); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: #374151; margin: 0 6px 6px 0; }
.product-desc { font-size: 15px; color: #374151; line-height: 1.6; margin: 14px 0; }
.product-detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.product-note { font-size: 12px; color: var(--gh-text-secondary); }

/* --- contact --- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form-wrap, .contact-info { background: #fff; border: 1px solid var(--gh-border); border-radius: 12px; padding: 26px; }
.contact-info h3 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.contact-info p { font-size: 14px; color: #374151; }

/* --- cta band --- */
.cta-band { background: var(--gh-primary-soft); }

/* --- footer --- */
.site-footer { background: var(--gh-ink); color: rgba(255,255,255,0.85); margin-top: 0; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 820px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
.site-brand-light { color: #fff; }
.site-footer-col h6 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.site-footer-col p { font-size: 13px; line-height: 1.6; margin: 0; }
.site-footer-col a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 13px; padding: 3px 0; }
.site-footer-col a:hover { color: #fff; }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 16px; font-size: 12px; color: rgba(255,255,255,0.6); }
