/* ═══════════════════════════════════════════════════════════════
   ART-K3 STORE — Stylesheet
   Thời trang đường phố | artk3store.com
   Color Palette: Đỏ · Xanh · Đen · Trắng
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts Import ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --red: #e63946;
  --red-dark: #c1121f;
  --red-light: #ff6b7a;
  --red-glow: rgba(230, 57, 70, 0.4);

  --blue: #3a5ce4;
  --blue-dark: #2a46b8;
  --blue-light: #6b8cff;
  --blue-glow: rgba(58, 92, 228, 0.4);

  --black: #000000;
  --black-light: #0a0a0a;
  --black-card: #111111;
  --black-card-hover: #1a1a1a;
  --black-border: #222222;
  --black-border-light: #2a2a2a;

  --white: #ffffff;
  --white-dim: #e0e0e0;
  --white-muted: #999999;
  --white-faint: #666666;

  /* Surfaces */
  --surface-bg: #050505;
  --surface-header: rgba(10, 10, 10, 0.92);
  --surface-card: #111111;
  --surface-sidebar: #0c0c0c;
  --surface-modal: rgba(0, 0, 0, 0.85);
  --surface-glass: rgba(20, 20, 20, 0.7);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Bebas Neue', 'Inter', sans-serif;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;
  --gap-3xl: 64px;

  /* Sizes */
  --header-h: 70px;
  --sidebar-w: 260px;
  --max-w: 1400px;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --t-fast: 0.2s;
  --t-normal: 0.3s;
  --t-slow: 0.5s;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--surface-bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-smooth);
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-main);
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, select {
  font-family: var(--font-main);
  outline: none;
  border: none;
}

::selection {
  background: var(--red);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black-light);
}

::-webkit-scrollbar-thumb {
  background: var(--black-border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white-faint);
}

/* ── Preloader ──────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--gap-md);
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 104px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--black-border);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 3px;
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
  z-index: 1000;
  transition: transform var(--t-normal) var(--ease-smooth),
              box-shadow var(--t-normal) var(--ease-smooth);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-lg);
  gap: var(--gap-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
}

.logo-text .art {
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
}

.logo-text .k3 {
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue-glow);
}

/* Search */
.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 42px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 50px;
  padding: 0 44px 0 20px;
  color: var(--white);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease-smooth),
              box-shadow var(--t-fast) var(--ease-smooth);
}

.search-box input::placeholder {
  color: var(--white-faint);
}

.search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.search-box .search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  transition: color var(--t-fast), background var(--t-fast);
}

.search-box .search-btn:hover {
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  flex-shrink: 0;
}

.header-actions a,
.header-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  background: var(--black-card);
  border: 1px solid var(--black-border);
  transition: all var(--t-fast) var(--ease-smooth);
  position: relative;
  font-size: 18px;
}

.header-actions a:hover,
.header-actions button:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  box-shadow: 0 0 15px var(--red-glow);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
}

/* ── Announcement Bar ───────────────────────────────────────── */
.announcement-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  padding: 8px var(--gap-lg);
  text-align: center;
  z-index: 999;
  overflow: hidden;
}

.announcement-bar p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

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

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  margin-top: calc(var(--header-h) + 36px);
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s var(--ease-smooth);
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(230, 57, 70, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--gap-xl);
  max-width: 700px;
}

.hero-logo-large {
  width: 100px;
  height: 130px;
  margin: 0 auto var(--gap-lg);
  animation: heroLogoPulse 3s ease-in-out infinite;
}

@keyframes heroLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 15px var(--red-glow)); }
  50% { filter: drop-shadow(0 0 30px var(--red-glow)) drop-shadow(0 0 15px var(--blue-glow)); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 8px;
  line-height: 1.1;
  margin-bottom: var(--gap-md);
}

.hero-title .red { color: var(--red); }
.hero-title .blue { color: var(--blue); }

.hero-subtitle {
  font-size: 16px;
  color: var(--white-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--gap-xl);
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  transition: all var(--t-normal) var(--ease-smooth);
  box-shadow: 0 4px 20px var(--red-glow);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--red-glow);
  color: var(--white);
  background: linear-gradient(135deg, var(--red-light), var(--red));
}

/* ── Main Layout ────────────────────────────────────────────── */
.main-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-lg);
  display: flex;
  gap: var(--gap-xl);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 36px + var(--gap-xl));
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - 36px - var(--gap-2xl));
  overflow-y: auto;
}

.sidebar-section {
  background: var(--surface-card);
  border: 1px solid var(--black-border);
  border-radius: var(--card-radius);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-md);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.sidebar-title svg {
  color: var(--red);
}

/* Category Nav */
.category-group {
  margin-bottom: var(--gap-sm);
}

.category-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-smooth);
  color: var(--white-dim);
  user-select: none;
}

.category-parent:hover {
  background: var(--black-card-hover);
  color: var(--white);
}

.category-parent.active {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(58, 92, 228, 0.1));
  color: var(--red);
  border-left: 3px solid var(--red);
}

.category-parent .arrow {
  transition: transform var(--t-fast) var(--ease-smooth);
  font-size: 12px;
}

.category-parent.open .arrow {
  transform: rotate(180deg);
}

.category-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-normal) var(--ease-smooth);
}

.category-children.open {
  max-height: 500px;
}

.category-child {
  padding: 9px 14px 9px 28px;
  font-size: 13px;
  color: var(--white-muted);
  cursor: pointer;
  border-radius: var(--btn-radius);
  transition: all var(--t-fast) var(--ease-smooth);
  position: relative;
}

.category-child::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-faint);
  transition: background var(--t-fast);
}

.category-child:hover {
  background: var(--black-card-hover);
  color: var(--white);
  padding-left: 32px;
}

.category-child:hover::before {
  background: var(--red);
}

.category-child.active {
  color: var(--red);
  font-weight: 500;
}

.category-child.active::before {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Price Filter */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.price-option {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 8px 14px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  color: var(--white-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-smooth);
}

.price-option:hover {
  background: var(--black-card-hover);
  color: var(--white);
}

.price-option.active {
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
}

.price-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--black-border-light);
  border-radius: 50%;
  transition: all var(--t-fast);
  position: relative;
  flex-shrink: 0;
}

.price-option input[type="radio"]:checked {
  border-color: var(--red);
}

.price-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Products Section ───────────────────────────────────────── */
.products-section {
  flex: 1;
  min-width: 0;
}

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.products-count {
  font-size: 14px;
  color: var(--white-muted);
}

.products-count strong {
  color: var(--white);
  font-weight: 600;
}

.products-sort {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.products-sort label {
  font-size: 13px;
  color: var(--white-muted);
}

.products-sort select {
  background: var(--black-card);
  color: var(--white);
  border: 1px solid var(--black-border);
  border-radius: var(--btn-radius);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.products-sort select:focus {
  border-color: var(--red);
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--btn-radius);
  padding: 3px;
}

.view-toggle button {
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--white-muted);
  transition: all var(--t-fast);
}

.view-toggle button.active {
  background: var(--red);
  color: var(--white);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--black-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-smooth);
  position: relative;
  animation: cardFadeIn 0.5s var(--ease-smooth) forwards;
  opacity: 0;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  border-color: var(--black-border-light);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(230, 57, 70, 0.1);
}

/* Card Image */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--black-card);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-smooth);
}

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

/* Placeholder (khi chưa có ảnh) */
.product-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black-card) 0%, #1a1a1a 100%);
  color: var(--white-faint);
  gap: var(--gap-sm);
}

.product-image .placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.product-image .placeholder span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.3;
}

/* Badges */
.product-badges {
  position: absolute;
  top: var(--gap-sm);
  left: var(--gap-sm);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  z-index: 2;
}

.badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  width: fit-content;
}

.badge-new {
  background: var(--blue);
  color: var(--white);
}

.badge-sale {
  background: var(--red);
  color: var(--white);
}

/* Quick Buy Overlay */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gap-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  transform: translateY(100%);
  transition: transform var(--t-normal) var(--ease-smooth);
  display: flex;
  gap: var(--gap-sm);
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

.btn-quick {
  flex: 1;
  padding: 10px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  transition: all var(--t-fast) var(--ease-smooth);
}

.btn-quick-view {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-quick-view:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-quick-buy {
  background: var(--red);
  color: var(--white);
}

.btn-quick-buy:hover {
  background: var(--red-light);
  box-shadow: 0 4px 15px var(--red-glow);
}

/* Card Info */
.product-info {
  padding: var(--gap-md);
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--gap-xs);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}

.product-card:hover .product-name {
  color: var(--red);
}

.product-category-tag {
  font-size: 11px;
  color: var(--white-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--gap-sm);
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.price-current {
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
}

.price-original {
  font-size: 13px;
  color: var(--white-faint);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Sizes preview */
.product-sizes {
  display: flex;
  gap: 4px;
  margin-top: var(--gap-sm);
  flex-wrap: wrap;
}

.product-sizes span {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--black-border);
  border-radius: 4px;
  color: var(--white-muted);
  text-transform: uppercase;
}

/* ── No Products ────────────────────────────────────────────── */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--gap-3xl) var(--gap-xl);
  color: var(--white-muted);
}

.no-products svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--gap-md);
  opacity: 0.3;
}

.no-products h3 {
  font-size: 18px;
  margin-bottom: var(--gap-sm);
  color: var(--white-dim);
}

.no-products p {
  font-size: 14px;
}

/* ── Product Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-modal);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal) var(--ease-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--surface-card);
  border: 1px solid var(--black-border);
  border-radius: var(--card-radius);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal) var(--ease-smooth);
  overflow-y: auto;
  overflow-x: hidden;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  font-size: 20px;
  z-index: 10;
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  aspect-ratio: 1 / 1;
  background: var(--black-card);
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black-card) 0%, #1a1a1a 100%);
  color: var(--white-faint);
  gap: var(--gap-sm);
}

.modal-image .placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.modal-image .placeholder span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.3;
}

.modal-details {
  padding: var(--gap-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.modal-category {
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.modal-name {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.modal-price .price-current {
  font-size: 26px;
}

.modal-price .price-original {
  font-size: 16px;
}

.modal-description {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--black-border);
}

/* Size Selector */
.modal-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--gap-sm);
}

.size-options {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.size-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black-border);
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--white-muted);
  background: var(--black-card);
  padding: 0 12px;
  transition: all var(--t-fast) var(--ease-smooth);
}

.size-btn:hover {
  border-color: var(--white-faint);
  color: var(--white);
}

.size-btn.selected {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.15);
  color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

/* Color Options */
.color-options {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.color-tag {
  padding: 6px 14px;
  border: 1px solid var(--black-border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--white-muted);
  background: var(--black-card);
  cursor: pointer;
  transition: all var(--t-fast);
}

.color-tag:hover {
  border-color: var(--white-faint);
  color: var(--white);
}

.color-tag.selected {
  border-color: var(--blue);
  background: rgba(58, 92, 228, 0.15);
  color: var(--blue-light);
}

/* Buy Button */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  margin-top: var(--gap-md);
  transition: all var(--t-normal) var(--ease-smooth);
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
  background: linear-gradient(135deg, var(--red-light), var(--red));
}

.btn-buy svg {
  width: 20px;
  height: 20px;
}

.btn-shopee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ee4d2d, #d63a1e);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  transition: all var(--t-normal) var(--ease-smooth);
}

.btn-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 77, 45, 0.4);
  color: var(--white);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--black-border);
  padding: var(--gap-3xl) var(--gap-lg) var(--gap-xl);
  margin-top: var(--gap-3xl);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: var(--white-muted);
  line-height: 2;
  display: block;
}

.footer-col a:hover {
  color: var(--red);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  font-size: 18px;
  transition: all var(--t-fast);
  padding: 0;
}

.footer-social a:hover {
  padding-left: 0;
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: var(--gap-xl) auto 0;
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--white-faint);
}

.footer-bottom .payment-icons {
  display: flex;
  gap: var(--gap-sm);
  font-size: 12px;
  color: var(--white-faint);
}

/* ── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--gap-xl);
  right: var(--gap-xl);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--t-normal) var(--ease-smooth);
  box-shadow: 0 4px 20px var(--red-glow);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--red-glow);
}

/* ── Mobile Sidebar Overlay ─────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-normal), visibility var(--t-normal);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Toast Notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--gap-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-card);
  border: 1px solid var(--black-border);
  border-left: 4px solid var(--red);
  border-radius: var(--btn-radius);
  padding: var(--gap-md) var(--gap-lg);
  color: var(--white);
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all var(--t-normal) var(--ease-smooth);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

/* ── Mobile Filter Button ───────────────────────────────────── */
.mobile-filter-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 12px var(--gap-lg);
  background: var(--surface-card);
  border: 1px solid var(--black-border);
  border-radius: var(--btn-radius);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-bottom: var(--gap-md);
}

/* ── List View Styles ───────────────────────────────────────── */
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.products-grid.list-view .product-image {
  aspect-ratio: 1/1;
}

.products-grid.list-view .product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 var(--gap-md);
  }

  .search-box {
    max-width: 280px;
  }

  .sidebar {
    width: 220px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  /* Header Mobile */
  .search-box {
    display: none;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon .logo-square {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  .logo-icon .logo-letter {
    font-size: 22px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Announcement */
  .announcement-bar {
    top: 60px;
    padding: 6px var(--gap-md);
  }

  .announcement-bar p {
    font-size: 11px;
  }

  /* Hero Mobile */
  .hero {
    margin-top: calc(60px + 30px);
    height: 40vh;
    min-height: 280px;
  }

  .hero-logo-large {
    width: 70px;
    height: 91px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 12px;
  }

  /* Main Layout Mobile */
  .main-container {
    flex-direction: column;
    padding: var(--gap-md);
  }

  /* Sidebar Mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--surface-bg);
    z-index: 1600;
    padding: var(--gap-xl) var(--gap-md);
    transition: left var(--t-normal) var(--ease-smooth);
    overflow-y: auto;
    max-height: 100vh;
  }

  .sidebar.open {
    left: 0;
  }



  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-lg);
    padding-bottom: var(--gap-md);
    border-bottom: 1px solid var(--black-border);
  }

  .sidebar-close-btn span {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 3px;
  }

  .sidebar-close-btn button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-filter-btn {
    display: flex;
  }

  /* Mobile Search */
  .mobile-search {
    display: block;
    padding: var(--gap-md);
    background: var(--surface-bg);
  }

  .mobile-search input {
    width: 100%;
    height: 44px;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 50px;
    padding: 0 var(--gap-md);
    color: var(--white);
    font-size: 14px;
  }

  .mobile-search input:focus {
    border-color: var(--red);
  }

  /* Products Grid Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }

  .product-name {
    font-size: 12px;
  }

  .price-current {
    font-size: 14px;
  }

  .price-original {
    font-size: 11px;
  }

  .product-info {
    padding: var(--gap-sm);
  }

  .product-sizes {
    display: none;
  }

  .product-overlay {
    display: none;
  }

  .product-category-tag {
    font-size: 10px;
  }

  /* Toolbar Mobile */
  .products-toolbar {
    gap: var(--gap-sm);
  }

  .view-toggle {
    display: none;
  }

  /* Modal Mobile */
  .modal {
    width: 95%;
    max-height: 85vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

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

  .modal-details {
    padding: var(--gap-md);
  }

  .modal-name {
    font-size: 22px;
  }

  .modal-price .price-current {
    font-size: 22px;
  }

  /* Footer Mobile */
  .footer {
    padding: var(--gap-xl) var(--gap-md) var(--gap-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Back to top */
  .back-to-top {
    right: var(--gap-md);
    bottom: var(--gap-md);
    width: 40px;
    height: 40px;
  }

  /* List view override on mobile */
  .products-grid.list-view {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid.list-view .product-card {
    display: block;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .product-info {
    padding: var(--gap-xs) var(--gap-sm) var(--gap-sm);
  }

  .product-name {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }

  .price-current {
    font-size: 13px;
  }

  .header-actions a,
  .header-actions button {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* Desktop only */
@media (min-width: 769px) {
  .mobile-search {
    display: none;
  }

  .sidebar-close-btn {
    display: none;
  }
}

/* ── Floating Messenger Button ──────────────────────────────── */
.messenger-float {
  position: fixed;
  bottom: 96px;
  right: var(--gap-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
  transition: all var(--t-normal) var(--ease-smooth);
  animation: messengerPulse 2s infinite ease-in-out;
}

.messenger-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.6);
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.messenger-float svg {
  width: 24px;
  height: 24px;
}

@keyframes messengerPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 114, 255, 0.8), 0 0 0 10px rgba(0, 114, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .messenger-float {
    bottom: 80px;
    right: var(--gap-md);
    width: 40px;
    height: 40px;
  }
  .messenger-float svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Product Detail Modal Image Slider ───────────────────────── */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--t-normal) var(--ease-smooth);
}

.slider-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-card);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--t-fast);
  z-index: 5;
  font-size: 16px;
  user-select: none;
}

.slider-nav:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.slider-nav.prev {
  left: var(--gap-sm);
}

.slider-nav.next {
  right: var(--gap-sm);
}

.slider-counter {
  position: absolute;
  bottom: var(--gap-sm);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  letter-spacing: 1px;
}

/* ── Custom Social Icon Branding ────────────────────────────── */
/* Header Icons */
.social-header.shopee {
  color: #ff5722 !important;
  border-color: rgba(255, 87, 34, 0.2) !important;
  background: rgba(255, 87, 34, 0.05) !important;
}
.social-header.shopee:hover {
  border-color: #ff5722 !important;
  background: rgba(255, 87, 34, 0.15) !important;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.5) !important;
  transform: scale(1.08);
}

.social-header.tiktok {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  filter: drop-shadow(-1.5px -1.5px 0 #00f2fe) drop-shadow(1.5px 1.5px 0 #fe0979);
}
.social-header.tiktok:hover {
  border-color: #00f2fe !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
  transform: scale(1.08);
}

.social-header.facebook {
  color: #1877F2 !important;
  border-color: rgba(24, 119, 242, 0.2) !important;
  background: rgba(24, 119, 242, 0.05) !important;
}
.social-header.facebook:hover {
  border-color: #1877F2 !important;
  background: rgba(24, 119, 242, 0.15) !important;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.5) !important;
  transform: scale(1.08);
}

/* Footer Icons */
.social-footer {
  transition: all var(--t-fast) var(--ease-smooth);
}

.social-footer.facebook {
  color: #1877F2 !important;
  border-color: rgba(24, 119, 242, 0.3) !important;
  background: rgba(24, 119, 242, 0.05) !important;
}
.social-footer.facebook:hover {
  border-color: #1877F2 !important;
  background: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.6) !important;
  transform: translateY(-3px) scale(1.05);
}

.social-footer.shopee {
  color: #ff5722 !important;
  border-color: rgba(255, 87, 34, 0.3) !important;
  background: rgba(255, 87, 34, 0.05) !important;
}
.social-footer.shopee:hover {
  border-color: #ff5722 !important;
  background: #ff5722 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.6) !important;
  transform: translateY(-3px) scale(1.05);
}

.social-footer.tiktok {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  filter: drop-shadow(-1px -1px 0 #00f2fe) drop-shadow(1px 1px 0 #fe0979);
}
.social-footer.tiktok:hover {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-3px) scale(1.05);
  filter: none;
}

.social-footer.email {
  color: #ea4335 !important;
  border-color: rgba(234, 67, 53, 0.3) !important;
  background: rgba(234, 67, 53, 0.05) !important;
}
.social-footer.email:hover {
  border-color: #ea4335 !important;
  background: #ea4335 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(234, 67, 53, 0.6) !important;
  transform: translateY(-3px) scale(1.05);
}



