@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --orange: #ff8a00;
  --orange-dark: #e67a00;
  --text: #1f1f1f;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --border: #e5e7eb;
  --nav-dark: #222428;
  --top-bar: #2b2d31;
  --footer-bg: #f3f1ed;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}

/* Header */
.top-bar {
  background: var(--top-bar);
  color: #d1d5db;
  font-size: 0.8125rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  gap: 1rem;
}

.top-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-links a:hover {
  color: var(--orange);
}

.top-promo {
  margin: 0;
  text-align: right;
}

.main-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
}

.brand img {
  object-fit: contain;
}

.search-form {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-form select,
.search-form input {
  border: 0;
  padding: 0.75rem;
  font: inherit;
}

.search-form input:focus,
.search-form select:focus {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.header-icon {
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  cursor: pointer;
  position: relative;
}

.header-icon:hover {
  color: var(--orange);
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.badge[hidden] {
  display: none;
}

.main-nav {
  background: var(--nav-dark);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.categories-btn {
  background: var(--orange);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-list {
  display: flex;
  gap: 1.35rem;
  flex: 1;
}

.nav-link {
  color: #e5e7eb;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

/* Icons (CSS shapes) */
.icon-search::before { content: "⌕"; }
.icon-user::before { content: "👤"; font-size: 1rem; }
.icon-heart::before { content: "♥"; color: var(--orange); }
.icon-cart::before { content: "🛒"; }
.icon-menu::before { content: "☰"; }
.icon-close::before { content: "×"; font-size: 1.5rem; }
.icon-close { background: none; border: 0; cursor: pointer; }

.icon-fb::before { content: "f"; }
.icon-x::before { content: "𝕏"; }
.icon-pin::before { content: "P"; }
.icon-in::before { content: "in"; }
.icon-ig::before { content: "◎"; }

.social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.social:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Hero */
.hero {
  background: var(--bg-soft);
  padding: 1.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 1rem;
}

.hero-sidebar a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.hero-sidebar a:hover {
  color: var(--orange);
  padding-left: 1rem;
}

.hero-banner {
  position: relative;
  background: linear-gradient(120deg, #f0f0f0 60%, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.hero-content {
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero-content p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-price {
  font-size: 1.75rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-deals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem;
}

.deal-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.deal-timer {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Service strip */
.services-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}

.service-item {
  text-align: center;
  font-size: 0.9rem;
}

.service-item strong {
  display: block;
  color: var(--text);
}

.service-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-thumb {
  position: relative;
  background: var(--bg-soft);
  aspect-ratio: 1;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.badge-sale,
.badge-hot {
  background: var(--orange);
}

.badge-new {
  background: #16a34a;
}

.product-actions {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: 0.2s;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-body {
  padding: 0.9rem;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.product-price {
  margin: 0.5rem 0 0;
}

.product-price strong {
  color: var(--orange);
}

.price-old {
  color: var(--text-muted);
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.cat-card img {
  height: 110px;
  width: 100%;
  object-fit: cover;
}

.cat-card span {
  display: block;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.promo-banner {
  margin: 1rem 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #111 0%, #333 55%, var(--orange) 100%);
  color: #fff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brands-row {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a:hover {
  color: var(--orange);
}

.social-share {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.app-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-newsletter {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 520px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.footer-bottom {
  padding: 1rem 0 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  color: var(--orange);
}

.pay-icons {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Cart */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 90;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: 0.25s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head,
.cart-drawer-foot {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-drawer-body {
  padding: 1rem;
  overflow: auto;
  flex: 1;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-line h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-line-qty input {
  width: 64px;
  padding: 0.35rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 110;
  padding: 1rem;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Forms */
.page-hero {
  background: var(--bg-soft);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.content-wrap {
  padding: 2.5rem 0 3rem;
}

.content-narrow {
  max-width: 760px;
}

.content-legal {
  max-width: 900px;
}

.content-legal h2 {
  margin-top: 2rem;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  max-width: 640px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(255, 138, 0, 0.2);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
}

.checkbox-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.checkbox-field label {
  line-height: 1.45;
  cursor: pointer;
}

.field-error {
  display: block;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.form-group.has-error input,
.form-group.has-error textarea,
.checkbox-field.has-error input {
  border-color: #dc2626;
}

.form-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  color: #065f46;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.shop-filters {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  height: fit-content;
}

.shop-filters h3 {
  margin-top: 0;
}

.filter-list li {
  margin-bottom: 0.35rem;
}

.filter-list a {
  color: var(--text-muted);
}

.filter-list a:hover {
  color: var(--orange);
}

.about-intro {
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.about-figure {
  margin: 0;
}

.about-figure img,
.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-copy h2 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sidebar,
  .hero-deals {
    display: none;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .nav-list {
    display: none;
  }

  .main-nav.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--nav-dark);
    padding: 1rem;
    z-index: 50;
  }

  .product-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid,
  .blog-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}