*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-body: #f5f5f7;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --border-subtle: #e4e4e7;
  --text-main: #0f172a;
  --text-subtle: #6b7280;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --primary-deep: #1d4ed8;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo a {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: #e5e7eb;
}

.nav a.active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.cart-link {
  border: 1px solid #d4d4d8;
}

.cart-link.active {
  border-color: var(--primary-deep);
}

.cart-count-pill {
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  min-width: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.25rem;
}

/* Main wrapper */

.main {
  padding-bottom: 3rem;
}

/* HERO SLIDER */

.hero-slider {
  padding: 1.5rem 0 0.5rem;
}

.slider {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  box-shadow: var(--shadow-soft);
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  padding: 2.5rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.slide-left h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.slide-left p {
  margin: 0 0 1.5rem;
  color: var(--text-subtle);
  max-width: 420px;
}

.slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
}

.badge-primary {
  background: #1d4ed8;
  color: white;
}

.slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.slide-right {
  justify-self: center;
}

.slide-hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.slide-hero-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 260px;
  object-fit: cover;
}

/* Slider controls */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,23,42,0.25);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 22px;
  background: var(--primary-deep);
}

/* PAGE HERO (inner banners) */

.page-hero {
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.page-hero-title {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

.page-hero-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.page-hero-shop {
  background: linear-gradient(135deg, #eef2ff, #f1f5f9);
}

.page-hero-contact {
  background: linear-gradient(135deg, #f5f3ff, #e0f2fe);
}

.page-hero-checkout {
  background: linear-gradient(135deg, #ecfdf3, #eef2ff);
}

.page-hero-success {
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
}

/* Sections */

.section {
  padding: 2rem 0 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 0.3rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.link-inline {
  font-size: 0.9rem;
  color: var(--primary-deep);
}

/* Info strip */

.info-strip {
  padding: 2.2rem 0 0;
}

.info-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 1rem;
}

.info-emoji {
  font-size: 1.3rem;
}

.info-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Cards / Products */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.25);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(15,23,42,0.04);
}

.product-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  background: #e5e7eb;
  height: 240px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.2rem 0 0.1rem;
  font-size: 0.98rem;
}

.product-card .category {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.product-card .price {
  font-weight: 600;
  margin: 0.35rem 0 0.15rem;
}

.product-card .desc {
  font-size: 0.8rem;
  color: var(--text-subtle);
  min-height: 2.2em;
  margin: 0 0 0.7rem;
}

.add-to-cart-form {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.add-to-cart-form input[type="number"] {
  width: 64px;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.btn-primary:hover {
  background: var(--primary-deep);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* Toast */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #f9fafb;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(15,23,42,0.5);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

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

/* Forms */

.form {
  max-width: 460px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.1);
}

.inline-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.helper-text {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #22c55e;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  display: none;
}

/* Checkout layout */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1.2rem;
}

.cart-summary {
  padding: 1.1rem 1.2rem;
}

.cart-summary h2,
.checkout-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem 0;
}

.cart-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.cart-item h3 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}

.cart-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.cart-item-actions {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cart-qty-btn {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f3f4f6;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: #e5e7eb;
}

.cart-qty {
  font-size: 0.8rem;
}

.cart-remove {
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.cart-remove:hover {
  background: #fee2e2;
}

.cart-total {
  font-size: 1rem;
  margin-top: 0.4rem;
}

.checkout-card {
  padding: 1.1rem 1.2rem;
}

.small-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

.empty-cart-message {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

/* Order success page */

.success-card {
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1.6rem 1.7rem;
}

.success-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.success-details {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.success-details p {
  margin: 0.15rem 0;
}

.success-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-copy h1 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-card {
  padding: 1.2rem 1.3rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.2rem 0;
  margin-top: 2.5rem;
}

.footer-inner {
  font-size: 0.82rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: flex-start;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.footer-sub {
  margin: 0;
  color: var(--text-subtle);
}

.footer-col-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-links a {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 900px) {
  .slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .slide-right {
    justify-self: stretch;
  }

  .slide-hero-img {
    max-width: 100%;
    height: 220px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav a {
    margin-left: 0.3rem;
  }

  .slider {
    border-radius: 20px;
  }

  .slider-btn {
    display: none;
  }

  .section {
    padding-top: 1.7rem;
  }

  .checkout-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .slide {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .product-card img {
    height: 210px;
  }
}

/* ===== ECOMMERCE FOOTER (OVERRIDE) ===== */

.site-footer {
  border-top: none;
  background: #020617;
  padding: 2.5rem 0 2.8rem;
  margin-top: 3rem;
  color: #e5e7eb;
}

.footer-inner {
  font-size: 0.85rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #f9fafb;
}

.footer-sub {
  margin: 0;
  color: #9ca3af;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.83rem;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-newsletter {
  margin-top: 1rem;
}

.footer-newsletter label {
  display: block;
  font-size: 0.82rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.footer-newsletter-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.footer-newsletter-row input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.footer-newsletter-row input::placeholder {
  color: #6b7280;
}

.footer-newsletter-row button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #f97316;
  color: #111827;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.footer-newsletter-row button:hover {
  background: #fb923c;
}

.footer-newsletter-note {
  margin: 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.footer-demo-note {
  margin-top: 0.8rem;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    width: 100%;
    margin-top: 0.5rem;
    display: none;
    flex-wrap: wrap;
  }

  .nav a {
    margin: 0 0.4rem 0.4rem 0;
    display: inline-block;
  }

  .nav-open .nav {
    display: flex;
  }
}

/* ===== FULL-WIDTH HERO SLIDER UPGRADE ===== */
.hero-slider {
  padding: 0;
}

.hero-slider .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.slider {
  border-radius: 0;
}

.slide {
  min-height: 600px;
}

.slide-right {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.slide-hero-img-wrap {
  width: 100%;
  height: 100%;
}

.slide-hero-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Make slider a bit shorter on small screens */
@media (max-width: 768px) {
  .slide {
    min-height: 420px;
  }
}

/* ===== OFFCANVAS MOBILE NAV (VERTICAL) ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 72%;
    max-width: 290px;
    background: #020617;
    box-shadow: -8px 0 25px rgba(15,23,42,0.45);
    padding: 4rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.22s ease-out;
    z-index: 40;
  }

  .nav a {
    margin: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #e5e7eb;
    display: block;
  }

  .nav a.active {
    background: #111827;
    color: #f97316;
  }

  .nav a:hover {
    background: #111827;
  }

  .nav-open .nav {
    transform: translateX(0);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 30;
  }

  .nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* UPDATED SLIDER HEIGHT */
.slide {
  min-height: 70vh !important;
}
