@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #60a5fa;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: 'Poppins', 'Segoe UI', sans-serif; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
  background: #fff;
  color: var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); transition: transform 0.2s; }
.logo-img:hover { transform: scale(1.03); }

.sub { font-size: 0.9rem; color: #64748b; margin-top: 2px; }
.advert { display: inline-block; font-weight: 700; animation: advertise 4s linear infinite; }

nav a { color: #475569; margin-left: 26px; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--accent); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.8s ease;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1140px;
  min-height: 540px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 90px;
}

.hero-text {
  flex: 1;
  color: #fff;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease;
}

.slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.hero-cat {
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.hero-note {
  font-size: 1rem;
  margin-bottom: 26px;
  opacity: 0.92;
  max-width: 460px;
}

.badge-new {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: #e2e8f0;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-wrap.large {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.img-wrap.large img {
  transform: scale(0.85) translateX(40px);
  opacity: 0;
  transition: all 0.7s ease 0.1s;
}

.slide.active .img-wrap.large img {
  transform: scale(1) translateX(0);
  opacity: 1;
}

.img-wrap .img-fallback svg,
.img-fallback svg {
  width: 60%;
  height: 60%;
}

.img-wrap.large .img-fallback svg {
  width: 150px;
  height: 150px;
}

/* ===== TICKER ===== */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.25);
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.ticker-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.ticker .dot {
  background: #fff;
  color: var(--primary);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 800;
}

.ticker .dot.new {
  background: #ef4444;
  color: #fff;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes advertise {
  0% { color: #f59e0b; text-shadow: 0 0 10px #f59e0b; }
  25% { color: #2563eb; text-shadow: 0 0 10px #2563eb; }
  50% { color: #10b981; text-shadow: 0 0 10px #10b981; }
  75% { color: #7c3aed; text-shadow: 0 0 10px #7c3aed; }
  100% { color: #f59e0b; text-shadow: 0 0 10px #f59e0b; }
}

/* ===== MAIN CONTENT ===== */
main { padding: 80px 0 100px; }

.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 8px; color: var(--primary); }
.section-title .subtitle { color: var(--muted); font-size: 1.05rem; }

.filters { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.filters button {
  border: none;
  background: #fff;
  color: var(--text);
  padding: 11px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: 0.2s;
}

.filters button.active, .filters button:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* ===== PRODUCT LIST ===== */
.product-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.product { border-bottom: 1px solid var(--border); transition: background 0.2s, transform 0.2s; }
.product:last-child { border-bottom: none; }
.product:hover { background: #f8fafc; transform: translateY(-1px); }

.product-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 30px;
}

.product-media { flex-shrink: 0; }

.product-media .img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.product-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-main .category {
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.product-main h3 { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.product-main .price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

.product-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.product-form .field { display: flex; flex-direction: column; }

.product-form label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 700;
}

.product-form select, .product-form input {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  min-width: 90px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.product-form select:focus, .product-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ===== IMAGE FALLBACKS ===== */
.img-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.img-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 0;
}

.img-fallback.caps { background: linear-gradient(135deg, #fbbf24, #d97706); }
.img-fallback.t-shirts { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.img-fallback.shirts { background: linear-gradient(135deg, #22c55e, #15803d); }
.img-fallback.badges { background: linear-gradient(135deg, #a855f7, #6d28d9); }

/* ===== BUTTONS ===== */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dark), #1e40af);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-call { background: #10b981; color: #fff; }
.btn-call:hover { background: #059669; }

.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe57; }

/* ===== CART ===== */
.cart-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: 40px;
}

.cart-box h3 { margin-bottom: 16px; color: var(--primary); }

.cart-list {
  list-style: none;
  margin-bottom: 20px;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-list li:last-child { border-bottom: none; }

.cart-remove {
  background: transparent;
  border: none;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
}

.cart-remove:hover { text-decoration: underline; }

.cart-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cart-total {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 18px;
}

#summary-list { list-style: none; padding-left: 0; }
#summary-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
#summary-list li:last-child { border-bottom: none; }

/* ===== RECEIPT ===== */
.receipt-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  position: relative;
}

.receipt-box::before,
.receipt-box::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  background: radial-gradient(circle, transparent 6px, #f8fafc 6px);
  background-size: 18px 18px;
}

.receipt-box::before { top: -6px; }
.receipt-box::after { bottom: -6px; }

.receipt-header {
  text-align: center;
  margin-bottom: 6px;
}

.receipt-header strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--primary);
}

.receipt-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.receipt-status {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  text-align: center;
  margin: 10px auto;
  letter-spacing: 1px;
}

.receipt-dash {
  border-top: 2px dashed #cbd5e1;
  margin: 14px 0;
}

.receipt-info {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}

.receipt-info div { margin-bottom: 6px; }

.receipt-list {
  list-style: none;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
}

.receipt-list li {
  display: grid;
  grid-template-columns: 1fr 65px 40px 105px 105px;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  align-items: center;
}

.receipt-list li:last-child { border-bottom: none; }

.receipt-list-header {
  font-weight: 700;
  border-bottom: 2px dashed #cbd5e1;
}

.item-size { text-align: center; }
.item-qty { text-align: right; }
.item-price, .item-total { text-align: right; font-weight: 600; }

.receipt-total {
  text-align: right;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.receipt-thanks {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0;
}

.receipt-note {
  text-align: center;
  background: #fff1f2;
  border: 1px dashed #f87171;
  color: #b91c1c;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.receipt-cut {
  border-top: 2px dashed #cbd5e1;
  margin-bottom: 24px;
}

.receipt-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.receipt-controls label { font-weight: 700; font-size: 0.85rem; color: var(--muted); }

.receipt-controls input,
.receipt-controls textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.receipt-controls textarea { resize: vertical; }

.receipt-controls button { width: 100%; }

/* ===== CONTACT PAGE ===== */
.contact-hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.contact-hero h1 { font-size: 2.4rem; margin-bottom: 14px; }
.contact-hero p { color: #94a3b8; font-size: 1.05rem; }

.order-summary {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 34px;
}

.order-summary h2 { margin-bottom: 12px; color: var(--primary); }
.order-summary p { color: var(--muted); }

.contact-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  padding: 16px 20px;
  border-radius: 12px;
  transition: background 0.2s;
}

.contact-list li:hover { background: rgba(255,255,255,0.11); }

.contact-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-list .icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-list a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-list a:hover { color: var(--accent-light); }

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary);
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CONTACT PAGE COLOURS ===== */
body.contact-page main { background: #b2ebf2; }

body.contact-page header { background: #7fcdff; }

body.contact-page .sub { color: #334155; }

body.contact-page nav a { color: #0f172a; }
body.contact-page nav a:hover { color: #ffffff; }

body.contact-page footer { background: #dff7ff; color: #475569; }

footer { text-align: center; padding: 28px 0; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 760px) {
  .hero { min-height: 620px; }
  .slide-inner { flex-direction: column; text-align: center; padding-top: 30px; padding-bottom: 100px; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-note { margin: 0 auto 24px; }
  .img-wrap.large { width: 220px; height: 220px; }
  .img-wrap.large .img-fallback svg { width: 100px; height: 100px; }

  .product-row { flex-direction: column; align-items: flex-start; }
  .product-media .img-wrap { width: 100%; height: 240px; }
  .product-body { width: 100%; }
  .product-form { width: 100%; }
  .product-form .field { flex: 1; }
  .product-form button { width: 100%; }

  .contact-card { padding: 24px; }
  .contact-list a { font-size: 0.95rem; }

  nav { display: none; }
}
