:root{
  --ink:#111111;--muted:#6d6d6d;--line:#deddd8;--paper:#f7f6f2;
  --white:#fff;--accent:#b68a42;--dark:#151515;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none;color:inherit}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.header-inner{max-width:1240px;margin:auto;min-height:78px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:2px}
.brand-mark{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;background:var(--ink);color:#fff;font-size:11px;letter-spacing:0;border-radius:50%}
.brand-name{font-size:16px}
.brand-logo{
  display:block;
  width:auto;
  height:48px;
  max-width:180px;
  object-fit:contain;
}
.main-nav{display:flex;gap:30px;font-size:12px;letter-spacing:1.5px;font-weight:700}
.main-nav a{padding:31px 0;border-bottom:2px solid transparent}
.main-nav a.active{border-color:var(--accent)}
.mobile-menu{display:none;background:none;border:0;font-size:25px}
.hero {
  min-height: 0;
  aspect-ratio: 1920 / 800;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.05)
    ),
    url("../images/banner-wholesale.png") center center / 100% 100% no-repeat;

  display: flex;
  align-items: center;
}

.hero h1,
.hero-copy,
.hero .eyebrow {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-actions .hero-button {
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   MOBILE HERO
   ========================================================= */

@media (max-width: 768px) {

  .hero {
    aspect-ratio: auto;
    min-height: 430px;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.48),
        rgba(0, 0, 0, 0.18)
      ),
      url("../images/banner-wholesale.png") center center / cover no-repeat;

    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    max-width: 560px;
    padding: 40px 24px;
  }

  .hero .eyebrow {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.85),
      0 3px 8px rgba(0, 0, 0, 0.55);
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 0.98;
    margin-bottom: 18px;

    text-shadow:
      0 2px 5px rgba(0, 0, 0, 0.90),
      0 4px 14px rgba(0, 0, 0, 0.60);
  }

  .hero-copy {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.55;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.90),
      0 3px 10px rgba(0, 0, 0, 0.60);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .hero-button {
    min-height: 48px;
    padding: 14px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow:
      0 3px 10px rgba(0, 0, 0, 0.40);
  }

  /* Wholesale button */
  .hero-actions .hero-button:first-child {
    background: #ffffff;
    color: #111111;
    border: 1px solid #ffffff;
  }

  /* Closeouts button */
  .hero-actions .hero-button:last-child {
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: 1px solid #ffffff;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .hero {
    min-height: 400px;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.74),
        rgba(0, 0, 0, 0.50),
        rgba(0, 0, 0, 0.18)
      ),
      url("../images/banner-wholesale.png") center center / cover no-repeat;
  }

  .hero-content {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 0.98;
    margin-bottom: 16px;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.45;
    max-width: 330px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .hero-actions .hero-button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 11px;
  }
}
.hero-content{max-width:1240px;width:100%;margin:auto;padding:80px 28px;color:#fff}
.eyebrow{font-size:11px;letter-spacing:2.3px;font-weight:800;margin:0 0 13px;color:var(--accent)}
.hero h1{font-size:clamp(42px,6vw,76px);line-height:.98;margin:0 0 22px;letter-spacing:-2px}
.hero h1 span{font-weight:400}
.hero-copy{max-width:510px;color:#eee;font-size:17px;line-height:1.65;margin-bottom:30px}
.hero-button,.checkout-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--ink);color:#fff;padding:16px 23px;font-size:11px;letter-spacing:1.7px;font-weight:800;cursor:pointer}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-button{background:#fff;color:#111}
.hero-button-outline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.8)}
.hero-button-outline:hover{background:#fff;color:#111}
.closeout-hero{
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.05)
    ),
    url("../images/banner-closeouts.png") center center / 100% 100% no-repeat;
}
.catalog-wrap{max-width:1240px;margin:auto;padding:75px 28px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:32px}
.section-heading h2{font-family:Georgia,serif;font-size:38px;margin:0}
.catalog-tools{display:flex;gap:10px}
.catalog-tools input{height:45px;width:270px;border:1px solid var(--line);background:#fff;padding:0 13px;font-size:14px}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}
.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.product-card{background:#fff;border:1px solid var(--line);min-width:0}
.product-image{
  height:245px;
  background:#fff;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.stock-badge{position:absolute;top:12px;right:12px;background:#fff;padding:7px 9px;font-size:10px;font-weight:800;letter-spacing:.6px}
.product-body{padding:20px}
.product-category{font-size:9px;text-transform:uppercase;letter-spacing:1.6px;color:var(--accent);font-weight:800;margin:0 0 7px}
.product-body h3{font-family:Georgia,serif;font-size:21px;margin:0 0 6px}
.sku{color:var(--muted);font-size:11px;margin:0 0 18px}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}
.product-bottom strong{font-size:17px}
.qty-control{display:flex;align-items:center;border:1px solid var(--line);height:38px}
.qty-control button{width:37px;height:36px;border:0;background:#fff;font-size:20px;cursor:pointer}
.qty-control input{width:42px;height:36px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font-weight:700}
.order-panel {
  background: #fff;
  color: var(--ink);
  padding: 25px;
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
}
.order-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.order-panel h2{font-family:Georgia,serif;font-size:25px;margin:0}
.order-panel .eyebrow {
  color: var(--accent);
}
.item-count{background:#fff;color:#111;min-width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.order-items{min-height:170px;padding:18px 0}
.empty-order {
  text-align: center;
  color: #777;
  padding: 25px 10px;
}
.empty-icon{margin:auto auto 12px;width:34px;height:34px;border:1px solid #555;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;color:#ccc}
.empty-order p {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 14px;
}
.empty-order span{font-size:11px;line-height:1.5}
.order-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}
.order-line-name{font-size:12px;line-height:1.35}
.order-line-meta {
  font-size: 10px;
  color: #777;
;margin-top:4px}
.order-line-price{font-size:12px;font-weight:700}
.order-total{display:flex;justify-content:space-between;border-top: 1px solid var(--line);;padding:20px 0;font-size:13px}
.order-total strong{font-size:18px}
.order-panel .checkout-button {
  width: 100%;
  background: var(--ink);
  color: #fff;
}
.order-panel .checkout-button:hover {
  background: var(--accent);
}
.secure-note,.demo-note{font-size:10px;color:#888;text-align:center;line-height:1.5}
.info-band{background:#e8e5dc;padding:32px max(28px,calc((100% - 1184px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}
.info-band div{display:flex;flex-direction:column;gap:5px}
.info-band strong{font-family:Georgia,serif;font-size:20px}
.info-band span{font-size:12px;color:var(--muted)}
.info-band a{font-weight:800;font-size:13px}
.site-footer{background:#111;color:#fff;padding:32px 28px}
.footer-inner{max-width:1184px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px}
.footer-inner>div{display:flex;align-items:center;gap:10px;letter-spacing:1px}
.footer-inner .brand-mark{background:#fff;color:#111;width:32px;height:32px}
.footer-inner p{font-size:10px;color:#888}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:50;padding:25px;overflow:auto}
.modal.open{display:flex;align-items:center;justify-content:center}
.modal-card{background:#fff;width:min(760px,100%);padding:38px;position:relative}
.modal-card h2{font-family:Georgia,serif;font-size:32px;margin:0 0 25px}
.modal-close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:30px;cursor:pointer}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}
.form-grid label{font-size:11px;font-weight:800;letter-spacing:.4px}
.form-grid .wide{grid-column:1/-1}
.form-grid input,.form-grid textarea{display:block;width:100%;margin-top:7px;border:1px solid var(--line);padding:12px;font:inherit;font-size:14px}
.form-grid textarea{resize:vertical}
@media(max-width:900px){
 .main-nav{display:flex}
 .catalog-layout{grid-template-columns:1fr}.order-panel{position:static}
}
@media(max-width:650px){
 .header-inner{min-height:66px;padding:0 18px}.brand-name{font-size:14px}
 .hero{min-height:440px}.hero-content{padding:60px 20px}
 .catalog-wrap{padding:50px 18px}.section-heading{display:block}.catalog-tools{margin-top:20px;display:grid;grid-template-columns:1fr 1fr}.catalog-tools input{width:100%}
 .products-grid{grid-template-columns:1fr}
 .product-image{height:250px}
 .info-band,.footer-inner{display:block;padding:28px 18px}.info-band a{display:block;margin-top:15px}
 .form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.modal{padding:10px}.modal-card{padding:28px 20px}
}


/* Secondary wholesale pages */
.page-hero{background:#151515;color:#fff;padding:86px 28px}
.page-hero>div{max-width:1184px;margin:auto}
.page-hero h1{font-family:Georgia,serif;font-size:clamp(42px,6vw,66px);font-weight:400;margin:0 0 14px}
.page-hero p:not(.eyebrow){max-width:620px;color:#d5d5d5;font-size:16px;line-height:1.65;margin:0}
.content-page{max-width:1000px;margin:auto;padding:72px 28px}
.content-main{max-width:780px}
.content-main h2,.contact-intro h2{font-family:Georgia,serif;font-size:38px;font-weight:400;margin:0 0 22px}
.content-main h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:38px 0 10px}
.content-main p,.contact-intro>p:not(.eyebrow){font-size:15px;line-height:1.8;color:#555}
.policy-note{margin-top:42px;padding:25px;background:#e8e5dc;display:flex;flex-direction:column;gap:9px}
.policy-note strong{font-family:Georgia,serif;font-size:20px}
.policy-note span{font-size:13px;color:#555;line-height:1.6}
.policy-note a{font-size:11px;font-weight:800;letter-spacing:1.4px;margin-top:7px}
.contact-layout{max-width:1184px;display:grid;grid-template-columns:.75fr 1.25fr;gap:65px;align-items:start}
.contact-intro{padding-top:10px}
.contact-detail{border-top:1px solid var(--line);margin-top:32px;padding-top:20px;display:flex;flex-direction:column;gap:7px}
.contact-detail span{font-size:9px;letter-spacing:1.8px;font-weight:800;color:var(--accent)}
.contact-detail a{font-size:14px;font-weight:700}
.contact-form-card{background:#fff;border:1px solid var(--line);padding:32px}
.contact-form-card select{display:block;width:100%;margin-top:7px;border:1px solid var(--line);padding:12px;font:inherit;font-size:14px;background:#fff}
.contact-form-card .checkout-button{width:100%}
@media(max-width:900px){
 .contact-layout{grid-template-columns:1fr;gap:35px}
}
@media(max-width:650px){
 .main-nav{display:flex;gap:18px;flex-wrap:wrap}
 .main-nav a{padding:22px 0;font-size:10px}
 .page-hero{padding:62px 20px}
 .content-page{padding:50px 18px}
 .contact-form-card{padding:22px 18px}
}

.contact-success,
.contact-error {
    margin-bottom: 24px;
    padding: 15px 18px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-success {
    background: #f2f8f2;
    border: 1px solid #bfd8bf;
    color: #285b28;
}

.contact-error {
    background: #fff1f1;
    border: 1px solid #e5bcbc;
    color: #9b2020;
}

/* ===== RESPONSIVE LAYOUT FIX v4 ===== */
html, body { width:100%; min-height:100%; }
body {
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body > main { flex:1 0 auto; width:100%; }
.site-footer { flex-shrink:0; width:100%; }
.header-inner,
.hero-content,
.catalog-wrap,
.page-hero > div,
.content-page,
.footer-inner {
  width:100%;
  max-width:1240px;
  margin-left:auto;
  margin-right:auto;
}

/* Keep all page content inside a consistent centered container. */
.page-hero {
  width:100%;
  padding:82px 20px;
}
.page-hero > div {
  padding-left:28px;
  padding-right:28px;
}
.content-page {
  padding:70px 28px;
}
.contact-layout {
  max-width:1240px;
  padding-left:28px;
  padding-right:28px;
}
.content-main {
  width:100%;
  max-width:820px;
}
.contact-intro {
  width:100%;
  max-width:400px;
}
.contact-form-card {
  width:100%;
  max-width:760px;
}

/* Footer always sits at the bottom on short pages. */
.site-footer {
  margin-top:auto;
}
.footer-inner {
  min-height:76px;
  padding:18px 28px;
}

/* Prevent controls from stretching beyond their intended area. */
.catalog-tools {
  flex:0 1 auto;
}
.catalog-tools input {
  max-width:300px;
}

/* Tablet */
@media (max-width:1100px) {
  .header-inner {
    padding-left:22px;
    padding-right:22px;
  }
  .main-nav {
    gap:22px;
  }
  .catalog-wrap {
    padding-left:22px;
    padding-right:22px;
  }
  .catalog-layout {
    grid-template-columns:minmax(0,1fr) 310px;
  }
  .contact-layout {
    grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);
    gap:42px;
  }
}

/* Small tablets / large phones */
@media (max-width:800px) {
  .header-inner {
    min-height:70px;
    padding:0 20px;
  }
  .brand-name {
    font-size:14px;
  }
  .main-nav {
    gap:18px;
  }
  .main-nav a {
    font-size:10px;
    letter-spacing:1.2px;
  }

  .hero {
    min-height:430px;
  }
  .hero-content {
    padding:65px 20px;
  }

  .section-heading {
    align-items:flex-start;
  }
  .catalog-layout {
    grid-template-columns:1fr;
  }
  .order-panel {
    position:relative;
    top:auto;
    width:100%;
  }

  .contact-layout {
    grid-template-columns:1fr;
    gap:38px;
  }
  .contact-intro,
  .contact-form-card {
    max-width:none;
  }
}

/* Phones */
@media (max-width:600px) {
  .header-inner {
    min-height:64px;
    padding:0 16px;
    gap:12px;
  }
  .brand {
    gap:8px;
  }
  .brand-mark {
    width:34px;
    height:34px;
    font-size:9px;
  }
  .brand-name {
    font-size:12px;
    letter-spacing:1.5px;
  }
  .main-nav {
    gap:12px;
    justify-content:flex-end;
  }
  .main-nav a {
    padding:25px 0;
    font-size:8.5px;
    letter-spacing:.8px;
  }

  .hero {
    min-height:400px;
  }
  .hero-content {
    padding:55px 18px;
  }
  .hero h1 {
    font-size:43px;
    letter-spacing:-1.5px;
  }
  .hero-copy {
    font-size:15px;
  }

  .catalog-wrap {
    padding:45px 16px;
  }
  .section-heading h2 {
    font-size:31px;
  }
  .catalog-tools {
    width:100%;
    margin-top:18px;
  }
  .catalog-tools input {
    width:100%;
    max-width:none;
  }
  .products-grid {
    grid-template-columns:1fr;
  }

  .page-hero {
    padding:55px 16px;
  }
  .page-hero > div {
    padding:0;
  }
  .page-hero h1 {
    font-size:43px;
  }

  .content-page,
  .contact-layout {
    padding-left:16px;
    padding-right:16px;
  }
  .content-page {
    padding-top:45px;
    padding-bottom:45px;
  }
  .content-main h2,
  .contact-intro h2 {
    font-size:31px;
  }
  .contact-form-card {
    padding:22px 18px;
  }

  .form-grid {
    grid-template-columns:1fr;
  }
  .form-grid .wide {
    grid-column:auto;
  }

  .info-band {
    padding-left:16px;
    padding-right:16px;
  }
  .footer-inner {
    padding:22px 16px;
    min-height:72px;
  }
  .footer-inner p {
    margin-top:12px;
  }
}

/* Very narrow phones */
@media (max-width:390px) {
  .header-inner {
    align-items:center;
  }
  .main-nav {
    gap:8px;
  }
  .main-nav a {
    font-size:7.5px;
    letter-spacing:.5px;
  }
  .brand-name {
    font-size:10px;
  }
  .brand-mark {
    width:30px;
    height:30px;
  }
}

@media(max-width:600px){
  .hero-actions{width:100%;flex-direction:column;align-items:stretch}
  .hero-actions .hero-button{width:100%}
}


/* =========================================
   LIVE GOOGLE SHEETS CATALOG
   ========================================= */

.catalog-loading,
.catalog-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  border: 1px dashed var(--line);
  background: #fff;
  padding: 40px 20px;
}

.catalog-loading p,
.catalog-empty span {
  margin: 0;
  color: #777;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: catalog-spin .8s linear infinite;
}

@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}

.catalog-empty strong {
  font-size: 18px;
  color: var(--ink);
}

.catalog-error {
  border-style: solid;
}

.retry-button {
  margin-top: 8px;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.retry-button:hover {
  background: var(--accent);
}

.product-card input:disabled,
.product-card button:disabled {
  opacity: .45;
  cursor: not-allowed;
}


/* =========================================
   MOQ VALIDATION
   ========================================= */
.qty-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.moq-warning{
  display:none;
  max-width:190px;
  font-size:11px;
  line-height:1.35;
  text-align:right;
  color:#a33a2b;
}
.moq-warning.show{
  display:block;
}
.qty-control input.moq-invalid{
  outline:2px solid #c85a4a;
  outline-offset:-2px;
  background:#fff7f5;
}

/* =========================================
   RESALE POLICY CHECKOUT GATE
   ========================================= */
.policy-modal-card{
  width:min(620px,100%);
}
.policy-modal-copy{
  color:#555;
  font-size:15px;
  line-height:1.7;
  margin:0 0 22px;
}
.policy-read-button{
  display:inline-block;
  background:var(--ink);
  color:#fff;
  padding:13px 18px;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
  text-decoration:none;
}
.policy-read-button:hover{
  background:var(--accent);
}
.policy-accept{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:25px 0;
  font-size:13px;
  line-height:1.5;
  cursor:pointer;
}
.policy-accept input{
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
  accent-color:var(--ink);
}
.policy-modal-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  padding-top:20px;
}
.policy-cancel-button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  padding:13px 18px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
  cursor:pointer;
}
.policy-cancel-button:hover{
  border-color:var(--ink);
}
.policy-continue-button:disabled{
  opacity:.4;
  cursor:not-allowed;
}
@media(max-width:600px){
  .policy-modal-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .policy-modal-actions button{
    width:100%;
  }
}
/* =========================================
   RESALE POLICY MODAL
   WHOLESALE + CLOSEOUT
   ========================================= */

/* Make both policy modals use the same card styling */
#policyModal .modal-card,
#resalePolicyModal .modal-card {
  width: min(680px, calc(100vw - 40px));
  max-width: 680px;
  background: #fff;
  color: var(--ink);
  padding: 38px 40px;
}

/* Heading */
#policyModal .modal-card h2,
#resalePolicyModal .modal-card h2 {
  margin: 0 0 22px;
}

/* Description */
#policyModal .modal-card > p:not(.eyebrow),
#resalePolicyModal .modal-card > p:not(.eyebrow) {
  color: #333;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* READ RESALE POLICY button */
#policyModal .hero-button,
#resalePolicyModal .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

#policyModal .hero-button:hover,
#resalePolicyModal .hero-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Policy checkbox */
#policyModal .policy-accept,
#resalePolicyModal .policy-accept {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #111;
  cursor: pointer;
}

#policyModal .policy-accept input,
#resalePolicyModal .policy-accept input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* Divider above buttons */
#policyModal .policy-modal-actions,
#resalePolicyModal .policy-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* CANCEL button */
#policyModal .modal-secondary-button,
#resalePolicyModal .modal-secondary-button {
  min-height: 44px;
  padding: 0 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
}

#policyModal .modal-secondary-button:hover,
#resalePolicyModal .modal-secondary-button:hover {
  background: #f5f5f5;
}

/* CONTINUE TO CHECKOUT button */
#policyModal #continueCheckout,
#resalePolicyModal #continueToCheckout {
  min-height: 44px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
}

#policyModal #continueCheckout:hover,
#resalePolicyModal #continueToCheckout:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Disabled Continue button */
#policyModal #continueCheckout:disabled,
#resalePolicyModal #continueToCheckout:disabled {
  background: #aaa;
  color: #fff;
  border-color: #aaa;
  cursor: not-allowed;
}

/* Close X */
#policyModal .modal-close,
#resalePolicyModal .modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
  #policyModal .modal-card,
  #resalePolicyModal .modal-card {
    width: calc(100vw - 24px);
    padding: 30px 24px;
  }

  #policyModal .policy-modal-actions,
  #resalePolicyModal .policy-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #policyModal .modal-secondary-button,
  #resalePolicyModal .modal-secondary-button,
  #policyModal #continueCheckout,
  #resalePolicyModal #continueToCheckout {
    width: 100%;
  }
}

/* =========================================================
   RESPONSIVE HERO BANNER
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    aspect-ratio: auto;
    min-height: 430px;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.58),
        rgba(0, 0, 0, 0.30),
        rgba(0, 0, 0, 0.08)
      ),
      url("../images/banner-wholesale.png") center center / cover no-repeat;
  }

  .hero-content {
    width: 100%;
    max-width: 560px;
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 0.98;
    margin-bottom: 18px;
  }

  .hero-copy {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-button {
    min-height: 48px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    background-position: center center;
  }

  .hero-content {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.45;
    max-width: 330px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-button {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 11px;
  }
}

/* =========================================================
   CLOSEOUTS HERO BANNER
   ========================================================= */

.closeout-hero{
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.05)
    ),
    url("../images/banner-closeouts.png") center center / 100% 100% no-repeat;
}


/* Mobile */
@media (max-width: 768px){

  .closeout-hero{
    aspect-ratio:auto;
    min-height:430px;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.48),
        rgba(0, 0, 0, 0.18)
      ),
      url("../images/banner-closeouts.png") center center / cover no-repeat;
  }
}


/* Small phones */
@media (max-width:480px){

  .closeout-hero{
    min-height:400px;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.74),
        rgba(0, 0, 0, 0.50),
        rgba(0, 0, 0, 0.18)
      ),
      url("../images/banner-closeouts.png") center center / cover no-repeat;
  }
}

/* =========================================================
   WEBSITE FOOTER
   ========================================================= */

.site-footer {
  background: #111;
  color: #fff;
  padding: 55px 28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
  max-width: 1184px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 180px;
  gap: 70px;
  align-items: start;
}

/* Brand */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand p {
  margin: 0;
  color: #999;
  font-size: 11px;
  letter-spacing: .4px;
}

/* Quick Links */

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
}

.footer-links h3 {
  margin: 0 0 18px;
  color: #c99a3a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 11px;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Copyright */

.footer-bottom {
  max-width: 1184px;
  margin: 45px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #777;
  font-size: 10px;
  letter-spacing: .3px;
}


/* =========================================================
   FOOTER MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .site-footer {
    padding: 42px 24px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-logo {
    width: 160px;
  }

  .footer-links {
    min-width: 0;
  }

  .footer-links h3 {
    margin-bottom: 16px;
  }

  .footer-links a {
    margin-bottom: 12px;
  }

  .footer-bottom {
    margin-top: 35px;
    padding: 18px 0;
    line-height: 1.5;
  }
}

/* =========================================================
   MOBILE CHECKOUT MODAL FIX
   Keeps the full checkout form accessible on small screens.
   ========================================================= */

@media (max-width: 650px) {

  .modal {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .modal-card {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 20px);
    margin: 0 auto;
    padding: 28px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .modal-card h2 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .form-grid input,
  .form-grid textarea {
    box-sizing: border-box;
    max-width: 100%;
  }

  .modal-card .checkout-button {
    width: 100%;
    display: block;
    margin-top: 4px;
  }

  .modal-card .demo-note {
    margin-bottom: 0;
  }
}

/* =========================================================
   CHECKOUT SUBMIT BUTTON — ALWAYS VISIBLE ON MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .modal-card .checkout-button[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 10;

    width: 100%;
    min-height: 52px;
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--ink);
    color: #fff;
    border: 0;

    box-shadow: 0 -8px 18px rgba(255,255,255,.95);
  }

  .modal-card .checkout-button[type="submit"]:hover {
    background: var(--accent);
  }
}


.discount-message {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f8f8f6;
  line-height: 1.5;
  font-size: 13px;
}

.discount-qualified {
  font-weight: 700;
  margin-bottom: 4px;
}

.discount-next {
  color: #555;
}

.main-nav a.admin-link {
    display: inline-block;
    position: relative;
    top: 14px;
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
    background: #111;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    vertical-align: middle;
}

/* Product image gallery */
.product-image-clickable{cursor:pointer}
.product-image-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.gallery-count{position:absolute;left:12px;bottom:12px;background:#111;color:#fff;padding:7px 9px;font-size:9px;font-weight:800;letter-spacing:1px}
.product-gallery-modal{z-index:70}
.product-gallery-card{width:min(1040px,100%);padding:30px;max-height:calc(100vh - 50px);box-sizing:border-box;overflow:hidden}
.product-gallery-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:30px;align-items:start;max-height:calc(100vh - 110px);overflow-y:auto;overflow-x:hidden;padding-right:8px;box-sizing:border-box}
.product-gallery-media{min-height:560px;background:#f7f7f5;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-gallery-media>img{width:100%;height:560px;object-fit:contain;display:block}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid #ddd;background:rgba(255,255,255,.94);font-size:30px;line-height:1;cursor:pointer;z-index:2}
.gallery-arrow:hover{background:#fff}
.gallery-prev{left:14px}
.gallery-next{right:14px}
.product-gallery-info{padding:18px 10px 10px 0}
.product-gallery-info h2{font-family:Georgia,serif;font-size:34px;line-height:1.15;margin:0 0 8px}
.product-gallery-sku{font-size:11px;color:var(--muted);margin:0 0 22px}
.product-gallery-description{font-size:14px;line-height:1.75;color:#444;white-space:pre-line;margin-bottom:25px}
.product-gallery-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.gallery-thumb{border:1px solid var(--line);background:#fff;padding:0;aspect-ratio:1;cursor:pointer;overflow:hidden}
.gallery-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.gallery-thumb.active{border:2px solid #111}
.gallery-thumb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:800px){
  .product-gallery-card{padding:22px 18px;max-height:calc(100vh - 20px)}
  .product-gallery-layout{grid-template-columns:1fr;gap:18px;max-height:calc(100vh - 90px);padding-right:4px}
  .product-gallery-media{min-height:360px}
  .product-gallery-media>img{height:360px}
  .product-gallery-info{padding:0}
  .product-gallery-info h2{font-size:28px}
}
