@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap");

* {
    box-sizing: border-box;
}

:root {
    --background: #121212;
    --foreground: #ebe8e1;
    --card: #1a1a1a;
    --muted: #8f8b83;
    --border: #2f2f2f;
    --primary: #c8a45b;
    --whatsapp: #1faa5c;
    --shadow-black: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.public-page {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font-family: "Source Sans 3", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
}

.container {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, #000000, var(--card));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: rgba(235, 232, 225, 0.75);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.public-content {
    flex: 1;
}

.catalogue-hero {
    width: 100%;
}

.hero-offer-card {
    position: relative;
    width: 100%;
    height: clamp(280px, 42vw, 460px);
    overflow: hidden;
}

.hero-offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), rgba(18, 18, 18, 0.45), transparent);
}

.catalogue-shell {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
    padding: 40px 0 8px;
}

.catalogue-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto 30px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

.search-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.catalogue-search-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--card);
    color: var(--foreground);
    padding: 0 14px 0 36px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.catalogue-search-wrap input:focus {
    border-color: rgba(200, 164, 91, 0.65);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 10px;
}

.pill-row:last-of-type {
    margin-bottom: 0;
}

.pill-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    padding: 9px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill-btn:hover {
    color: var(--foreground);
    border-color: rgba(200, 164, 91, 0.4);
}

.pill-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #111;
}

.catalogue-grid-wrap {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
    padding: 24px 0 58px;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.catalogue-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.catalogue-pagination .pill-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.pagination-meta {
    color: var(--muted);
    font-size: 13px;
}

@media (min-width: 820px) {
    .catalogue-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .catalogue-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product-card {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--card);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
    transition: all 0.5s ease;
    cursor: pointer;
    text-decoration: none;
}

.product-card:hover {
    border-color: rgba(200, 164, 91, 0.4);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #252525;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.55), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
    color: var(--primary);
}

.product-sku {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.product-tags {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tag {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
}

.product-tag-filled {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--foreground);
}

.product-tag-outline {
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 72px 12px;
}

.empty-state p {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: var(--muted);
}

.empty-state span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(143, 139, 131, 0.75);
}

.Bathx-promo {
    background: linear-gradient(to bottom, var(--background), rgba(28, 28, 28, 0.65), var(--background));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.Bathx-card {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
    padding: 62px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.Bathx-logo {
    height: clamp(84px, 10vw, 124px);
    width: auto;
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.Bathx-text {
    max-width: 620px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(26px, 3.6vw, 38px);
    color: rgba(235, 232, 225, 0.82);
}

.Bathx-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--primary);
    color: #1b1b1b;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(200, 164, 91, 0.25);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.Bathx-cta:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.product-detail-wrap {
    padding: 32px 0 60px;
}

.product-detail-shell {
    width: min(1200px, 100% - 2rem);
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.3s ease;
}

.detail-back:hover {
    color: var(--primary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.product-detail-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--card);
    box-shadow: var(--shadow-black);
    aspect-ratio: 1 / 1;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-content h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.product-detail-sku {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.product-detail-desc {
    margin: 18px 0 0;
    color: rgba(235, 232, 225, 0.8);
    line-height: 1.65;
}

.product-detail-sub {
    margin: 12px 0 0;
    color: rgba(143, 139, 131, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
}

.product-modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 1.5rem));
    border-radius: 14px;
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-black);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        transform: translateY(10px);
        opacity: 0.7;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    padding: 22px;
}

.modal-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--foreground);
}

.modal-item_number {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.modal-tags {
    margin: 14px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-tag {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
}

.modal-tag-filled {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.modal-tag-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--muted);
}

.modal-desc {
    margin: 16px 0 0;
    line-height: 1.65;
    color: rgba(235, 232, 225, 0.8);
}

.modal-cta {
    margin-top: 18px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 18px;
    text-decoration: none;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 10px 28px rgba(31, 170, 92, 0.24);
    transition: opacity 0.3s ease;
}

.modal-cta:hover {
    opacity: 0.86;
}

.modal-cta .cta-icon,
.modal-cta svg {
    width: 19px;
    height: 19px;
}

.modal-cta svg {
    fill: #fff;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1a1a1a;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.public-footer {
    background: linear-gradient(to bottom, var(--card), #050505);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    width: min(1200px, 100% - 2rem);
    margin: 0 auto;
    padding: 46px 0 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footer-group h4 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
}

.footer-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(235, 232, 225, 0.62);
    font-size: 14px;
}

.footer-line svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    fill: rgba(200, 164, 91, 0.72);
    flex: 0 0 auto;
}

.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    text-align: center;
    color: rgba(235, 232, 225, 0.3);
    font-size: 12px;
}

.footer-dev-link {
    color: rgba(235, 232, 225, 0.72);
    margin-left: 4px;
    text-decoration: none;
    border-bottom: 1px solid rgba(235, 232, 225, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-dev-link:hover {
    color: var(--primary);
    border-color: rgba(200, 164, 91, 0.55);
}

.footer-divider {
    margin: 0 2px;
    color: rgba(235, 232, 225, 0.4);
}

.footer-social {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(235, 232, 225, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.social-link:hover {
    color: var(--primary);
    border-color: rgba(200, 164, 91, 0.5);
}

.privacy-wrap {
    padding: 60px 0;
}

.privacy-shell {
    width: min(900px, 100% - 2rem);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 26px;
}

.privacy-shell h1 {
    margin-top: 0;
    font-size: clamp(32px, 4vw, 46px);
}

.privacy-shell h2 {
    margin: 22px 0 8px;
    font-size: 24px;
}

.privacy-shell p {
    color: rgba(235, 232, 225, 0.82);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .catalogue-shell {
        padding-top: 30px;
    }

    .catalogue-grid-wrap {
        padding-top: 20px;
    }

    .catalogue-grid {
        gap: 14px;
    }

    .product-info h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
