/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container,
.mx-auto {
    overflow-x: hidden;
}

.product-page {
    overflow-x: hidden;
    max-width: 100vw;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-price-row {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.color-variant-btn {
    flex-shrink: 0;
    min-width: fit-content;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Atelier Mirna — storefront design system ── */

:root {
    --brand-50: #ffffff;
    --brand-100: #f4f4f4;
    --brand-200: #e8e8e8;
    --brand-300: #d4d4d4;
    --brand-400: var(--color-highlight);
    --brand-500: var(--color-primary);
    --brand-600: var(--color-accent);
    --brand-700: var(--color-secondary);
    --brand-800: #121a17;
    --brand-900: #0c1210;
    --brand: var(--brand-700);
    --accent-gold: var(--color-highlight);
    --accent-cream: #f4f4f4;
    --accent-deep: var(--color-secondary);
    --neutral-white: #ffffff;
    --neutral-charcoal: var(--color-secondary);
}

html {
    background: var(--surface);
}

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--ink);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .beauty-text, .beauty-text-decorated, .section-title, .section-title-modern {
    font-family: var(--font-display);
}

::selection {
    background: color-mix(in srgb, var(--color-primary) 22%, transparent);
    color: var(--color-secondary);
}

/* Buttons */
.btn-primary,
.btn-gradient,
.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-secondary);
    background-image: none;
    border: 1px solid var(--color-secondary);
    box-shadow: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
    overflow: hidden;
}

.btn-primary:hover,
.btn-gradient:hover,
.btn-modern:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary i,
.btn-gradient i {
    margin-right: 0;
}

.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    color: var(--color-secondary);
    background: transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-ghost:hover,
.btn-outline:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* Global restyle: cloned dark-gradient CTAs → solid pills */
button.bg-gradient-to-r.from-brand-secondary,
a.bg-gradient-to-r.from-brand-secondary,
button[class*="from-brand-secondary"][class*="to-brand-highlight"],
a[class*="from-brand-secondary"][class*="to-brand-highlight"] {
    background-image: none !important;
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: none !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

button.bg-gradient-to-r.from-brand-secondary:hover,
a.bg-gradient-to-r.from-brand-secondary:hover {
    background-color: var(--color-primary) !important;
}

/* Cards */
.card,
.product-card-modern {
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}

.card:hover,
.product-card-modern:hover {
    box-shadow: var(--shadow-soft);
    transform: none;
}

/* Product cards — editorial, image-first */
a.product-card-link {
    background: var(--paper) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}

a.product-card-link:hover {
    border-color: var(--line-strong) !important;
    box-shadow: var(--shadow-soft) !important;
    transform: none !important;
}

a.product-card-link .product-loading-overlay {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.mb-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.mb-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.mb-card-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
}

.mb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.mb-card:hover .mb-card-media img {
    transform: scale(1.04);
}

.mb-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1rem 1.15rem;
    flex: 1;
}

.mb-card-cat {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.mb-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-secondary);
    letter-spacing: 0.01em;
}

.mb-card-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 0.4rem;
}

.mb-card-price-now {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 0.02em;
}

.mb-card-price-old {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
}

.mb-card .btn-outline,
.mb-card .btn-ghost,
.mb-card .btn-primary {
    padding: 0.65rem 1rem;
    font-size: 0.68rem;
}

.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
}

.mb-badge-stock {
    background: color-mix(in srgb, var(--color-accent) 18%, var(--paper));
    color: var(--color-accent);
}

.mb-badge-out {
    background: #f4e4e1;
    color: #9b3b2c;
}

.mb-badge-low {
    background: #f6ead6;
    color: var(--color-highlight);
}

/* Section titles */
.section-title,
.section-title-modern,
.beauty-text {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-secondary);
    text-shadow: none;
}

.cosmetic-text {
    font-family: var(--font-cosmetic);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-secondary);
    text-shadow: none;
}

.section-title-modern::after,
.beauty-text-decorated::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--color-primary);
    border-radius: 0;
}

.beauty-text-decorated {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 12px;
    text-shadow: none;
}

.section-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Forms */
.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus,
input.form-input:focus,
textarea.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent);
}

.form-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

/* Nav (legacy) */
.nav-link,
.nav-link-modern {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    border-radius: 0;
    text-decoration: none;
    background: none;
}

.nav-link:hover,
.nav-link-modern:hover {
    color: var(--color-primary);
    background: none;
    transform: none;
}

.mobile-link,
.mobile-link-modern {
    display: flex;
    align-items: center;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--color-secondary);
    border-bottom: 1px solid var(--line);
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.mobile-link-modern::before {
    display: none;
}

.mobile-link-modern:hover,
.mobile-link:hover {
    color: var(--color-primary);
    background: none;
    transform: none;
    box-shadow: none;
}

.mobile-link-modern i {
    background: none;
    -webkit-text-fill-color: var(--color-accent);
    color: var(--color-accent);
}

/* Misc leftovers */
.glass,
.glass-dark,
.glass-modern {
    backdrop-filter: saturate(140%) blur(12px);
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    border: 1px solid var(--line);
}

.gradient-hero {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.deal-tile {
    position: relative;
    border: 1px solid var(--line);
    padding: 1rem;
    background: var(--paper);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 7rem;
}

.deal-tile:hover {
    box-shadow: var(--shadow-soft);
    transform: none;
}

.deal-label { font-weight: 600; color: var(--color-secondary); }
.deal-cta { margin-top: .5rem; font-size: .875rem; color: var(--color-primary); font-weight: 600; }

.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--color-secondary);
    font-size: .75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shadow-brand,
.shadow-modern {
    box-shadow: var(--shadow-soft);
}

.gradient-text-animated {
    background: none;
    color: var(--color-secondary);
    -webkit-text-fill-color: var(--color-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slideUp { animation: slideUp 0.3s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fadeIn { animation: fadeIn 0.35s ease-out; }

.overflow-y-auto::-webkit-scrollbar { width: 0px; background: transparent; }
.overflow-y-auto { scrollbar-width: none; -ms-overflow-style: none; }

@media (hover: none) and (pointer: coarse) {
    .group:hover .group-hover\:scale-105,
    .group:hover .group-hover\:scale-110 {
        transform: none !important;
    }
    .group:hover .group-hover\:opacity-100 {
        opacity: 0 !important;
    }
    .mb-card:hover .mb-card-media img {
        transform: none;
    }
}

/* Page surfaces */
.page-shell {
    background: var(--surface);
}

.page-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.hairline {
    width: 2.5rem;
    height: 1px;
    background: var(--color-primary);
    margin: 0.85rem auto 0;
}
.hairline.ml-0 {
    margin-left: 0;
    margin-right: auto;
}

/* Header search — compact pill on the right */
.header-search {
    position: relative;
    flex: 0 0 auto;
    width: 11.5rem;
}

@media (min-width: 1280px) {
    .header-search {
        width: 14.5rem;
    }
}

.header-search input {
    width: 100%;
    height: 2.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0 0.9rem 0 2.35rem;
    font-size: 0.8rem;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.header-search input:focus {
    background: var(--paper);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.header-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    width: 1.05rem;
    height: 1.05rem;
}

.nav-lux-icon {
    width: 1.28rem;
    height: 1.28rem;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.icon-btn .nav-lux-icon {
    width: 1.34rem;
    height: 1.34rem;
}

.nav-lux-icon--sm {
    width: 1.05rem;
    height: 1.05rem;
}

.nav-lux-icon--chevron {
    width: 0.72rem;
    height: 0.72rem;
}

.header-search-icon.nav-lux-icon {
    width: 1.12rem;
    height: 1.12rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-pill);
    color: var(--color-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.icon-btn:hover {
    background: var(--surface);
    border-color: var(--line);
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--color-secondary);
    color: #f4efe7;
}

.site-footer a {
    color: color-mix(in srgb, #f4efe7 78%, transparent);
    transition: color .2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* WhatsApp */
.wa-bubble {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    z-index: 50;
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px -10px rgba(18, 140, 126, 0.7);
    transition: transform .2s ease, background .2s ease;
}

.wa-bubble:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: #fff;
}

/* Home hero — 4:5 mobile, 8:3 desktop (Karina-style campaign) */
.hero-block {
    position: relative;
    width: 100%;
    background: var(--color-secondary);
}

.hero-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-secondary);
}

@media (min-width: 640px) {
    .hero-stage {
        aspect-ratio: 8 / 3;
        max-height: min(68vh, 46rem);
    }
}

.hero-stage picture,
.hero-stage a.hero-banner-deeplink,
.hero-slider,
.hero-slider-track,
.hero-slide {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider {
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid color-mix(in srgb, #fff 35%, transparent);
    border-radius: 9999px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    color: var(--color-secondary);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
}

.hero-nav:hover {
    background: var(--paper);
    border-color: var(--line-strong);
}

.hero-nav--prev { left: 0.85rem; }
.hero-nav--next { right: 0.85rem; }

@media (min-width: 640px) {
    .hero-nav { display: flex; }
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    z-index: 3;
    display: flex;
    gap: 0.4rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
    width: 1.25rem;
    background: #fff;
}

.hero-stage a.hero-banner-deeplink {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-copy {
    position: absolute;
    left: var(--hero-text-x, 8%);
    top: var(--hero-text-y, 50%);
    bottom: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1.1rem;
    max-width: min(40rem, 88%);
    pointer-events: none;
    transform: translateY(-50%);
}
.hero-copy.is-rtl {
    left: auto;
    right: var(--hero-text-x, 8%);
    text-align: right;
}

.hero-copy-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    color: var(--color-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.4vw, 3.55rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 18px color-mix(in srgb, #000 18%, transparent);
}

.hero-copy-sub {
    margin-top: 0.85rem;
    max-width: 28rem;
    font-size: clamp(0.92rem, 1.5vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
    text-shadow: 0 1px 12px color-mix(in srgb, #000 16%, transparent);
}

.hero-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
    pointer-events: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hero-cta-fill {
    background: var(--color-secondary);
    color: #fff;
    border: 1px solid var(--color-secondary);
}

.hero-cta-fill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.hero-cta-ghost {
    background: color-mix(in srgb, var(--paper) 70%, transparent);
    color: var(--color-secondary);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 28%, transparent);
}

.hero-cta-ghost:hover {
    background: var(--paper);
}

/* Shop shortcuts — chip tray */
.shop-shortcuts {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.shop-shortcuts--home {
    background: var(--surface);
}

.shop-shortcuts-dock {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-x;
}

.shop-shortcuts-dock::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .shop-shortcuts-dock {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        scroll-snap-type: none;
    }
}

.sc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--color-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sc-chip i {
    font-size: 0.7rem;
    color: var(--color-accent);
}

.sc-chip:hover {
    border-color: var(--line-strong);
    color: var(--color-primary);
    background: var(--surface);
}

.sc-chip:hover i {
    color: var(--color-primary);
}

.sc-chip.is-primary {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.sc-chip.is-primary i,
.sc-chip.is-primary:hover i {
    color: #fff;
}

.sc-chip.is-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.sc-rule {
    display: inline-block;
    flex-shrink: 0;
    width: 1px;
    height: 1.15rem;
    margin: 0 0.35rem;
    background: var(--line-strong);
}
