/* ============================================================
   SQUARED REPUBLIQ — MASTER STYLESHEET
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --black: #080808;
  --white: #fff;
  --gray: #777;
  --light-gray: #f5f5f5;
  --border: #e7e7e7;
  --accent: #0f7a3d;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  
  --hdr-h: 70px;
  --hdr-bg: #fff;
  --hdr-ink: #14201a;
  --hdr-muted: #4a554e;
  --hdr-accent: var(--accent);
  --hdr-line: #e3e8e5;
  --hdr-radius: 8px;
  --hdr-transition: .2s ease;
  --radius: 8px;
}

/* ---------- RESET & BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement {
  height: 38px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.announcement-track {
  display: flex;
  align-items: center;
  gap: 100px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.announcement-track span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: var(--hdr-h);
  padding: 0 1.25rem;
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-line);
  box-shadow: 0 2px 6px rgba(15, 122, 61, .05);
}

/* Mobile Menu Toggle */
.mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hdr-line);
  background: #fff;
  border-radius: var(--hdr-radius);
  color: var(--hdr-ink);
  font-size: 1.05rem;
  transition: background var(--hdr-transition), border-color var(--hdr-transition);
}
.mobile-menu:hover {
  background: #eef7f1;
  border-color: var(--hdr-accent);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--hdr-ink);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo img {
  width: 40px;
  height: 40px;
}

/* Navigation */
.navigation {
  display: flex;
  align-items: center;
  gap: .25rem;
  justify-self: center;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 0 .5rem;
}
.navigation::-webkit-scrollbar { display: none; }

.navigation a {
  position: relative;
  display: block;
  padding: .55rem .8rem;
  color: var(--hdr-muted);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--hdr-transition), background var(--hdr-transition);
}
.navigation a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--hdr-transition);
}
.navigation a:hover { background: #f2faf5; color: var(--hdr-ink); }
.navigation a:hover::after { transform: scaleX(1); }

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.header-icons > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 40px;
  min-width: 40px;
  padding: 0 .6rem;
  border: 0;
  background: transparent;
  border-radius: var(--hdr-radius);
  color: var(--hdr-ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  transition: background var(--hdr-transition), color var(--hdr-transition);
}
.header-icons > button:hover {
  background: #eef7f1;
  color: var(--hdr-accent);
}
.header-icons i { font-size: 1.05rem; }

/* Cart Badge */
.cart-btn {
  position: relative;
  color: var(--hdr-ink) !important;
}
.cart-btn i { color: var(--hdr-ink); font-size: 1.1rem; }

#cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
}

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.search-panel {
  position: fixed;
  top: calc(var(--hdr-h) + 8px);
  left: 50%;
  z-index: 200;
  display: flex;
  width: min(560px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity var(--hdr-transition), transform var(--hdr-transition), visibility var(--hdr-transition);
}
.search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: .9rem 1.1rem;
  border: 0;
  outline: none;
  font: inherit;
  font-size: .9rem;
  color: var(--black);
  background: #fff;
}
.search-panel input::placeholder { color: #9aa3a0; }
.search-panel button {
  flex: none;
  width: 52px;
  border: 0;
  background: var(--black);
  color: #fff;
  font-size: 1rem;
  transition: background var(--hdr-transition);
}
.search-panel button:hover { background: var(--accent); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #171717;
  color: #fff;
}
.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.4), rgba(0,0,0,.15));
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 10%;
  max-width: 850px;
}
.hero-small,
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(55px, 9vw, 115px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -5px;
  margin: 30px 0;
}
.hero h1 span { font-weight: 400; font-style: italic; }
.hero-description {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 35px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Shared Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  padding: 17px 25px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: .3s;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #ddd; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: #333; }

.hero-indicator {
  position: absolute;
  bottom: 35px;
  right: 7%;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}
.hero-indicator div {
  height: 1px;
  width: 80px;
  background: #fff;
}

/* ============================================================
   SECTIONS (General)
   ============================================================ */
.section { padding: 100px 6%; }
.section-heading { text-align: center; margin-bottom: 55px; }
.section-heading .eyebrow { color: #888; }
.section-heading h2 {
  font-size: clamp(27px, 4vw, 43px);
  font-weight: 900;
  margin: 17px 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.section-heading p { font-size: 12px; color: var(--gray); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  overflow: hidden;
  background: #eee;
  display: block;
  color: #fff;
  height: 480px;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.category-card:hover img { transform: scale(1.07); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px;
}
.category-overlay h3 {
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.category-overlay span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   PROMO STRIP
   ============================================================ */
.promo-strip {
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 28px 0;
}
.promo-track {
  display: flex;
  width: max-content;
  gap: 90px;
  animation: marquee 25s linear infinite;
}
.promo-track span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  white-space: nowrap;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-section { background: #fafafa; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 18px;
}
.product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover {
  box-shadow: 0 16px 40px rgba(15, 122, 61, .08);
  transform: translateY(-2px);
}
.product-image {
  position: relative;
  overflow: hidden;
  height: 330px;
  background: #f0f0f0;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }

/* Badges */
.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  padding: 7px 12px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}
.sale { background: #000; color: #fff; }
.preorder { background: #fff; color: #000; }

/* Styled Select for Checkout Form */
.styled-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a4a4a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
}
.styled-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,122,61,.15);
}
.styled-select:hover {
  border-color: #bdbab3;
}

/* ============================================================
   LIVE SEARCH RESULTS
   ============================================================ */
.search-panel {
  position: fixed;
  top: calc(var(--hdr-h) + 8px);
  left: 50%;
  z-index: 200;
  display: flex;
  width: min(560px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  overflow: visible; /* Changed from hidden to show dropdown */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity var(--hdr-transition), transform var(--hdr-transition), visibility var(--hdr-transition);
}

.search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: .9rem 1.1rem;
  border: 0;
  outline: none;
  font: inherit;
  font-size: .9rem;
  color: var(--black);
  background: #fff;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search-panel input::placeholder { color: #9aa3a0; }
.search-panel button {
  flex: none;
  width: 52px;
  border: 0;
  background: var(--black);
  color: #fff;
  font-size: 1rem;
  transition: background var(--hdr-transition);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search-panel button:hover { background: var(--accent); }

/* Live Search Dropdown */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  z-index: 201;
  display: none;
}

.live-search-results.active {
  display: block;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hdr-line);
  cursor: pointer;
  text-decoration: none;
  color: var(--hdr-ink);
  transition: background 0.2s ease;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: #f9f9f9;
}

.live-search-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.live-search-info {
  flex: 1;
}

.live-search-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--hdr-ink);
}

.live-search-info p {
  font-size: 0.75rem;
  color: var(--hdr-muted);
  margin: 0;
}

.live-search-info p span {
  color: var(--accent);
  font-weight: 600;
}

.live-search-no-results {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Product Info */
.product-info { padding: 20px 12px; }
.vendor {
  display: block;
  font-size: 9px;
  color: #999;
  margin-bottom: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-info h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  min-height: 40px;
  margin-bottom: .4rem;
}
.product-info p {
  font-size: 13px;
  margin-top: .35rem;
  margin-bottom: .9rem;
}
.product-info del { color: #999; margin-right: 6px; }
.product-info strong { font-weight: 800; }

/* Delivery Tag */
.product-delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  margin-bottom: 1rem;
  background: #f2faf5;
  border: 1px solid #d6ecdd;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  color: #2b6e45;
  letter-spacing: .02em;
}
.product-delivery-tag i { color: var(--accent); font-size: .72rem; }

/* Size Selector */
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .25rem 0;
  transition: outline-color .2s ease;
}
.size-row button {
  min-width: 38px;
  height: 34px;
  padding: 0 .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--hdr-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: all var(--hdr-transition);
}
.size-row button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2faf5;
}
.size-row button[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.size-row button[aria-pressed="true"]:hover {
  background: #222;
  border-color: #222;
}

/* Add to Cart Button */
.add-btn {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--black);
  border-radius: 6px;
  background: var(--black);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.add-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.add-btn:active { transform: scale(.985); }
.add-btn.added {
  background: var(--accent);
  border-color: var(--accent);
}

/* View All Link */
.view-all {
  display: block;
  width: fit-content;
  margin: 55px auto 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.view-all:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  border: 1px solid var(--border);
  padding: 35px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
}
.stars {
  color: #d49b30;
  letter-spacing: 5px;
  margin-bottom: 20px;
  font-size: 14px;
}
.testimonial-card p {
  font-size: 12px;
  line-height: 2;
  color: #555;
  margin-bottom: 20px;
}
.testimonial-card h4 { font-size: 11px; font-weight: 800; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080808;
  color: #fff;
  padding: 75px 6% 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer h2 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-transform: uppercase;
}
.footer-brand p {
  color: #aaa;
  font-size: 11px;
  line-height: 2;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-links a {
  font-size: 11px;
  color: #aaa;
  transition: color .3s;
}
.footer-links a:hover { color: #fff; }
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}
.social-icons a {
  font-size: 17px;
  color: #fff;
}
.social-icons a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #999;
  font-size: 10px;
}

/* ============================================================
   CART SLIDE-IN PANEL
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none;
}
.cart-overlay.active { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  height: 100%;
  width: min(400px, 90%);
  background: #fff;
  z-index: 301;
  padding: 30px;
  transition: right .35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-panel.active { right: 0; }

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  flex: none;
}
.cart-heading h2 { font-size: 18px; font-weight: 800; }
.cart-heading button {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--hdr-ink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding-top: 24px;
  text-align: left;
}
.cart-body:not(.has-items) {
  text-align: center;
  padding-top: 100px;
}
.cart-body:not(.has-items) i {
  font-size: 35px;
  margin-bottom: 20px;
  color: #bbb;
}
.cart-body:not(.has-items) p {
  font-size: 12px;
  margin-bottom: 25px;
  color: #777;
}

/* Cart Items */
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .85rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f2f2;
}
.cart-line h4 {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .2rem;
}
.cart-line small {
  display: block;
  font-size: .7rem;
  color: var(--gray);
  margin-bottom: .45rem;
}
.line-price {
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
  padding-top: .15rem;
}

/* Quantity Stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-right: .5rem;
}
.qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: #f7f7f7;
  color: var(--hdr-ink);
  font-size: .85rem;
  font-weight: 700;
  transition: background var(--hdr-transition);
}
.qty button:hover { background: #eef7f1; color: var(--accent); }
.qty span {
  min-width: 28px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}

/* Remove Link */
.rm {
  border: 0;
  background: none;
  color: #b3261e;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
  margin-top: .25rem;
}
.rm:hover { color: #8a1c16; }

/* Cart Totals */
.cart-totals {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--hdr-line);
}
.cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  padding: .35rem 0;
  color: var(--hdr-muted);
}
.cart-totals .grand {
  margin-top: .4rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--border);
  font-size: .95rem;
  font-weight: 800;
  color: var(--black);
}

/* Checkout Link */
.checkout-link {
  display: flex;
  width: 100%;
  margin-top: 1.1rem;
  padding: 1rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 8px;
  justify-content: center;
  transition: background 0.2s ease;
}
.checkout-link:hover {
  background: #222 !important;
}

/* ============================================================
   CHECKOUT PAGE STYLES
   ============================================================ */
.checkout-body {
  background: #fafafa;
}

.co-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.2rem 5rem;
}

.co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.co-head h1 {
  font-size: 1.4rem;
  font-weight: 900;
}
.co-head a {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 700;
}

.co-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .co-grid { grid-template-columns: 1fr; }
}

.co-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}
.co-card h2 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

/* Order Lines */
.line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid #eef0ef;
  align-items: center;
}
.line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f2f2;
}
.line h4 {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .25rem;
}
.line small {
  font-size: .7rem;
  color: var(--gray);
}
.line .amt {
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
}

/* Totals */
.totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--hdr-line);
}
.totals > div {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .35rem 0;
  color: var(--hdr-muted);
}
.totals .grand {
  font-size: 1rem;
  font-weight: 900;
  color: var(--black);
  padding-top: .6rem;
  border-top: 1px dashed var(--border);
  margin-top: .4rem;
}

/* Payment Tabs */
.pay-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.pay-tabs button {
  flex: 1;
  min-width: 120px;
  padding: .85rem .6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  transition: .15s;
}
.pay-tabs button i { font-size: 1.1rem; }
.pay-tabs button.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}
.pay-tabs button:hover {
  border-color: var(--accent);
}

/* Form Fields */
.field {
  margin-bottom: .9rem;
}
.field label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--hdr-muted);
  margin-bottom: .35rem;
}
.field input {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,122,61,.15);
}

/* Pay Button */
.pay-btn {
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s;
}
.pay-btn:hover:not([disabled]) {
  background: var(--accent);
}
.pay-btn[disabled] {
  opacity: .7;
  cursor: wait;
}
.btn-spinner {
  font-size: 1.1rem;
}
.secure-note {
  font-size: .7rem;
  color: #888;
  margin-top: .75rem;
  text-align: center;
}

/* Transaction Banner */
.tx {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.5;
}
.tx.show { display: block; }
.tx.success {
  background: #e8f5ee;
  border: 1px solid #bfe3cf;
  color: var(--accent);
}
.tx.error {
  background: #fdecea;
  border: 1px solid #f7c8c3;
  color: #b3261e;
}
.tx b {
  display: block;
  font-size: 1rem;
  margin-bottom: .25rem;
}
.tx .ref {
  font-family: ui-monospace, monospace;
  font-size: .75rem;
  margin-top: .4rem;
  word-break: break-all;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
}
.empty a {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.5rem;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 150;
  background: #25d366;
  color: #fff;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.whatsapp:hover { transform: scale(1.06); }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablets / Small Desktops */
@media (max-width: 1100px) {
  .navigation { gap: 14px; }
  .navigation a { font-size: 9px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile / Small Tablets */
@media (max-width: 900px) {
  .header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle logo icons"
      "nav nav nav";
    height: auto;
    padding: .6rem 1rem;
    row-gap: .5rem;
  }
  .mobile-menu { display: inline-flex; grid-area: toggle; }
  .logo { grid-area: logo; font-size: .74rem; }
  .logo img { width: 34px; height: 34px; }
  .header-icons { grid-area: icons; }

  .navigation {
    grid-area: nav;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .navigation.open { max-height: 460px; overflow-y: auto; }
  .navigation a {
    padding: .8rem .5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--hdr-line);
  }
  .navigation a::after { display: none; }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .hero { min-height: 570px; }
  .hero-content { padding: 50px 7%; }
  .hero h1 { letter-spacing: -3px; }

  .section { padding: 70px 5%; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 430px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 12px; }
  .product-image { height: 260px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 35px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .announcement-track span { font-size: 9px; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 55px; }
  .hero-buttons { flex-direction: column; width: 180px; }
  .hero-description { line-height: 1.8; }

  .section-heading h2 { font-size: 27px; }
  .category-card { height: 350px; }
  .product-image { height: 210px; }
  .product-info { padding: 13px 8px; }
  .product-info h3 { font-size: 10px; }
  .product-info p { font-size: 10px; }
  .size-row button { min-width: 34px; height: 30px; font-size: .65rem; }
  .add-btn { padding: .75rem .8rem; font-size: .68rem; }
  .product-delivery-tag { font-size: .65rem; padding: .3rem .55rem; }

  .logo span { display: none; }
  .header-icons { gap: .15rem; }

  .cart-panel { padding: 22px; }
  .cart-line { grid-template-columns: 54px 1fr auto; gap: .6rem; }
  .cart-line img { width: 54px; height: 54px; }

  .whatsapp {
    width: 48px;
    height: 48px;
    font-size: 24px;
    right: 18px;
    bottom: 18px;
  }
  
  .pay-tabs button { min-width: 100%; }
}

/* ============================================================
   ACCESSIBILITY / PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

