/* ==================== VARIABLES ==================== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --accent: #111111;
  --header-height: 100px;
  --logo-mobile: 150px;
  --logo-tablet: 200px;
  --logo-desktop: 280px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== UTILITY CLASSES ==================== */
.desktop-only {
  display: none;
}

.mobile-only {
  display: flex;
}

/* ==================== LAYOUT ==================== */
.page {
  padding: calc(var(--header-height) + 24px) 16px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  z-index: 101;
  transition: all 0.3s ease;
}

.logo img {
  height: var(--logo-mobile);
  width: auto;
  max-width: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
}

.hamburger {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
  padding: 12px;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover span {
  width: 28px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 101;
}

.header-icon {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.header-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.header-icon:active {
  transform: translateY(0);
}

.cart-icon .cart-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--text);
  color: white;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 6px;
  border: 2px solid white;
}

/* ==================== MENU OVERLAY ==================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 110;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(40px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu.animated .menu-link {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu.animated .menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.animated .menu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.animated .menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.animated .menu-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.animated .menu-link:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.animated .menu-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

.mobile-menu__content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  opacity: 0;
}

.menu-link:hover {
  background: rgba(0, 0, 0, 0.03);
  padding-right: 20px;
}

.menu-link:active {
  transform: scale(0.98);
}

.menu-link svg {
  opacity: 0.3;
  transition: all 0.2s ease;
}

.menu-link:hover svg {
  opacity: 1;
  transform: translateX(-4px);
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-info {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--text);
  color: white;
  transform: translateY(-2px);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--text);
  color: white;
  transform: translateY(-2px);
}

.btn.text {
  background: transparent;
  color: var(--text);
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn.text:hover {
  border-bottom-color: var(--text);
  transform: none;
}

.btn.black {
  background: var(--text);
  color: white;
}

.btn.black:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==================== HERO SECTION ==================== */
.hero {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__content > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.hero__media {
  position: relative;
}

.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card:hover img {
  transform: scale(1.05);
}

/* ==================== COLLECTION SECTION ==================== */
.collection {
  margin-bottom: var(--spacing-xl);
}

.collection header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.collection h2 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.collection header a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.collection header a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.product-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.product-card:hover .product-card__media {
  box-shadow: var(--shadow-md);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__media img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 500;
}

.product-card__info > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.price {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

/* ==================== ATELIER SECTION ==================== */
.atelier {
  display: grid;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) var(--spacing-md);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.atelier h2 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
}

.atelier > div:first-child p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.atelier ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.atelier li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.atelier li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.atelier__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
}

.atelier__stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.atelier__stats > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.atelier__stats strong {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
}

.atelier__stats span {
  font-size: 13px;
  color: var(--muted);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

.filter-chip.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* ==================== PRODUCT VIEW PAGE ==================== */
.product-page {
  padding-top: calc(var(--header-height) + 40px);
}

.product-view {
  display: grid;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.gallery__thumbs img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.gallery__thumbs img:hover {
  border-color: var(--text);
  transform: scale(1.05);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-details h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.product-details > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.options label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.color-swatches {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.active {
  border-color: var(--text);
  border-width: 3px;
}

.swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.measure-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-md);
}

.measure-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.measure-grid {
  display: grid;
  gap: var(--spacing-md);
}

.measure-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.measure-grid input,
.measure-grid textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  transition: all 0.2s ease;
  font-size: 15px;
}

.measure-grid input:focus,
.measure-grid textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.measure-grid textarea {
  resize: vertical;
  min-height: 80px;
}

/* ==================== AUTH PAGE ==================== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}

.auth-card {
  width: 100%;
  max-width: 450px;
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-card > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.auth-form,
.otp-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.otp-form {
  display: none;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
}

.auth-form label,
.otp-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.auth-form input,
.otp-form input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all 0.2s ease;
}

.auth-form input:focus,
.otp-form input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.auth-form .btn,
.otp-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* ==================== CART PAGE ==================== */
.cart {
  max-width: 900px;
  margin: 0 auto;
}

.cart h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  transition: all 0.2s ease;
}

.cart-item:hover {
  box-shadow: var(--shadow-md);
}

.cart-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--spacing-md);
}

.cart-item__actions > span {
  font-size: 18px;
  font-weight: 700;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.qty button:active {
  transform: scale(0.95);
}

.qty span {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.remove-btn:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.cart-summary {
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.cart-summary__row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.cart-summary__row.total {
  font-size: 20px;
  font-weight: 700;
  padding-top: var(--spacing-md);
}

.cart-summary__row span:first-child {
  font-size: 15px;
  color: var(--muted);
}

.cart-summary__row span:last-child {
  font-size: 16px;
  font-weight: 600;
}

.cart-summary .btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--text);
  color: white;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.footer-grid {
  display: grid;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section li a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-newsletter {
  display: flex;
  gap: 12px;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  transition: all 0.2s ease;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
  padding: 12px 24px;
  background: white;
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-newsletter button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: var(--spacing-md);
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: white;
  color: var(--text);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 768px) {
  .page {
    padding: calc(var(--header-height) + 40px) 32px 60px;
  }

  .logo img {
    height: var(--logo-tablet);
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }

  .atelier {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .product-view {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .cart-item {
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
  }

  .cart-item__image {
    width: 120px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f5f5f5;
  }

  .cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }

  .measure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */
@media (min-width: 1024px) {
  .page {
    padding: calc(var(--header-height) + 60px) 40px 80px;
  }

  .logo img {
    height: var(--logo-desktop);
  }

  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none;
  }

  /* نمایش منو در دسکتاپ */
  .hamburger {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .hero__content > p {
    font-size: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .measure-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cart-item__image {
    width: 140px;
    height: 180px;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    gap: 80px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card,
.cart-item,
.atelier__stats > div {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .header-icon,
  .mobile-menu,
  .menu-overlay,
  .btn {
    display: none !important;
  }

  .page {
    padding: 20px;
  }

  * {
    background: white !important;
    color: black !important;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* ==================== LOADING STATES ==================== */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  text-align: center;
  min-height: 400px;
}

.empty-state svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
  margin-bottom: var(--spacing-lg);
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
