/* ===================================
   NOIR STORE - Premium Monochrome Design System
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* === Core Colors === */
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;

  --card: 0 0% 4%;
  --card-foreground: 0 0% 100%;

  --popover: 0 0% 4%;
  --popover-foreground: 0 0% 100%;

  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 0%;

  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 100%;

  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;

  --accent: 0 0% 20%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 0 0% 100%;

  --radius: 0px;

  /* === Custom Tokens === */
  --ghost-border: 0 0% 40%;
  --hover-bg: 0 0% 10%;
  --transition-fast: 0.2s;
  --transition-smooth: 0.4s;
}

/* ===================================
   Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

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

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 0;
}

body:not(.admin) {
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* ===================================
   Container
   =================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    padding: 0 4rem;
  }
}

/* ===================================
   Header / Navigation
   =================================== */

.header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  transition: all 0.3s;
  background: transparent;
  height: 4rem;
}

@media (min-width: 768px) {
  .header {
    height: 5rem;
  }
}

.header.scrolled {
  background: hsla(var(--background), 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header .container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}


.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsla(var(--foreground), 0.7);
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: hsl(var(--foreground));
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .search-btn {
    display: flex;
  }
}

.search-btn:hover {
  opacity: 0.6;
}

.nav-actions a {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-actions a:hover {
  opacity: 0.6;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.user-menu-btn:hover {
  opacity: 0.6;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.user-menu.active .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.user-menu-item:hover {
  background: hsl(var(--hover-bg));
}

.mobile-menu-toggle {
  position: relative;
  z-index: 50;
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.menu-line {
  height: 1px;
  width: 1.5rem;
  background: hsl(var(--foreground));
  transition: all 0.3s;
}

.mobile-menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsl(var(--background));
  transition: transform 0.4s;
  transform: translateX(100%);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .mobile-menu-overlay {
    display: none;
  }
}

.mobile-menu-nav {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu-nav a {
  font-size: 1.875rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  transition: all 0.3s;
  color: hsl(var(--foreground));
}

.mobile-menu-overlay.active .mobile-menu-nav a {
  opacity: 1;
  animation: fade-in 0.6s ease-out forwards;
}

.mobile-menu-nav a:hover {
  opacity: 0.6;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(var(--background), 0.8), hsla(var(--background), 0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 36rem;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 6rem;
  }
}

.hero p {
  margin-bottom: 2rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: hsla(var(--foreground), 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsla(var(--foreground), 0.5);
}

.scroll-indicator::after {
  content: '';
  height: 3rem;
  width: 1px;
  background: hsla(var(--foreground), 0.3);
  margin-top: 0.5rem;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-solid {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn-solid:hover {
  background: hsla(var(--foreground), 0.9);
}

.btn-ghost {
  border: 1px solid hsla(var(--foreground), 0.4);
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn-primary {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn-primary:hover {
  background: hsla(var(--foreground), 0.9);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* ===================================
   Product Grid
   =================================== */

.products-section {
  background: hsl(var(--card));
  padding: 5rem 0;
  margin-top: 0;
}

@media (min-width: 768px) {
  .products-section {
    padding: 8rem 0;
  }
}

@media (min-width: 768px) {
  .products-section {
    padding: 8rem 0;
  }
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header-flex {
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
}

.section-header-flex > div:first-child .section-title {
  margin-bottom: 1rem;
}

.section-header-flex > div:first-child {
  text-align: center;
}

.section-header-flex > div:first-child h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 768px) {
  .section-header-flex > div:first-child {
    text-align: left;
  }
  
  .section-header-flex > div:first-child h2 {
    font-size: 3rem;
  }
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  font-weight: 400;
}

.filter-btn:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.filter-btn.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    gap: 2rem;
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.7s;
  opacity: 0;
  transform: translateY(2.5rem);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: hsl(var(--card));
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

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

.product-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: hsl(var(--foreground));
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--background));
}

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  background: hsl(var(--foreground));
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--background));
  transition: transform 0.3s;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

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

.product-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-info > * {
  margin: 0;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.product-name {
  font-weight: 500;
  transition: opacity 0.2s;
}

.product-card:hover .product-name {
  opacity: 0.7;
}

.product-price {
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Categories Section
   =================================== */

.categories-section {
  padding: 5rem 0;
  margin-top: 0;
  background: hsl(var(--background));
}

@media (min-width: 768px) {
  .categories-section {
    padding: 8rem 0;
  }
}

.categories-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: hsl(var(--card));
  transition: all 0.5s;
  opacity: 0;
  transform: translateY(2.5rem);
}

.category-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: hsl(var(--card));
  transition: all 0.5s;
  opacity: 0;
  transform: translateY(2.5rem);
}

.category-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(var(--background), 0.8), transparent, transparent);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .category-info {
    padding: 2rem;
  }
}

.category-info .section-title {
  margin-bottom: 0.5rem;
}

.category-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 0;
}

@media (min-width: 768px) {
  .category-info h3 {
    font-size: 1.875rem;
  }
}

.category-line {
  margin-top: 1rem;
  height: 1px;
  width: 0;
  background: hsl(var(--foreground));
  transition: width 0.5s;
}

.category-card:hover .category-line {
  width: 100%;
}

/* ===================================
   Newsletter Section
   =================================== */

.newsletter-section {
  padding: 5rem 0;
  margin-top: 0;
  background: hsl(var(--background));
}

@media (min-width: 768px) {
  .newsletter-section {
    padding: 8rem 0;
  }
}

.newsletter-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  padding: 1rem 0;
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.newsletter-input:focus {
  border-bottom-color: hsl(var(--foreground));
  outline: none;
}

/* ===================================
   Footer
   =================================== */

.footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.footer-content {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    padding: 5rem 1.5rem;
  }
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 18rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-social a:hover {
  color: hsl(var(--foreground));
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-section a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom a:hover {
  color: hsl(var(--foreground));
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ===================================
   Forms
   =================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   Messages
   =================================== */

.message {
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid;
  font-weight: 500;
}

.message-success {
  background: hsla(120, 50%, 50%, 0.1);
  border-color: hsl(120, 50%, 50%);
  color: hsl(120, 50%, 70%);
}

.message-error {
  background: hsla(var(--destructive), 0.1);
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

/* ===================================
   Product Detail Page
   =================================== */

.product-detail {
  padding: 8rem 0 6rem;
  margin-top: 0;
  background: hsl(var(--background));
}

@media (min-width: 1024px) {
  .product-detail {
    padding: 10rem 0 8rem;
  }
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .product-detail-content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .product-detail-content {
    gap: 6rem;
  }
}

.product-gallery {
  position: relative;
  background: hsl(var(--card));
  width: 100%;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: hsl(var(--card));
  display: block;
  transition: opacity 0.4s ease;
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.product-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
  background: hsla(var(--muted-foreground), 0.3);
}

.product-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: hsl(var(--card));
  flex-shrink: 0;
  opacity: 0.7;
}

.product-thumbnail:hover {
  opacity: 1;
  border-color: hsla(var(--foreground), 0.5);
  transform: scale(1.05);
}

.product-thumbnail.active {
  opacity: 1;
  border-color: hsl(var(--foreground));
}

.product-info-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-info-detail h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}

@media (min-width: 768px) {
  .product-info-detail h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .product-info-detail h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
}

.product-price-large {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-price-large {
    font-size: 2.25rem;
  }
}

.product-price-large .compare-price {
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.5;
  color: hsl(var(--muted-foreground));
}

.product-description {
  margin: 0;
  line-height: 1.75;
  color: hsla(var(--foreground), 0.8);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .product-description {
    font-size: 1rem;
    line-height: 1.8;
  }
}

.product-info-section {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.size-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.size-selector label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsla(var(--foreground), 0.9);
  margin-bottom: 0.75rem;
}

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

.size-option {
  padding: 0.875rem 1.5rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

.size-option:hover:not(.disabled) {
  border-color: hsla(var(--foreground), 0.7);
  background: hsla(var(--foreground), 0.05);
}

.size-option.selected {
  border-color: hsl(var(--foreground));
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.size-option.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quantity-selector label {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsla(var(--foreground), 0.9);
}

.quantity-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  background: transparent;
  width: fit-content;
  transition: border-color 0.3s ease;
}

.quantity-input:focus-within {
  border-color: hsl(var(--foreground));
}

.quantity-input button {
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.quantity-input button:hover:not(:disabled) {
  background: hsla(var(--foreground), 0.1);
}

.quantity-input button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-input input {
  width: 70px;
  padding: 1rem 0.5rem;
  border: none;
  border-left: 1px solid hsl(var(--border));
  border-right: 1px solid hsl(var(--border));
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  color: hsl(var(--foreground));
  appearance: textfield;
  -moz-appearance: textfield;
}

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

.quantity-input input:focus {
  outline: none;
}

.add-to-cart-btn {
  margin-top: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--foreground));
}

.add-to-cart-btn:hover {
  background: hsla(var(--foreground), 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsla(var(--foreground), 0.2);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* ===================================
   Cart Page
   =================================== */

.cart-page {
  padding: 8rem 0 5rem;
  margin-top: 0;
}

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

.cart-item-image {
  width: 120px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: hsl(var(--card));
}

.cart-item-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cart-item-meta {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-summary {
  background: hsl(var(--card));
  padding: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-top: 2rem;
  border: 1px solid hsl(var(--border));
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.cart-summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--foreground));
  margin-top: 1rem;
}

/* ===================================
   Filters
   =================================== */

.filters {
  padding: 3rem 0;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.filters-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23ffffff" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

/* ===================================
   Animations
   =================================== */

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.4s ease-out forwards;
}

.animate-slide-out-right {
  animation: slide-out-right 0.4s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.4s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ===================================
   Scrollbar
   =================================== */

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

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

::-webkit-scrollbar-thumb {
  background: hsla(var(--muted-foreground), 0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--muted-foreground), 0.5);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .cart-item {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }
  
  .cart-item-price,
  .cart-item-quantity {
    grid-column: 2;
  }
  
  .product-detail {
    padding: 6rem 0 4rem;
  }
  
  .product-detail-content {
    gap: 2.5rem;
  }
  
  .product-info-detail {
    gap: 1.5rem;
  }
  
  .add-to-cart-form {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .product-thumbnail {
    width: 70px;
    height: 70px;
  }
}

/* Additional desktop improvements */
@media (min-width: 1024px) {
  .product-detail-content {
    max-width: 100%;
  }
  
  .product-gallery {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
  
  .product-info-detail {
    position: relative;
  }
}

@media (min-width: 1280px) {
  .product-detail-content {
    max-width: 100%;
  }
}
