/* Box Brothers — recreated from the Feb 2023 boxbros.com Wayback capture */

:root {
  --red: #fe111a;
  --red-dark: #d30008;
  --ink: #444444;
  --gray: #747474;
  --light: #f7f7f7;
  --line: #e4e4e4;
  --kraft: #c89d66;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; color: #2b2b2b; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .15s, transform .1s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--red); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn:active { transform: scale(.97); }

/* ---------- top bar ---------- */
.topbar { background: var(--red); color: #fff; font-size: 13px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 18px; align-items: center; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover, .topbar-contact a:hover { text-decoration: underline; }

/* ---------- navbar ---------- */
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand-text { font-size: 22px; font-weight: 900; color: #2b2b2b; letter-spacing: .5px; }
.brand-text em { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: #3a3a3a; font-weight: 600; font-size: 15px;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: none; border-radius: 4px;
  padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer;
  position: relative;
}
.cart-btn:hover { background: var(--red-dark); }
.cart-badge {
  background: #fff; color: var(--red); border-radius: 20px;
  font-size: 12px; font-weight: 800; min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* ---------- hero ---------- */
.hero { position: relative; height: 540px; overflow: hidden; background: #222; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  max-width: 640px; color: #fff;
}
.hero-content h1 { color: #fff; font-size: 46px; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-content h1 span { color: var(--red); }
.hero-content p { font-size: 19px; color: #f0f0f0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head h2 em { color: var(--red); font-style: normal; }
.section-head p { color: var(--gray); }
.red-rule { width: 60px; height: 4px; background: var(--red); margin: 14px auto 0; border-radius: 2px; }

/* ---------- services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 30px 26px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.service-card img { width: 56px; height: 56px; margin: 0 auto 16px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray); }

/* ---------- product cards ---------- */
.product-grid, .featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.product-art { background: var(--light); padding: 12px; }
.product-art svg { width: 100%; height: 140px; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 16px; margin-bottom: 2px; }
.product-size { font-size: 12.5px; color: var(--gray); font-weight: 700; letter-spacing: .3px; margin-bottom: 8px; }
.product-desc { font-size: 13px; color: var(--gray); flex: 1; margin-bottom: 14px; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 19px; font-weight: 900; color: var(--red); }
.no-results { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 40px 0; }

/* ---------- shop layout ---------- */
.shop-hero {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("../img/hero001.jpg") center/cover;
  color: #fff; text-align: center; padding: 64px 20px;
}
.shop-hero h1 { color: #fff; font-size: 38px; }
.shop-hero p { color: #eee; margin-top: 8px; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.shop-search {
  border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px;
  font-size: 14px; width: 230px; outline: none;
}
.shop-search:focus { border-color: var(--red); }
.shop-count { font-size: 13px; color: var(--gray); margin-bottom: 14px; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 6px; padding: 26px;
}
.review-card p { font-style: italic; color: #555; font-size: 15px; }
.review-by { margin-top: 14px; font-weight: 700; color: #2b2b2b; font-style: normal; }
.review-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: 6px; }
.about-grid h2 em { color: var(--red); font-style: normal; }
.about-grid p { margin: 14px 0; color: var(--gray); }

/* ---------- cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 94vw; height: 100%;
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.2); transition: right .28s ease;
}
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open .cart-drawer { right: 0; }
body.drawer-open { overflow: hidden; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 20px; }
.drawer-close { background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--gray); }
.drawer-close:hover { color: var(--red); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; }

.drawer-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--light); }
.drawer-item-art { width: 64px; flex: none; background: var(--light); border-radius: 6px; }
.drawer-item-art svg { width: 100%; height: 58px; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name { font-weight: 700; font-size: 14px; }
.drawer-item-size { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.drawer-item-price { font-weight: 800; color: var(--red); font-size: 15px; white-space: nowrap; }

.qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--line); background: #fff;
  border-radius: 4px; font-size: 15px; cursor: pointer; line-height: 1;
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-num { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.remove-btn { background: none; border: none; color: var(--gray); font-size: 12px; cursor: pointer; text-decoration: underline; }
.remove-btn:hover { color: var(--red); }

.drawer-subtotal { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 6px; }
.drawer-ship-note { font-size: 12.5px; color: var(--gray); margin-bottom: 14px; }
.drawer-continue { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; }
.drawer-empty { text-align: center; padding: 40px 10px; color: var(--gray); }
.drawer-empty-art { width: 120px; margin: 0 auto 10px; opacity: .8; }
.drawer-empty p { margin-bottom: 18px; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.card h2 { font-size: 21px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red); }
.tot-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--light); }
.tot-grand { font-size: 19px; font-weight: 900; color: #2b2b2b; border-bottom: none; padding-top: 14px; }
.tot-grand span:last-child { color: var(--red); }
.checkout-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; }
.order-confirm { text-align: center; padding: 70px 20px; max-width: 520px; margin: 0 auto; }
.order-confirm-art { width: 160px; margin: 0 auto 6px; }
.order-confirm h2 { font-size: 30px; margin-bottom: 10px; }
.order-confirm p { color: var(--gray); margin-bottom: 10px; }
.order-note { font-size: 13px; background: var(--light); border-radius: 6px; padding: 12px 16px; margin: 16px 0 22px !important; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: 54px 20px; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #ffe0e1; margin-bottom: 24px; }

/* ---------- footer ---------- */
footer { background: #2b2b2b; color: #bdbdbd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 20px; }
.footer-grid h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-grid p { font-size: 13.5px; margin-bottom: 10px; }
.footer-grid a { color: #ff8b8f; }
.footer-carriers { margin-top: 14px; background: #fff; padding: 6px 10px; border-radius: 4px; width: fit-content; }
.footer-bottom { border-top: 1px solid #3d3d3d; padding: 18px 0; font-size: 12.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #bdbdbd; }
.footer-links a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .checkout-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-content h1 { font-size: 34px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { height: 460px; }
  .topbar-inner { justify-content: center; height: auto; padding: 6px 0; }
  .topbar-links { display: none; }
}
