/* ===================== Public website ===================== */
.topbar { background: var(--chocolate); color: var(--on-primary-muted); font-size: .82rem; }
.topbar a { color: var(--on-primary); text-decoration: none; }
.site-nav { background: rgba(251, 244, 234, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); z-index: 1030; }
.site-nav .container { flex-wrap: nowrap; }
.site-nav .navbar-brand { font-family: var(--font-display); font-weight: 700; color: var(--primary-text); font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1 1 auto; margin-right: .5rem; }
@media (min-width: 576px) { .site-nav .navbar-brand { font-size: 1.3rem; } }
@media (min-width: 1200px) { .site-nav .container { flex-wrap: wrap; } .site-nav .navbar-brand { flex: 0 0 auto; } }
.site-nav .navbar-brand img { height: 40px; width: auto; flex-shrink: 0; }
.site-nav .navbar-brand.has-logo { flex: 0 1 auto; padding: 0; }
.site-nav .navbar-brand.has-logo img { height: 46px; max-width: 200px; object-fit: contain; border-radius: 8px; }
@media (min-width: 1200px) { .site-nav .navbar-brand.has-logo img { height: 52px; } }
.offcanvas-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; border-radius: 8px; }
/* Desktop menu: never wrap or overflow. Tighten spacing on laptop widths (1200–1399px). */
@media (min-width: 1200px) {
  .site-nav .navbar-collapse { min-width: 0; }
  .site-nav .navbar-nav { flex-wrap: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .nav-link { padding: .5rem .55rem !important; font-size: .9rem; }
  .site-nav .navbar-nav { gap: 0 !important; }
  .site-nav .navbar-brand:not(.has-logo) span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
}
.site-nav .navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav .nav-link { color: var(--primary-text); font-weight: 600; padding: .55rem .75rem !important; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { background: var(--cream-2); color: var(--primary-text); }
.site-nav .d-flex.align-items-center { flex-shrink: 0; }
.nav-icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--primary-text); background: transparent; border: 0; text-decoration: none; }
.nav-icon-btn:hover { background: var(--cream-2); color: var(--primary-text); }
.cart-badge { position: absolute; top: 2px; right: 0; background: var(--caramel); color: var(--on-accent); font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.offcanvas { background: var(--cream); }
.mobile-menu .nav-link { font-size: 1.08rem; padding: .8rem 0 !important; border-bottom: 1px solid var(--line); border-radius: 0; }

/* Hero */
.hero { position: relative; }
.hero .swiper { border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.hero-slide { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: #fff; }
.hero-slide img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 26, 18, .1) 0%, rgba(46, 26, 18, .55) 55%, rgba(46, 26, 18, .85) 100%); }
@media (min-width: 768px) {
  .hero-slide::after { background: linear-gradient(90deg, rgba(46, 26, 18, .82) 0%, rgba(46, 26, 18, .55) 45%, rgba(46, 26, 18, .05) 80%); }
  .hero-slide { align-items: center; }
}
.hero-content h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-content { position: relative; z-index: 2; padding: 2.5rem 0 3.5rem; max-width: 600px; }
.hero-content h1 { color: #fff; }
.hero-content p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.hero-fallback { background: radial-gradient(1200px 400px at 80% 0%, var(--pink-soft), transparent), linear-gradient(135deg, var(--cream-2), var(--cream)); color: var(--ink); align-items: center; }
.hero-fallback::after { display: none; }
.hero-fallback h1 { color: var(--primary-text); }
.hero-fallback p { color: var(--muted); }
.hero-art { font-size: clamp(6rem, 20vw, 12rem); color: var(--caramel); opacity: .9; }
.swiper-pagination-bullet-active { background: var(--caramel) !important; }

.section { padding: 3.5rem 0; }
.section-sm { padding: 2.25rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: .35rem 0 0; max-width: 560px; }

/* Product cards */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--cream-2); overflow: hidden; display: block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .thumb .placeholder-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--caramel); }
.product-card .badges { position: absolute; top: .65rem; left: .65rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.product-card .body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card .category { font-size: .74rem; color: var(--caramel-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.product-card .name { font-weight: 700; color: var(--primary-text); text-decoration: none; line-height: 1.3; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-weight: 700; color: var(--primary-text); font-size: 1.02rem; }
.product-card .price del { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: .3rem; }
.product-card .actions { margin-top: auto; padding-top: .5rem; display: flex; gap: .4rem; }
.quick-view-btn { position: absolute; right: .65rem; bottom: .65rem; z-index: 2; opacity: 1; }
@media (hover: hover) { .quick-view-btn { opacity: 0; transition: opacity .2s; } .product-card:hover .quick-view-btn { opacity: 1; } }

@media (min-width: 1200px) { .row-cols-xl-7 > * { flex: 0 0 auto; width: 14.2857%; } }
.category-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; text-decoration: none; color: var(--primary-text); padding: 1rem .5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: .2s; }
.category-tile:hover { border-color: var(--caramel); color: var(--primary-text); box-shadow: var(--shadow-sm); }
.category-tile .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pink-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--chocolate-2); overflow: hidden; }
.category-tile .icon img { width: 100%; height: 100%; object-fit: cover; }
.category-tile span { font-weight: 600; font-size: .92rem; }

.feature-banner { border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, var(--chocolate), var(--chocolate-2)); color: var(--on-primary); padding: 2rem 1.5rem; position: relative; }
.feature-banner h2, .feature-banner h3 { color: var(--on-primary); }
.feature-banner p { color: var(--on-primary-muted); }
.feature-banner .art { position: absolute; right: -10px; bottom: -20px; font-size: 9rem; color: rgba(var(--on-primary-rgb), .07); }
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-card .step-icon { width: 68px; height: 68px; margin: 0 auto .9rem; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--caramel-2); box-shadow: var(--shadow-sm); }
.combo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.combo-card .media { aspect-ratio: 16 / 10; background: var(--pink-soft); position: relative; display: block; }
.combo-card .media img { width: 100%; height: 100%; object-fit: cover; }
.combo-card .savings { position: absolute; top: .75rem; right: .75rem; background: var(--gold); color: var(--on-gold); border-radius: 999px; padding: .3rem .75rem; font-weight: 700; font-size: .8rem; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.testimonial-card .quote { font-family: var(--font-display); font-size: 1.08rem; color: var(--primary-text); }
.stars { color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Banner photo comes from Site settings → Brand colours; the page-colour wash keeps titles readable. */
.page-hero {
  background:
    linear-gradient(90deg, rgba(var(--cream-rgb), .95) 0%, rgba(var(--cream-rgb), .92) 50%, rgba(var(--cream-rgb), .5) 100%),
    var(--hero-image) center / cover no-repeat, var(--cream-2);
  padding: 2.75rem 0 2.5rem; border-bottom: 1px solid var(--line);
}
@media (max-width: 767.98px) {
  .page-hero { background: linear-gradient(rgba(var(--cream-rgb), .92), rgba(var(--cream-rgb), .92)), var(--hero-image) center / cover no-repeat, var(--cream-2); }
}
.page-hero .breadcrumb { font-size: .85rem; margin-bottom: .5rem; }
.page-hero .breadcrumb a { color: var(--muted); text-decoration: none; }
.page-hero p { color: var(--muted); max-width: 640px; margin: .5rem 0 0; }

/* Catalog */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.filter-panel .form-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.catalog-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.catalog-toolbar .result-count { color: var(--muted); font-size: .92rem; margin-right: auto; }
.product-gallery .main { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); aspect-ratio: 1 / 1; }
.product-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs .swiper-slide { opacity: .55; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; }
.product-gallery .thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--caramel); }
.product-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-lg { font-size: 1.7rem; font-weight: 700; color: var(--primary-text); }
.price-lg del { font-size: 1rem; color: var(--muted); font-weight: 400; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty-input button { width: 42px; height: 44px; border: 0; background: transparent; color: var(--primary-text); font-size: 1rem; }
.qty-input input { width: 52px; text-align: center; border: 0; font-weight: 700; min-height: 44px; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .65rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.info-list li i { color: var(--caramel); width: 18px; margin-top: .25rem; }

/* Cart & checkout */
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .ph { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--cream-2); display: flex; align-items: center; justify-content: center; color: var(--caramel); }
.cart-line .meta { color: var(--muted); font-size: .85rem; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-weight: 700; font-size: 1.12rem; color: var(--primary-text); }
@media (min-width: 992px) { .sticky-summary { position: sticky; top: 96px; } }
.choice-card { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; background: #fff; height: 100%; }
.choice-card input { margin-right: .5rem; }
.choice-card:has(input:checked) { border-color: var(--chocolate); background: var(--cream); }
.mobile-checkout-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); z-index: 1020; box-shadow: 0 -6px 18px rgba(var(--primary-rgb), .08); }
@media (min-width: 992px) { .mobile-checkout-bar { display: none; } }
.has-mobile-bar { padding-bottom: 84px; }
@media (min-width: 992px) { .has-mobile-bar { padding-bottom: 0; } }

/* Order tracking */
.track-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; position: relative; }
.track-step { text-align: center; font-size: .78rem; color: var(--muted); position: relative; }
.track-step .dot { width: 34px; height: 34px; margin: 0 auto .4rem; border-radius: 50%; background: var(--cream-2); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); position: relative; z-index: 1; }
.track-step.done .dot { background: var(--chocolate); border-color: var(--chocolate); color: var(--on-primary); }
.track-step.current .dot { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3); }
.track-step.done { color: var(--primary-text); font-weight: 600; }
.track-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: var(--line); }
.track-step.done:not(:last-child)::after { background: var(--chocolate); }

/* Account */
.account-nav .list-group-item { border-color: var(--line); color: var(--primary-text); font-weight: 600; padding: .8rem 1rem; }
.account-nav .list-group-item.active { background: var(--chocolate); border-color: var(--chocolate); color: var(--on-primary); }
.account-nav-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.account-nav-scroll a { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--chocolate); color: var(--on-primary-muted); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h5, .site-footer h6 { color: var(--on-primary); font-family: var(--font-body); }
.site-footer a { color: var(--on-primary-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-primary); }
.site-footer .brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--on-primary); }
.site-footer .social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--on-primary-rgb), .1); display: inline-flex; align-items: center; justify-content: center; margin-right: .35rem; }
.site-footer .social a:hover { background: var(--caramel); color: var(--on-accent); }
.site-footer .form-control { background: rgba(var(--on-primary-rgb), .08); border-color: rgba(var(--on-primary-rgb), .2); color: var(--on-primary); }
.site-footer .form-control::placeholder { color: rgba(var(--on-primary-rgb), .6); }
.footer-bottom { border-top: 1px solid rgba(var(--on-primary-rgb), .15); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); z-index: 1025; text-decoration: none; }
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }
.has-mobile-bar ~ .whatsapp-float, body.has-bottom-bar .whatsapp-float { bottom: 96px; }
@media (min-width: 992px) { body.has-bottom-bar .whatsapp-float { bottom: 16px; } }
.map-embed { border: 0; width: 100%; min-height: 300px; border-radius: var(--radius); }

@media (min-width: 768px) {
  .section { padding: 4.5rem 0; }
  .hero-content { padding: 3rem 0 4.5rem; }
}
