/* ============================================================
   Dewa Florist Demak - style.css
   Color palette: warm ivory, soft blush pink, fresh pine green, champagne gold
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --ivory: #FFFAF1;
  --cream: #F4EFE3;
  --blush: #F7C8C2;
  --blush-dark: #F28B75;
  --coral: #F28B75;
  --sage: #FCE8EB;
  --sage-dark: #9E3D52;
  --deep-green: #5E1A2B;
  --gradient-mid: #4D1321;
  --champagne: #D8B568;
  --charcoal: #20342C;
  --text-main: #20342C;
  --text-muted: #66756D;
  --bg-main: #FFFAF1;
  --navbar-bg: #FFFAF1;
  --bg-card: #ffffff;
  --bg-section: #F4EFE3;
  --border: rgba(158, 61, 82, 0.14);
  --footer-bg: #401220;
  --shadow: 0 4px 24px rgba(158, 61, 82, 0.06);
  --shadow-hover: 0 8px 40px rgba(158, 61, 82, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --transition: .25s ease;
  --navbar-h: 72px;
  --focus-ring: rgba(158, 61, 82, 0.2);
  --about-overlay: rgba(94, 26, 43, 0.85);
  --about-overlay-fade: rgba(94, 26, 43, 0.3);
}

[data-theme="dark"] {
  --text-main: #FFFBF5;
  --text-muted: #A2B7AE;
  --bg-main: #0A1914;
  --navbar-bg: #0A1914;
  --bg-card: #14352B;
  --bg-section: #112C23;
  --border: rgba(216, 181, 104, 0.2);
  --footer-bg: #06110D;
  --shadow: 0 4px 24px rgba(0, 0, 0, .45);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, .6);
  --ivory: #0A1914;
  --cream: #112C23;

  /* Restore green theme variables for dark mode */
  --sage: #DDEEE3;
  --sage-dark: #1F6F54;
  --deep-green: #144A39;
  --gradient-mid: #1c3c2e;
  --focus-ring: rgba(88, 129, 87, 0.2);
  --about-overlay: rgba(20, 74, 57, 0.85);
  --about-overlay-fade: rgba(20, 74, 57, 0.3);
}

/* ── Base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  padding-top: var(--navbar-h);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.3;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blush-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Navbar ───────────────────────────────────────────────── */
.dfw-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--navbar-h);
  background: var(--navbar-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .dfw-navbar {
  background: var(--navbar-bg);
}

.dfw-navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(44, 44, 44, .1);
}

.dfw-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--deep-green) !important;
  font-weight: 700;
}

[data-theme="dark"] .dfw-brand {
  color: var(--champagne) !important;
}

.brand-icon {
  font-size: 1.6rem;
  color: var(--blush-dark);
}

/* ── Navbar Logo (uploaded via Setting Toko) ────────────── */
.navbar-logo {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  /* Prevent raw upload size from blowing up layout */
  flex-shrink: 0;
  /* Smooth transition for theme changes */
  transition: opacity var(--transition);
}

[data-theme="dark"] .navbar-logo {
  /* Slight brightness boost so light logos stay visible on dark navbar */
  filter: brightness(1.05);
}

.navbar-nav .nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-main) !important;
  padding: .4rem .7rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--coral) !important;
  background: var(--cream);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--cream);
  color: var(--coral);
}

.btn-wa-nav {
  background: #25d366;
  color: #fff !important;
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all var(--transition);
}

.btn-wa-nav:hover {
  background: #1ebe5c;
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--gradient-mid) 50%, var(--sage-dark) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-section .container {
  position: relative;
  z-index: 5;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none !important;
}

.hero-content {
  position: relative;
  z-index: 900 !important;
}

.hero-actions {
  position: relative;
  z-index: 950 !important;
}

.hero-actions a {
  position: relative;
  z-index: 1000 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--champagne);
}

.hero-subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: var(--champagne);
  color: var(--charcoal);
  border: none;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer !important;
}

.btn-hero-primary:hover {
  background: #C5A358;
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(216, 181, 104, .4);
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer !important;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--champagne);
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}

.hero-img-wrap {
  position: relative;
  text-align: center;
}

.hero-img-card {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-flower-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── Section Commons ──────────────────────────────────────── */
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-main);
  margin-bottom: .75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 540px;
}

/* ── Category Chips ───────────────────────────────────────── */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.chip {
  padding: .5rem 1.2rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.chip:hover,
.chip.active {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-section);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--champagne);
  color: var(--charcoal);
  font-size: .75rem;
  font-weight: 800;
  padding: .35rem .85rem;
  border-radius: 50px;
  letter-spacing: .05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  z-index: 2;
  text-transform: uppercase;
}

.product-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: .75rem;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 1rem;
}

[data-theme="dark"] .product-price {
  color: var(--champagne);
}

.product-price-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  justify-content: center;
  transition: all var(--transition);
}

.btn-wa:hover {
  background: #1ebe5c;
  color: #fff;
  transform: translateY(-1px);
}

.btn-detail {
  background: var(--bg-section);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all var(--transition);
}

.btn-detail:hover {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
}

.btn-search {
  background: var(--champagne);
  color: var(--charcoal);
  border: none;
  padding: .55rem 1.5rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all var(--transition);
}

.btn-search:hover {
  background: #C5A358;
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 181, 104, .3);
}

/* ── Section BG alternates ──────────────────────────────── */
.bg-section {
  background: var(--bg-section);
}

.bg-deep-green {
  background: var(--deep-green);
}

/* ── Moments Section ─────────────────────────────────────── */
.moment-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.moment-card:hover {
  border-color: var(--blush);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.moment-icon {
  font-size: 2.2rem;
  margin-bottom: .75rem;
}

.moment-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-main);
}

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-grid-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-grid-item img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 74, 62, .8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

/* ── Reviews ─────────────────────────────────────────────── */
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card>.d-flex {
  margin-top: auto;
}

.review-stars {
  color: #f59e0b;
  margin-bottom: .5rem;
}

.review-message {
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-author {
  font-weight: 600;
  color: var(--text-main);
  font-size: .9rem;
}

.review-date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.dfw-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
}

.dfw-accordion .accordion-button:not(.collapsed) {
  color: var(--deep-green);
  background: var(--bg-card);
  box-shadow: none;
}

[data-theme="dark"] .dfw-accordion .accordion-button:not(.collapsed) {
  color: var(--champagne);
}

.dfw-accordion .accordion-button::after {
  filter: none;
}

.dfw-accordion .accordion-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: .5rem;
  overflow: hidden;
  background: var(--bg-card);
}

.dfw-accordion .accordion-body {
  color: var(--text-muted);
  background: var(--bg-card);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--deep-green), var(--sage-dark));
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, .8);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn-cta-wa {
  background: #fff;
  color: var(--deep-green);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all var(--transition);
  border: none;
}

.btn-cta-wa:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .4);
}

/* ── Footer ──────────────────────────────────────────────── */
.dfw-footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 4rem 0 0;
}

[data-theme="dark"] .dfw-footer {
  background: var(--footer-bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand-icon {
  font-size: 1.6rem;
  color: var(--blush);
}

/* ── Footer Logo ─────────────────────────────────────────── */
.footer-logo {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  opacity: .9;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.footer-desc {
  color: #aaa;
  font-size: .88rem;
  line-height: 1.7;
}

.footer-heading {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  color: #aaa;
  font-size: .88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: #aaa;
  font-size: .88rem;
  margin-bottom: .75rem;
}

.footer-contact li i {
  color: var(--blush);
  flex-shrink: 0;
  margin-top: .2rem;
}

.footer-contact a {
  color: #aaa;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--blush);
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social-link:hover {
  background: var(--blush-dark);
  color: #fff;
}

.footer-divider {
  border-color: rgba(255, 255, 255, .1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  padding-bottom: 2rem;
  color: #888;
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}

.footer-order-note {
  color: #666;
}

/* ── Floating WA ─────────────────────────────────────────── */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: all var(--transition);
  text-decoration: none;
}

.floating-wa:hover {
  background: #1ebe5c;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, .5);
}

.sticky-wa-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: .6rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
}

.btn-wa-sticky {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: .7rem;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 95px;
  z-index: 998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
}

/* ── Fade-up animation ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.dfw-breadcrumb {
  padding: 1rem 0;
  background: var(--bg-section);
}

.dfw-breadcrumb .breadcrumb-item {
  font-size: .85rem;
}

.dfw-breadcrumb .breadcrumb-item a {
  color: var(--coral);
}

.dfw-breadcrumb .breadcrumb-item.active {
  color: var(--text-muted);
}

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar-wrap {
  position: relative;
}

.search-bar-wrap input {
  padding-left: 2.8rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
}

.search-bar-wrap input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background: var(--bg-card);
  color: var(--text-main);
}

.search-bar-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-select,
.form-control {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
  border-radius: 10px;
}

.form-select:focus,
.form-control:focus {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

/* Placeholder contrast */
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Select option text always dark for readability */
.form-select option {
  background: var(--bg-card);
  color: var(--text-main);
}

/* Input group addon */
.input-group-text {
  background: var(--bg-section);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--deep-green), var(--sage-dark));
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  opacity: .4;
  margin-bottom: 1rem;
}

.empty-state h5 {
  color: var(--text-main);
  margin-bottom: .5rem;
}

/* ── Detail page ─────────────────────────────────────────── */
.detail-img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-green);
}

[data-theme="dark"] .detail-price {
  color: var(--champagne);
}

.detail-badge {
  display: inline-block;
  background: var(--champagne);
  color: var(--charcoal);
  font-size: .75rem;
  font-weight: 800;
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ── Star rating input ───────────────────────────────────── */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: .2rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.6rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color var(--transition);
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
  color: #f59e0b;
}

/* ── Mobile Navbar Collapse (solid panel, not transparent) ── */
.navbar-collapse {
  background: transparent;
}

@media (max-width: 991.98px) {

  /* Solid background when menu is open on mobile */
  .dfw-navbar .navbar-collapse.show,
  .dfw-navbar .navbar-collapse.collapsing {
    background: var(--navbar-bg);
    border-top: 1px solid var(--border);
    margin: 0 -12px;
    padding: .75rem 1rem 1rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(44, 44, 44, .12);
  }

  [data-theme="dark"] .dfw-navbar .navbar-collapse.show,
  [data-theme="dark"] .dfw-navbar .navbar-collapse.collapsing {
    background: var(--navbar-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  }

  /* Nav links in mobile */
  .navbar-nav .nav-link {
    padding: .6rem .75rem !important;
    border-radius: 10px;
    font-size: .92rem !important;
    color: var(--text-main) !important;
  }

  .navbar-nav .nav-link.active {
    background: var(--bg-section);
    color: var(--coral) !important;
  }

  /* Theme toggle in mobile */
  .navbar-nav .theme-toggle-btn {
    width: 100%;
    border-radius: 10px;
    justify-content: flex-start;
    gap: .5rem;
    padding: .6rem .75rem;
  }

  /* WA button mobile full width */
  .btn-wa-nav {
    width: 100%;
    justify-content: center;
    padding: .7rem 1rem !important;
    border-radius: 10px !important;
    font-size: .92rem !important;
  }
}

/* ── Hamburger contrast ───────────────────────────────────── */
.navbar-toggler {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: .35rem .6rem !important;
  color: var(--text-main) !important;
  background: var(--bg-card) !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%232c2c2c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23e8e0d8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .navbar-toggler {
  border-color: var(--border) !important;
  background: var(--bg-card) !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0 2rem;
  }

  body {
    padding-bottom: 80px;
  }

  .floating-wa {
    position: fixed;
    bottom: 96px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
    z-index: 9999;
  }

  .back-to-top {
    position: fixed;
    bottom: 168px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    z-index: 9999;
  }

  .navbar-logo {
    max-height: 40px;
  }

  .footer-logo {
    max-height: 36px;
  }

  /* No horizontal overflow */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Product cards on mobile */
  .product-body {
    padding: .9rem;
  }

  .product-name {
    font-size: .95rem;
  }

  /* Search/filter stack */
  .search-bar-wrap input {
    font-size: .88rem;
  }

  /* Gallery 2 cols on mobile */
  .gallery-grid {
    columns: 2;
    column-gap: .6rem;
  }

  /* Hero stats inline */
  .hero-stats {
    gap: 1.25rem;
  }

  /* Sticky WA bar */
  .sticky-wa-mobile {
    padding: .5rem .75rem;
    z-index: 10000;
  }

  .btn-wa-sticky {
    font-size: .9rem;
    padding: .65rem;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    flex-direction: column;
    gap: .75rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .gallery-grid {
    columns: 1;
  }

  /* Section padding tighter */
  .cta-section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  /* Product grid 1 col */
  .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 577px) and (max-width: 767px) {

  /* 2-col product grid on small tablets */
  .row .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Safety rules to disable pointer interactions on all background/decorative elements */
.decorative,
.pattern,
.blob,
.shape,
[class*="blob"],
[class*="pattern"],
[class*="shape"],
[class*="decor"],
.hero-section::before,
.hero-section::after {
  pointer-events: none !important;
}

/* Micro-interaction zoom effect on About-us wrapper */
.about-img-wrap:hover img {
  transform: scale(1.04);
}

/* ── Unified Line-Style Icons Styling ───────────────────────── */
.icon {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.8;
  transition: transform var(--transition), stroke-width var(--transition), color var(--transition);
}

.icon-sm {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}

.icon-md {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.icon-lg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

.icon-xl {
  width: 44px;
  height: 44px;
  stroke-width: 2.0;
}

/* Inline layout helper to align text & icon beautifully */
.d-inline-flex-align {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Premium Rounded Wrapper */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: all var(--transition);
}

.bg-rose-soft {
  background: rgba(158, 61, 82, 0.08);
  color: var(--sage-dark, #9E3D52);
}

.bg-gold-soft {
  background: rgba(216, 181, 104, 0.12);
  color: var(--champagne, #D8B568);
}

.bg-green-soft {
  background: rgba(31, 111, 84, 0.08);
  color: var(--sage-dark, #1F6F54);
}

/* Hover effects */
.icon-circle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(158, 61, 82, 0.15);
}

[data-theme="dark"] .icon-circle:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bg-rose-soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

[data-theme="dark"] .bg-gold-soft {
  background: rgba(216, 181, 104, 0.12);
  color: var(--champagne);
}

[data-theme="dark"] .bg-green-soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne);
}

/* ── Theme Toggle Orb ────────────────────────────────────────── */
.theme-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease, transform .2s ease, box-shadow .25s ease;
  padding: 0;
  color: inherit;
  flex-shrink: 0;
}

.theme-orb:hover {
  border-color: var(--champagne, #D8B568);
  background: rgba(216, 181, 104, .12);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(216, 181, 104, .15);
}

.theme-orb:active {
  transform: scale(.95);
}

.theme-orb-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease, transform .4s ease;
}

.theme-orb-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Light mode default — show moon, hide sun */
html:not([data-theme="dark"]) .theme-orb-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html:not([data-theme="dark"]) .theme-orb-sun {
  opacity: 0;
  transform: rotate(90deg) scale(.4);
}

/* Dark mode — hide moon, show sun */
html[data-theme="dark"] .theme-orb-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(.4);
}

html[data-theme="dark"] .theme-orb-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Dark mode orb styling */
html[data-theme="dark"] .theme-orb {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
}

/* Keep old helpers for any other uses */
.d-dark-none {
  display: inline-flex !important;
}

.d-light-none {
  display: none !important;
}

html[data-theme="dark"] .d-dark-none {
  display: none !important;
}

html[data-theme="dark"] .d-light-none {
  display: inline-flex !important;
}