:root {
    --ink: #14212b;
    --ink-soft: #3a4a56;
    --paper: #f3efe6;
    --paper-deep: #e7e0d2;
    --brand: #0e5c63;
    --brand-dark: #0a4348;
    --accent: #c4a35a;
    --line: rgba(20, 33, 43, 0.12);
    --white: #ffffff;
    --danger: #b42318;
    --ok: #067647;
    --shadow: 0 18px 40px rgba(20, 33, 43, 0.08);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(14, 92, 99, 0.12), transparent 40%),
        linear-gradient(180deg, #f7f4ee 0%, #efe8da 100%);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(243, 239, 230, 0.88);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}
.brand {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    transition: color .2s ease, opacity .2s ease;
}
.brand:hover { color: var(--brand); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    font-weight: 600;
    color: var(--ink-soft);
    position: relative;
    transition: color .2s ease;
}
.nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav a:not(.btn):hover { color: var(--brand); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 10px 22px rgba(14, 92, 99, 0.22);
}
.btn-accent { background: #25D366; color: white; }
.btn-accent:hover { box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(14, 92, 99, 0.06);
}
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-danger { background: var(--danger); color: white; }

.hero {
    position: relative;
    overflow: hidden;
    background: #0b1c3d;
    color: white;
    min-height: clamp(280px, 52vw, 560px);
}
.hero-media {
    display: block;
    width: 100%;
    height: clamp(280px, 52vw, 560px);
    object-fit: cover;
    object-position: center;
    animation: heroZoom 12s ease-out both;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.35) 0%, transparent 28%, transparent 62%, rgba(8, 16, 32, 0.55) 100%);
}
.hero-overlay-inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    pointer-events: auto;
}
.hero-overlay-inner > * {
    animation: rise 0.7s ease both;
}
.hero-overlay-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-overlay-inner > *:nth-child(2) { animation-delay: 0.22s; }
.hero-overlay-inner > *:nth-child(3) { animation-delay: 0.34s; }
.hero-brand {
    margin: 0;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hero-cat-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.94);
    color: #14212b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-cat-links a:first-child {
    background: #f0a12b;
    color: #14212b;
}
.hero-cat-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.hero-wa {
    pointer-events: auto;
}

.section { padding: 4.5rem 0; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem;
}
.section-lead {
    margin: 0 0 2rem;
    color: var(--ink-soft);
    max-width: 40rem;
    line-height: 1.6;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.tile {
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(20, 33, 43, 0.12);
    border-color: rgba(14, 92, 99, 0.22);
}
.tile:hover .tile-media img,
.tile:hover .product-slider--card .product-slider__slide.is-active img {
    transform: scale(1.04);
}
.tile-media img,
.product-slider--card .product-slider__slide img {
    transition: transform .45s ease;
}

/* Fixed-size product image frames (no fill background) */
.tile-media,
.product-image,
.product-slider {
    position: relative;
    overflow: hidden;
    background: none;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tile-media,
.product-slider--card {
    width: 100%;
    height: 220px;
    margin-bottom: 1rem;
}
.product-image,
.product-slider--detail {
    width: 100%;
    height: 420px;
    border-radius: 1.1rem;
    margin-bottom: 0;
}
.tile-media img,
.product-image img,
.product-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.media-empty {
    border-style: dashed;
}

.product-slider {
    margin-bottom: 1rem;
}
.product-slider--detail { margin-bottom: 0; }
.product-slider__track,
.product-slider__slide {
    width: 100%;
    height: 100%;
}
.product-slider__slide {
    display: none;
}
.product-slider__slide.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: fadeIn 0.35s ease both;
}
.product-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.product-slider__btn:hover {
    background: var(--white);
    box-shadow: 0 6px 14px rgba(20, 33, 43, 0.12);
}
.product-slider__btn:hover.product-slider__btn--prev { transform: translateY(-50%) translateX(-1px); }
.product-slider__btn:hover.product-slider__btn--next { transform: translateY(-50%) translateX(1px); }
.product-slider__btn--prev { left: 0.55rem; }
.product-slider__btn--next { right: 0.55rem; }
.product-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.55rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    z-index: 2;
}
.product-slider__dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 33, 43, 0.28);
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, background .2s ease, width .2s ease;
}
.product-slider__dots button.is-active {
    background: var(--brand);
    width: 16px;
}
.product-slider__dots button:hover { transform: scale(1.15); }

.has-magnifier {
    cursor: crosshair;
}
.product-gallery {
    position: relative;
    z-index: 3;
}
.product-gallery__stage {
    position: relative;
}
.product-gallery__zoom {
    display: none;
    position: absolute;
    left: calc(100% + 1rem);
    top: 0;
    width: 420px;
    height: 420px;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: var(--shadow);
    z-index: 8;
    pointer-events: none;
}
.product-gallery.is-magnifying .product-gallery__zoom {
    display: block;
}
.product-detail:has(.product-gallery.is-magnifying) .product-meta {
    visibility: hidden;
}
.magnifier-lens {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(20, 33, 43, 0.35);
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    display: none;
    z-index: 4;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.product-gallery.is-magnifying .magnifier-lens {
    display: block;
}
@media (hover: none), (max-width: 1100px) {
    .has-magnifier { cursor: default; }
    .product-gallery__zoom,
    .magnifier-lens { display: none !important; }
    .product-detail:has(.product-gallery.is-magnifying) .product-meta { visibility: visible; }
}

.tile h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.35rem; }

.tile p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.5; }
.price { font-weight: 700; color: var(--brand-dark); margin-bottom: 0.85rem; }

.about-panel, .promo-panel {
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
}
.promo-panel {
    background: linear-gradient(135deg, #0e5c63, #16343d);
    color: white;
    text-align: center;
    animation: pulseSoft 4s ease-in-out infinite;
}
.promo-panel p { opacity: 0.9; max-width: 36rem; margin: 0.75rem auto 1.25rem; }

.site-footer {
    margin-top: 2rem;
    background: var(--ink);
    color: #d7dde2;
    padding: 3rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.site-footer h4 {
    margin: 0 0 0.8rem;
    font-family: var(--font-display);
    color: white;
}
.site-footer a {
    color: #d7dde2;
    transition: color .2s ease, opacity .2s ease;
}
.site-footer a:hover { color: white; }
.footer-copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }

.page-hero {
    padding: 3rem 0 1rem;
    animation: rise 0.65s ease both;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.5rem;
}
.breadcrumb { color: var(--ink-soft); margin-bottom: 0.75rem; font-size: 0.95rem; }

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
    align-items: start;
    position: relative;
}
.product-meta h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 0.75rem;
}
.product-meta .price { font-size: 1.4rem; }
.product-meta .desc { line-height: 1.7; color: var(--ink-soft); white-space: pre-line; }

.empty {
    padding: 2rem;
    border: 1px dashed var(--line);
    border-radius: 1rem;
    text-align: center;
    color: var(--ink-soft);
}

/* Scroll / entrance reveals */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
.tile[data-reveal].is-visible:hover {
    transform: translateY(-5px);
}
[data-reveal-stagger] > [data-reveal] {
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.product-detail [data-reveal]:nth-child(2) {
    transition-delay: 100ms;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}
@keyframes pulseSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 860px) {
    .grid-3, .grid-2, .footer-grid, .product-detail { grid-template-columns: 1fr; }
    .hero { min-height: 220px; }
    .hero-media { height: clamp(220px, 70vw, 360px); }
    .hero-overlay-inner {
        margin-bottom: 0.85rem;
        gap: 0.55rem;
    }
    .hero-cat-links a {
        font-size: 0.72rem;
        padding: 0.45rem 0.7rem;
    }
    .nav-toggle { display: inline-flex; }
    .tile-media,
    .product-slider--card {
        height: 200px;
    }
    .product-image,
    .product-slider--detail {
        height: 280px;
    }
    .header-inner { flex-wrap: wrap; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--line);
        margin-top: 0.35rem;
    }
    .nav-open .nav { display: flex; }
    .nav a:not(.btn)::after { display: none; }
    .nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 0.7rem;
        transition: background .2s ease, color .2s ease;
    }
    .nav a:hover { background: rgba(14, 92, 99, 0.08); }
    .nav .btn {
        width: 100%;
        margin-top: 0.35rem;
        justify-content: center;
    }
}
