/* ============================================================
   WoodMax Doors - Main Stylesheet
   Design: Warm Wood Luxury Theme
   ============================================================ */

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

:root {
  --primary:   #8B4513;
  --primary-dark: #5C2E0A;
  --primary-light: #C4752A;
  --accent:    #D4AF37;
  --accent2:   #E8952A;
  --dark:      #1A0F08;
  --mid:       #4A2C17;
  --warm:      #F5E6D3;
  --warm2:     #FAF3E8;
  --white:     #FFFFFF;
  --gray:      #6B7280;
  --gray-light:#F3F4F6;
  --success:   #16A34A;
  --danger:    #DC2626;
  --warning:   #D97706;
  --info:      #2563EB;
  --shadow:    0 4px 24px rgba(139,69,19,0.15);
  --shadow-lg: 0 12px 40px rgba(139,69,19,0.25);
  --radius:    12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--warm2);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

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

img { max-width: 100%; height: auto; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ============ NAVBAR ============ */
.navbar {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-top {
  background: var(--primary-dark);
  padding: 6px 0;
  font-size: 13px;
  color: var(--warm);
}

.navbar-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-main {
  padding: 12px 0;
}

.navbar-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.brand-text h1 {
  font-size: 22px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.brand-text span {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

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

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 100%;
  padding: 0 20px;
}

.hero-content .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-content h2 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active { background: var(--accent); width: 30px; border-radius: 5px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139,69,19,0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,69,19,0.5);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.5);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover { background: var(--white); color: var(--dark); }

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

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

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============ CONTAINER ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ SECTION ============ */
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .tag {
  display: inline-block;
  background: var(--warm);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(139,69,19,0.2);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header h2 span { color: var(--primary); }

.section-header p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.product-card .card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--warm);
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.product-badge.new { background: var(--success); }
.product-badge.featured { background: var(--accent); color: var(--dark); }

.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .card-actions { opacity: 1; }

.card-action-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.card-action-btn:hover { background: var(--primary); color: var(--white); }

.product-card .card-body { padding: 18px; }

.product-card .category-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card h3 a:hover { color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.product-rating .stars { color: var(--accent); font-size: 13px; }
.product-rating .count { font-size: 12px; color: var(--gray); }

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.price-original {
  font-size: 15px;
  color: var(--gray);
  text-decoration: line-through;
}

.price-save {
  font-size: 12px;
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============ CATEGORIES GRID ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--warm);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.category-card:hover .category-icon { background: var(--primary); filter: none; }

.category-card h3 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
}

.category-card span { font-size: 12px; color: var(--gray); }

/* ============ FEATURES STRIP ============ */
.features-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--mid));
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-item { color: var(--white); }
.feature-item .icon { font-size: 36px; margin-bottom: 12px; }
.feature-item h4 { font-size: 16px; margin-bottom: 4px; }
.feature-item p { font-size: 13px; opacity: 0.7; }

/* ============ STATS SECTION ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primary);
}

.stat-card .number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
}

.stat-card p { color: var(--gray); font-size: 14px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5D5C8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,69,19,0.12);
}

.form-control::placeholder { color: #B8A99A; }

textarea.form-control { resize: vertical; min-height: 110px; }

select.form-control { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============ ALERTS ============ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}

.alert-success { background: #F0FDF4; color: #166534; border-color: var(--success); }
.alert-danger  { background: #FEF2F2; color: #991B1B; border-color: var(--danger); }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: var(--warning); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: var(--info); }

/* ============ TABLES ============ */
.table-container { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

thead th {
  background: linear-gradient(135deg, var(--primary-dark), var(--mid));
  color: var(--white);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #F0E6DA;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr:hover { background: var(--warm2); }
tbody tr:last-child td { border-bottom: none; }

/* ============ STATUS BADGES ============ */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending   { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-processing{ background: #E0E7FF; color: #3730A3; }
.status-shipped   { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #DCFCE7; color: #14532D; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-new       { background: #FEF3C7; color: #92400E; }
.status-read      { background: #DBEAFE; color: #1E40AF; }
.status-replied   { background: #D1FAE5; color: #065F46; }
.status-closed    { background: #F3F4F6; color: #6B7280; }
.status-active    { background: #DCFCE7; color: #14532D; }
.status-inactive  { background: #FEE2E2; color: #991B1B; }
.status-paid      { background: #D1FAE5; color: #065F46; }
.status-unpaid    { background: #FEE2E2; color: #991B1B; }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #F0E6DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 18px;
  color: var(--dark);
}

.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid #F0E6DA;
  background: var(--warm2);
}

/* ============ AUTH PAGES ============ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 50%, var(--primary) 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg { to { transform: rotate(360deg); } }

.auth-box {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.auth-box .auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-box .auth-logo .logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(139,69,19,0.4);
}

.auth-box h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-box p.subtitle { font-size: 14px; color: var(--gray); margin-bottom: 32px; }

.divider-text {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 1px;
  background: #E5D5C8;
}

.divider-text span {
  background: var(--white);
  padding: 0 14px;
  font-size: 13px;
  color: var(--gray);
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer p { font-size: 14px; line-height: 1.8; }

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 14px; opacity: 0.75; transition: var(--transition); }
.footer ul li a:hover { opacity: 1; color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.social-links { display: flex; gap: 10px; margin-top: 14px; }

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ============ BREADCRUMB ============ */
.breadcrumb-bar {
  background: var(--warm);
  padding: 14px 0;
  border-bottom: 1px solid #E5D5C8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  list-style: none;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: '›'; opacity: 0.5; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb li:last-child { color: var(--gray); }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid #E5D5C8;
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============ PRODUCT DETAIL ============ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-gallery .main-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.product-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-thumbnails img:hover,
.product-thumbnails img.active { border-color: var(--primary); }

.product-info h1 { font-size: 32px; color: var(--dark); margin-bottom: 8px; }
.product-info .sku { font-size: 12px; color: var(--gray); margin-bottom: 16px; }

.product-tabs .tab-nav {
  display: flex;
  border-bottom: 2px solid #E5D5C8;
  margin-bottom: 24px;
  gap: 0;
}

.tab-nav-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-nav-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ CART ============ */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #F0E6DA;
  align-items: center;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 15px; margin-bottom: 4px; }
.cart-item-info .meta { font-size: 12px; color: var(--gray); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #E5D5C8;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: var(--warm);
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

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

.qty-input {
  width: 44px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  background: var(--white);
}

/* ============ CHECKOUT ============ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

/* ============ FILTER SIDEBAR ============ */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-group { margin-bottom: 24px; }

.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0E6DA;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}

.filter-check input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }

.price-range-inputs { display: flex; gap: 10px; align-items: center; }
.price-range-inputs input { width: 90px; }

/* ============ SHOP PAGE ============ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* ============ PROFILE ============ */
.profile-sidebar {
  background: linear-gradient(135deg, var(--primary-dark), var(--mid));
  border-radius: var(--radius);
  padding: 30px 20px;
  color: var(--white);
  text-align: center;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin: 0 auto 14px;
  display: block;
}

.profile-nav ul { list-style: none; margin-top: 20px; }
.profile-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: rgba(255,255,255,0.8);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.profile-nav li a:hover,
.profile-nav li a.active { background: rgba(255,255,255,0.15); color: var(--white); }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--warm);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-text h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.contact-info-text p { font-size: 14px; color: var(--gray); }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } }

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ============ LOADING ============ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,15,8,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-slider { height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary{ color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray   { color: var(--gray); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.fw-bold     { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state .icon { font-size: 60px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; color: var(--mid); }
