/* ====== Custom Styles for Behzik ====== */

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-100.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-200.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #e096a7 #fbf3f4;
}

*::-webkit-scrollbar {
  width: 8px;
}
*::-webkit-scrollbar-track {
  background: #fbf3f4;
}
*::-webkit-scrollbar-thumb {
  background: #e096a7;
  border-radius: 4px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Vazirmatn", sans-serif;
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

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

/* ====== Product Card Hover ====== */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(127, 28, 57, 0.15);
}

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

.product-img {
  transition: transform 0.4s ease;
}

/* ====== Featured "فروش ویژه" strip ====== */
/* NOTE: the theme color variables live on the SECTION (not the shell) so the
   server-sent color set inline by applyFeaturedSpecialTheme() inherits down to
   the shell, the products strip and the discount pills. Declaring them on the
   shell would shadow the inherited server color. */
.featured-special-section {
  --featured-special-color: #9a2244;
  --featured-special-accent: #b83a5c;
  padding: 3.5rem 0;
  /* The whole band is gently tinted by the server-sent color */
  background:
    radial-gradient(
      120% 130% at 100% 0%,
      color-mix(in srgb, var(--featured-special-color) 18%, transparent) 0%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--featured-special-color) 9%, var(--theme-bg, #fdfaf6)) 0%,
      var(--theme-bg, #fdfaf6) 82%
    );
}

.featured-special-shell {
  position: relative;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(
    135deg,
    var(--featured-special-accent) 0%,
    var(--featured-special-color) 58%,
    color-mix(in srgb, var(--featured-special-color) 72%, #000) 100%
  );
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--featured-special-color) 65%, #000);
}

/* Soft light sheen across the top corner */
.featured-special-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    90% 120% at 100% -10%,
    rgba(255, 255, 255, 0.16),
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
}

.featured-special-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.3rem 1.35rem;
  color: #fff;
}

/* keep textual content above the decorative percent watermark */
.featured-special-panel > *:not(.featured-special-percent) {
  position: relative;
  z-index: 1;
}

.featured-special-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.featured-special-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.featured-special-percent {
  display: none;
}

.featured-special-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.featured-special-link:hover {
  gap: 0.55rem;
  opacity: 0.92;
}

.featured-special-timer-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.65);
}

.featured-special-products {
  position: relative;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  background: color-mix(in srgb, var(--featured-special-color) 86%, #000);
  padding: 0.9rem;
  gap: 0.85rem;
}

.featured-special-products::-webkit-scrollbar {
  height: 0;
}

.featured-product-card {
  position: relative;
  display: flex;
  flex: 0 0 10.4rem;
  min-height: 16.6rem;
  scroll-snap-align: start;
  flex-direction: column;
  background: #fff;
  color: #1f2937;
  padding: 0.7rem 0.8rem 0.9rem;
  border-radius: 1.15rem;
  box-shadow: 0 10px 22px -20px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.featured-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px -22px rgba(0, 0, 0, 0.5);
}

.featured-product-media {
  display: flex;
  height: 7.35rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 0.95rem;
  overflow: hidden;
}

.featured-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-product-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #dca3ac;
  background: #fdf4f5;
}

.featured-product-title {
  min-height: 2.75rem;
  color: #374151;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.featured-product-price {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 950;
  white-space: nowrap;
}

.featured-product-discount {
  flex: 0 0 auto;
  min-width: 2rem;
  border-radius: 999px;
  background: var(--featured-special-color);
  color: #fff;
  padding: 0.22rem 0.42rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 950;
}

.featured-product-old-price {
  margin-top: 0.3rem;
  color: #c6c6c6;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: line-through;
}

@media (min-width: 768px) {
  .featured-special-section {
    padding: 4.5rem 0;
  }

  .featured-special-shell {
    min-height: 21rem;
    flex-direction: row;
    align-items: stretch;
  }

  .featured-special-panel {
    order: 1;
    width: 15rem;
    min-height: auto;
    flex: 0 0 15rem;
    justify-content: center;
    padding: 2rem 1.6rem;
    overflow: hidden;
    text-align: right;
  }

  .featured-special-title {
    font-size: 1.85rem;
  }

  /* Oversized decorative "٪" watermark, behind the panel text */
  .featured-special-percent {
    display: block;
    position: absolute;
    left: 0.6rem;
    bottom: -0.5rem;
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
  }

  .featured-special-timer-value {
    min-width: 10.25rem;
    font-size: 1.35rem;
  }

  .featured-special-products {
    order: 2;
    flex: 1 1 auto;
    padding: 1.1rem;
    gap: 1rem;
  }

  .featured-product-card {
    flex-basis: 11.5rem;
    min-height: 19rem;
    padding: 0.9rem 1rem 1.05rem;
  }

  .featured-product-media {
    height: 9rem;
    margin-bottom: 0.85rem;
  }
}

/* ====== Category Card ====== */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card img {
  transition: transform 0.5s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(127,28,57,0.75) 0%, rgba(127,28,57,0.2) 60%, transparent 100%);
}

/* ====== Cart Drawer Open State ====== */
.cart-open {
  transform: translateX(0) !important;
}

.overlay-visible {
  display: block !important;
  opacity: 1 !important;
}

/* ====== Badge ====== */
.discount-badge {
  animation: fadeIn 0.5s ease-out;
}

/* ====== Button Effects ====== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* ====== Hero text gradient ====== */
.hero-gradient-text {
  background: linear-gradient(135deg, #9a2244, #cc6079);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== Mobile Menu ====== */
.mobile-menu-open {
  max-height: 500px !important;
}

/* ====== Loading skeleton ====== */
.skeleton {
  background: linear-gradient(90deg, #f5e9d8 25%, #faf3ea 50%, #f5e9d8 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* ====== Toast animation ====== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#toast.show {
  display: block !important;
  animation: slideInRight 0.3s ease-out;
}

/* ====== Quantity Input ====== */
.qty-btn {
  transition: all 0.2s;
}

.qty-btn:hover {
  background-color: #f7e3e7;
}

/* ====== Line clamp ====== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== Search results highlight ====== */
.search-highlight {
  outline: 2px solid #b23a56;
  outline-offset: 4px;
}

.search-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.search-filter-chip:hover,
.search-filter-chip.is-active {
  border-color: #e096a7;
  background: #fbf3f4;
  color: #7f1c39;
}

.search-page-btn {
  min-width: 5.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #4b5563;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-page-btn:hover:not(:disabled) {
  border-color: #e096a7;
  background: #fbf3f4;
  color: #7f1c39;
}

.search-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ====== Dark Theme ====== */
:root {
  --theme-bg: #fdfaf6;
  --theme-surface: #ffffff;
  --theme-surface-soft: #faf3ea;
  --theme-border: #e5e7eb;
  --theme-text: #1f2937;
  --theme-muted: #6b7280;
}

html[data-theme="dark"] {
  --theme-bg: #160f11;
  --theme-surface: #20171a;
  --theme-surface-soft: #2a1f23;
  --theme-border: #3b2c31;
  --theme-text: #f5ece6;
  --theme-muted: #c0a8ae;
}

html[data-theme="dark"] * {
  scrollbar-color: #9a2244 #20171a;
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
  background: #20171a;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: #9a2244;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .bg-cream-50,
html[data-theme="dark"] .bg-cream-100,
html[data-theme="dark"] .bg-cream-200 {
  background-color: var(--theme-bg) !important;
  color: var(--theme-text);
}

html[data-theme="dark"] #header,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/95,
html[data-theme="dark"] .bg-white\/70 {
  background-color: rgba(32, 23, 26, 0.92) !important;
  color: var(--theme-text);
}

html[data-theme="dark"] #header {
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 0.95);
}

html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-50\/70,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-primary-50,
html[data-theme="dark"] .bg-primary-100 {
  background-color: var(--theme-surface-soft) !important;
}

html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600 {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400,
html[data-theme="dark"] .text-gray-300 {
  color: var(--theme-muted) !important;
}

html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-primary-100,
html[data-theme="dark"] .border-primary-200 {
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: var(--theme-surface-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #a8918f !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  background-color: #2f2326 !important;
}

html[data-theme="dark"] #heroSection {
  background: linear-gradient(135deg, #1c1416 0%, #2a171d 50%, #160f11 100%) !important;
}

html[data-theme="dark"] #heroBackground {
  opacity: 0.12;
  filter: saturate(0.9) contrast(1.08) brightness(0.78);
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .featured-product-card,
html[data-theme="dark"] .search-filter-chip,
html[data-theme="dark"] .search-page-btn {
  background-color: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .featured-product-media,
html[data-theme="dark"] .featured-product-placeholder {
  background-color: var(--theme-surface-soft) !important;
}

html[data-theme="dark"] .featured-product-title,
html[data-theme="dark"] .featured-product-price {
  color: var(--theme-text);
}

html[data-theme="dark"] .search-filter-chip:hover,
html[data-theme="dark"] .search-filter-chip.is-active,
html[data-theme="dark"] .search-page-btn:hover:not(:disabled),
html[data-theme="dark"] .qty-btn:hover,
html[data-theme="dark"] .theme-toggle-button:hover {
  border-color: #cc6079 !important;
  background-color: rgba(154, 34, 68, 0.14) !important;
  color: #e096a7 !important;
}

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #251b1e 25%, #342529 50%, #251b1e 75%);
  background-size: 1000px 100%;
}

html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-lg,
html[data-theme="dark"] .shadow-xl,
html[data-theme="dark"] .shadow-2xl {
  box-shadow: 0 18px 45px -32px rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="dark"] #cartOverlay {
  background-color: rgba(0, 0, 0, 0.72) !important;
}

/* ====== Smooth page transitions ====== */
main {
  animation: fadeIn 0.4s ease-out;
}

/* ====================================================
   REDESIGN — Modern Boutique UI
   ==================================================== */

/* Hero dot pattern */
.hero-dot-pattern {
  background-image: radial-gradient(circle, rgba(154, 34, 68, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Float animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.animate-float {
  animation: floatY 5s ease-in-out infinite;
}

/* Gradient text shimmer */
@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero visual frame */
.hero-visual-frame {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-main-frame {
  position: absolute;
  inset: 0;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, #f7e3e7, #eec2cc 50%, #fbf3f4);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(127, 28, 57, 0.25);
}

.hero-accent-frame {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 110px;
  height: 110px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 20px 50px -10px rgba(127, 28, 57, 0.45);
}

.hero-floating-card {
  position: absolute;
  bottom: 28px;
  left: 0px;
  z-index: 10;
}

/* Product card — improved */
.product-card {
  border-radius: 1.5rem !important;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 50px -16px rgba(127, 28, 57, 0.18) !important;
  border-color: #eec2cc !important;
}

.product-card .product-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-view-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(105, 24, 47, 0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  pointer-events: none;
}

.product-card:hover .product-view-overlay {
  opacity: 1;
}

/* Feature strip cards */
.feature-strip-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.25rem 1rem;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.feature-strip-card:hover {
  box-shadow: 0 12px 32px -10px rgba(127, 28, 57, 0.12);
  border-color: #eec2cc;
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #fbf3f4, #f7e3e7);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Nav link styles */
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #9a2244;
  background: #fbf3f4;
}

.nav-link-special {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9a2244;
  background: #fbf3f4;
  border-radius: 999px;
  border: 1px solid #eec2cc;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-special:hover {
  background: #f7e3e7;
  color: #7f1c39;
  border-color: #e096a7;
  transform: translateY(-1px);
}

/* Custom order banner */
.custom-order-banner {
  background: linear-gradient(135deg, #69182f 0%, #9a2244 55%, #7f1c39 100%);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.custom-order-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -15%;
  width: 55%;
  height: 220%;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(20deg);
  pointer-events: none;
}

.custom-order-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -15%;
  width: 45%;
  height: 200%;
  background: rgba(255, 255, 255, 0.03);
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Search bar modern */
.search-bar-modern {
  background: white;
  border: 1.5px solid #f0f0f0;
  border-radius: 999px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 14px -4px rgba(0, 0, 0, 0.06);
}

.search-bar-modern:focus-within {
  border-color: #e096a7;
  box-shadow: 0 0 0 3px rgba(154, 34, 68, 0.08), 0 2px 14px -4px rgba(0, 0, 0, 0.06);
}

/* Dark mode — new components */
html[data-theme="dark"] .hero-dot-pattern {
  background-image: radial-gradient(circle, rgba(154, 34, 68, 0.22) 1px, transparent 1px);
}

html[data-theme="dark"] .hero-main-frame {
  background: linear-gradient(135deg, #2a181d, #1c1113, #241016);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .hero-accent-frame {
  border-color: #2e1c20;
}

html[data-theme="dark"] .hero-floating-card > div {
  background-color: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .feature-strip-card {
  background-color: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .feature-icon-wrap {
  background: linear-gradient(135deg, #2a181d, #1c1113);
}

html[data-theme="dark"] .nav-link {
  color: var(--theme-muted);
}

html[data-theme="dark"] .nav-link:hover {
  color: #cc6079;
  background: rgba(154, 34, 68, 0.12);
}

html[data-theme="dark"] .search-bar-modern {
  background: var(--theme-surface-soft) !important;
  border-color: var(--theme-border) !important;
}
