@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --primary: #d87c72;
  --primary-dark: #c96d64;
  --secondary: #173d32;
  --secondary-soft: #235849;
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --peach: #f2c6a8;
  --bg: var(--paper);
  --text: #183129;
  --muted: #63736d;
  --line: #dfe6df;
  --shadow-soft: 0 22px 60px rgba(23, 61, 50, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, .navbar-brand {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.025em;
}

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

a {
  color: inherit;
}

.text-muted {
  color: var(--muted) !important;
}

/* Buttons & links */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #ffffff !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.link-primary {
  color: var(--secondary) !important;
  text-decoration: none;
  font-weight: 700;
}

.link-primary:hover {
  color: var(--primary) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: var(--cream) !important;
}

.badge.bg-white.text-primary {
  color: var(--secondary) !important;
}

/* Layout */
.bg-soft {
  background: var(--cream);
}

.section-title {
  font-weight: 700;
  color: var(--text);
}

.lead {
  color: var(--muted);
}

/* Utility */
.ratio.bg-cover {
  background-size: cover;
  background-position: center;
}

.product-main-image {
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(23, 61, 50, 0.10);
  height: clamp(320px, 42vw, 620px);
  width: 100%;
  box-shadow: 0 16px 44px rgba(23, 61, 50, 0.08);
}

.product-card-media {
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 61, 50, 0.08);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex: 0 0 80px;
}

#productGallery {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.home-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(460px, 76vh, 780px);
  padding: 72px 20px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 49, 41, 0.16), rgba(24, 49, 41, 0.58)),
    url("../images/hero/hero-main.jpg") center / cover no-repeat;
}

.home-cover-content {
  width: min(820px, 100%);
}

.home-cover-kicker {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffd8cf;
}

.home-cover h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 8vw, 5.75rem);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.home-cover p:not(.home-cover-kicker) {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero {
  padding: 72px 0;
}

.hero-slider {
  position: relative;
}

.hero-slider .carousel {
  width: 100%;
}

.hero-slider .carousel-inner {
  padding-bottom: 42px;
}

.hero-slide-img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

.hero-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--secondary);
}

.hero-control {
  width: 42px;
  height: 42px;
  top: auto;
  bottom: 0;
  border-radius: 999px;
  background: var(--primary);
  opacity: 1;
}

.hero-control:hover {
  background: var(--primary-dark);
}

.hero-control.carousel-control-prev {
  left: auto;
  right: 58px;
}

.hero-control.carousel-control-next {
  right: 0;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
}

/* Cards */
.card {
  border-color: rgba(23, 61, 50, 0.10);
  border-radius: 0.85rem;
}

.card.lift {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.occasion-card {
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease;
}

.occasion-card:hover,
.occasion-card.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft) !important;
  outline: 2px solid var(--primary);
}

/* Topbar & footer */
.topbar {
  font-size: 0.9rem;
  background: var(--secondary) !important;
  color: #d9e1de !important;
  border-bottom: 0 !important;
}

.topbar a,
.topbar .text-muted,
.topbar div {
  color: #d9e1de !important;
}

.topbar a:hover {
  color: #ffd8cf !important;
}

.topbar a[href^="tel:"],
.topbar a[href*="wa.me"] {
  display: none;
}

body.store-settings-ready .topbar a[href^="tel:"],
body.store-settings-ready .topbar a[href*="wa.me"] {
  display: inline-flex;
}

.navbar {
  background: rgba(255, 253, 249, 0.94) !important;
  border-bottom: 1px solid rgba(23, 61, 50, 0.08);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  color: var(--text) !important;
  font-size: 1.45rem;
  font-weight: 700 !important;
}

.navbar .nav-link {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--primary);
}

.navbar-toggler {
  border-color: rgba(23, 61, 50, 0.16);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.whatsapp-link::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background-color: #25d366;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0 11.9 11.9 0 0 0 1.8 17.9L0 24l6.3-1.7A11.9 11.9 0 0 0 12.1 24 11.9 11.9 0 0 0 20.5 3.5ZM12.1 22a9.9 9.9 0 0 1-5-1.4l-.4-.2-3.7 1 1-3.6-.3-.4A9.9 9.9 0 1 1 12.1 22Zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.5-1.6-.9-.8-1.6-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.2.3 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.8-.7 2.1-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.3-.6-.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0 11.9 11.9 0 0 0 1.8 17.9L0 24l6.3-1.7A11.9 11.9 0 0 0 12.1 24 11.9 11.9 0 0 0 20.5 3.5ZM12.1 22a9.9 9.9 0 0 1-5-1.4l-.4-.2-3.7 1 1-3.6-.3-.4A9.9 9.9 0 1 1 12.1 22Zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.5-1.6-.9-.8-1.6-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6-.1-.2-.7-1.7-1-2.3-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.2.3 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.8-.7 2.1-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.3-.6-.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer a {
  color: inherit;
}

.footer,
footer.bg-dark {
  background: #102c24 !important;
  color: #d9e1de;
}

.footer h5,
.footer h5 .text-primary,
footer.bg-dark h5,
footer.bg-dark h5 .text-primary {
  color: #ffffff !important;
}

.footer p,
.footer .text-muted,
footer.bg-dark .text-muted {
  color: #9fb2ac !important;
}

.footer a:hover,
footer.bg-dark a:hover {
  color: #ffd8cf !important;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--secondary);
  background: #ffffff;
  border: 1px solid rgba(23, 61, 50, 0.18);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  color: #ffffff;
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-payments {
  margin-top: 1.5rem;
}

.footer-payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
}

.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  border-radius: 4px;
  background: #ffffff;
  color: #173d32;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.payment-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.payment-icon-paypal {
  color: #003087;
  font-style: italic;
}

.payment-icon-visa {
  width: 38px;
  flex-basis: 38px;
  background: #1a66c9;
  color: #ffffff;
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 900;
}

.payment-icon-mastercard {
  position: relative;
  overflow: hidden;
}

.payment-icon-mastercard span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
}

.payment-icon-mastercard span:first-child {
  background: #eb001b;
  margin-right: -5px;
}

.payment-icon-mastercard span:last-child {
  background: #f79e1b;
}

.payment-icon-amex {
  background: #2e77bc;
  color: #ffffff;
  font-size: 0.65rem;
}

.payment-icon-bank {
  color: #173d32;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1050;
}

/* Reviews */
.review {
  border-radius: 1.25rem;
}

/* Forms */
.newsletter-form input,
.contact-form input,
.contact-form textarea,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  border-color: rgba(23, 61, 50, 0.18);
  border-radius: 0.75rem;
}

.checkout-form textarea,
.contact-form textarea {
  border-radius: 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(216, 124, 114, 0.18);
}

/* Navbar active state (optional, if you set manually with JS) */
.navbar .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.accordion-button {
  transition: 0.2s ease;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(216, 124, 114, 0.22) !important; 
}

/* Gallery hover */
.gallery-box {
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}
.gallery-box:hover {
  transform: scale(1.03);
  opacity: .9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
}
.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
