/* Hallcost warehouse clearance theme layer */
:root {
  --hc-paper: #f4ead8;
  --hc-paper-deep: #e5d1ad;
  --hc-ink: #1f2529;
  --hc-muted: #716351;
  --hc-red: #a83229;
  --hc-red-dark: #7f211c;
  --hc-navy: #233247;
  --hc-olive: #596147;
  --hc-line: rgba(58, 43, 28, 0.18);
  --hc-shadow: 0 14px 30px rgba(43, 31, 19, 0.12);
}

body {
  background:
    radial-gradient(circle at 20% 0, rgba(168, 50, 41, 0.08), transparent 28rem),
    linear-gradient(90deg, rgba(58, 43, 28, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(58, 43, 28, 0.03) 1px, transparent 1px),
    var(--hc-paper);
  background-size: auto, 26px 26px, 26px 26px, auto;
  color: var(--hc-ink);
}

a,
button,
.button,
[class*="button"],
[type="submit"] {
  border-radius: 4px !important;
}

button,
.button,
[class*="buy"],
[class*="checkout"],
[class*="cart"] button {
  letter-spacing: 0 !important;
}

/* Header and logo */
.hc-announcement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hc-ink);
  color: #fff8ea;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
}

.hc-announcement span {
  padding: 9px 8px;
  border-left: 1px solid rgba(255, 248, 234, 0.16);
}

.hc-announcement span:first-child {
  border-left: 0;
}

.shopline-section-header,
[class*="header"] {
  --header-background: rgba(255, 250, 239, 0.96);
}

.hc-logo-stamp,
.hc-logo-stamp:visited {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 6px 12px 7px;
  color: var(--hc-ink);
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--hc-ink);
  box-shadow: inset 0 0 0 2px rgba(168, 50, 41, 0.14);
  background: rgba(255, 248, 234, 0.84);
  transform: rotate(-1deg);
  position: relative;
}

.header__logo-text {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 6px 12px 7px;
  color: var(--hc-ink) !important;
  font-size: 0 !important;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--hc-ink);
  box-shadow: inset 0 0 0 2px rgba(168, 50, 41, 0.14);
  background: rgba(255, 248, 234, 0.84);
  transform: rotate(-1deg);
  position: relative;
}

.header__logo-text::before {
  content: "Hallcost";
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.header__logo-text::after {
  content: "Warehouse Clearance";
  margin-top: 3px;
  color: var(--hc-red);
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hc-logo-stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(31, 37, 41, 0.35);
  pointer-events: none;
}

.hc-logo-word {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.hc-logo-sub {
  margin-top: 3px;
  color: var(--hc-red);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hc-logo-stamp.hc-stamp-in {
  animation: hcStampImpact 720ms cubic-bezier(.2, .9, .24, 1.18) both;
}

@keyframes hcStampImpact {
  0% { opacity: 0; transform: translateY(-24px) scale(1.18) rotate(-4deg); filter: blur(2px); }
  52% { opacity: 1; transform: translateY(2px) scale(.96) rotate(-1deg); filter: blur(0); }
  68% { transform: translateY(-2px) scale(1.02) rotate(-1deg); }
  100% { transform: translateY(0) scale(1) rotate(-1deg); }
}

/* Homepage */
.hc-home {
  background: var(--hc-paper);
}

.hc-original-home-hidden {
  display: none !important;
}

.hc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--hc-line);
  background:
    linear-gradient(110deg, rgba(28, 24, 19, .78), rgba(28, 24, 19, .48) 42%, rgba(28, 24, 19, .1)),
    repeating-linear-gradient(90deg, rgba(255,248,234,.08) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, rgba(168, 50, 41, .2), transparent 28rem),
    var(--hc-paper);
}

.hc-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .72;
}

.hc-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.hc-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 680px;
  padding: 64px max(24px, 7vw);
  color: #fff8ea;
}

.hc-kicker,
.hc-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--hc-red-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 8px 12px;
  background: rgba(255, 248, 234, .88);
  transform: rotate(-1deg);
}

.hc-hero h1 {
  max-width: 11ch;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
  font-weight: 950;
  text-transform: uppercase;
}

.hc-hero p {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
}

.hc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: #fff8ea;
  background: var(--hc-red);
  border: 2px solid var(--hc-red-dark);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(31, 37, 41, .38);
}

.hc-btn.secondary {
  color: var(--hc-ink);
  background: #fff8ea;
  border-color: var(--hc-ink);
}

.hc-hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0 max(18px, 4vw) 42px 0;
  padding: 22px;
  background: rgba(255, 248, 234, .92);
  border: 1px solid var(--hc-line);
  box-shadow: var(--hc-shadow);
}

.hc-hero-panel strong {
  display: block;
  color: var(--hc-red);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.hc-hero-panel span {
  display: block;
  margin-top: 8px;
  color: var(--hc-muted);
  font-weight: 700;
}

.hc-hero-rack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.hc-hero-rack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2eadb;
  border: 1px solid var(--hc-line);
}

.hc-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--hc-line);
  background: rgba(255, 248, 234, .78);
}

.hc-trust div {
  padding: 16px 12px;
  text-align: center;
  border-left: 1px solid var(--hc-line);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hc-trust div:first-child {
  border-left: 0;
}

.hc-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hc-section-head h2 {
  margin: 10px 0 0;
  color: var(--hc-ink);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.hc-categories,
.hc-products {
  display: grid;
  gap: 16px;
}

.hc-category-visual {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  background: rgba(255, 248, 234, .86);
  box-shadow: var(--hc-shadow);
}

.hc-category-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.hc-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hc-cat,
.hc-product {
  background: rgba(255, 248, 234, .86);
  border: 1px solid var(--hc-line);
  box-shadow: 0 8px 20px rgba(43, 31, 19, .08);
}

.hc-cat {
  min-height: 120px;
  padding: 18px;
  color: var(--hc-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(168,50,41,.12), transparent 46%),
    rgba(255, 248, 234, .88);
}

.hc-cat b {
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.hc-cat span {
  color: var(--hc-muted);
  font-size: 13px;
  font-weight: 800;
}

.hc-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hc-product {
  overflow: hidden;
  color: var(--hc-ink);
  text-decoration: none;
}

.hc-product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2eadb;
}

.hc-product-info {
  padding: 12px;
}

.hc-product-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  color: var(--hc-red-dark);
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hc-product-title {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.hc-low-price {
  margin-top: 10px;
  color: var(--hc-red);
  font-size: 18px;
  font-weight: 950;
}

.hc-policy-band {
  background: var(--hc-ink);
  color: #fff8ea;
  border-block: 4px solid var(--hc-red);
}

.hc-policy-band .hc-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 28px;
}

.hc-policy-band b {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hc-policy-band p {
  margin: 0;
  color: rgba(255,248,234,.78);
  font-size: 14px;
  line-height: 1.5;
}

.hc-footer {
  background: #161b1f;
  color: #fff8ea;
  border-top: 4px solid var(--hc-red);
}

.hc-footer a {
  color: rgba(255, 248, 234, .82);
  text-decoration: none;
}

.hc-footer a:hover {
  color: #fff8ea;
}

.hc-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.hc-footer h3,
.hc-footer h4 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hc-footer p,
.hc-footer li {
  margin: 0;
  color: rgba(255, 248, 234, .72);
  font-size: 14px;
  line-height: 1.55;
}

.hc-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Product/category/cart global skin */
[data-page-type="collection"] main,
[data-page-type="product"] main,
[data-page-type="cart"] main {
  background: rgba(255, 248, 234, .64);
}

[data-page-type="collection"] [class*="collection"],
[data-page-type="product"] [class*="product"],
[data-page-type="cart"] [class*="cart"] {
  border-color: var(--hc-line);
}

[data-page-type="product"] [class*="price"],
[data-page-type="collection"] [class*="price"],
[data-page-type="cart"] [class*="subtotal"],
[data-page-type="cart"] [class*="total"] {
  color: var(--hc-red) !important;
  font-weight: 900 !important;
}

[data-page-type="product"] [class*="buy-button"],
[data-page-type="product"] [class*="payment-button"],
[data-page-type="cart"] [class*="checkout"],
[data-page-type="cart"] button[type="submit"],
[data-page-type="collection"] [class*="quick-add"],
[data-page-type="collection"] [class*="buy-button"] {
  background: var(--hc-red) !important;
  color: #fff8ea !important;
  border-color: var(--hc-red-dark) !important;
}

.hc-page-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 12px 0;
  padding: 7px 11px;
  color: var(--hc-red-dark);
  border: 2px solid currentColor;
  background: rgba(255, 248, 234, .9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.hc-product-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.hc-product-trust span {
  padding: 10px 8px;
  background: rgba(255, 248, 234, .88);
  border: 1px solid var(--hc-line);
  color: var(--hc-ink);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.hc-cart-note {
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 248, 234, .92);
  border: 1px dashed rgba(168, 50, 41, .42);
  color: var(--hc-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .hc-announcement {
    grid-template-columns: 1fr;
  }

  .hc-announcement span:nth-child(n+2) {
    display: none;
  }

  .hc-logo-stamp {
    min-width: 112px;
    padding: 5px 10px 6px;
  }

  .hc-logo-word {
    font-size: 18px;
  }

  .hc-logo-sub {
    font-size: 8px;
  }

  .hc-hero {
    display: block;
    min-height: 0;
  }

  .hc-hero-copy {
    min-height: 470px;
    padding: 42px 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: end;
  }

  .hc-hero h1 {
    font-size: 42px;
    line-height: .96;
  }

  .hc-hero p {
    font-size: 15px;
  }

  .hc-hero-panel {
    margin: -8px 16px 18px;
    padding: 18px;
  }

  .hc-trust,
  .hc-policy-band .hc-wrap {
    grid-template-columns: 1fr;
  }

  .hc-footer-grid {
    grid-template-columns: 1fr;
  }

  .hc-trust div,
  .hc-policy-band .hc-wrap > div {
    border-left: 0;
    border-top: 1px solid var(--hc-line);
  }

  .hc-trust div:first-child {
    border-top: 0;
  }

  .hc-wrap {
    width: min(100% - 24px, 1180px);
    padding: 30px 0;
  }

  .hc-section-head {
    display: block;
  }

  .hc-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-category-visual img {
    aspect-ratio: 1.35 / 1;
  }

  .hc-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hc-product-title {
    min-height: 56px;
    font-size: 12px;
  }

  .hc-low-price {
    font-size: 16px;
  }

  .hc-product-trust {
    grid-template-columns: 1fr;
  }
}
