/* ============================================================
   Popcorn_N_Such — Main Theme
   ============================================================ */

/* ── Brand tokens ───────────────────────────────────────────── */

:root {
  --popcorn-red:    #eb0007;
  --popcorn-red-dk: #c20006;
  --butter-gold:    #f9b233;
  --butter-gold-dk: #dda01e;
  --warm-cream:     #fff3d6;
  --warm-cream-bg:  #fff8ec;
  --kettle-black:   #1f1f1f;
  --kettle-black-lt:#3a3a3a;
  --success-green:  #2e7d32;
  --text-muted-clr: #6c757d;

  --radius-sm: 0.375rem;
  --radius:    0.75rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 2px 8px rgba(31,31,31,.07);
  --shadow:    0 6px 22px rgba(31,31,31,.11);
  --shadow-lg: 0 16px 48px rgba(31,31,31,.14);

  --nav-h: 66px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);

  --btn-hover-glow: 0 0 0 3px rgba(255,255,255,.82), 0 0 18px rgba(255,255,255,.4);
}

/* ── Base ───────────────────────────────────────────────────── */

body {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--kettle-black);
  background-color: var(--butter-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23eb0007' stroke-opacity='0.25' stroke-width='1' d='M10 0L20 10L10 20L0 10Z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Popcorn watermark sits between the gold body and the diamond grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("../images/popcorn-bg.e4a7f8bdb18e.webp") center / cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all direct children of body stack above the watermark */
body > * { position: relative; z-index: 1; }

::selection { background: var(--popcorn-red); color: #fff; }

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: "Oswald", sans-serif;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--kettle-black);
}

a { color: var(--popcorn-red); transition: color .15s; }
a:hover { color: var(--popcorn-red-dk); }

/* ── Brand header / navbar ─────────────────────────────────── */

.brand-header {
  background: var(--popcorn-red);
  box-shadow: 0 3px 12px rgba(214,40,40,.35);
  height: var(--nav-h);
}

.navbar {
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
}

.navbar-brand {
  text-decoration: none !important;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-toggler { border-color: rgba(255,255,255,.35); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--kettle-black) !important;
  text-shadow: 0 0 1px rgba(255,255,255,.95), 0 0 6px rgba(255,255,255,.75);
  background: var(--butter-gold);
  border: 1px solid rgba(0,0,0,.15);
  border-bottom: 3px solid rgba(0,0,0,.28);
  box-shadow: 0 4px 10px rgba(31,31,31,.2);
  font-size: .88rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 10px;
  transition: background .2s var(--ease-out), transform .15s var(--ease-out), box-shadow .15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--kettle-black) !important;
  text-shadow: 0 0 1px rgba(255,255,255,1), 0 0 8px rgba(255,255,255,.9);
  background: var(--butter-gold-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31,31,31,.28);
}

/* Dropdown */
.navbar-nav .dropdown-menu {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  min-width: 175px;
  margin-top: .35rem;
}
.navbar-nav .dropdown-item {
  font-size: .9rem;
  padding: .42rem 1.1rem;
  color: var(--kettle-black);
  transition: background .1s;
}
.navbar-nav .dropdown-item:hover { background: rgba(214,40,40,.07); color: var(--popcorn-red); }
.navbar-nav .dropdown-item:active { background: var(--popcorn-red); color: #fff; }
.navbar-nav .dropdown-divider { margin: .3rem .7rem; border-color: rgba(31,31,31,.1); }

/* Sign out button inside dropdown */
.navbar-nav .dropdown-item[type="submit"] {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* ── Buttons (shape from 115 Final Project) ─────────────────── */

.btn {
  height: 44px;
  padding: 0 22px;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 14px;
  border: 2px solid transparent;
  border-bottom-width: 4px;             /* Thicker bottom edge = 3D lift */
  box-shadow: 0 4px 12px rgba(31,31,31,.18); /* Always raised */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  letter-spacing: .01em;
  transition: filter .15s, box-shadow .15s, background .15s, transform .1s, border-bottom-width .08s;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(31,31,31,.22);
}
.btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: 0 1px 4px rgba(31,31,31,.1);
}

/* Small variant keeps the radius but scales down */
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: .82rem;
  border-radius: 10px;
  border-bottom-width: 3px;
}

/* Large variant */
.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 1.05rem;
  border-radius: 16px;
  border-bottom-width: 5px;
}

.btn-brand {
  background: var(--popcorn-red);
  color: #fff;
  border-color: var(--popcorn-red);
  border-bottom-color: var(--popcorn-red-dk); /* Darker bottom step = 3D */
}
.btn-brand:hover, .btn-brand:focus {
  filter: brightness(1.08);
  color: #fff;
  box-shadow: 0 7px 18px rgba(214,40,40,.38);
}

.btn-gold {
  background: var(--butter-gold);
  color: var(--kettle-black);
  border-color: var(--butter-gold);
  border-bottom-color: var(--butter-gold-dk); /* Darker bottom step = 3D */
  font-weight: 700;
}
.btn-gold:hover, .btn-gold:focus {
  filter: brightness(1.07);
  color: var(--kettle-black);
  box-shadow: 0 7px 18px rgba(249,178,51,.45);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  position: relative;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: var(--popcorn-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  margin-left: .1rem;
}

.cart-link-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.footer-brand-title {
  font-family: "Oswald", sans-serif;
  letter-spacing: .08em;
  color: #fff;
}

.footer-brand-copy {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 240px;
}

.footer-section-title {
  letter-spacing: .1em;
  color: var(--butter-gold);
  opacity: .9;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-link {
  font-size: .88rem;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 1.25rem;
}

.footer-meta {
  color: rgba(255,255,255,.55);
}

.footer-meta-muted {
  color: rgba(255,255,255,.4);
}

.staff-badge {
  background: rgba(255,255,255,.2);
  font-size: .72rem;
  letter-spacing: .06em;
}

.staff-user-label {
  color: rgba(255,255,255,.8);
}

.staff-layout-wrap {
  min-height: calc(100vh - var(--nav-h) - 1px);
}

.staff-offcanvas-header {
  background: var(--popcorn-red);
}

.staff-offcanvas-title {
  color: #fff;
  font-family: "Oswald", sans-serif;
}

.home-hero-inner {
  min-height: 350px;
}

.home-promo-banner {
  background: var(--butter-gold);
}

.home-promo-copy {
  color: var(--kettle-black);
  font-size: 1.1rem;
}

.about-body-copy {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-stat-number {
  font-family: "Oswald", sans-serif;
}

.about-values-section {
  background: #f5f5f5;
}

.about-icon-red {
  background: rgba(214,40,40,.1);
}

.about-icon-gold {
  background: rgba(249,178,51,.15);
}

.about-icon-green {
  background: rgba(46,125,50,.1);
}

.contact-icon-chip {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  border-radius: 50%;
  margin-right: .5rem;
}

.contact-icon-red {
  background: rgba(214,40,40,.1);
}

.contact-icon-gold {
  background: rgba(249,178,51,.15);
}

.contact-icon-green {
  background: rgba(46,125,50,.1);
}

.contact-muted-copy {
  color: var(--text-muted-clr);
}

.contact-map-frame {
  border: 0;
}

.contact-location-icon {
  font-size: 1.1rem;
}

.team-goal-progress-wrap {
  height: 6px;
}

.team-qr-image {
  max-width: 160px;
}

.cart-thumb-small-wrap {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  overflow: hidden;
}

.cart-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-reco-image {
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Outline variants */
.btn-outline-dark {
  background: var(--kettle-black);
  color: #fff;
  border-color: var(--kettle-black);
  border-bottom-color: #000;            /* Deepest bottom = 3D step */
}
.btn-outline-dark:hover, .btn-outline-dark:focus {
  background: var(--kettle-black-lt);
  color: #fff;
  box-shadow: 0 7px 18px rgba(31,31,31,.35);
}

.btn-outline-secondary {
  background: #5a5f66;
  color: #fff;
  border-color: #5a5f66;
  border-bottom-color: #3d4147;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: #6c757d;
  color: #fff;
  box-shadow: 0 7px 18px rgba(31,31,31,.25);
}

/* Danger — override Bootstrap blue with brand red palette */
.btn-danger {
  background: var(--popcorn-red-dk);
  color: #fff;
  border-color: var(--popcorn-red-dk);
  border-bottom-color: #8f0004; /* Deepest red for 3D step */
}
.btn-danger:hover, .btn-danger:focus {
  filter: brightness(1.1);
  color: #fff;
  box-shadow: 0 7px 18px rgba(194,0,6,.38);
}
.btn-outline-danger {
  background: transparent;
  color: var(--popcorn-red-dk);
  border-color: rgba(194,0,6,.45);
  border-bottom-color: var(--popcorn-red-dk);
}
.btn-outline-danger:hover, .btn-outline-danger:focus {
  background: rgba(194,0,6,.07);
  color: var(--popcorn-red-dk);
  box-shadow: 0 7px 18px rgba(194,0,6,.2);
}

.btn-outline-danger {
  background: transparent;
  color: var(--popcorn-red);
  border-color: var(--popcorn-red);
}
.btn-outline-danger:hover {
  background: rgba(214,40,40,.06);
  color: var(--popcorn-red-dk);
  box-shadow: var(--btn-hover-glow);
}

/* ── Layout helpers ─────────────────────────────────────────── */

.hero-section {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.storefront-hero {
  background: transparent;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--popcorn-red);
  font-size: .84rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 8px solid var(--butter-gold);
}

.bg-cream { background-color: rgba(255,255,255,.6); }

.testimonial-card {
  border-radius: var(--radius);
  border: 1px solid rgba(31,31,31,.09);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  font-style: italic;
  color: var(--kettle-black-lt);
  font-size: .95rem;
}
.testimonial-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--butter-gold);
  line-height: 1;
  display: block;
  margin-bottom: -.5rem;
  font-style: normal;
}

/* ── Themed modals ───────────────────────────────────────────── */

.site-modal .modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.site-modal .modal-header {
  background: var(--popcorn-red);
  border-bottom: none;
  padding: 1rem 1.25rem;
}

.site-modal .modal-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
}

.site-modal .btn-close {
  filter: invert(1) brightness(2);
  opacity: .85;
}

.site-modal .modal-body {
  background: var(--warm-cream-bg);
  padding: 1.25rem;
}

.site-modal .modal-footer {
  background: var(--warm-cream-bg);
  border-top: 1px solid rgba(249,178,51,.35);
  padding: .75rem 1.25rem;
}

/* Message pills inside the themed modal */
.site-modal .msg-pill {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .5rem;
}
.site-modal .msg-pill:last-child { margin-bottom: 0; }

.site-modal .msg-pill.msg-success {
  background: #f0faf0;
  color: var(--success-green);
  border-left: 4px solid var(--success-green);
}
.site-modal .msg-pill.msg-error {
  background: #fff0f0;
  color: var(--popcorn-red-dk);
  border-left: 4px solid var(--popcorn-red);
}
.site-modal .msg-pill.msg-warning {
  background: #fffbea;
  color: #7c5c00;
  border-left: 4px solid var(--butter-gold-dk);
}
.site-modal .msg-pill.msg-info {
  background: #f0f4ff;
  color: #1a3a8f;
  border-left: 4px solid #4a6cf7;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--popcorn-red);
  color: #fff;
  border-top: 4px solid var(--butter-gold);
}
.site-footer a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.site-footer a:hover { color: var(--butter-gold); }

/* ── Stat card ──────────────────────────────────────────────── */

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--butter-gold);
}
.stat-card .stat-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted-clr);
  font-weight: 600;
}
.stat-card .stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--kettle-black);
}
.stat-card .stat-sub {
  font-size: .8rem;
  color: var(--text-muted-clr);
}

/* ── Forms ──────────────────────────────────────────────────── */

.form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--kettle-black-lt);
  margin-bottom: .3rem;
}

.form-control,
.form-select {
  border: 1.5px solid rgba(31,31,31,.25);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--kettle-black);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--butter-gold);
  box-shadow: 0 0 0 3px rgba(249,178,51,.2);
  outline: none;
}
.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--popcorn-red); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(214,40,40,.15); }

.invalid-feedback { font-size: .82rem; color: var(--popcorn-red); }
.form-text { font-size: .8rem; color: var(--text-muted-clr); }

/* Django widgets often render without .form-control classes. */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form input[type="url"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="search"],
form select,
form textarea {
  width: 100%;
  border: 1.5px solid rgba(31,31,31,.25);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--kettle-black);
  padding: .5rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="tel"]:focus,
form input[type="number"]:focus,
form input[type="url"]:focus,
form input[type="date"]:focus,
form input[type="datetime-local"]:focus,
form input[type="search"]:focus,
form select:focus,
form textarea:focus {
  border-color: var(--butter-gold);
  box-shadow: 0 0 0 3px rgba(249,178,51,.2);
  outline: none;
}

form input[type="checkbox"],
form input[type="radio"] {
  accent-color: var(--popcorn-red);
}

form label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--kettle-black-lt);
  margin-bottom: .3rem;
}

ul.errorlist {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  color: #b71c1c;
  font-size: .82rem;
}

/* ── Shopping / product card ────────────────────────────────── */

.product-card.hero-card {
  border-top: none;
  border: 2px solid rgba(249,178,51,.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              border-color .25s;
}
.product-card.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(214,40,40,.18);
  border-color: var(--butter-gold);
}

.product-price {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--popcorn-red);
  line-height: 1;
}
.product-price-from {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted-clr);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-bottom: .15rem;
}

.btn-add-cart {
  width: 100%;
  background: var(--butter-gold);
  color: var(--kettle-black);
  border-color: var(--butter-gold);
  font-weight: 700;
  border-radius: 10px;
  height: 40px;
  font-size: .88rem;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn-add-cart:hover, .btn-add-cart:focus {
  background: var(--butter-gold-dk);
  border-color: var(--butter-gold-dk);
  color: var(--kettle-black);
  box-shadow: var(--btn-hover-glow), 0 4px 12px rgba(249,178,51,.45);
  transform: translateY(-1px);
}

/* ── Product images ─────────────────────────────────────────── */

.product-card-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,.45);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
  transition: transform .5s var(--ease-out);
}

/* image zoom lives on the wrap's :hover so the parent card triggers it */
.product-card:hover .product-card-img-wrap .product-card-image {
  transform: scale(1.05);
}

.product-detail-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── Auth pages ─────────────────────────────────────────────── */

.login-container { max-width: 520px; margin-inline: auto; }
.form-container  { max-width: 760px; margin-inline: auto; }

/* ── Cart ───────────────────────────────────────────────────── */

.sku-field { max-width: 105px; }
.qty-field { width: 76px; }

.cart-item-row { align-items: flex-start; }

/* Quantity stepper */
.qty-stepper-form { display: inline-flex; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  min-inline-size: 0;  /* override fieldset browser default */
  flex-shrink: 0;
}
.qty-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f8f8f8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--kettle-black);
  transition: background .15s;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { background: var(--butter-gold); }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-input {
  width: 2.8rem;
  height: 2rem;
  border: none;
  border-left: 1px solid rgba(0,0,0,.12);
  border-right: 1px solid rgba(0,0,0,.12);
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--kettle-black);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-thumb-wrap { width: 120px; flex: 0 0 120px; }
.cart-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.sticky-summary {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

/* ── Avatar ─────────────────────────────────────────────────── */

.avatar-circle {
  width: 120px;
  height: 120px;
  font-size: 2.25rem;
  font-family: "Oswald", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--butter-gold);
  box-shadow: var(--shadow);
}

/* Seller store goal progress bar */
.seller-goal-progress {
  display: block;
  width: 100%;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .35rem;
}
.seller-goal-progress::-webkit-progress-bar  { background: #e9ecef; border-radius: 4px; }
.seller-goal-progress::-webkit-progress-value { background: var(--butter-gold); border-radius: 4px; }
.seller-goal-progress::-moz-progress-bar      { background: var(--butter-gold); border-radius: 4px; }

/* QR code image cap */
.seller-qr { max-width: 160px; }

/* ── URL overflow ────────────────────────────────────────────── */

.word-break-url {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ── Section heading accent ─────────────────────────────────── */

.section-heading {
  font-family: "Oswald", sans-serif;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--butter-gold);
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ── Progress bars ──────────────────────────────────────────── */

.progress { background: rgba(255,255,255,.35); border-radius: 99px; }
.progress-bar { border-radius: 99px; transition: width .4s ease; }
.progress-bar.bg-warning { color: var(--kettle-black); font-weight: 700; }

/* ── Leaderboard rank rows ──────────────────────────────────── */

tr.table-warning.fw-bold td { background: rgba(249,178,51,.18) !important; }
tr.table-info.fw-bold td    { background: rgba(13,202,240,.14) !important; }

/* ── Django messages styling ────────────────────────────────── */

.alert {
  border-radius: var(--radius-sm);
  border-left-width: 4px;
  border-left-style: solid;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.alert-success  { background: #f0faf0; border-left-color: var(--success-green); color: #1b5e20; }
.alert-danger   { background: #fff3f3; border-left-color: var(--popcorn-red);   color: #b71c1c; }
.alert-warning  { background: #fffbe8; border-left-color: var(--butter-gold);   color: #7a5500; }
.alert-info     { background: #eff7ff; border-left-color: #3a8fd4; color: #1a568c; }
.alert-secondary{ background: #f5f5f5; border-left-color: #aaa;    color: #555; }

/* ── Pagination ─────────────────────────────────────────────── */

.pagination .page-link { color: var(--popcorn-red); border-color: rgba(31,31,31,.12); font-size: .88rem; }
.pagination .page-item.active .page-link { background: var(--popcorn-red); border-color: var(--popcorn-red); }

/* ── Storefront hero (public landing sections) ──────────────── */

.storefront-hero {
  background: transparent;
  padding: 5rem 0;
}
.storefront-hero .eyebrow { color: var(--popcorn-red); }
.storefront-hero h1,
.storefront-hero .display-4,
.storefront-hero .display-5 { color: var(--kettle-black); }
.storefront-hero .lead { color: var(--kettle-black-lt); max-width: 540px; }

/* ── Page hero (interior pages with cream background) ───────── */

.page-hero {
  background: rgba(255,255,255,.92);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 3px solid var(--popcorn-red);
}

/* ── Feature / benefit cards ────────────────────────────────── */

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-top-color .3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--butter-gold);
}
.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p  { font-size: .93rem; color: var(--text-muted-clr); margin: 0; }

/* ── Section title block ────────────────────────────────────── */

.section-title {
  margin-bottom: 2.5rem;
}
.section-title .eyebrow { display: block; margin-bottom: .4rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title .lead { color: var(--text-muted-clr); font-size: 1rem; max-width: 560px; margin: 0; }
.section-title.centered { text-align: center; }
.section-title.centered .lead { margin-inline: auto; }

/* ── Public filter pills (product list category nav) ─────────── */

.filter-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid rgba(31,31,31,.22);
  background: rgba(255,255,255,.55);
  color: var(--kettle-black);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out),
              color .2s var(--ease-out), transform .15s var(--ease-out);
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: rgba(31,31,31,.5);
  background: rgba(255,255,255,.8);
  color: var(--kettle-black);
  transform: translateY(-1px);
}
.filter-pill.active,
.filter-pill.active:hover {
  border-color: var(--popcorn-red);
  background: var(--popcorn-red);
  color: #fff;
  transform: none;
}
.filter-pill.active-gold,
.filter-pill.active-gold:hover {
  border-color: var(--butter-gold);
  background: var(--butter-gold);
  color: var(--kettle-black);
  transform: none;
}

/* ── CTA band (full-width warm section) ─────────────────────── */

.cta-band {
  background: var(--popcorn-red);
  padding: 4rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,.8); max-width: 500px; margin-inline: auto; }

/* ── btn-outline-light (for dark/hero sections) ─────────────── */

.btn-outline-light {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.6);
  border-bottom-color: rgba(255,255,255,.95); /* 3D step on dark bg */
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255,255,255,.28);
  color: #fff;
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 7px 18px rgba(0,0,0,.22);
}

/* ── Divider with gold dot ──────────────────────────────────── */

.gold-divider {
  border: none;
  height: 2px;
  background: var(--popcorn-red);
  margin: 2rem 0;
}

/* ── Hover-lift utility ──────────────────────────────────────── */

.hover-lift {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(31,31,31,.15);
}

/* ── Product card image scale on hover ──────────────────────── */

.product-card { overflow: hidden; }
.product-card .product-card-image {
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card-image {
  transform: scale(1.04);
}

/* ── Gold animated underline link ───────────────────────────── */

.link-gold {
  color: var(--butter-gold);
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.link-gold::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--butter-gold);
  transition: width .35s var(--ease-out);
}
.link-gold:hover { color: var(--butter-gold-dk); }
.link-gold:hover::after { width: 100%; }

/* ── Section divider label ──────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-muted-clr);
  margin-bottom: 1.25rem;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(31,31,31,.25);
}

/* ── Animation keyframes ─────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp .55s var(--ease-out) both;
}
.fade-in {
  animation: fadeIn .4s ease both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── Shop layout (Amazon-style: sidebar + list results) ─────── */

/* ── Shop layout ─────────────────────────────────────────────── */

.shop-layout {
  display: grid;
  grid-template-columns: 218px 1fr;
  gap: 2rem;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

/* ── Sidebar panels ───────────────────────────────────────────── */

.sidebar-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.2rem;
  margin-bottom: .85rem;
  border-left: 3px solid var(--butter-gold);
}

.sidebar-panel-title {
  font-family: "Oswald", sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-muted-clr);
  margin: 0 0 .6rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(31,31,31,.08);
}

.sidebar-link {
  display: flex;
  align-items: center;
  font-size: .86rem;
  color: var(--kettle-black);
  text-decoration: none;
  padding: .24rem 0;
  line-height: 1.3;
  transition: color .15s;
}
.sidebar-link:hover { color: var(--popcorn-red); text-decoration: none; }
.sidebar-link.active {
  color: var(--popcorn-red);
  font-weight: 700;
  padding-left: .6rem;
  border-left: 2px solid var(--popcorn-red);
  margin-left: -2px;
}

/* ── Results / sort bar ──────────────────────────────────────── */

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,31,31,.07);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  margin-bottom: 1rem;
}

.results-count {
  font-size: .86rem;
  color: var(--text-muted-clr);
}
.results-count strong { color: var(--kettle-black); }

.sort-bar {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
}
.sort-bar-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted-clr);
  margin-right: .3rem;
  white-space: nowrap;
}
.sort-link {
  font-size: .8rem;
  padding: .18rem .65rem;
  border-radius: 99px;
  text-decoration: none;
  color: var(--kettle-black-lt);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.sort-link:hover {
  background: rgba(255,255,255,.8);
  border-color: rgba(31,31,31,.14);
  color: var(--popcorn-red);
  text-decoration: none;
}
.sort-link.active {
  background: var(--popcorn-red);
  color: #fff;
  border-color: var(--popcorn-red);
  font-weight: 700;
}

/* ── Amazon-layout product card grid ─────────────────────────── */

.s-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Featured section: flex so every row (incl. last partial row) centers */
#sc-featured .s-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#sc-featured .s-product-grid > .s-card {
  flex: 0 1 280px;
  min-width: 0;
}

/* Card */
.s-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(31,31,31,.09);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all .3s var(--ease-out);
}
.s-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,178,51,.85);
  box-shadow: 0 0 22px rgba(249,178,51,.36),
              0 10px 26px rgba(0,0,0,.16);
}

/* Image zone */
.s-card-img-link { display: block; text-decoration: none; }
.s-card-img-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(31,31,31,.06);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .75rem;
}
.s-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--ease-out);
}
.s-card:hover .s-card-img { transform: scale(1.05); }
.s-card-img-placeholder {
  font-size: 4rem;
  line-height: 1;
  color: rgba(249,178,51,.4);
  user-select: none;
}

/* Card body */
.s-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .9rem .9rem 1rem;
  gap: .35rem;
}

.s-card-badge-row { margin-bottom: .1rem; }
.s-badge-featured {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 3px;
  background: var(--butter-gold);
  color: var(--kettle-black);
  letter-spacing: .02em;
}

/* Title — 2-line clamp, Amazon style */
.s-card-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--kettle-black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-card-title:hover { color: var(--popcorn-red); text-decoration: none; }

.s-card-meta {
  font-size: .74rem;
  color: var(--text-muted-clr);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.size-chip {
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 99px;
  border: 1px solid rgba(31,31,31,.17);
  background: rgba(249,178,51,.09);
  color: var(--kettle-black-lt);
  font-weight: 500;
}

/* Price row */
.s-card-price-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: auto;
  padding-top: .35rem;
}
.s-card-price {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kettle-black);
  line-height: 1;
}
.s-card-stock-in  { font-size: .75rem; font-weight: 700; color: var(--success-green); }
.s-card-stock-out { font-size: .75rem; color: var(--text-muted-clr); }

/* CTA area */
.s-card-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .5rem;
}

/* Butter-gold add-to-cart button */
.s-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  background: var(--butter-gold);
  color: var(--kettle-black);
  border: 1.5px solid var(--butter-gold-dk);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .08s;
  line-height: 1;
}
.s-btn-cart:hover, .s-btn-cart:focus {
  background: var(--butter-gold-dk);
  border-color: var(--butter-gold-dk);
  color: var(--kettle-black);
  box-shadow: 0 2px 8px rgba(249,178,51,.5);
  transform: translateY(-1px);
  text-decoration: none;
}
.s-btn-cart:active { transform: translateY(0); }

.s-card-detail-link {
  font-size: .78rem;
  color: var(--text-muted-clr);
  text-align: center;
  text-decoration: none;
}
.s-card-detail-link:hover { color: var(--popcorn-red); }


/* Reusable Amazon-style card effect for non-grid product cards */
.product-card-amz {
  border-radius: 12px;
  border: 1px solid rgba(31,31,31,.09);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: all .3s var(--ease-out);
}
.product-card-amz:hover {
  transform: translateY(-6px);
  border-color: rgba(249,178,51,.85);
  box-shadow: 0 0 22px rgba(249,178,51,.36),
              0 10px 26px rgba(0,0,0,.16);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — tablet (≤ 991px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--popcorn-red-dk);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: .5rem 1rem 1rem;
    margin-top: .2rem;
  }

  .navbar-nav .nav-link {
    padding-top: .55rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-radius: 6px;
    margin-bottom: .15rem;
  }

  .navbar-nav .dropdown-menu {
    background: rgba(255,255,255,.07);
    box-shadow: none;
    padding-left: .75rem;
    border: none;
  }
  .navbar-nav .dropdown-item { color: rgba(255,255,255,.85); }
  .navbar-nav .dropdown-item:hover { background: rgba(255,255,255,.1); color: #fff; }

  .navbar-nav .nav-item:last-child .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .5rem;
  }

  .product-card-image { height: 190px; }
  .sticky-summary { position: static; }
  .hero-section { min-height: 50vh; }

  /* Shop layout: sidebar becomes a horizontal strip */
  .shop-layout { grid-template-columns: 1fr; gap: 1rem; }
  .shop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .65rem;
  }
  .sidebar-panel { margin-bottom: 0; }

  /* Product grid: 3 columns on tablet */
  .s-product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — mobile (≤ 575px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
  .hero-card { border-radius: var(--radius); }

  .cart-thumb-wrap { width: 80px; flex: 0 0 80px; }
  .cart-thumb { width: 80px; height: 80px; }

  .cart-item-subtotal {
    width: 100%;
    text-align: left !important;
    padding-top: .25rem;
  }

  .login-container,
  .form-container { max-width: 100%; }

  .avatar-circle { width: 100px; height: 100px; font-size: 2rem; }

  .sku-action-form {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .product-card-image  { height: 165px; }
  .product-detail-image { max-height: 260px; }

  .hero-section { min-height: 40vh; }
  h1.display-4  { font-size: 2rem; }

  /* Product grid: 2 columns on mobile */
  .s-product-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .s-card-img-wrap { height: 150px; padding: .4rem; }
  .s-card-body { padding: .5rem .55rem .7rem; }
  .s-card-price { font-size: 1.1rem; }
}

/* ── Order detail ───────────────────────────────────────────── */
.order-item-thumb { width: 64px; height: 64px; }
.subscribe-interval { min-width: 200px; }

/* ── Shipping label create page ─────────────────────────────── */
.label-create-wrap { max-width: 860px; }
.label-print-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Shipment tracking timeline ─────────────────────────────── */
.tracking-timeline { padding-left: 0; }
.tracking-event {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  position: relative;
}
.tracking-event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}
.tracking-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6c757d;
  margin-top: 3px;
  z-index: 1;
}
.tracking-event:first-child .tracking-dot { background: #198754; }
.tracking-body { flex: 1; min-width: 0; }
