:root {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-alt: #e2e8f0;
  --bg-dark: #0f172a;
  --bg-footer: #0b1120;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #475569;
  --text-white: #ffffff;
  --text-footer: rgba(255, 255, 255, 0.4);
  --border: rgba(226, 232, 240, 0.9);
  --border-light: rgba(100, 116, 139, 0.25);
  --gold: #6366f1;
  --gold-hover: #4f46e5;
  --gold-soft: #818cf8;
  --red: #ef4444;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(226, 232, 240, 0.9);
  --hero-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.55));
  --page-hero-bg: #0f172a;
  --about-bg: #0f172a;
  --btn-primary-bg: #6366f1;
  --btn-primary-border: #6366f1;
  --btn-primary-hover: #4f46e5;
  --placeholder-bg: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  --placeholder-text: #94a3b8;
  --input-bg: #ffffff;
  --input-border: rgba(100, 116, 139, 0.25);
  --input-focus: #6366f1;
  --qty-hover: #f1f5f9;
  --size-border: rgba(100, 116, 139, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
  --product-img-bg: #eef2f7;
  --toast-bg: #1e293b;
  --toast-text: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-card: #1e293b;
  --bg-alt: #0f172a;
  --bg-dark: #0b1120;
  --bg-footer: #060a14;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #f1f5f9;
  --text-footer: rgba(255, 255, 255, 0.3);
  --border: rgba(51, 65, 85, 0.6);
  --border-light: rgba(148, 163, 184, 0.25);
  --gold: #818cf8;
  --gold-hover: #a5b4fc;
  --gold-soft: #818cf8;
  --red: #f87171;
  --nav-bg: rgba(11, 17, 32, 0.85);
  --nav-border: rgba(51, 65, 85, 0.6);
  --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  --page-hero-bg: #0b1120;
  --about-bg: #0b1120;
  --btn-primary-bg: #6366f1;
  --btn-primary-border: #6366f1;
  --btn-primary-hover: #4f46e5;
  --placeholder-bg: linear-gradient(135deg, #0f172a, #1e293b);
  --placeholder-text: #64748b;
  --input-bg: #1e293b;
  --input-border: rgba(148, 163, 184, 0.25);
  --input-focus: #818cf8;
  --qty-hover: #334155;
  --size-border: rgba(148, 163, 184, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.4);
  --product-img-bg: #16213e;
  --toast-bg: #f1f5f9;
  --toast-text: #0b1120;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text);
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .hero h1, .page-hero h1, .detail-info h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  opacity: 0.75;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem;
  transition: color 0.3s;
  opacity: 0.6;
  line-height: 1;
}

.theme-toggle:hover {
  opacity: 1;
  color: var(--gold);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  opacity: 0.7;
}

.hamburger:hover {
  opacity: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--page-hero-bg);
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.6rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  box-shadow: var(--shadow-hover);
}

.section-title {
  font-size: 2.1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.products {
  padding: 5rem 5%;
  text-align: center;
  background: var(--bg);
  transition: background 0.3s ease;
}

.products-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  flex: 1 1 300px;
  max-width: 340px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-short {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.add-to-cart {
  margin: 0 1.2rem 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--btn-primary-bg);
  color: var(--text-white);
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.3s, box-shadow 0.3s;
}

.add-to-cart:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.product-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--product-img-bg);
}

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

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

.product-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 100%;
}

.product-img-grid > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--product-img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.play-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  pointer-events: none;
  transition: background 0.3s, transform 0.3s;
}

.product-video-thumb:hover .play-icon {
  background: var(--gold);
  transform: scale(1.1);
}

.product-card h3 {
  margin: 1rem 1.2rem 0.2rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.product-card p:not(.product-short) {
  margin: 0 1.2rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.product-card .discount-badge,
.detail-info .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  padding: 0.3rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--placeholder-text);
  background: var(--placeholder-bg);
  font-family: 'Inter', sans-serif;
}

.product-info {
  padding: 0.8rem 1.2rem 0.3rem;
}

.product-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.product-for {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-info p {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.sale {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.page-hero {
  padding: 8rem 5% 3rem;
  text-align: center;
  background: var(--page-hero-bg);
  color: #fff;
  transition: background 0.3s ease;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.back-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
  opacity: 0.8;
}

.back-link:hover {
  opacity: 1;
}

.categories {
  padding: 4rem 5%;
  background: var(--bg);
  transition: background 0.3s ease;
}

.categories-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  flex: 1 1 300px;
  max-width: 340px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s ease, background 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.category-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.category-card h3 {
  margin: 1rem 1.2rem 0.4rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.category-card p {
  margin: 0 1.2rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.product-listing {
  padding: 3rem 5% 5rem;
  background: var(--bg);
  transition: background 0.3s ease;
}

.product-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail {
  padding: 8rem 5% 5rem;
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.3s ease;
}

.detail-container {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-layout {
  display: flex;
  gap: 3rem;
  align-items: start;
  flex-wrap: wrap;
}

.detail-gallery {
  flex: 1 1 480px;
  max-width: 560px;
}

.detail-gallery {
  touch-action: pan-y;
}

.main-image img.img-swap {
  animation: imgFade 0.3s ease;
}

@keyframes imgFade {
  from { opacity: 0.3; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--product-img-bg);
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}

.main-image img,
.main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
}

.main-image video {
  object-fit: contain;
  background: #000;
}

.thumbnails {
  display: flex;
  gap: 0.6rem;
}

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: opacity 0.3s, border-color 0.3s;
}

.thumb:hover {
  opacity: 0.85;
}

.thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.thumb-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--product-img-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.thumb-play-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  pointer-events: none;
}

.thumb-video.active {
  opacity: 1;
  border-color: var(--gold);
}

.thumb-video.active .thumb-play-icon {
  background: var(--gold);
}

.detail-info {
  flex: 1 1 360px;
  position: relative;
}

.detail-info .discount-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}

.detail-info h1 {
  font-size: 2.1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.detail-info .product-for {
  font-size: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: 0.8px;
}

.detail-info .price {
  margin-bottom: 0.5rem;
}

.detail-info .price .sale {
  font-size: 1.5rem;
  color: var(--gold);
}

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  margin: 1.2rem 0;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  transition: color 0.3s ease;
}

.feature-icon {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.size-selector {
  margin-bottom: 1rem;
}

.size-selector label,
.quantity-selector label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.size-options {
  display: flex;
  gap: 0.5rem;
}

.size-option {
  padding: 0.45rem 1rem;
  border: 1px solid var(--size-border);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
  color: var(--text-muted);
  background: transparent;
  position: relative;
}

.size-option:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.size-option.active {
  border-color: var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.stock-status {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  opacity: 0.6;
}

.size-option[data-stock="out"] .stock-status {
  color: var(--text-muted);
}

.size-option[data-stock="out"].active .stock-status {
  color: rgba(255, 255, 255, 0.5);
}

.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: fit-content;
  overflow: hidden;
}

.qty-btn {
  padding: 0.4rem 0.9rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}

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

.quantity-controls input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text);
  -moz-appearance: textfield;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.detail-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.detail-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.85rem 1rem;
  text-align: center;
  white-space: nowrap;
}

.btn-locate {
  display: block;
  margin-top: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--btn-primary-bg);
  background: transparent;
  border: 1px dashed var(--btn-primary-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-locate:hover:not(:disabled) {
  background: var(--btn-primary-bg);
  color: #fff;
  border-color: var(--btn-primary-bg);
}

.btn-locate:disabled {
  opacity: 0.6;
  cursor: default;
}

.locate-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--text-white);
  border: 1px solid var(--btn-primary-border);
}

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

.btn-buy {
  padding: 0.7rem 1.5rem;
  background: var(--gold);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-buy:hover {
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.gallery {
  padding: 5rem 5%;
  text-align: center;
  background: var(--bg-card);
  transition: background 0.3s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.about {
  padding: 5rem 5%;
  text-align: center;
  background-color: var(--about-bg);
  background-image: var(--hero-overlay), url('images/BG (4).jpeg');
  background-size: cover;
  background-position: center;
  color: #fff;
  transition: background-color 0.3s ease;
}

.about .section-title {
  color: #fff;
}

.about-content {
  max-width: 620px;
  margin: 0 auto;
}

.about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 400;
}

.contact {
  padding: 5rem 5%;
  text-align: center;
  background: var(--bg);
  transition: background 0.3s ease;
}

.contact form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--input-border);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--input-bg);
  color: var(--text);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact .btn {
  background: var(--btn-primary-bg);
  color: var(--text-white);
  border: 1px solid var(--btn-primary-border);
  align-self: center;
  padding: 0.85rem 3rem;
}

.contact .btn:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

footer {
  background-color: var(--bg-footer);
  background-image: var(--hero-overlay), url('images/BG (5).jpeg');
  background-size: cover;
  background-position: center;
  color: var(--text-footer);
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-brand p {
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-links h4,
.footer-contact h4 {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-footer);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-contact a {
  color: var(--text-footer);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-footer);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.footer-social a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.hero h1.fade-up { animation-delay: 0.2s; }
.hero p.fade-up { animation-delay: 0.4s; }
.hero .btn.fade-up { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 5%;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--nav-border);
    gap: 0.8rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hamburger {
    display: block;
  }

  .hero {
    background-attachment: scroll;
    min-height: 85vh;
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .products-grid,
  .categories-grid,
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .product-card,
  .category-card {
    max-width: 100%;
    width: 100%;
  }

  .product-img-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .product-img {
    height: 200px;
  }

  .page-hero {
    padding: 6rem 5% 2rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p {
    font-size: 0.85rem;
  }

  .detail-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .detail-gallery {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .main-image {
    aspect-ratio: 4 / 3;
  }

  .thumb {
    width: 55px;
    height: 55px;
  }

  .thumb-video {
    width: 55px;
    height: 55px;
  }

  .main-image {
    aspect-ratio: 4 / 3;
  }

  .detail-info h1 {
    font-size: 1.5rem;
  }

  .detail-info .price .sale {
    font-size: 1.3rem;
  }

  .detail-desc {
    font-size: 0.85rem;
  }

  .size-options {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .size-option {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    flex: 1;
    text-align: center;
    min-width: 72px;
  }

  .gallery {
    padding: 3.5rem 5%;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }

  .about {
    padding: 3.5rem 5%;
  }

  .about p {
    font-size: 0.85rem;
  }

  .contact {
    padding: 3.5rem 5%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.8rem;
    padding: 2.5rem 5%;
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .product-listing {
    padding: 1.5rem 5% 3rem;
  }

  .categories {
    padding: 2rem 5% 3rem;
  }
}

.checkout {
  padding: 8rem 5% 5rem;
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.3s ease;
}

.checkout-container {
  max-width: 640px;
  margin: 0 auto;
}

.checkout-container .back-link {
  margin-bottom: 1rem;
}

.checkout-items {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--product-img-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.checkout-item-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.checkout-item-subtotal {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.checkout-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkout-empty a {
  color: var(--gold);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--input-border);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--input-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.checkout-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.checkout-total-bar span {
  font-size: 1.1rem;
  color: var(--text);
}

.checkout-total-bar strong {
  color: var(--gold);
  font-weight: 700;
}

.checkout-total-bar .btn {
  padding: 0.8rem 2.5rem;
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-size: 0.85rem;
}

.checkout-total-bar .btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.verify-box {
  text-align: center;
  padding: 3rem 2rem;
}

.verify-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.verify-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.verify-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.verify-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.code-inputs {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.code-input {
  width: 56px;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.code-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.verify-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.verify-box .btn {
  padding: 0.8rem 3rem;
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-size: 0.85rem;
}

.verify-box .btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.verify-resend {
  margin-top: 1.2rem;
  font-size: 0.8rem;
}

.verify-resend a {
  color: var(--gold);
  text-decoration: none;
}

.verify-whatsapp-link {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.verify-whatsapp-link a {
  color: var(--gold);
  text-decoration: none;
}

.success-box {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.success-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.success-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.order-details {
  text-align: left;
  background: var(--bg-alt);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.order-details p {
  margin-bottom: 0.3rem;
  color: var(--text);
}

.order-details strong {
  color: var(--text);
}

.success-box .btn {
  padding: 0.8rem 2.5rem;
}

@media (max-width: 768px) {
  .checkout {
    padding: 6rem 5% 3rem;
  }

  .checkout-item {
    flex-wrap: wrap;
  }

  .checkout-total-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .code-input {
    width: 48px;
    height: 56px;
    font-size: 1.3rem;
  }
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg, var(--shadow-hover));
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  border-radius: var(--radius-sm);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-hover);
}

.cart-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  position: relative;
  padding: 0.3rem;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
  line-height: 1;
}

.cart-btn:hover {
  opacity: 1;
  color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s;
  line-height: 1;
}

.cart-close:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 3rem 0;
}

.cart-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--product-img-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
  transition: color 0.3s ease;
}

.cart-item-size {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.1rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: var(--qty-hover);
}

.cart-item-qty span {
  font-size: 0.8rem;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.2rem;
  transition: color 0.3s;
  line-height: 1;
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s ease;
}

#cartTotal {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-footer .btn {
  width: 100%;
  text-align: center;
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  padding: 0.8rem;
  font-size: 0.85rem;
}

.cart-footer .btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .cart-drawer {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.8rem;
  }

  .product-img {
    height: 180px;
  }

  .add-to-cart {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.4rem;
  }

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

  .thumb {
    width: 42px;
    height: 42px;
  }

  .size-option {
    min-width: 56px;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
}
