/* ===== Basics ===== */
body {
  margin: 0;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* ===== Top bar (white on normal pages) ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 90px; padding: 0 30px;
  display: flex; align-items: center; gap: 28px;
  background: white; color: black;
}
.topbar-right { margin-left: auto; display: flex; gap: 28px; font-size: 20px; }
.logo { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; }
.burger { width: 32px; cursor: pointer; }
.burger span { display: block; height: 2px; background: currentColor; margin: 7px 0; }

/* Home page: transparent bar, white text */
.is-home .topbar { background: transparent; color: white; }
body:not(.is-home) main { padding-top: 90px; }

/* ===== Side menu (hidden until the checkbox is checked) ===== */
#menu-toggle { display: none; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
  width: 575px; max-width: 90vw; padding: 0 22px;
  background: black; color: white;
  display: flex; flex-direction: column;
  transform: translateX(-100%);       /* pushed off-screen */
  transition: transform 0.3s;
}
#menu-toggle:checked ~ .drawer { transform: none; }   /* slide in */

.drawer-head {
  height: 90px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid white; margin: 0 -22px; padding: 0 40px 0 22px;
}
.close { font-size: 50px; font-weight: 500; cursor: pointer; }

.drawer > a, .drawer summary {
  display: block; padding: 26px 0; font-size: 23px;       /* stylesheet of side menu's shop^ and a. */
  border-bottom: 1px solid white; cursor: pointer;
}
.drawer details { border-bottom: 1px solid white; }
.drawer details summary { border: 0; list-style: none; }
.drawer a.sub { font-size: 20px; padding: 10px 15px; }
.drawer details[open] { padding-bottom: 20px; }

.drawer-foot {
  margin-top: auto; padding: 30px 0; border-top: 1px solid white;
  display: flex; flex-direction: column; gap: 26px; font-size: 20px;
}

/* Invisible layer behind the menu: click it to close */
.scrim { display: none; position: fixed; inset: 0; z-index: 20; }
#menu-toggle:checked ~ .scrim { display: block; }

/* ===== Footer ===== */
.footer {
  background: #171513; color: white;
  padding: 28px 30px; font-size: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}

/* ===== Home: full-screen video, page does not scroll ===== */
.is-home { height: 100vh; overflow: hidden; }
.is-home main { position: relative; }
.hero { position: absolute; inset: 0; background: #0b0b0b; }
.hero video { width: 100%; height: 100%; object-fit: cover; }
.hero-shop { position: absolute; left: 30px; bottom: 26px; color: white; font-size: 22px; }

/* ===== Shop grid ===== */
.page-title { font-size: 40px; margin: 0; padding: 32px 30px 0; }
.grid {
  display: grid; gap: 28px; padding: 24px 30px 60px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #eee; display: block; }
.card h3 { margin: 12px 0 2px; font-size: 22px; }
.card p { margin: 0; font-size: 18px; color: #555; }
.empty { padding: 30px; font-size: 22px; }

/* ===== Product detail ===== */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 30px; 
          max-width: 1200px; margin: 20px; align-items: center;}
.detail img { width: 100%; }
.detail h1 { font-size: 48px; margin: 0; }
.price { font-size: 28px; }
.desc { font-size: 20px; text-transform: none; font-weight: 500; }

/* ===== Product image detail ====*/
.detail-image img {
  width: 80%;
  object-fit: cover;
  display: block;
}

/* ===== Product detail p ====*/
.detail-info {
  position: sticky;
  top: 120px;
}
.detail-info h1 {
  font-size: 50px;
  margin: 0 0 10px;
}
.price {
  font-size: 20px;
  margin: 0 0 20px;
}
.desc { 
  font-size: 16px; 
  text-transform: none; 
  line-height: 1.5; 
  margin-bottom: 30px; 
}

/* ===== Plain text pages ===== */
.text-page { padding: 40px 30px; }
.text-page h1 { font-size: 48px; margin: 0; }
.text-page p { font-size: 20px; text-transform: none; font-weight: 500; }

/* ===== Phones ===== */
@media (max-width: 800px) {
  .logo { font-size: 32px; }
  .topbar { padding: 0 16px; gap: 16px; height: 72px; }
  body:not(.is-home) main { padding-top: 72px; }
  .detail { grid-template-columns: 1fr; }
}

/* ==== add to cart button =====*/
.add-btn {
  width: 100%;
  padding: 16px;
  background: black;
  color: white;
  border: 0;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
}
.add-btn:hover { background: #333;}
.sold-out {
  color: #999;
  font-size: 20px;
}

/* ===== Shared button (cart drawer + cart page) ===== */
.btn {
  display: block; box-sizing: border-box; width: 100%;
  padding: 16px; text-align: center;
  background: black; color: white; border: 0;
  font-size: 16px; cursor: pointer;
}
.btn:hover { background: #333; }

/* ===== Cart side panel (slides in from the RIGHT) ===== */
.cart-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 50;
  width: 440px; max-width: 92vw;
  background: white; color: black;
  display: flex; flex-direction: column;
  transform: translateX(100%);          /* hidden off-screen */
  transition: transform 0.3s;
}
.cart-drawer:target { transform: none; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15); } /* page address ends in #cart -> slide in */

.cart-head {
  height: 90px; padding: 0 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid black; font-size: 20px;
}
.cart-head .close { font-size: 40px; }

.cart-body { flex: 1; overflow-y: auto; padding: 10px 30px; }
.mini-item {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 16px;
  align-items: center; padding: 16px 0; border-bottom: 1px solid #ddd;
}
.mini-thumb img { width: 70px; aspect-ratio: 3 / 4; object-fit: cover; background: #eee; display: block; }
.mini-name { margin: 0 0 6px; font-size: 15px; }
.mini-meta { margin: 0; font-size: 12px; color: #777; }
.mini-price { margin: 0; font-size: 14px; }
.mini-empty { padding: 30px 0; font-size: 16px; }

.cart-foot { padding: 24px 30px; border-top: 1px solid black; flex-shrink: 0; }
.mini-total { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 18px; }

/* Dark layer behind the panel; click it to close. Shown only while panel is open. */
.cart-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-drawer:target ~ .cart-scrim { opacity: 1; pointer-events: auto; }

/* ===== Cart page ===== */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 30px; }
.cart-page h1 { font-size: 40px; margin: 0 0 30px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }

.cart-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px;
  align-items: center; padding: 20px 0; border-top: 1px solid black;
}
.cart-item:last-child { border-bottom: 1px solid black; }
.cart-thumb img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; background: #eee; display: block; }
.cart-name { font-size: 18px; }
.cart-info p { margin: 8px 0 0; font-size: 14px; }
.cart-qty { color: #777; }
.cart-sub { margin: 0; font-size: 16px; }

.cart-summary { background: #f5f5f5; padding: 28px; position: sticky; top: 120px; }
.cart-summary h2 { font-size: 18px; margin: 0 0 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.sum-total { border-top: 1px solid black; margin: 10px 0 24px; padding-top: 18px; font-size: 18px; }
.continue { display: block; text-align: center; margin-top: 18px; font-size: 13px; text-decoration: underline; }

.cart-empty { padding: 20px 0 60px; max-width: 360px; }
.cart-empty p { font-size: 18px; margin-bottom: 24px; }

@media (max-width: 800px) {
  .topbar-right { font-size: 14px; gap: 14px; white-space: nowrap; }
  .cart-layout { grid-template-columns: 1fr; gap: 30px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-thumb img { width: 80px; }
  .cart-sub { grid-column: 2; }
}

/* ===================== CHECKOUT PAGE ===================== */
/* Normal readable text here (the site default is UPPERCASE + Arial Black) */
.checkout, .checkout-empty {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400; font-size: 14px; text-transform: none; color: #222;
}

/* Two columns: form on the left, grey summary on the right */
.checkout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 90px); }

.checkout-left { padding: 40px; }
.checkout-left form { max-width: 560px; margin-left: auto; }   /* pushes form toward the centre line */
.checkout-right { background: #f5f5f5; padding: 40px; border-left: 1px solid #e5e5e5; }
.summary { max-width: 500px; }

/* Headings */
.checkout h2 { font-size: 22px; font-weight: 600; margin: 34px 0 14px; }
.checkout form h2:first-child { margin-top: 0; }
.checkout h3 { font-size: 16px; font-weight: 600; margin: 28px 0 12px; }
.muted { color: #707070; margin: -8px 0 14px; }

/* Inputs */
.checkout input[type="text"],
.checkout input[type="tel"] {
  display: block; width: 100%; box-sizing: border-box;
  height: 52px; padding: 0 14px; margin-bottom: 12px;
  font: inherit; font-size: 15px;
  border: 1px solid #d0d0d0; border-radius: 8px; background: white;
}
.checkout input:focus, .checkout select:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Country box: small caption on top, select below */
.country {
  display: block; padding: 8px 14px 6px; margin-bottom: 12px;
  border: 1px solid #d0d0d0; border-radius: 8px; background: white;
}
.country span { display: block; font-size: 12px; color: #707070; }
.country select { width: 100%; border: 0; padding: 4px 0; font: inherit; font-size: 15px; background: white; }

/* Option cards (shipping + payment). The real radio buttons are hidden,
   the <label> next to each one is the card you see and click. */
.options input[type="radio"] { position: absolute; opacity: 0; }
.options label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px; border: 1px solid #d0d0d0; border-radius: 8px;
  background: white; cursor: pointer; font-weight: 600;
}
.options input:checked + label { border-color: #000; background: #f4f4f4; box-shadow: 0 0 0 1px #000; }
.options input:focus-visible + label { outline: 2px solid #000; outline-offset: 2px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-note { grid-column: 1 / -1; margin: 4px 0 0; padding: 14px; background: #f5f5f5; border-radius: 8px; color: #555; line-height: 1.5; }

/* Show only the note that matches the chosen payment method */
#pay-card:checked ~ .note-cod { display: none; }
#pay-cod:checked ~ .note-card { display: none; }

/* Save my information box */
.save-box {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 28px 0 24px; padding: 16px;
  border: 1px solid #d0d0d0; border-radius: 8px; cursor: pointer;
}
.save-box input { margin-top: 3px; width: 18px; height: 18px; accent-color: #000; flex-shrink: 0; }
.save-box strong { display: block; font-size: 14px; margin-bottom: 4px; }
.save-box small { display: block; color: #666; font-size: 13px; line-height: 1.5; }

/* Pay button */
.pay-btn {
  width: 100%; height: 58px; border: 0; border-radius: 8px;
  background: #000; color: white; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.pay-btn:hover { background: #333; }
.legal { display: flex; gap: 20px; margin: 40px 0 0; }
.legal a { color: #0a58ca; text-decoration: underline; font-size: 13px; }

/* Order summary (right) */
.sum-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.sum-item p { margin: 0; }
.sum-img { position: relative; width: 64px; height: 64px; border: 1px solid #ddd; border-radius: 8px; background: white; }
.sum-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box;
  border-radius: 11px; background: #000; color: white;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.sum-line { display: flex; justify-content: space-between; margin-top: 10px; }
.sum-big { margin-top: 18px; font-size: 20px; align-items: baseline; }
.sum-big small { font-size: 12px; color: #707070; font-weight: 400; }

.checkout-empty { max-width: 420px; padding: 40px 30px 80px; margin: 0 auto; }
.checkout-empty h2 { margin: 0 0 8px; font-size: 22px; }
.checkout-empty p { margin: 0 0 22px; color: #707070; }

/* Phones: one column, order summary first */
@media (max-width: 800px) {
  .checkout { grid-template-columns: 1fr; min-height: 0; }
  .checkout-right { order: -1; border-left: 0; padding: 24px 20px; }
  .checkout-left { padding: 24px 20px 40px; }
  .checkout-left form { margin: 0 auto; }
  .pay { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; gap: 0; }
}
