:root {
  --bg: #FFFFFF;
  --bg-soft: #FAF8F5;
  --primary: #E8B4B8;
  --primary-dark: #D49499;
  --secondary: #C9A96E;
  --text: #2C2C2C;
  --text-muted: #7A7A7A;
  --border: #EDEDEA;
  --success: #A8C5A0;
  --error: #E07070;
  --warning: #F0C674;
  --info: #89B4C9;
  --bs-primary: #E8B4B8;
  --bs-primary-rgb: 232, 180, 184;
  --bs-link-color: #C9A96E;
  --bs-link-hover-color: #D49499;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
html { overflow-x: hidden; }

body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0;
}

.main-content { flex: 1 !important; min-width: 0; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }

a { color: var(--secondary) !important; text-decoration: none !important; }
a:hover { color: var(--primary-dark) !important; }

/* === BOOTSTRAP OVERRIDES === */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: white !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.btn-outline-secondary { border-color: var(--border); color: var(--text); }
.btn-outline-secondary:hover { background: var(--bg-soft); }

/* === PAGE LOADER === */
.page-loader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  z-index: 99999;
  animation: loader 1s ease forwards;
}
@keyframes loader {
  0% { width: 0; }
  100% { width: 100%; opacity: 0; }
}

/* === BUTTONS === */
.btn {
  font-family: 'Vazirmatn', sans-serif !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  transition: all 0.2s ease !important;
  font-weight: 500;
}
.btn:active { transform: scale(0.97) !important; }

/* === FORMS === */
input, select, textarea {
  min-height: 44px;
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(232,180,184,0.3) !important;
  outline: none !important;
}
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

.profile-form .form-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0; cursor: pointer;
}
.profile-form .form-check-input {
  width: 18px; height: 18px; margin: 0; cursor: pointer;
  accent-color: var(--primary);
}
.profile-form .form-check-label {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; margin: 0;
}
.form-label { font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-select { border-radius: 8px; min-height: 44px; }

/* === NAVBAR === */
.navbar { box-shadow: none; transition: box-shadow 0.3s; padding: 12px 0; background: var(--bg) !important; }
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.navbar-brand img { height: 55px !important; width: auto !important; }
.navbar-toggler:focus { box-shadow: none !important; outline: none !important; }
.nav-link {
  font-weight: 500; color: var(--text) !important;
  padding: 8px 16px !important; border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(232,180,184,0.1); }
.nav-icon { color: var(--text) !important; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.nav-icon:hover { color: var(--primary) !important; }
.nav-icon.active { color: var(--primary) !important; }
.search-bar { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: var(--bg-soft); }
.search-bar.active { max-height: 500px; padding: 16px 0; }
.search-form { gap: 0; }
.search-form .form-control { border-radius: 8px 0 0 8px; min-height: 44px; }
.search-form .btn { border-radius: 0 8px 8px 0; min-height: 44px; }

/* Live search dropdown */
.search-results {
  display: none; position: fixed;
  background: #fff; border: 1px solid #e9ecef; border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 1060;
  max-height: 400px; overflow-y: auto;
  opacity: 0; transition: opacity 0.25s ease;
}
.search-results.show { opacity: 1; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.search-result-item:hover { background: rgba(232,180,184,0.1); text-decoration: none; color: var(--text); }
.search-result-img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.search-result-img-placeholder {
  width: 48px; height: 48px; border-radius: 8px; background: #f0f0f0; flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-cat { font-size: 0.75rem; color: #888; margin-top: 2px; }
.search-result-prices { margin-top: 2px; }
.search-result-price { font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); }
.search-result-price-old { font-size: 0.75rem; color: #aaa; text-decoration: line-through; margin-right: 6px; }
.search-result-empty { padding: 20px; text-align: center; color: #888; font-size: 0.9rem; }
.cart-badge {
  position: absolute; top: -6px; left: -6px;
  background: var(--primary); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cart-badge.bounce { animation: badgeBounce 0.4s ease; }
@keyframes badgeBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

/* === BOTTOM BAR (Mobile) === */
.bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  z-index: 1000; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}
.bottom-bar-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--text); text-decoration: none;
  font-size: 0.65rem; font-weight: 500; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: all 0.2s; flex: 1;
  position: relative;
}
.bottom-bar-item:hover { color: var(--primary); }
.bottom-bar-item.active { color: var(--primary) !important; font-weight: 700; }
.bottom-bar-item.active svg { stroke-width: 2.5; stroke: var(--primary) !important; }
.bottom-bar-item { color: var(--text) !important; }
.bottom-bar-item svg { width: 22px; height: 22px; transition: all 0.2s; stroke-width: 1.8; color: var(--text) !important; stroke: var(--text) !important; }
.bottom-bar-item:hover svg, .bottom-bar-item.active svg { color: var(--primary) !important; stroke: var(--primary) !important; }
#searchToggleBottom:hover, #searchToggleBottom.active { color: var(--text) !important; }
#searchToggleBottom:hover svg, #searchToggleBottom.active svg { color: var(--text) !important; stroke: var(--text) !important; }
.bottom-bar-badge {
  position: absolute; top: 2px; right: calc(50% - 16px);
  background: var(--error); color: #fff; border-radius: 50%;
  min-width: 16px; height: 16px; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* === VARIANT SELECTION MODAL === */
.variant-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
.variant-modal.open { display: flex; }
.variant-modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.variant-modal-content {
  position: relative; background: #fff; border-radius: 16px; padding: 28px 24px;
  width: 90%; max-width: 380px; z-index: 1;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.variant-modal-close {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg-soft); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.variant-modal-close:hover { background: var(--border); }
.variant-modal-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
  padding-right: 36px; line-height: 1.5;
}
.variant-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  display: block; margin-bottom: 8px;
}
.variant-modal-sizes {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.variant-size-btn {
  padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.variant-size-btn:hover { border-color: var(--primary); }
.variant-size-btn.selected {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(232,180,184,0.3);
}
.variant-modal-colors {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.variant-color-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s;
}
.variant-color-btn:hover { border-color: var(--primary); }
.variant-color-btn.selected {
  border-color: var(--primary); background: rgba(232,180,184,0.08);
}
.variant-color-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
}
.variant-color-btn small { font-size: 0.72rem; font-weight: 500; color: var(--text); }
.variant-modal-add-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.2s; box-shadow: 0 4px 16px rgba(232,180,184,0.4);
}
.variant-modal-add-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.variant-modal-add-btn:disabled {
  background: var(--text-muted); cursor: not-allowed;
  box-shadow: none; transform: none;
}

/* === HERO SLIDER === */
.hero-slider { position: relative; min-height: 500px; overflow: hidden; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide:nth-child(1) { background-color: #F5D5D8; }
.hero-slide:nth-child(2) { background-color: #EDD9B8; }
.hero-slide:nth-child(3) { background-color: #C5D9C3; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); pointer-events: none; }
.hero-content { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); color: #fff; z-index: 2; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; margin-bottom: 24px; opacity: 0.9; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.hero-dots .dot.active { background: var(--primary); transform: scale(1.2); }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-title { font-size: 1.8rem; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 60px; height: 3px; background: var(--primary); border-radius: 2px; }
.text-center .section-title::after { right: 50%; transform: translateX(50%); }

/* === CATEGORY GRID === */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.category-card { text-align: center; text-decoration: none; transition: transform 0.3s; }
.category-card:hover { transform: translateY(-5px); }
.category-img-wrap { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.category-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.category-card:hover .category-img-wrap img { transform: scale(1.05); }
.category-name { font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: 0.85rem; color: var(--text-muted); }

/* === SHOP HEADER === */
.shop-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.shop-header-left { display: flex; flex-direction: column; gap: 8px; }
.shop-title {
  font-size: 2rem; font-weight: 800; color: var(--text); margin: 0;
  letter-spacing: -0.5px;
}
.shop-title-line {
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.shop-header-right { display: flex; align-items: center; gap: 12px; }

/* === FILTER SIDEBAR (Modern Style) === */
.shop-layout { display: flex; gap: 24px; }
.filter-sidebar {
  width: 280px; flex-shrink: 0; position: sticky; top: 100px; align-self: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; max-height: calc(100vh - 120px); overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.filter-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border);
}
.filter-sidebar-header h3 {
  font-size: 1.15rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px;
}
.filter-sidebar-header h3::before {
  content: ''; width: 4px; height: 20px; background: var(--primary); border-radius: 2px;
}
.filter-clear-all {
  font-size: 0.8rem; color: var(--error); text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; transition: all 0.2s;
}
.filter-clear-all:hover { background: rgba(220,53,69,0.08); }
.filter-sidebar-form { display: flex; flex-direction: column; }

/* Accordion Sections */
.filter-section { border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; background: none; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.92rem; color: var(--text); font-family: inherit;
  transition: color 0.2s;
}
.filter-section-toggle:hover { color: var(--primary); }
.filter-section-toggle svg {
  transition: transform 0.3s; color: var(--text-muted); width: 16px; height: 16px;
}
.filter-section-toggle.collapsed svg { transform: rotate(-90deg); }
.filter-section-content {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0;
}
.filter-section-content.open { max-height: none; padding-bottom: 16px; }

/* Checkbox Style */
.filter-checkbox {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer;
  transition: all 0.2s;
}
.filter-checkbox:hover { padding-left: 4px; }
.filter-checkbox input { display: none; }
.checkmark {
  width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px;
  position: relative; transition: all 0.2s; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.filter-checkbox input:checked + .checkmark {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(232,180,184,0.4);
}
.filter-checkbox input:checked + .checkmark::after {
  content: ''; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-top: -2px;
}
.label-text { font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* Price Inputs */
.filter-price-inputs { display: flex; flex-direction: column; gap: 10px; }
.filter-price-group { display: flex; flex-direction: column; gap: 4px; }
.filter-price-group label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.filter-sidebar-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.88rem; font-family: inherit; transition: all 0.2s; box-sizing: border-box;
  background: #fafafa;
}
.filter-sidebar-input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,180,184,0.15);
  background: #fff;
}

/* Size Grid */
.filter-size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-size-item { cursor: pointer; }
.filter-size-item input { display: none; }
.filter-size-item span {
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s; background: #fff;
}
.filter-size-item input:checked + span {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(232,180,184,0.35);
}
.filter-size-item span:hover { border-color: var(--primary); transform: translateY(-1px); }

/* Color Grid */
.filter-color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-color-item { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.filter-color-item input { display: none; }
.filter-color-item span {
  display: block; width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--border); transition: all 0.2s;
}
.filter-color-item input:checked + span {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,180,184,0.3);
  transform: scale(1.1);
}
.filter-color-item input:checked ~ .color-label { color: var(--primary); font-weight: 700; }
.filter-color-item span:hover { border-color: var(--text-muted); transform: scale(1.05); }
.color-label { font-size: 0.7rem; color: var(--text-muted); line-height: 1; white-space: nowrap; font-weight: 500; }

/* Apply Button */
.filter-sidebar-apply {
  width: 100%; margin-top: 20px; padding: 14px;
  background: var(--primary); color: #fff; border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.2s; box-shadow: 0 4px 15px rgba(232,180,184,0.4);
}
.filter-sidebar-apply:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,180,184,0.5);
}
.filter-sidebar-apply:active { transform: translateY(0) scale(0.98); }

/* Mobile Overlay */
.filter-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1040;
  display: none; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(4px);
}
.filter-overlay.show { display: block; opacity: 1; }
.filter-mobile-btn { display: none; }
.shop-main { flex: 1; min-width: 0; }

/* Mobile Inline Filter Panel */
.filter-mobile-panel { display: none; }
.filter-mobile-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer; font-size: 0.9rem; font-weight: 700;
  color: var(--text); font-family: inherit; transition: all 0.2s;
  margin-bottom: 12px;
}
.filter-mobile-toggle:hover { border-color: var(--primary); }
.filter-mobile-toggle svg:first-child { color: var(--primary); }
.filter-chevron { margin-right: auto; transition: transform 0.3s; color: var(--text-muted); }
.filter-mobile-panel.open .filter-chevron { transform: rotate(180deg); }
.filter-mobile-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-mobile-panel.open .filter-mobile-body { max-height: 800px; }
.filter-mobile-form { padding: 0 0 16px; }
.filter-mobile-sections { display: flex; flex-direction: column; gap: 4px; }
.filter-mobile-section { border-bottom: 1px solid var(--border); }
.filter-mobile-section:last-child { border-bottom: none; }
.filter-mobile-section-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; background: none; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; color: var(--text); font-family: inherit;
}
.filter-mobile-section-toggle svg { transition: transform 0.3s; color: var(--text-muted); }
.filter-mobile-section-toggle.collapsed svg { transform: rotate(-90deg); }
.filter-mobile-section-content {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0;
}
.filter-mobile-section-content.open { max-height: none; padding-bottom: 14px; }
.filter-mobile-actions {
  display: flex; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.filter-mobile-clear {
  flex: 1; padding: 12px; text-align: center; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: all 0.2s;
}
.filter-mobile-clear:hover { border-color: var(--error); color: var(--error); }
.filter-mobile-apply {
  flex: 2; padding: 12px; border-radius: 10px; border: none;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(232,180,184,0.4);
}
.filter-mobile-apply:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Active Filter Tags */
.active-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.filter-tag {
  background: var(--bg-soft); padding: 8px 14px; border-radius: 20px;
  font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); font-weight: 500; transition: all 0.2s;
}
.filter-tag:hover { border-color: var(--primary); }
.filter-tag a { color: var(--error); text-decoration: none; font-weight: 700; font-size: 1rem; }
.filter-tag a:hover { transform: scale(1.2); }
.filter-tag a { color: var(--error); text-decoration: none !important; font-weight: 600; }

/* === PRODUCT GRID === */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: stretch;
}

/* === PRODUCT CARD (Modern) === */
.product-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-4px);
  border-color: transparent;
}
.product-card .card-link {
  text-decoration: none !important; color: var(--text); display: flex; flex-direction: column; flex: 1;
}
.card-img-wrap {
  position: relative; overflow: hidden; height: 260px; background: var(--bg-soft);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.05); }
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; display: block;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-name {
  font-weight: 600; margin-bottom: 0; font-size: 0.9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; border-top: 1px solid var(--border);
}
.price-wrap { display: flex; flex-direction: column; gap: 2px; }
.product-price { font-weight: 700; color: var(--secondary); font-size: 1rem; }
.product-price small { font-weight: 400; font-size: 0.75rem; color: var(--text-muted); }
.product-price-original {
  text-decoration: line-through; color: var(--text-muted); font-size: 0.8rem; font-weight: 400;
}
.btn-add-cart {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--text);
}
.btn-add-cart:hover {
  background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.05);
}
.btn-add-cart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.discount-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--error); color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; z-index: 2;
}
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.out-of-stock-overlay span {
  background: var(--text-muted); color: #fff; padding: 6px 16px;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600;
}
.card-slider { position: relative; width: 100%; height: 100%; }
.card-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.card-slider img.d-none { opacity: 0; }
.card-slider img:not(.d-none) { opacity: 1; }

/* === EMPTY STATE === */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* === PAGINATION === */
.pagination-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagination { gap: 8px; display: flex; flex-direction: row-reverse; list-style: none; padding: 0; margin: 0; }
.page-link {
  color: var(--text); border: 1px solid var(--border); border-radius: 10px !important;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-weight: 500; transition: all 0.2s; padding: 0; text-decoration: none !important;
}
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
ul.pagination .page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* === PRODUCT DETAIL === */
.product-gallery { position: relative; }
.gallery-main {
  border-radius: 16px; overflow: hidden; height: 500px; position: relative;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.gallery-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.4s ease; }
.gallery-img.d-none { opacity: 0; pointer-events: none; }
.gallery-discount-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--error); color: #fff; padding: 6px 14px;
  border-radius: 10px; font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.gallery-thumb {
  width: 76px; height: 76px; object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent; opacity: 0.5;
  transition: all 0.2s; flex-shrink: 0;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); opacity: 1; }

/* Product Info */
.product-info { padding: 0 0 0 8px; }
.product-category-link {
  display: inline-block; font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; font-weight: 500; margin-bottom: 8px;
  padding: 4px 12px; background: var(--bg-soft); border-radius: 6px;
  transition: all 0.2s;
}
.product-category-link:hover { color: var(--primary); background: rgba(232,180,184,0.1); }
.product-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; line-height: 1.6; }
.product-price-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--bg-soft); border-radius: 12px;
  margin-bottom: 20px;
}
.price-current { font-size: 1.4rem; font-weight: 800; color: var(--secondary); }
.price-current small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.price-original {
  text-decoration: line-through; color: var(--text-muted); font-size: 0.95rem;
}
.discount-badge {
  background: var(--error); color: #fff; padding: 4px 12px;
  border-radius: 8px; font-size: 0.78rem; font-weight: 700;
}
.product-description {
  line-height: 2; color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

/* Stock */
.product-stock { margin-bottom: 20px; }
.stock-badge {
  display: inline-block; padding: 6px 16px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
}
.stock-available { background: rgba(25,135,84,0.1); color: #198754; }
.stock-limited { background: rgba(255,193,7,0.15); color: #b8860b; }
.stock-out { background: rgba(220,53,69,0.1); color: #dc3545; }

/* Variants */
.variant-section { margin-bottom: 20px; }
.variant-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 10px;
}
.variant-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 48px; height: 42px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.size-btn:hover { border-color: var(--primary); }
.size-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(232,180,184,0.3);
}
.variant-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s;
}
.color-btn:hover { border-color: var(--primary); }
.color-btn.active {
  border-color: var(--primary); background: rgba(232,180,184,0.08);
  box-shadow: 0 0 0 2px rgba(232,180,184,0.2);
}
.color-btn span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border);
}
.color-btn small { font-size: 0.72rem; font-weight: 500; color: var(--text); }

/* Add to Cart Form */
.product-add-form {
  display: flex; gap: 12px; align-items: center; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.quantity-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-btn {
  width: 40px; height: 44px; border: none; background: var(--bg-soft);
  font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
  font-family: inherit;
}
.qty-btn:hover { background: var(--border); }
.quantity-control input {
  width: 56px; height: 44px; border: none; text-align: center;
  font-size: 1rem; font-weight: 700; background: #fff;
  font-family: inherit; outline: none;
}
.add-to-cart-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.2s; box-shadow: 0 4px 16px rgba(232,180,184,0.4);
}
.add-to-cart-btn:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,180,184,0.5);
}
.add-to-cart-btn:active { transform: translateY(0); }
.add-to-cart-btn.disabled {
  background: var(--text-muted); cursor: not-allowed;
  box-shadow: none; transform: none;
}

/* === CART === */
/* Cart page header */
.cart-page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.cart-page-title { display: flex; align-items: center; gap: 10px; }
.cart-page-title svg { color: var(--primary); }
.cart-page-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.cart-count-badge {
  background: rgba(232,180,184,0.15); color: var(--primary-dark);
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
/* Cart items */
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; transition: border-color 0.2s;
}
.cart-item:hover { border-color: #ddd; }
.cart-item.removing { opacity: 0; transform: translateX(30px); transition: all 0.3s; }
.cart-item-img {
  width: 100px; height: 100px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; display: block;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-item-name {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  text-decoration: none !important; line-height: 1.4;
}
.cart-item-name:hover { color: var(--primary-dark); }
.cart-item-remove {
  background: none; border: none; color: #ccc; cursor: pointer;
  padding: 4px; border-radius: 6px; transition: all 0.2s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #e74c3c; background: rgba(231,76,60,0.06); }
.cart-item-variant { font-size: 0.78rem; color: var(--text-muted); }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cart-qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-qty-btn {
  width: 34px; height: 34px; border: none; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); transition: background 0.15s;
}
.cart-qty-btn:hover { background: #e9ecef; }
.cart-qty-num { min-width: 38px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.cart-item-price small { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
/* Coupon */
.cart-coupon {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-top: 16px;
  background: #fff; position: relative; flex-wrap: wrap;
}
.cart-coupon svg { color: var(--text-muted); flex-shrink: 0; }
.cart-coupon input {
  border: none; outline: none; flex: 1; min-width: 120px;
  font-size: 0.88rem; background: transparent;
}
.cart-coupon button {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 7px 18px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.cart-coupon button:hover { background: var(--primary-dark); }
.coupon-msg { width: 100%; font-size: 0.8rem; margin-top: 4px; }
/* Order summary */
.cart-summary {
  padding: 24px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; position: sticky; top: 100px;
}
.cart-summary h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.88rem; }
.summary-row span:first-child { color: var(--text-muted); }
.summary-discount span { color: #27ae60 !important; }
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-total { font-size: 1.05rem; }
.summary-total span:first-child { font-weight: 700; color: var(--text); }
.summary-total span:last-child { font-weight: 700; color: var(--primary-dark); }
.summary-total small { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff !important; font-weight: 600; font-size: 0.95rem;
  text-decoration: none !important; transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--primary-dark); color: #fff !important; }
.cart-continue-link {
  display: block; text-align: center; margin-top: 12px;
  font-size: 0.85rem; text-decoration: none !important;
  opacity: 0.85; transition: opacity 0.2s;
}
.cart-continue-link span { color: #fff; }
.cart-continue-link:hover, .cart-continue-link:focus, .cart-continue-link:active {
  opacity: 1; text-decoration: none !important;
}
/* Empty cart */
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty-icon { color: #ddd; margin-bottom: 20px; }
.cart-empty-icon svg { stroke-width: 0.8; }
.cart-empty h4 { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* === DIGIKALA STYLE SECTIONS === */
.dk-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.dk-section-title {
  font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0;
  position: relative; padding-bottom: 8px;
}
.dk-section-title::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 50px; height: 3px; background: var(--primary); border-radius: 2px;
}
.dk-section-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.9rem; color: var(--primary); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.dk-section-link:hover { color: var(--primary-dark); }
.dk-scroll-wrap { position: relative; }
.dk-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; padding: 4px 16px 8px 16px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.dk-scroll.dragging,
.dk-scroll.dragging * {
  pointer-events: none !important;
  user-select: none !important;
}
.dk-scroll.dragging { cursor: grabbing !important; }
.dk-scroll::-webkit-scrollbar { display: none; }
.dk-scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all 0.2s;
}
.dk-scroll-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dk-scroll-left { left: -12px; }
.dk-scroll-right { right: -12px; }
.dk-cat-card {
  flex-shrink: 0; width: 140px; text-align: center; text-decoration: none;
  transition: transform 0.2s;
}
.dk-cat-card:hover { transform: translateY(-4px); }
.dk-cat-img {
  width: 140px; height: 140px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 8px;
}
.dk-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.dk-cat-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.dk-product-card {
  flex-shrink: 0; width: 240px;
}
.dk-product-card .product-card { height: 100%; }
@media (max-width: 768px) {
  .dk-scroll-btn { display: none; }
  .dk-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dk-scroll::-webkit-scrollbar { display: none; }
  .dk-cat-card { width: 110px; }
  .dk-cat-img { width: 110px; height: 110px; }
  .dk-product-card { width: 200px; }
}

/* === FILTERS === */
/* Sort Pills */
.sort-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-pill {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.sort-pill:hover { border-color: var(--primary); color: var(--primary); }
.sort-pill.active {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(232,180,184,0.3);
  color: #fff !important;
}
.sort-pill.active .sort-pill-text,
.sort-pill.active .sort-pill-sub { color: #fff !important; }
.sort-pill-text { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.sort-pill-sub { font-size: 0.7rem; opacity: 0.8; font-weight: 400; color: var(--text); }

/* === CHECKOUT === */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.5; }
.step.active, .step.completed { opacity: 1; }
.step-number { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid var(--border); }
.step.active .step-number { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.completed .step-number { background: var(--success); color: #fff; border-color: var(--success); }
.step-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.step-line { width: 60px; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 20px; }
.step-line.active { background: var(--primary); }
.step.completed + .step-line { background: var(--success); }

/* === PAYMENT === */
.payment-card { max-width: 420px; padding: 40px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.payment-header { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.countdown-timer { font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.price-current { font-weight: 700; color: var(--secondary); }

/* === CONFIRMATION === */
.confirmation-card { max-width: 600px; padding: 40px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.success-checkmark svg { animation: checkPop 0.5s ease; }
@keyframes checkPop { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* === AUTH === */
.auth-container { max-width: 480px; }
.auth-card {
  padding: 40px; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.auth-tabs .nav-link { border-radius: 8px; font-weight: 600; }
.auth-tab, .auth-tabs .nav-link, [data-bs-toggle="tab"] {
  background: transparent !important; color: var(--text-muted) !important;
  border: none !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
}
.auth-tab.active, .auth-tabs .nav-link.active {
  color: var(--primary-dark) !important; border-bottom: 2px solid var(--primary) !important; background: transparent !important;
}
.auth-container .nav-pills .nav-link { background: transparent !important; color: var(--text-muted) !important; border: none !important; }
.auth-container .nav-pills .nav-link.active { background: var(--primary) !important; color: white !important; border: none !important; }
.auth-container .btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color: white !important; }
.auth-container .btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-auth-submit {
  background: var(--primary) !important; color: white !important; border: none !important;
  padding: 12px !important; font-size: 1rem !important; font-weight: 600 !important;
  border-radius: 8px !important; transition: background 0.2s ease !important;
}
.btn-auth-submit:hover { background: var(--primary-dark) !important; }
.otp-input { width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 2px solid var(--border); border-radius: 8px; transition: all 0.2s; }
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,180,184,0.3); }

/* === PROFILE — DIGIKALA STYLE === */
/* === PROFILE TOP BAR === */
.profile-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 16px; padding: 20px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px;
}
.profile-top-info {
  display: flex; align-items: center; gap: 16px;
}
.profile-avatar-sm {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--border);
}
.profile-avatar-sm-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; border: 3px solid var(--border);
}
.profile-top-text {
  display: flex; flex-direction: column; gap: 2px;
}
.profile-top-name {
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.profile-top-email {
  font-size: 0.82rem; color: var(--text-muted);
}
.profile-top-edit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 10px; font-size: 0.88rem;
  font-weight: 600; color: var(--text); text-decoration: none !important;
  border: 1px solid var(--border); background: var(--bg-soft);
  transition: all 0.25s ease; white-space: nowrap;
}
.profile-top-edit svg { width: 18px; height: 18px; }
.profile-top-edit:hover {
  background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important;
}

/* === PROFILE DASHBOARD CARDS === */
.profile-cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.profile-dash-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 32px 20px; border-radius: 16px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text); transition: all 0.25s ease;
  border: 1px solid transparent;
}
.profile-dash-card:hover {
  border-color: var(--primary); box-shadow: 0 4px 16px rgba(232,180,184,0.2);
  transform: translateY(-2px);
}
.profile-dash-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: var(--primary-dark);
  transition: all 0.25s ease;
}
.profile-dash-card:hover .profile-dash-card-icon {
  background: var(--primary); color: #fff;
}
.profile-dash-card-title {
  font-weight: 700; font-size: 0.95rem; margin-bottom: 4px;
}
.profile-dash-card-desc {
  font-size: 0.8rem; color: var(--text-muted);
}
.profile-dash-card-logout .profile-dash-card-icon {
  color: var(--error);
}
.profile-dash-card-logout:hover {
  border-color: var(--error); box-shadow: 0 4px 16px rgba(224,112,112,0.2);
}
.profile-dash-card-logout:hover .profile-dash-card-icon {
  background: var(--error); color: #fff;
}

/* === PROFILE CARD (content pages) === */
.profile-card {
  padding: 28px; border-radius: 16px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profile-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.profile-card-header h4 { margin: 0; font-size: 1.1rem; }
.profile-card-header .profile-header-left {
  display: flex; align-items: center; gap: 12px;
}
.profile-card-header .profile-header-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark); flex-shrink: 0;
}
.profile-card-header .profile-header-text h4 {
  font-size: 1.05rem; margin-bottom: 2px;
}
.profile-card-header .profile-header-text span {
  font-size: 0.8rem; color: var(--text-muted);
}

.profile-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.profile-info-item label {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 4px; font-weight: 400;
}
.profile-info-item span {
  display: block; font-size: 0.95rem; color: var(--text); font-weight: 500;
}

.profile-avatar-upload {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.profile-avatar-upload img, .profile-avatar-upload .profile-avatar-lg-placeholder {
  width: 72px; height: 72px; flex-shrink: 0;
}

.address-card-modern {
  padding: 20px; border: 1px solid var(--border); border-radius: 12px;
  transition: all 0.2s; background: #fff; position: relative;
}
.address-card-modern:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(232,180,184,0.15); }
.address-card-modern.is-default { border-color: var(--primary); }
.address-card-modern .address-default-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff; font-size: 0.7rem;
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}
.address-card-modern h6 { margin: 0 0 8px; font-size: 0.95rem; }
.address-card-modern .address-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin: 0 0 12px; }
.address-card-modern .address-meta { color: var(--text-muted); font-size: 0.8rem; margin: 0 0 12px; }
.address-card-modern .address-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.address-card-modern .address-actions .btn,
.address-card-modern .address-actions a.btn {
  display: inline-flex; align-items: center; gap: 4px;
}

.order-card-modern {
  padding: 20px; border: 1px solid var(--border); border-radius: 12px;
  transition: all 0.2s; background: #fff; margin-bottom: 12px;
}
.order-card-modern:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(232,180,184,0.15); }
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-card-id { font-weight: 700; font-size: 0.95rem; }
.order-card-date { color: var(--text-muted); font-size: 0.8rem; }
.order-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.order-card-price { font-weight: 700; color: var(--primary-dark); font-size: 1rem; }

.order-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-pending { background: #FFF3CD; color: #856404; }
.badge-paid { background: #D4EDFF; color: #0C5460; }
.badge-shipped { background: #E2D9F3; color: #4A3B6B; }
.badge-delivered { background: #D4EDDA; color: #155724; }
.badge-cancelled { background: #F8D7DA; color: #721C24; }

.profile-form .form-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.profile-form .form-control {
  border-radius: 10px; padding: 10px 14px; border: 1px solid var(--border);
  font-size: 0.9rem; transition: border-color 0.2s;
}
.profile-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,180,184,0.15); }

.profile-form select.form-control {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
  max-width: 100%;
}
.profile-form select.form-control:hover {
  border-color: var(--primary);
}

.btn-profile-save {
  background: var(--primary); color: #fff !important; border: none;
  padding: 10px 28px; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; transition: all 0.2s;
}
.btn-profile-save:hover { background: var(--primary-dark); color: #fff !important; }

/* === CUSTOM SELECT DROPDOWN === */
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s;
}
.custom-select-trigger:hover { border-color: var(--primary); }
.custom-select.open .custom-select-trigger { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,180,184,0.15); }
.custom-select-trigger svg { flex-shrink: 0; transition: transform 0.2s; }
.custom-select.open .custom-select-trigger svg { transform: rotate(180deg); }
.custom-select-options {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12); z-index: 100;
  max-height: 220px; overflow-y: auto; overflow-x: hidden;
}
.custom-select.open .custom-select-options { display: block; }
.custom-select-option {
  padding: 10px 14px; font-size: 0.88rem; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid var(--border);
}
.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover { background: var(--bg-soft); }
.custom-select-option.selected { background: rgba(232,180,184,0.12); color: var(--primary-dark); font-weight: 600; }
.custom-select-option[data-value=""] { color: var(--text-muted); }

/* === ORDER DETAIL MODERN === */
.order-detail-table { width: 100%; border-collapse: collapse; }
.order-detail-table th {
  background: var(--bg-soft); padding: 10px 14px; font-size: 0.8rem;
  font-weight: 600; color: var(--text-muted); text-align: right;
}
.order-detail-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.order-summary-box {
  background: var(--bg-soft); border-radius: 12px; padding: 20px;
}
.order-summary-row {
  display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem;
}
.order-summary-row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 20px; }
  .profile-card-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .address-card-modern { padding: 16px; }
  .address-card-modern .address-actions { flex-direction: column; }
  .address-card-modern .address-actions .btn { width: 100%; }
  .order-card-modern { padding: 16px; }
  .order-card-top { flex-direction: column; gap: 8px; align-items: flex-start; }
  .order-card-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .order-detail-table { font-size: 0.85rem; }
  .order-detail-table th, .order-detail-table td { padding: 8px 10px; }
  .order-summary-box { padding: 16px; }
}

@media (max-width: 575px) {
  .profile-top-bar { flex-direction: column; gap: 16px; padding: 16px; align-items: flex-start; }
  .profile-top-edit { width: 100%; justify-content: center; }
  .profile-cards-grid { grid-template-columns: 1fr; }
  .profile-dash-card { padding: 24px 16px; }
  .profile-info-item label { font-size: 0.7rem; }
  .profile-info-item span { font-size: 0.85rem; }

  /* Profile edit / address form — full-width buttons */
  .profile-form .mt-4.d-flex { flex-direction: column; }
  .profile-form .mt-4.d-flex .btn-profile-save,
  .profile-form .mt-4.d-flex .btn-outline-secondary {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
  }

  /* Form controls — prevent overflow */
  .profile-form .form-control,
  .profile-form select.form-control {
    width: 100%; box-sizing: border-box; min-width: 0;
  }
  .custom-select-options { max-height: 40vh; }

  /* Address list — full-width add button */
  .address-add-btn {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
  }

  /* Address action buttons — full width, centered */
  .address-actions .btn,
  .address-actions a.btn {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
    text-align: center;
  }

  /* Order cards — tighter spacing */
  .order-card-id { font-size: 0.88rem; }
  .order-card-price { font-size: 0.9rem; }

  /* Order detail — horizontal scroll table */
  .order-detail-table { font-size: 0.8rem; }
  .order-detail-table th, .order-detail-table td { padding: 6px 8px; white-space: nowrap; }

  /* Back buttons — full width */
  .profile-card .mt-4 > .btn,
  .profile-card .mt-4 > .btn-profile-save { width: 100%; display: inline-flex; align-items: center; justify-content: center; }

  /* Delete confirmation — stack buttons */
  .profile-card .d-flex.justify-content-center { flex-direction: column; align-items: stretch; }
  .profile-card .d-flex.justify-content-center .btn,
  .profile-card .d-flex.justify-content-center form { width: 100%; }
  .profile-card .d-flex.justify-content-center .btn { justify-content: center; }
}

/* === PROMO BANNER === */
.promo-banner { padding: 40px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.promo-banner h3 { font-weight: 700; }
.promo-banner .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.promo-banner .btn-primary:hover { background: var(--bg-soft); }

/* === TOAST === */
.toast { border-radius: 8px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.toast-body { padding: 12px 16px; font-weight: 500; }
.toast-success { border-right: 4px solid var(--success); }
.toast-error { border-right: 4px solid var(--error); }
.toast-info { border-right: 4px solid var(--info); }
.toast-warning { border-right: 4px solid var(--warning); }

.toast-notification {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px; border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif; font-size: 0.9rem;
  opacity: 0; transition: all 0.3s ease; z-index: 9999; white-space: nowrap;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === SCROLL TO TOP === */
#scrollToTop {
  position: fixed !important; bottom: 30px !important; left: 30px !important;
  right: auto !important; width: 44px !important; height: 44px !important;
  border-radius: 50% !important; background: var(--primary) !important;
  color: white !important; border: none !important; z-index: 1001 !important;
  display: none !important; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); cursor: pointer;
}
#scrollToTop.visible { display: flex !important; }

@media (max-width: 575px) {
  #scrollToTop { bottom: 80px !important; left: 16px !important; }
}

/* === SCROLL REVEAL === */
.scroll-reveal, .reveal-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-reveal.revealed, .reveal-on-scroll.revealed {
  opacity: 1; transform: translateY(0);
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #f0ede8 100%);
  border-top: 1px solid var(--border);
}
.site-footer a.text-muted { color: var(--text-muted) !important; }
.footer-logo { height: 65px !important; width: auto !important; }
.footer-card-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }

.footer-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.footer-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.footer-card h6 {
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-card h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.footer-card ul { list-style: none; padding: 0; margin: 0; }
.footer-card ul li { margin-bottom: 10px; }
.footer-card ul li:last-child { margin-bottom: 0; }
.footer-card ul li a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s, padding-right 0.2s;
  display: inline-block;
  font-size: 0.9rem;
}
.footer-card ul li a:hover {
  color: var(--primary-dark) !important;
  padding-right: 4px;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: border-color 0.2s;
}
.payment-badge:hover {
  border-color: var(--primary);
}
.payment-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* === SHOP HEADER === */
.shop-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

/* === VALUES === */
.values-section { margin-top: 80px; padding-top: 60px; }
.value-card { padding: 32px 20px; border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.value-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* === FAQ === */
/* === FAQ === */
.faq-header-section { padding: 60px 0 40px; }
.faq-header-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(232,180,184,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.faq-header-section h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.faq-header-line { width: 48px; height: 3px; border-radius: 2px; background: var(--primary); margin: 0 auto 16px; }
.faq-header-section p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.faq-category { margin-bottom: 32px; }
.faq-category-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.faq-category-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.faq-category h4 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; }
.accordion-button { font-weight: 600; color: var(--text); border-radius: 10px !important; padding: 14px 18px; gap: 10px; }
.accordion-button:not(.collapsed) { background: rgba(232,180,184,0.06); color: var(--text); box-shadow: none; border-right: 3px solid var(--primary); }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(232,180,184,0.2); }
.accordion-button .accordion-icon { color: var(--primary); display: flex; flex-shrink: 0; }
.accordion-item { border: 1px solid var(--border); border-radius: 10px !important; margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion-body { padding: 18px 20px; color: var(--text-muted); line-height: 2; font-size: 0.92rem; }
.faq-empty { text-align: center; padding: 80px 0; }
.faq-empty-icon { color: #ddd; margin-bottom: 20px; }
.faq-empty-icon svg { stroke-width: 0.8; }
.faq-empty h4 { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-empty p { color: var(--text-muted); font-size: 0.9rem; }

/* === CONTACT === */
.contact-header-section { padding: 60px 0 40px; }
.contact-header-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(232,180,184,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-header-section h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.contact-header-line {
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--primary); margin: 0 auto 16px;
}
.contact-header-section p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.contact-cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 40px;
}
.contact-card-item {
  text-align: center; padding: 32px 20px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card-item:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(232,180,184,0.12); }
.contact-card-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(232,180,184,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-item h6 { font-size: 0.82rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.contact-card-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.contact-social-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--border);
}
.contact-social-label { font-size: 0.85rem; color: var(--text-muted); }
.contact-social-icons { display: flex; gap: 10px; }
.contact-social-icons a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.2s; text-decoration: none !important;
}
.contact-social-icons a:hover { border-color: var(--primary); color: var(--primary); background: rgba(232,180,184,0.06); }
.contact-map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.contact-map-wrap iframe { width: 100%; min-height: 400px; }
.contact-copyable { cursor: pointer; position: relative; }
.contact-copy-hint {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.75rem; color: var(--primary); margin-top: 10px;
  opacity: 0; transition: opacity 0.2s;
}
.contact-copyable:hover .contact-copy-hint { opacity: 1; }
.contact-copy-hint svg { width: 13px; height: 13px; }
.contact-copy-toast {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(6px);
  background: rgba(232,180,184,0.15); color: var(--primary-dark); padding: 6px 16px;
  border-radius: 8px; font-size: 0.78rem; font-weight: 600; opacity: 0;
  pointer-events: none; transition: all 0.2s ease; white-space: nowrap;
  border: 1px solid rgba(232,180,184,0.3);
}
.contact-copyable.copied .contact-copy-toast {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.contact-copyable.copied .contact-copy-hint { opacity: 0; }

/* === SOCIAL ICONS === */
.social-icon {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: var(--bg-soft) !important;
  border-radius: 50% !important;
  border: 1px solid var(--border) !important;
}
.social-icon:hover {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
}
.social-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.social-icons {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* === BREADCRUMB === */
.breadcrumb { background: none; padding: 0; font-size: 0.9rem; }
.breadcrumb a { color: var(--text-muted) !important; text-decoration: none !important; }
.breadcrumb a:hover { color: var(--primary) !important; }
.breadcrumb .separator { margin: 0 8px; color: var(--text-muted); }

/* === BADGES === */
.badge { border-radius: 50px; padding: 4px 12px; font-weight: 500; }

/* === TABLE === */
.table { border-color: var(--border); }
.table th { font-weight: 600; border-color: var(--border); }
.table td { border-color: var(--border); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: var(--bg-soft); }

/* === SKELETON === */
.skeleton { background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-img { height: 280px; }
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text-short { width: 60%; }

/* === RESPONSIVE === */
/* === MOBILE NAVBAR === */
@media (max-width: 991px) {
  #mainNav .container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 16px !important;
  }

  #mainNav .navbar-toggler {
    display: none !important;
  }

  #mainNav .navbar-brand {
    grid-column: 2 !important;
    justify-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    z-index: 2 !important;
    white-space: nowrap !important;
  }

  #mainNav .d-lg-none.d-flex {
    display: none !important;
  }

  #mainNav {
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    z-index: 1030 !important;
  }

  body { padding-top: 65px !important; }

  /* === FOOTER MOBILE CENTERING === */
  footer, .site-footer { text-align: center !important; }

  footer .row, footer .footer-grid, .site-footer .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  footer .col, footer [class*="col-"], .site-footer [class*="col-"] {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 32px !important;
    padding: 0 16px !important;
  }

  footer .footer-logo, .site-footer .footer-logo {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 16px auto !important;
  }

  footer ul, .site-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  footer ul li, .site-footer ul li {
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  footer h5, footer h6, footer .footer-title,
  .site-footer h5, .site-footer h6 {
    text-align: center !important;
    margin-bottom: 16px !important;
  }

  footer .d-flex, .site-footer .d-flex {
    justify-content: center !important;
  }

  footer p, .site-footer p { text-align: center !important; }

  .footer-card { margin-bottom: 16px !important; }
  .footer-card h6::after { right: auto; left: 50%; transform: translateX(-50%); }

  .products-grid, .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .filter-sidebar { display: none !important; }
  .filter-mobile-panel { display: block; width: 100%; margin-bottom: 8px; }
  .bottom-bar { display: flex; }
  body { padding-bottom: 60px !important; }

  .shop-layout { flex-direction: column; }
  .hero-slider { min-height: 350px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content { right: 5%; }
  .card-img-wrap { height: 200px; }
  .section { padding: 40px 0; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gallery-main { height: 380px; }
  .product-info { padding: 0; margin-top: 16px; }
  .product-title { font-size: 1.3rem; }
  .price-current { font-size: 1.2rem; }
  .product-add-form { flex-direction: column; }
  .quantity-control { width: 100%; justify-content: center; }
  .add-to-cart-btn { width: 100%; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .shop-header-left { display: none; }
  .shop-header-right { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .category-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Mobile Sort */
  .sort-pills { width: 100%; }
  .sort-label { width: 100%; margin-bottom: 6px; display: block; }
  .sort-pill { flex: 1; justify-content: center; min-width: 0; }
  .sort-pill-sub { display: none; }
  .contact-header-section { padding: 40px 0 24px; }
  .contact-header-section h1 { font-size: 1.6rem; }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-card-item { padding: 24px 16px; }
  .contact-map-wrap iframe { min-height: 300px; }
  .faq-page-title-text { display: none; }
  .faq-header-section { padding: 40px 0 24px; }
  .faq-header-section h1 { font-size: 1.6rem; }
  .cart-page-title { display: none; }
  .cart-count-badge { display: none; }
  .cart-item { padding: 12px; gap: 12px; }
  .cart-item-img { width: 80px; height: 80px; }
  .cart-item-price { font-size: 0.88rem; }
}

@media (max-width: 576px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .card-img-wrap { height: 170px; }
  .card-body { padding: 10px 12px; }
  .product-name { font-size: 0.82rem; }
  .card-footer { padding: 10px 12px 12px; }
  .product-price { font-size: 0.88rem; }
  .btn-add-cart { width: 36px; height: 36px; }
  .btn-add-cart svg { width: 16px; height: 16px; }
  .shop-title { font-size: 1.5rem; }
  .sort-pill { padding: 6px 10px; }
  .sort-pill-text { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  #mainNav .navbar-brand {
    font-size: 0.7rem !important;
  }
  .product-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .card-img-wrap { height: 150px; }
  .sort-pill { padding: 5px 8px; }
  .sort-pill-text { font-size: 0.75rem; }
}

/* === PROFILE DROPDOWN MENU === */
.profile-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.profile-dropdown-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
  overflow: hidden;
  margin-top: 8px;
  padding-top: 8px;
}

.profile-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.profile-dropdown-wrapper:hover .profile-dropdown-menu {
  /* disabled — JS handles open/close */
}

.profile-dropdown-wrapper:hover .profile-dropdown-toggle {
  /* disabled — JS handles open/close */
}

.profile-dropdown-wrapper.open .profile-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-wrapper.open .profile-dropdown-toggle {
  color: var(--primary) !important;
}

.profile-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.profile-dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333 !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.profile-dropdown-list li a:hover {
  background: #f5f5f5;
  color: var(--primary) !important;
}

.profile-dropdown-list li a svg {
  flex-shrink: 0;
  color: #666 !important;
}

.profile-dropdown-list li a:hover svg {
  color: var(--primary) !important;
}

.profile-dropdown-list li a.text-danger {
  color: #e53935 !important;
}

.profile-dropdown-list li a.text-danger svg {
  color: #e53935 !important;
}

.profile-dropdown-list li a.text-danger:hover {
  color: #c62828 !important;
}

.profile-dropdown-list li a.text-danger:hover svg {
  color: #c62828 !important;
}

.profile-dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 20px;
}
