:root {
  --tkk-red: #e2241b;
  --tkk-red-dark: #c01e16;
  --ink: #1a1a1a;
  --gray-700: #444;
  --gray-500: #767676;
  --gray-200: #e7e7e7;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-hover: 0 8px 20px rgba(0,0,0,.10);
  --green: #25D366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Top promo bar ---------- */
.promo-bar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: .2px;
}
.promo-bar strong { color: #ff5c52; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .tkk { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-text .tkk span { color: var(--tkk-red); }
.brand-text .sub { font-size: 11px; color: var(--gray-500); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--gray-200);
}
.cart-btn:hover { background: var(--gray-200); }
.cart-count {
  background: var(--tkk-red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.whatsapp-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.whatsapp-header-btn:hover { filter: brightness(0.95); }

nav.cat-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px 10px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: thin;
}
nav.cat-nav a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
nav.cat-nav a:hover, nav.cat-nav a.active { background: var(--gray-100); color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 12.5px;
  color: var(--gray-500);
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 10px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--tkk-red); }
.hero p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 22px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--tkk-red); color: white; }
.btn-primary:hover { filter: brightness(0.93); }
.btn-outline { background: white; color: var(--ink); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Category chip rows / grid on homepage ---------- */
.section-title {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title h2 { font-size: 20px; font-weight: 800; margin: 32px 0 16px; }
.section-title a { font-size: 13px; font-weight: 700; color: var(--tkk-red); }

.category-tile-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.category-tile {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: var(--gray-100);
  transition: box-shadow .15s, transform .15s, background .15s;
}
.category-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); background: white; }
.category-tile h3 { font-size: 15px; margin: 0 0 4px; }
.category-tile span { font-size: 12px; color: var(--gray-500); }

/* ---------- Product grid ---------- */
.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 8px;
  scroll-margin-top: 96px;
}
.category-header {
  margin-bottom: 8px;
}
.category-header h1, .category-header h2 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 800;
}
.category-header p { color: var(--gray-500); font-size: 14px; margin: 0 0 16px; max-width: 640px; }
.category-header .count { font-size: 12.5px; color: var(--gray-500); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding-bottom: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.product-image, .pdp-image {
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img, .pdp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder {
  color: var(--gray-500);
  font-size: 12px;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.placeholder svg { opacity: .35; }

.product-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-sku { font-size: 11px; color: var(--gray-500); font-weight: 700; letter-spacing: .3px; }
.product-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.product-name a:hover { color: var(--tkk-red); }
.product-size { font-size: 12px; color: var(--gray-500); }
.product-price { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 4px; }

.card-actions { display: flex; gap: 6px; margin-top: 10px; }
.add-to-cart-btn, .order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  flex: 1;
}
.add-to-cart-btn { background: var(--ink); color: white; }
.add-to-cart-btn:hover { background: #000; }
.order-btn { background: var(--green); color: white; }
.order-btn:hover { filter: brightness(0.95); }
.order-btn svg, .add-to-cart-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Product detail page ---------- */
.pdp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 40px;
}
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }
.pdp-image { border-radius: var(--radius); border: 1px solid var(--gray-200); }
.pdp-info .cat-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tkk-red);
  background: #fdeceb;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pdp-info h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
.pdp-info .sku-line { font-size: 12.5px; color: var(--gray-500); margin-bottom: 16px; }
.pdp-info .price { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.pdp-info .size-line { font-size: 14px; color: var(--gray-700); margin-bottom: 20px; }
.pdp-specs { border-top: 1px solid var(--gray-200); padding-top: 16px; margin-top: 20px; }
.pdp-specs table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pdp-specs td { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.pdp-specs td:first-child { color: var(--gray-500); width: 40%; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.qty-control button {
  background: var(--gray-100);
  border: none;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}
.qty-control input {
  width: 42px;
  text-align: center;
  border: none;
  font-size: 14px;
  height: 34px;
}
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pdp-actions .btn { flex: 1; min-width: 160px; }
.pdp-note { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; }

.related-strip { max-width: 1100px; margin: 20px auto 0; padding: 0 20px; }

/* ---------- Cart page ---------- */
.cart-page { max-width: 900px; margin: 0 auto; padding: 32px 20px 60px; }
.cart-page h1 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--gray-100); }
.cart-row .name { font-weight: 700; font-size: 14px; }
.cart-row .sku { font-size: 11.5px; color: var(--gray-500); }
.cart-row .line-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-row .remove-btn { color: var(--gray-500); font-size: 12px; background: none; border: none; cursor: pointer; text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.cart-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
}
.cart-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.cart-actions .btn { flex: 1; min-width: 180px; }

@media (max-width: 560px) {
  .cart-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "img name price" "img qty remove"; }
  .cart-row img { grid-area: img; width: 56px; height: 56px; }
  .cart-row .name-block { grid-area: name; }
  .cart-row .line-price { grid-area: price; }
  .cart-row .qty-control { grid-area: qty; }
  .cart-row .remove-btn { grid-area: remove; justify-self: start; }
}

/* ---------- Checkout ---------- */
.checkout-page { max-width: 640px; margin: 0 auto; padding: 32px 20px 60px; }
.checkout-page h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.checkout-page .sub { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.order-summary-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
}
.order-summary-box .row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-box .total-row { font-weight: 800; font-size: 15px; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 10px; }
.cod-note { font-size: 12.5px; color: var(--gray-500); margin-top: 8px; padding: 10px 12px; background: #fff8e1; border-radius: 8px; }
#form-status { margin-top: 12px; font-size: 13.5px; }
#form-status.error { color: var(--tkk-red-dark); }
#form-status.success { color: #1a7d3a; }

/* ---------- Thank you ---------- */
.thankyou-page { max-width: 560px; margin: 60px auto; padding: 0 20px; text-align: center; }
.thankyou-page .check { font-size: 48px; margin-bottom: 12px; }
.thankyou-page h1 { font-size: 24px; margin-bottom: 8px; }
.thankyou-page p { color: var(--gray-500); margin-bottom: 24px; }

/* ---------- Bulk / B2B strip ---------- */
.b2b-strip {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 28px 24px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.b2b-strip h3 { margin: 0 0 4px; font-size: 18px; }
.b2b-strip p { margin: 0; color: #ccc; font-size: 13.5px; max-width: 460px; }

/* ---------- Footer ---------- */
footer.site-footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 28px 20px 40px;
  color: var(--gray-500);
  font-size: 13px;
  border-top: 1px solid var(--gray-200);
}
footer.site-footer .foot-brand { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
footer.site-footer a:hover { color: var(--ink); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--green);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 60;
}
.float-whatsapp svg { width: 26px; height: 26px; }

@media (max-width: 640px) {
  .brand-text .tkk { font-size: 15px; }
  .brand-text .sub { display: none; }
  .hero { padding: 32px 16px 24px; }
}
