/* ==========================================
   19XX - Premium E-Commerce Design System
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-50: #f9f9f9;
  --grey-100: #f3f3f3;
  --grey-200: #e8e8e8;
  --grey-300: #d0d0d0;
  --grey-400: #a0a0a0;
  --grey-500: #707070;
  --grey-600: #505050;
  --red: #e53935;
  --green: #2e7d32;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font: 'Inter', -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;
  --bottom-nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-nav-h)
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none
}

input,
select,
textarea {
  font-family: var(--font)
}

ul,
ol {
  list-style: none
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px
}

.section {
  padding: 48px 0
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px
}

.section-link {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 500
}

.section-link:hover {
  color: var(--black)
}

.flex {
  display: flex
}

.flex-col {
  flex-direction: column
}

.items-center {
  align-items: center
}

.justify-between {
  justify-content: space-between
}

.gap-8 {
  gap: 8px
}

.gap-12 {
  gap: 12px
}

.gap-16 {
  gap: 16px
}

.gap-24 {
  gap: 24px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.text-center {
  text-align: center
}

.text-muted {
  color: var(--grey-400)
}

.text-red {
  color: var(--red)
}

.hidden {
  display: none !important
}

.mt-16 {
  margin-top: 16px
}

.mt-24 {
  margin-top: 24px
}

.mt-32 {
  margin-top: 32px
}

.mb-16 {
  margin-bottom: 16px
}

.mb-24 {
  margin-bottom: 24px
}

.divider {
  height: 1px;
  background: var(--grey-200);
  margin: 24px 0
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  height: var(--header-h)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--black)
}

.logo span {
  color: var(--grey-400)
}

.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative
}

.search-bar input {
  width: 100%;
  height: 40px;
  background: var(--grey-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 16px 0 40px;
  font-size: 14px;
  transition: var(--transition);
  outline: none
}

.search-bar input:focus {
  border-color: var(--black);
  background: var(--white)
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  pointer-events: none;
  font-size: 16px
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--black);
  font-size: 18px
}

.header-icon-btn:hover {
  background: var(--grey-100)
}

/* Hide wishlist + account icons from header on mobile (accessible via bottom nav) */
@media (max-width: 600px) {
  .header-icon-btn.hide-mobile {
    display: none
  }

  .search-bar {
    max-width: 100%
  }
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white)
}

/* Bottom Nav (Native App Style) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--grey-200);
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--grey-400);
  font-size: 10px;
  font-weight: 600;
  height: 100%;
  transition: transform 0.1s ease, color 0.1s ease;
  text-decoration: none;
}

.bottom-nav-item i {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.1s ease;
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-item.active {
  color: var(--black);
}

.bottom-nav-item.active i {
  font-weight: 900;
  /* Solid icon */
}

/* Banner Slider */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 12px 16px 8px;
  min-height: 180px;
  background: var(--grey-100)
}

.banner-track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

.banner-slide {
  flex: 0 0 100%;
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center
}

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  max-width: 60%
}

.banner-text-dark .banner-tag {
  color: var(--grey-600)
}

.banner-text-dark .banner-title {
  color: var(--black)
}

.banner-text-dark .banner-subtitle {
  color: var(--grey-600)
}

.banner-text-light .banner-tag {
  color: rgba(255, 255, 255, 0.8)
}

.banner-text-light .banner-title {
  color: var(--white)
}

.banner-text-light .banner-subtitle {
  color: rgba(255, 255, 255, 0.85)
}

.banner-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px
}

.banner-title {
  font-size: clamp(20px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 6px
}

.banner-subtitle {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: var(--transition)
}

.banner-btn-dark {
  background: var(--black);
  color: var(--white)
}

.banner-btn-dark:hover {
  background: var(--grey-600);
  transform: translateY(-1px)
}

.banner-btn-light {
  background: var(--white);
  color: var(--black)
}

.banner-btn-light:hover {
  background: var(--grey-100);
  transform: translateY(-1px)
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  flex-shrink: 0
}

.banner-dot.active {
  width: 18px;
  background: var(--black)
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--grey-200);
  font-size: 18px;
  line-height: 1
}

.banner-arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black)
}

.banner-prev {
  left: 10px
}

.banner-next {
  right: 10px
}

/* Categories */
.categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none
}

.categories-scroll::-webkit-scrollbar {
  display: none
}

.category-icon-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition)
}

.category-icon-item:hover {
  transform: translateY(-4px)
}

.category-icon-img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--grey-100);
  border: 2px solid var(--grey-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px
}

.category-icon-item.active .category-icon-img,
.category-icon-item:hover .category-icon-img {
  border-color: var(--black)
}

.category-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  text-align: center
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grey-100);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05)
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-badge.sale {
  background: var(--red);
}

.product-rating-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.product-rating-badge i {
  color: #2e7d32;
  font-size: 10px;
}

.product-rating-badge .rating-count {
  font-weight: 500;
  color: var(--grey-500);
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  color: var(--grey-500);
  border: none;
  z-index: 2;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: var(--red);
  background: #fff0f0;
  border-color: #fca5a5
}

.product-card-body {
  padding: 12px 4px 4px 4px;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.product-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.product-rating {
  display: none;
  /* Replaced by the image overlay badge */
}

.star {
  font-size: 12px;
  line-height: 1
}

.star-full {
  color: #f59e0b
}

.star-half {
  color: #f59e0b;
  opacity: 0.7
}

.star-empty {
  color: var(--grey-300)
}

.rating-count {
  font-size: 11px;
  color: var(--grey-400)
}

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-original {
  font-size: 13px;
  color: var(--grey-500);
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
}

.price-discount {
  display: none;
}

.product-card-footer {
  display: none;
}

/* Horizontal scroll products */
.products-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none
}

.products-scroll::-webkit-scrollbar {
  display: none
}

.products-scroll .product-card {
  flex: 0 0 180px
}

/* Collection Banner */
.collection-banner {
  margin: 0 16px;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative
}

.collection-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05)
}

.collection-content {
  position: relative;
  z-index: 1
}

.collection-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px
}

.collection-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px
}

.collection-subtitle {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 24px
}

.collection-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition)
}

.collection-btn:hover {
  background: var(--grey-200)
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font);
  border: none
}

.btn-primary {
  background: var(--black);
  color: var(--white)
}

.btn-primary:hover {
  background: var(--grey-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md)
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black)
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white)
}

.btn-outline {
  background: transparent;
  color: var(--grey-600);
  border: 1.5px solid var(--grey-300)
}

.btn-outline:hover {
  border-color: var(--black);
  color: var(--black)
}

.btn-danger {
  background: var(--red);
  color: var(--white)
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px
}

.btn-full {
  width: 100%
}

/* Forms */
.form-group {
  margin-bottom: 20px
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 8px
}

.form-input {
  width: 100%;
  height: 48px;
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-size: 14px;
  color: var(--black);
  transition: var(--transition);
  outline: none;
  font-family: var(--font)
}

.form-input:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06)
}

.form-input::placeholder {
  color: var(--grey-400)
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--black);
  transition: var(--transition);
  outline: none;
  resize: vertical;
  font-family: var(--font)
}

.form-textarea:focus {
  border-color: var(--black);
  background: var(--white)
}

.form-select {
  width: 100%;
  height: 48px;
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 0 40px 0 16px;
  font-size: 14px;
  color: var(--black);
  transition: var(--transition);
  outline: none;
  appearance: none;
  cursor: pointer;
  font-family: var(--font)
}

.form-select:focus {
  border-color: var(--black)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

/* Filter Sidebar */
.page-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start
}

.filter-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px)
}

.filter-section {
  margin-bottom: 28px
}

.filter-section:last-child {
  margin-bottom: 0
}

.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 10px
}

.filter-content {
  flex: 1
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
  cursor: pointer
}

.filter-option label {
  font-size: 13px;
  color: var(--grey-600);
  cursor: pointer
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.size-chip {
  height: 32px;
  min-width: 36px;
  padding: 0 10px;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font)
}

.size-chip:hover,
.size-chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black)
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  outline: 2px solid transparent;
  outline-offset: 2px
}

.color-swatch:hover,
.color-swatch.active {
  outline-color: var(--black)
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--black)
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 600
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  flex: 1
}

/* Product Detail */
.product-detail {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 32px 0
}

.product-gallery {
  flex: 0 0 420px
}

.gallery-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  margin-bottom: 12px;
  cursor: zoom-in
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.gallery-thumbs {
  display: flex;
  gap: 10px
}

.gallery-thumb {
  width: 68px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--grey-100);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition)
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--black)
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-info {
  flex: 1
}

.product-category-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 8px
}

.product-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap
}

.product-price-current {
  font-size: 28px;
  font-weight: 800
}

.product-price-original {
  font-size: 18px;
  color: var(--grey-400);
  text-decoration: line-through
}

.product-price-badge {
  background: #fee2e2;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full)
}

.product-desc {
  font-size: 14px;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 24px
}

.product-option-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-600);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px
}

.size-option {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  background: var(--white)
}

.size-option:hover,
.size-option.selected {
  background: var(--black);
  color: var(--white);
  border-color: var(--black)
}

.color-options {
  display: flex;
  gap: 10px;
  margin-bottom: 28px
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  outline: 2px solid transparent;
  outline-offset: 3px
}

.color-option:hover,
.color-option.selected {
  outline-color: var(--black)
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 28px
}

.stock-badge.in-stock {
  background: #dcfce7;
  color: var(--green)
}

.stock-badge.out-stock {
  background: #fee2e2;
  color: var(--red)
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center
}

.btn-cart {
  flex: 1;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--black);
  color: var(--black);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font)
}

.btn-cart:hover {
  background: var(--black);
  color: var(--white)
}

.btn-buy {
  flex: 1;
  height: 52px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font);
  border: none
}

.btn-buy:hover {
  background: var(--grey-600)
}

.btn-wishlist-detail {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--grey-400);
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--white);
  cursor: pointer
}

.btn-wishlist-detail:hover,
.btn-wishlist-detail.active {
  color: var(--red);
  border-color: var(--red);
  background: #fff0f0
}

/* Cart */
.cart-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0
}

.cart-items {
  flex: 1
}

.cart-summary {
  width: 320px;
  flex-shrink: 0;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 16px)
}

.cart-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px
}

.cart-item-img {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--grey-100);
  flex-shrink: 0
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cart-item-info {
  flex: 1
}

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px
}

.cart-item-meta {
  font-size: 12px;
  color: var(--grey-400);
  margin-bottom: 12px
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: fit-content
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font)
}

.qty-btn:hover {
  background: var(--grey-100)
}

.qty-display {
  width: 36px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center
}

.cart-item-price {
  font-size: 16px;
  font-weight: 800
}

.cart-item-remove {
  color: var(--grey-400);
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  background: none;
  border: none;
  font-family: var(--font)
}

.cart-item-remove:hover {
  color: var(--red)
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  border-top: 1.5px solid var(--grey-200);
  padding-top: 16px;
  margin-top: 8px
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--grey-400)
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 24px
}

/* Checkout */
.checkout-layout {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  align-items: flex-start
}

.checkout-form {
  flex: 1
}

.checkout-summary {
  width: 320px;
  flex-shrink: 0;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 16px)
}

.checkout-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-200)
}

.checkout-item:last-child {
  border-bottom: none
}

.checkout-item-img {
  width: 56px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--grey-100);
  flex-shrink: 0
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Account */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0;
  align-items: flex-start
}

.account-sidebar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden
}

.account-avatar {
  background: var(--black);
  padding: 32px;
  text-align: center
}

.avatar-circle {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 12px
}

.avatar-name {
  color: var(--white);
  font-weight: 700;
  font-size: 16px
}

.avatar-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 2px
}

.account-menu {
  padding: 12px 0
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-600);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none
}

.account-menu-item:hover,
.account-menu-item.active {
  color: var(--black);
  background: var(--grey-50)
}

.account-menu-item.active {
  font-weight: 700;
  border-right: 3px solid var(--black)
}

.account-content {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 28px
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition)
}

.auth-tab.active {
  color: var(--black);
  border-bottom-color: var(--black)
}

/* Orders */
.orders-table {
  width: 100%;
  border-collapse: collapse
}

.orders-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-400);
  border-bottom: 1.5px solid var(--grey-200)
}

.orders-table td {
  padding: 16px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
  vertical-align: middle
}

.orders-table tr:last-child td {
  border-bottom: none
}

.order-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full)
}

.status-pending {
  background: #fef3c7;
  color: #92400e
}

.status-processing {
  background: #dbeafe;
  color: #1e40af
}

.status-shipped {
  background: #ede9fe;
  color: #5b21b6
}

.status-delivered {
  background: #dcfce7;
  color: #166534
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  transition: var(--transition);
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media(min-width: 768px) {
  .orders-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--grey-400)
}

.breadcrumb a {
  color: var(--grey-400);
  transition: var(--transition)
}

.breadcrumb a:hover {
  color: var(--black)
}

/* Wishlist Card specific styles */
.wishlist-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.wishlist-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--white);
  padding: 16px;
}

.wishlist-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.wishlist-options-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--grey-400);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.wishlist-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wishlist-card-body .product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.wishlist-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wishlist-discount {
  color: #2e7d32;
  font-weight: 700;
  font-size: 13px;
}

.wishlist-price-original {
  color: var(--grey-400);
  text-decoration: line-through;
  font-size: 13px;
}

.wishlist-price-current {
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
}

.wishlist-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.wishlist-rating .star {
  color: #2e7d32;
  font-size: 12px;
}

.wishlist-card-footer {
  border-top: 1px solid var(--grey-200);
}

.wishlist-btn-add {
  width: 100%;
  background: var(--white);
  color: #1976d2;
  border: none;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.wishlist-btn-add:hover {
  background: var(--grey-50);
}

/* Page Layouts */
.cart-layout {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  align-items: flex-start
}

.cart-items {
  flex: 1;
  min-width: 0
}

.cart-summary {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px
}

.checkout-layout {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  align-items: flex-start
}

.checkout-form {
  flex: 1;
  min-width: 0
}

.checkout-summary {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px
}

.checkout-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-100)
}

.checkout-item-img {
  width: 60px;
  height: 75px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  overflow: hidden;
  flex-shrink: 0
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: flex-start
}

.account-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white)
}

.account-avatar {
  padding: 24px;
  border-bottom: 1px solid var(--grey-100)
}

.avatar-circle {
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px
}

.avatar-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px
}

.avatar-email {
  font-size: 12px;
  color: var(--grey-400)
}

.account-menu {
  padding: 8px 0
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-600);
  transition: var(--transition)
}

.account-menu-item:hover {
  background: var(--grey-50);
  color: var(--black)
}

.account-menu-item.active {
  background: var(--grey-50);
  color: var(--black);
  font-weight: 700
}

.account-content {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--grey-100)
}

.summary-row:last-of-type {
  border-bottom: none
}

.summary-row.total {
  font-weight: 700;
  font-size: 16px;
  padding-top: 12px
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-100)
}

.cart-item-img {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--grey-100);
  overflow: hidden;
  flex-shrink: 0
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black)
}

.cart-item-meta {
  font-size: 12px;
  color: var(--grey-400)
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700
}

.cart-item-remove {
  font-size: 12px;
  color: var(--grey-400);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  transition: color 0.2s
}

.cart-item-remove:hover {
  color: var(--red)
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: fit-content
}

.qty-btn {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 20px;
  text-align: center
}

.qty-display {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: center
}

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase
}

.status-pending {
  background: #fef3c7;
  color: #92400e
}

.status-processing {
  background: #dbeafe;
  color: #1e40af
}

.status-shipped {
  background: #e0f2fe;
  color: #0369a1
}

.status-delivered {
  background: #dcfce7;
  color: #166534
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 8px
}

.breadcrumb a {
  color: var(--grey-400)
}

.breadcrumb a:hover {
  color: var(--black)
}

.breadcrumb-sep {
  color: var(--grey-300)
}

.empty-state {
  text-align: center;
  padding: 80px 0
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--grey-300)
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px
}

.empty-state p {
  color: var(--grey-400);
  font-size: 14px
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 260px
}

.toast.success {
  background: var(--green)
}

.toast.error {
  background: var(--red)
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

/* Page Hero */
.page-hero {
  background: var(--grey-50);
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 32px
}

.page-hero-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px
}

.page-hero-sub {
  font-size: 14px;
  color: var(--grey-400);
  margin-top: 4px
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca
}

/* Reviews */
.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-100)
}

.review-card:last-child {
  border-bottom: none
}

.reviewer-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px
}

.review-date {
  font-size: 12px;
  color: var(--grey-400)
}

.review-text {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
  margin-top: 8px
}

.section-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px
}

.section-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px
}

/* Filter chip bar */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none
}

.filter-bar::-webkit-scrollbar {
  display: none
}

.filter-chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  white-space: nowrap;
  font-family: var(--font)
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black)
}

/* Wishlist */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px
}

/* App Style Category Layout */
html:has(.app-category-layout),
body:has(.app-category-layout) {
  height: 100%;
  overflow: hidden;
  /* Prevent body scroll entirely for native feel */
}

.app-category-layout {
  display: flex;
  height: calc(100vh - var(--header-h) - var(--bottom-nav-h) - env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--grey-200);
}

.app-category-nav {
  width: 85px;
  background: var(--grey-50);
  border-right: 1px solid var(--grey-200);
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 24px;
}

.app-category-nav::-webkit-scrollbar {
  display: none;
}

.app-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 8px;
  border-left: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.app-category-item.active {
  background: var(--white);
  border-left-color: var(--black);
}

.app-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey-200);
  flex-shrink: 0;
}

.app-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-category-name {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--grey-600);
  line-height: 1.2;
}

.app-category-item.active .app-category-name {
  color: var(--black);
  font-weight: 700;
}

.app-category-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--white);
}

.app-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.app-category-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.app-category-count {
  font-size: 11px;
  color: var(--grey-400);
  font-weight: 500;
}

.app-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: var(--grey-500);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--grey-100);
  color: var(--black);
}

.modal-body {
  padding: 24px;
}

/* Responsive */
@media(max-width:1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr)
  }

  .product-detail {
    flex-direction: column
  }

  .product-gallery {
    flex: none;
    width: 100%
  }
}

@media(max-width:768px) {
  .container {
    padding: 0 12px
  }

  .search-bar {
    flex: 1
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .section {
    padding: 32px 0
  }

  .banner-slider {
    margin: 8px;
    aspect-ratio: 4/3
  }

  .banner-content {
    padding: 24px 20px
  }

  .banner-title {
    font-size: 24px
  }

  .collection-banner {
    margin: 0 8px;
    padding: 28px 24px
  }

  .page-layout {
    flex-direction: column
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    display: none
  }

  .filter-sidebar.open {
    display: block
  }

  .products-scroll .product-card {
    flex: 0 0 150px
  }

  .product-detail {
    gap: 24px
  }

  .cart-layout {
    flex-direction: column
  }

  .cart-summary {
    width: 100%;
    position: static
  }

  .checkout-layout {
    flex-direction: column
  }

  .checkout-summary {
    width: 100%;
    position: static
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-actions {
    flex-wrap: wrap
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 16px
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: auto;
  }

  .modal-overlay {
    align-items: flex-end;
  }
}

@media(min-width:769px) {
  .bottom-nav {
    display: none
  }
}