/* Nani Store: shared storefront layout and visual system. */
:root {
  --primary: #a43b5b;
  --primary-deep: #812c46;
  --primary-soft: #f6e9ed;
  --primary-glow: #ead2da;
  --ink: #30272b;
  --ink-soft: #53464b;
  --muted: #75666d;
  --cream: #fffcfa;
  --sand: #f5eeeb;
  --border-soft: #e9dfdf;
  --radius: 16px;
  --radius-pill: 999px;
  --pk: var(--primary);
  --pk-deep: var(--primary-deep);
  --wa: #256b50;
  --shadow-sm: 0 2px 8px #30272b05;
  --shadow-md: 0 8px 28px #30272b0c;
  --shadow-lg: 0 20px 60px #30272b12;
}
body { font-family: 'DM Sans', sans-serif; background: var(--cream); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; }
h2 { font-family: 'Playfair Display', Georgia, serif; }
main, .wrap, .container, .grid > *, .products-grid > * { min-width: 0; }
.wrap, .container, .catalog-section .container { max-width: var(--maxw); padding-inline: 32px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
button, a, input, textarea { touch-action: manipulation; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0; min-height: 48px; white-space: normal; }
.btn-primary, .s-pill.active { box-shadow: none; }
.btn-wa:hover { background: #1d553f; }
.btn-ghost { border-color: var(--border-soft); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.eyebrow .bx { font-size: 15px; vertical-align: middle; }
.announce { background: var(--ink); color: #fff7f5; font-size: 11px; padding: 9px 16px; letter-spacing: .035em; }
header, header.scrolled { background: #fffcfaf5; border-bottom: 1px solid var(--border-soft); box-shadow: none; }
.nav { height: 88px; gap: 20px; }
.brand { flex-shrink: 0; width: 108px; height: 88px; overflow: hidden; justify-content: center; }
.brand img { height: 112px; width: 112px; max-width: none; flex-shrink: 0; object-fit: contain; filter: none; }
.brand:hover .brand-logo-img { transform: none; }
nav.menu { gap: 2px; margin-left: 0; flex-shrink: 0; }
nav.menu a { font-size: 13px; padding: 10px; white-space: nowrap; border-radius: 6px; }
nav.menu a i { display: none; }
.search-wrap { min-width: 130px; flex: 1; }
.search { background: #f5efed; border: 1px solid transparent; box-shadow: none; border-radius: 8px; }
.search input { min-width: 0; width: 100%; font-size: 12px; }
.nav-actions { margin-left: auto; flex-shrink: 0; gap: 8px; }
.icon-btn { width: 44px; height: 44px; }
.cart-count { background: var(--primary); }

/* The hero combines editorial typography with a real example photograph. */
.hero { padding: 44px 0 48px; }
.hero-grid { grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.hero-copy { padding: 24px 0; background: none; border-radius: 0; overflow: visible; }
.hero-copy::after { content: none; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: clamp(40px, 4.7vw, 66px); line-height: 1.12; letter-spacing: -.045em; margin: 20px 0 22px; }
.hero h1 .em { font-weight: 500; color: var(--primary); }
.hero p { font-size: 15px; font-weight: 400; line-height: 1.85; max-width: 42ch; margin-bottom: 28px; }
.hero-cta { flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 0 1 auto; padding: 14px 21px; }
.hero-cta .btn-wa { color: var(--ink); background: transparent; border-color: var(--border-soft); }
.hero-cta .btn-wa:hover { background: var(--sand); }
.hero-cta .btn svg { display: block; }
.hero-note { display: flex; gap: 9px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 26px; }
.hero-note i { font-size: 18px; color: var(--primary); }
.hero-media { min-height: 0; height: 450px; border-radius: 120px 16px 16px 16px; background: var(--sand); order: 0; }
.hero-image-wrapper { height: 100%; padding: 0; border-radius: 0; background: var(--sand); }
.hero-media .hero-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-label { position: absolute; top: 28px; right: 24px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: #fffaf5e8; padding: 8px 12px; border-radius: 4px; }
.hero-media .badge { inset: auto 24px 24px; border: 1px solid #ffffff80; background: #fffaf5ed; border-radius: 12px; padding: 16px; box-shadow: none; }
.hero-media .badge .dot { background: var(--primary-soft); color: var(--primary); }
.hero-media .badge .dot svg { color: var(--primary); }
.hero-media .badge .s { margin-top: 4px; }
.service-strip { border-block: 1px solid var(--border-soft); }
.service-strip-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; }
.service-strip span { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.service-strip i { color: var(--primary); font-size: 20px; }

.modalities-section { padding: 44px 0 16px; }
.modalities-grid { gap: 20px; }
.modality-card { border-radius: 14px; padding: 28px; box-shadow: none; gap: 16px; transition: border-color .2s, background .2s; }
.modality-card.card-custom { background: #f6ecef; border-color: #eddee4; }
.modality-card.card-stock { background: #edf1ec; border-color: #dfe5dc; }
.modality-card:hover, .modality-card.card-custom:hover, .modality-card.card-stock:hover { box-shadow: none; border-color: var(--primary); }
.modality-tag { background: none !important; padding: 0; font-size: 10px; letter-spacing: .12em; }
.modality-content h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 25px; font-weight: 500; }
.modality-content p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.modality-btn { font-size: 12px; gap: 8px; }
.modality-card:hover .modality-btn { gap: 8px; }
.modality-icon { font-size: 48px; opacity: .5; }
.card-stock .modality-icon { color: #65755c; }
.modality-card:hover .modality-icon { transform: none; }
.sec-head { gap: 24px; align-items: end; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(27px, 3vw, 36px); }
.sec-head p { font-size: 13px; line-height: 1.7; margin-top: 12px; }
.see-all { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.see-all svg { width: 18px; height: 18px; }
.prod-section { padding: 38px 0 32px; }

/* One horizontal row, no vertical movement or visible scrollbar. */
.cats-horizontal { gap: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px; scroll-snap-type: x proximity; }
.cats-horizontal::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cat-pill-card { flex: 0 0 auto; border: 1px solid var(--border-soft); padding: 14px 18px; border-radius: 10px; box-shadow: none; scroll-snap-align: start; transition: background .2s, border-color .2s; }
.cat-pill-card:hover { box-shadow: none; background: var(--primary-soft); }
.cat-pill-icon { width: 38px; height: 38px; background: var(--primary-soft); border-radius: 10px; flex-shrink: 0; font-size: 20px; }
.cat-pill-info strong { font-size: 12px; font-weight: 500; }

/* Badges participate in layout; controls have their own row. */
.grid, .products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card { border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: none; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.product-card:hover { border-color: #ccb7bf; box-shadow: var(--shadow-md); }
.card-image { aspect-ratio: 1; background: var(--sand); }
.card-image-link { height: 100%; }
.card-image img { object-fit: cover; }
.product-card:hover .card-image img { transform: none; }
.card-badges { position: static; display: flex; flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.badge-pill, .product-card .badge-offer, .product-card .badge-featured { position: static; inset: auto; width: auto; height: auto; max-width: 100%; padding: 4px 8px; border-radius: 5px; font-size: 9px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; white-space: normal; overflow-wrap: anywhere; box-shadow: none; }
.badge-custom-tag, .badge-customizable { background: var(--primary-soft); color: var(--primary-deep); }
.badge-stock { background: #e9f1e8; color: #3c6543; }
.badge-featured { background: #f8f0dc; color: #7e6225; }
.badge-offer { background: var(--primary); color: white; }
.card-body { padding: 16px; gap: 10px; }
.card-meta { margin: 0; flex-wrap: wrap; overflow: visible; font-size: 10px; font-weight: 400; }
.card-category { background: none; padding: 0; color: var(--muted); font-size: 10px; border-radius: 0; }
.card-occasion { display: none; }
.card-title { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.55; }
.card-price-row { margin-top: auto; padding-top: 4px; gap: 6px 10px; flex-wrap: wrap; }
.price-now { font-size: 16px; font-weight: 700; color: var(--ink); }
.price-was { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.card-actions { justify-content: space-between; border-top: 1px solid var(--border-soft); margin-top: 2px; padding-top: 12px; gap: 8px; }
.card-actions .btn-icon { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border-soft); border-radius: 8px; }
.card-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 600; min-height: 44px; padding: 8px 10px; border-radius: 8px; background: var(--sand); flex: 1; }
.card-add:hover { background: var(--primary-soft); color: var(--primary-deep); }
.card-add:disabled { opacity: .5; cursor: not-allowed; }
.card-add i { font-size: 18px; }

#promo { margin-top: 32px; }
.promo-nani { background: #f2e8e8; border: 1px solid var(--border-soft); box-shadow: none; border-radius: 16px; padding: 42px; }
.promo-nani-content h2 { font-weight: 500; }
.promo-nani-content p { font-size: 14px; }
.promo-nani-badge { background: #fffcfa90; border: none; box-shadow: none; }
.values { background: transparent; padding: 64px 0; }
.vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value { background: transparent; border: 1px solid var(--border-soft); box-shadow: none; border-radius: 12px; padding: 28px; }
.value h4 { font-size: 15px; }
.value p { font-size: 13px; }
footer { background: #f4eeeb; color: var(--ink); border-top: 1px solid var(--border-soft); padding-top: 48px; }
.fgrid { border-color: var(--border-soft); }
.footer-brand p, .fcol > a, .contact-list a, .contact-list .line, .fbottom { color: var(--muted); }
.fcol h5, .fbottom a { color: var(--ink); }
.socials a, .contact-list .chip { background: #e9dfdf; color: var(--ink); }
.socials a:hover, .contact-list a:hover .chip { color: white; }
.contact-list a:hover { color: var(--primary); }
.footer-logo-img { filter: none; height: 66px; }
.footer-brand p { font-size: 13px; line-height: 1.85; }
.fcol h5 { letter-spacing: .09em; font-size: 11px; }
.fcol > a, .contact-list { font-size: 12px; }
.fbottom { border-color: var(--border-soft); font-size: 11px; gap: 16px; flex-wrap: wrap; }
.fbottom a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.store-hero-banner { border-radius: 16px; background: #f4ecec; border: 1px solid var(--border-soft); padding: 32px; }
.shb-content h2 { font-weight: 500; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; }
.shb-tag { background: none; padding: 0; color: var(--primary); }
.store-filter-pills { gap: 10px; }
.s-pill { display: inline-flex; align-items: center; gap: 8px; border-width: 1px; border-radius: 8px; font-size: 12px; font-weight: 500; min-height: 44px; box-shadow: none; }
.catalog-header { gap: 20px; flex-wrap: wrap; }
.catalog-filters { flex-wrap: wrap; overflow: visible; min-width: 0; }
.custom-select { min-width: 0; }
.cs-trigger { max-width: 100%; min-height: 44px; }
.cs-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-menu { position: absolute; left: 0; top: calc(100% + 8px); width: max-content; max-width: min(340px, calc(100vw - 40px)); max-height: 280px; }
.cs-option { white-space: normal; }
.section-title { line-height: 1.3; }
.catalog-count { display: inline-block; }

.product-detail { gap: 56px; align-items: start; }
.product-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: clamp(27px, 3vw, 38px); line-height: 1.2; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-main { position: relative; background: var(--sand); border: 1px solid var(--border-soft); border-radius: 16px; isolation: isolate; }
.gallery-main img { transform-origin: 50% 50%; transition: transform .25s ease; }
.gallery-main.is-zoomed img { transform: scale(2); }
.gallery-zoom-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #ffffffed; border-radius: 6px; padding: 7px 10px; font-size: 11px; color: var(--muted); pointer-events: none; }
.detail-gallery-badge { pointer-events: none; }
.personalization-card { background: #f8f0f2; border: 1px solid var(--border-soft); }
.product-actions .btn { min-height: 48px; }
.product-actions { flex-wrap: wrap; }
.p-time-badge { flex-wrap: wrap; }
.breadcrumb { overflow-wrap: anywhere; color: var(--muted); }
.side-panel { max-width: 440px; width: min(440px, 100%); right: -450px; border-radius: 0; }
.side-panel-header h3 { font-size: 18px; }
.side-panel-header button { min-width: 44px; min-height: 44px; }
.drawer { max-width: 100%; }
.cart-item-info, .fav-item-info { min-width: 0; }
.cart-item-title, .fav-item-title { overflow-wrap: anywhere; }
.qty-btn, .cart-item-remove { min-width: 40px; min-height: 40px; }
.cart-custom-note { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }

/* Hover feedback never shifts a card or link upward. */
.cat:hover, .product-card:hover, .modality-card:hover, .cat-pill-card:hover,
.s-pill:hover, .age-filter-box:hover, .age-filter-box.active, .reveal { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery-main { cursor: zoom-in; }
}
@media (hover: none), (pointer: coarse) {
  .gallery-zoom-hint { display: none; }
}
@media (max-width: 1150px) {
  .nav { gap: 14px; }
  nav.menu a { font-size: 12px; padding-inline: 8px; }
  .search-wrap { display: none; }
  .hero-grid { gap: 32px; }
  .hero-media { height: 420px; }
  .grid, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 880px) {
  .wrap, .container, .catalog-section .container { padding-inline: 24px; }
  .nav { height: 76px; }
  nav.menu { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero h1 { font-size: 44px; }
  .hero-media { height: 400px; border-top-left-radius: 80px; }
  .hero p { font-size: 14px; }
  .hero-media .badge { inset: auto 14px 14px; padding: 12px; }
  .hero-media .badge .t { font-size: 12px; }
  .hero-media .badge .s { font-size: 10px; }
  .modality-card { padding: 24px; }
  .modality-content h3 { font-size: 23px; }
  .modality-icon { display: none; }
  .modalities-grid { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr; gap: 14px; }
  .value { padding: 24px; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 28px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
  .promo-nani { padding: 32px; }
}
@media (max-width: 600px) {
  .wrap, .container, .catalog-section .container { padding-inline: 18px; }
  .announce { font-size: 9px; line-height: 1.6; }
  .nav { height: 80px; }
  .brand { height: 80px; width: 96px; }
  .brand img { height: 100px; width: 100px; }
  .nav-actions { gap: 2px; }
  .hero { padding: 28px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(38px, 10.8vw, 60px); margin-block: 16px; }
  .hero p { max-width: 44ch; margin-bottom: 22px; }
  .hero-note { margin-top: 20px; }
  .hero-media { height: auto; aspect-ratio: 1.22; border-top-left-radius: 80px; }
  .hero-image-wrapper { width: 100%; }
  .hero-photo-label { top: 18px; right: 16px; font-size: 9px; }
  .service-strip-inner { gap: 12px; padding-block: 16px; }
  .service-strip span { flex: 1; flex-direction: column; gap: 6px; text-align: center; font-size: 10px; line-height: 1.5; }
  .modalities-section { padding-top: 30px; }
  .modalities-grid { grid-template-columns: 1fr; gap: 12px; }
  .modality-card { padding: 24px; }
  .modality-icon { display: block; font-size: 38px; }
  .sec-head { align-items: start; gap: 14px; }
  .sec-head p { font-size: 12px; }
  .grid, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 11px; gap: 8px; }
  .card-title { font-size: 12px; }
  .card-meta, .card-category { font-size: 9px; }
  .card-badges { gap: 4px; }
  .badge-pill, .product-card .badge-offer, .product-card .badge-featured { font-size: 8px; padding: 4px 6px; }
  .price-now { font-size: 14px; }
  .price-was { font-size: 10px; }
  .card-price-row { flex-direction: column; gap: 2px; }
  .card-actions { gap: 6px; padding-top: 10px; }
  .card-add { padding-inline: 6px; font-size: 11px; gap: 4px; }
  .promo-nani { padding: 28px 22px; align-items: start; text-align: left; }
  .promo-nani-content h2 { font-size: 28px; }
  .promo-nani-content p { font-size: 13px; }
  .promo-buttons { justify-content: start; }
  .promo-buttons .btn { width: 100%; justify-content: center; }
  .promo-nani-badge { display: none; }
  .values { padding-block: 40px; }
  .fgrid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .fbottom { flex-direction: column; align-items: start; text-align: left; gap: 10px; }
  .store-hero-banner { padding: 24px; }
  .store-filter-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .s-pill { padding: 10px; font-size: 11px; line-height: 1.5; }
  .catalog-header { flex-direction: column; align-items: stretch; }
  .catalog-filters { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .custom-select, .cs-trigger { width: 100%; }
  .cs-trigger { justify-content: space-between; }
  .cs-menu { min-width: 100%; max-width: 100%; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-title { font-size: 30px; }
  .product-actions .btn { flex: auto; font-size: 14px; }
  .side-panel-body { padding: 16px; }
  .side-panel-footer { padding: 16px; }
  .side-panel-header { padding: 14px 16px; }
}
@media (max-width: 360px) {
  .wrap, .container, .catalog-section .container { padding-inline: 14px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding-inline: 14px; font-size: 12px; }
  .card-body { padding: 9px; }
  .card-add { font-size: 10px; }
  .card-add i { display: none; }
  .card-actions .btn-icon { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
