/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark: #1c1c1e;
  --accent: #b5241f;
  --accent-hover: #8c1a16;
  --light: #f5f5f7;
  --white: #ffffff;
  --grey: #6e6e73;
  --border: #e0e0e0;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.cart-btn:hover {
  background: var(--accent-hover) !important;
}

.cart-count {
  background: var(--white);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 50%, #1a1a1a 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  position: absolute;
  inset: 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(181, 36, 31, 0.4);
}

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

.hero-image img {
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ===== CATEGORIES SECTION ===== */
.section {
  padding: 64px 24px;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--grey);
  margin-bottom: 48px;
  font-size: 1rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
  aspect-ratio: 3/4;
  background: var(--dark);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.category-card:hover img {
  opacity: 0.85;
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--white);
}

.category-label h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-label p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--light);
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.product-desc {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 12px;
  flex: 1;
}

.product-sizes {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.size-btn {
  border: 1px solid var(--border);
  background: none;
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.size-btn:hover,
.size-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(181, 36, 31, 0.05);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.product-price small {
  font-size: 0.78rem;
  color: var(--grey);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}

.add-to-cart {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.add-to-cart:hover {
  background: var(--accent);
  transform: scale(1.03);
}

.add-to-cart.added {
  background: #16a34a;
}

/* ===== CATEGORY PAGE HERO ===== */
.cat-hero {
  background: var(--dark);
  color: var(--white);
  padding: 48px 24px;
  display: flex;
  align-items: center;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
}

.cat-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.cat-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.cat-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 500px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey);
}

.breadcrumb a {
  color: var(--grey);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  color: var(--border);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 600;
}

.filter-btn {
  border: 1px solid var(--border);
  background: none;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(181, 36, 31, 0.05);
}

/* ===== CART PAGE ===== */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.cart-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--grey);
}

.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--dark);
}
.cart-empty p {
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cart-items {
  margin-bottom: 32px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cart-item-meta {
  font-size: 0.82rem;
  color: var(--grey);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.qty-num {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color 0.15s;
}

.remove-btn:hover {
  color: var(--accent);
}

.cart-summary {
  background: var(--light);
  border-radius: 12px;
  padding: 28px;
}

.cart-summary h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.summary-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 1rem;
}

/* ===== FEATURES STRIP ===== */
.features {
  background: var(--light);
  padding: 48px 24px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.feature-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.82rem;
  color: var(--grey);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--accent);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-nav {
    display: none;
  }
  .cat-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 64px 1fr;
  }
}
