/* Theme */
:root {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --surface-2: #efe6d7;
  --ink: #1f2937;
  --muted: #6b7280;
  --primary: #0f766e;
  --primary-ink: #ecfeff;
  --accent: #f97316;
  --accent-ink: #ffffff;
  --outline: #e5e7eb;
  --shadow-lg: 0 22px 50px rgba(17, 24, 39, 0.12);
  --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-body: "DM Sans", sans-serif;
  --font-head: "Space Grotesk", sans-serif;
}

html, body {
  height: 100%;
}

body.page-shell {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1400px 400px at 10% -10%, #fcd34d33 0%, transparent 60%),
    radial-gradient(1200px 500px at 100% 0%, #0f766e1a 0%, transparent 55%),
    var(--bg);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-main {
  padding: 1rem 0 4rem;
}

.page-main .section-spacing-sm:first-child {
  margin-top: 0.5rem;
}

.section-spacing-sm {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Navbar */
.main-navbar {
  background: linear-gradient(120deg, #0b2b33, #0f3d46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(11, 43, 51, 0.25);
}

.navbar-brand {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: #fef3c7;
}

.navbar .dropdown-menu {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--outline);
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--ink);
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: #fff7ed;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1f8f85);
  border: none;
  color: var(--primary-ink);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0d6f67, #1aa69b);
  color: #ffffff;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-view-all {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--outline);
  padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.2);
}

/* Cards and lists */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
}

.card-header {
  background: #fff7ed;
  border-bottom: 1px solid var(--outline);
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.product-card-actions .btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.product-card-actions .btn.flex-grow-1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-actions .btn-cart {
  padding: 0.4rem 0.5rem;
}

.badge-soft {
  background: #ecfeff;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: #f8fafc;
  font-size: 0.8rem;
}

.blog-card-img {
  height: 200px;
  object-fit: cover;
}

/* Hero */
.fixed-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Countdown */
.countdown-box {
  background: #0f766e;
  color: #ecfeff;
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  min-width: 80px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.countdown-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer a {
  color: #cbd5f5;
}

.footer-links a {
  color: #cbd5f5;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-brand {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
}

.footer-text {
  color: #cbd5f5;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer-contact a {
  color: #e2e8f0;
}

/* Notifications */
.notif-menu {
  max-width: 280px;
}

.notification-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: var(--notif-title-limit, 60ch);
}

/* Floating actions */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1045;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f3d46;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(11, 43, 51, 0.3);
}

.floating-btn:hover,
.floating-btn:focus {
  background: #165a66;
  color: #ffffff;
}

.floating-cart-btn {
  position: relative;
}

.floating-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f97316;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-width: 20px;
  text-align: center;
}

/* Search Suggestions Dropdown */
#desktopSearchSuggestions,
#mobileSearchSuggestions {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1020 !important;
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  margin-top: 0.4rem;
}

#desktopSearchSuggestions .dropdown-item,
#mobileSearchSuggestions .dropdown-item {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
}

#desktopSearchSuggestions .dropdown-item:hover,
#mobileSearchSuggestions .dropdown-item:hover {
  background: #fff7ed;
}

#desktopSearchContainer,
#mobileSearchContainer {
  position: relative;
}

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SEO Footer */
.seo-footer {
  padding: 1.5rem 0 2.5rem;
}

.seo-footer-card {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.seo-footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.seo-footer-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.seo-footer-toggle {
  border: 1px solid var(--outline);
  background: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.seo-footer-toggle:hover,
.seo-footer-toggle:focus {
  background: #f0fdfa;
}

.seo-footer-content {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
  position: relative;
  transition: max-height 0.3s ease;
}

.seo-footer-content.is-collapsed {
  max-height: 10.5rem;
  overflow: hidden;
}

.seo-footer-content.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 75%);
}

/* Contact bar */
.contact-bar {
  background: #0f172a;
  color: #e2e8f0;
}

.mobile-search-panel {
  background: #ffffff;
  border-bottom: 1px solid var(--outline);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(140deg, #0b2b33, #0f3d46);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 16px 30px rgba(11, 43, 51, 0.35);
    margin-top: 0.6rem;
  }

  .navbar-collapse .nav-link {
    color: #e2e8f0;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    color: #fef3c7;
  }

  .navbar-collapse .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  }

  .navbar-collapse .dropdown-item {
    color: var(--ink);
  }

  .navbar-collapse .dropdown-item:hover {
    background: #fff7ed;
  }
}

@media (max-width: 576px) {
  .countdown-box {
    min-width: 60px;
    padding: 0.5rem;
  }

  .countdown-value {
    font-size: 0.95rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .main-navbar .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
  }

  .page-main {
    padding: 0.75rem 0 3rem;
  }

  .floating-actions {
    right: 12px;
    bottom: 16px;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
  }

  .site-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
