:root {
    --kartiva-ink: #302335;
    --kartiva-plum: #37233f;
    --kartiva-plum-hover: #51335c;
    --kartiva-rose: #8d2d55;
    --kartiva-rose-hover: #702040;
    --kartiva-accent: #eab789;
    --kartiva-muted: #594b60;
    --kartiva-surface: #fbf7f1;
    --kartiva-line: #ded3db;
    --kartiva-green: #116142;
}
body { color: var(--kartiva-ink); }
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--kartiva-plum-hover);
    outline-offset: 3px;
}
:is(.navbar, .footer, .top-bar) :focus-visible { outline-color: #f6c7ab; }
.navbar > .container > ul > li > .category-trigger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.kartiva-logo { display: block; max-width: 100%; height: auto; }

.store-page {
    background: var(--kartiva-surface);
    padding: clamp(1.25rem, 4vw, 3rem) 1rem clamp(2rem, 6vw, 4rem);
    color: var(--kartiva-ink);
}
.store-page-inner { width: min(100%, 1100px); margin-inline: auto; }
.store-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: var(--kartiva-muted); font-size: .9rem; margin-bottom: 1rem; }
.store-breadcrumb a { color: var(--kartiva-plum); text-decoration: underline; text-underline-offset: .2em; }
.store-intro {
    background: var(--kartiva-plum);
    border-bottom: 4px solid var(--kartiva-accent);
    border-radius: 1rem;
    color: #fff;
    padding: clamp(1.25rem, 4vw, 2.65rem);
    margin-bottom: 1.5rem;
}
.store-intro h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin: 0 0 .55rem; }
.store-intro p { color: #f0e2ef; margin: 0; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.store-panel {
    background: #fff;
    border: 1px solid var(--kartiva-line);
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 1.65rem);
    box-shadow: 0 8px 24px rgb(11 32 70 / 6%);
}
.store-panel h2 { color: var(--kartiva-plum); font-size: 1.3rem; line-height: 1.3; margin: 0 0 .55rem; }
.store-panel > p { color: var(--kartiva-muted); margin: 0 0 1rem; }
.store-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.store-field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.store-field-wide { grid-column: 1 / -1; }
.store-field label { font-weight: 650; }
.store-field :is(input, select, textarea) {
    width: 100%;
    min-height: 46px;
    padding: .65rem .75rem;
    border: 1px solid #78879c;
    border-radius: .5rem;
    background: #fff;
    color: var(--kartiva-ink);
    font: inherit;
}
.store-field textarea { resize: vertical; }
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: .7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    background: var(--kartiva-rose);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.store-button:hover { background: var(--kartiva-rose-hover); color: #fff; }
.store-form-action { margin-top: 1.15rem; }
.store-panel .store-notice { border-radius: .5rem; padding: .7rem .9rem; margin: 0 0 1rem; background: #f9eaf1; color: #762900; }
.store-panel .store-notice-success { background: #e7f5ee; color: #174b35; }
.store-summary { position: sticky; top: 1rem; }
.store-product { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; }
.store-product img { width: 74px; height: 74px; border-radius: .6rem; object-fit: contain; background: var(--kartiva-surface); }
.store-product a { color: var(--kartiva-plum); font-weight: 700; overflow-wrap: anywhere; }
.store-product p { color: var(--kartiva-muted); }
.store-totals { margin: .25rem 0 1rem; border-top: 1px solid var(--kartiva-line); }
.store-totals div { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem 0; }
.store-totals dd { margin: 0; white-space: nowrap; }
.store-totals .store-total { border-top: 1px solid var(--kartiva-line); font-weight: 750; font-size: 1.1rem; }
.store-payment { border-radius: .5rem; background: var(--kartiva-surface); padding: .7rem .85rem; color: var(--kartiva-plum); }
.store-channels { list-style: none; padding: 0; margin: .6rem 0 0; }
.store-channels li + li { border-top: 1px solid var(--kartiva-line); }
.store-channels :is(a, .store-channel) { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; color: var(--kartiva-plum); overflow-wrap: anywhere; }
.store-channels a:hover { text-decoration: underline; }
.store-channels i { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border-radius: .55rem; background: #f9eaf1; color: var(--kartiva-rose); }
.store-channels strong, .store-channels small { display: block; }
.store-channels small { color: var(--kartiva-muted); font-size: .875rem; }

.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.product-actions form, .product-actions > a { flex: 1 1 12rem; }
.product-actions .store-button { width: 100%; min-height: 52px; }
.product-actions .product-whatsapp { background: #fff; border-color: var(--kartiva-green); color: var(--kartiva-green); }
.product-actions .product-whatsapp:hover { background: #e7f5ee; color: #104c35; }
@media (prefers-reduced-motion: no-preference) {
    .product-actions .product-order:is(:hover, :focus-visible) i { animation: kartiva-cart-shake .45s ease-in-out; }
    .product-actions .product-whatsapp:is(:hover, :focus-visible) i { animation: kartiva-chat-pop .42s ease-out; }
}
@keyframes kartiva-cart-shake {
    25%, 75% { transform: translateX(-3px) rotate(-9deg); }
    50% { transform: translateX(3px) rotate(9deg); }
}
@keyframes kartiva-chat-pop {
    45% { transform: translateY(-4px) scale(1.18); }
}
@media (max-width: 760px) {
    .store-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .store-summary { position: static; }
}
@media (max-width: 440px) {
    .store-fields { grid-template-columns: minmax(0, 1fr); }
    .store-form-action .store-button { width: 100%; }
}

/* Checkout and support page layouts */
.checkout-page, .contact-page { background: #fbf7f1; }
.checkout-intro {
    background: none;
    border: 0;
    color: var(--kartiva-plum);
    padding: .25rem 0 1.25rem;
    margin-bottom: .75rem;
    border-radius: 0;
    border-bottom: 1px solid var(--kartiva-line);
}
.checkout-intro h1, .contact-rail h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}
.checkout-intro h1 { color: var(--kartiva-plum); }
.checkout-intro p { color: var(--kartiva-muted); }
.checkout-page .store-panel { box-shadow: none; }
.checkout-page #delivery-heading i { color: var(--kartiva-rose); margin-right: .35rem; }
.checkout-page .store-summary { background: #f3ebf2; border-top: 4px solid var(--kartiva-plum); }
.checkout-page .store-payment { background: #fff; }
.checkout-page .store-product { border-bottom: 1px solid var(--kartiva-line); margin-bottom: .8rem; }
.checkout-page .store-totals { margin-top: .9rem; }
.checkout-page .checkout-submit { width: 100%; justify-content: space-between; margin-top: .85rem; }

.contact-page .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); gap: 0; align-items: stretch; }
.contact-page .contact-layout > .store-panel { padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: none; }
.contact-page .contact-layout > section { border-radius: 0 1rem 1rem 0; }
.contact-page .contact-rail {
    border-radius: 1rem 0 0 1rem;
    background: var(--kartiva-plum);
    color: #fff;
    border: 0;
    border-top: 4px solid var(--kartiva-accent);
}
.contact-page .contact-rail h1 { margin-bottom: .85rem; }
.contact-page .contact-rail > p, .contact-page .contact-rail small { color: #f0e2ef; }
.contact-page .contact-rail :is(a, .store-channel) { color: #fff; }
.contact-page .contact-rail a:focus-visible { outline-color: #f6c7ab; }
.contact-page .contact-rail li + li { border-color: #6d5372; }
.contact-page .contact-rail i { background: #f9eaf1; color: var(--kartiva-rose); }
@media (max-width: 760px) {
    .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
    .contact-page .contact-layout > .store-panel { border-radius: 1rem; }
    .checkout-page .store-summary { position: static; }
}

:root { --swiper-theme-color: var(--kartiva-rose); }
.hero-slider.swiper { height: auto; aspect-ratio: auto; background: var(--kartiva-surface); }
.hero-slider .hero-slide { height: auto; }
.hero-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
@media (max-width: 600px) {
    body .services .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    body .services .service-item { min-width: 0; margin-bottom: 0; }
}

.store-field ::placeholder { color: var(--kartiva-muted); opacity: 1; }
.order-confirmation { max-width: 650px; margin: 0 auto; text-align: center; padding: clamp(1.5rem, 5vw, 3.5rem); }
.order-confirmation h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: .65rem; }
.order-confirmation-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e7f5ee; color: #116142; font-size: 1.7rem; margin: 0 auto 1rem; }
.order-confirmation .order-reference { display: table; margin: 1rem auto; padding: .45rem 1rem; border-radius: .5rem; background: var(--kartiva-surface); color: var(--kartiva-plum); font-weight: 750; }
.tracking-whatsapp { background: var(--kartiva-green); }
.tracking-whatsapp:hover { background: #104c35; }
.order-confirmation .order-confirmation-shop { margin: 1rem 0 0; }
.order-confirmation-shop a { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
    .tracking-whatsapp:is(:hover, :focus-visible) i { animation: kartiva-chat-pop .42s ease-out; }
}

.checkout-layout .store-panel { padding: clamp(1.1rem, 3vw, 1.8rem); }
.checkout-layout .store-summary {
    background: #fff;
    border-top-color: var(--kartiva-rose);
}
.checkout-layout .store-totals .store-total {
    padding: .85rem .75rem;
    background: #f3ebf2;
    border-radius: .5rem;
    color: var(--kartiva-plum);
}
.checkout-layout .store-payment {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--kartiva-surface);
}
.checkout-layout .store-payment small { display: block; color: var(--kartiva-muted); }
.checkout-help {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    border-top: 1px solid var(--kartiva-line);
    padding-top: .85rem;
    margin-top: 1rem;
    color: var(--kartiva-muted);
}
.checkout-help a { color: var(--kartiva-rose); text-decoration: underline; }
.contact-intro { margin: 0 0 1.4rem; }
.contact-intro h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
.contact-intro p { color: var(--kartiva-muted); margin-top: .5rem; }
.contact-page .contact-layout { gap: 1rem; align-items: start; }
.contact-page .contact-layout > section, .contact-page .contact-rail { border-radius: 1rem; }
.contact-page .contact-rail h2 { color: #fff; }
.contact-page .store-form-action .store-button { width: 100%; }
.order-confirmation {
    border-top: 4px solid var(--kartiva-green);
    box-shadow: 0 12px 32px rgb(55 35 63 / 8%);
}
.confirmation-reference {
    display: grid;
    gap: .1rem;
    max-width: 18rem;
    margin: 1.2rem auto;
    padding: .7rem 1rem;
    border: 1px dashed #9b849c;
    border-radius: .6rem;
    background: #f3ebf2;
    color: var(--kartiva-plum);
}
.confirmation-reference span { font-size: .875rem; }
.confirmation-reference strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Keep navigation in its own viewport row on phones. */
@media (max-width: 768px) {
    body.storefront {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    body > .store-scroll { overflow: auto; min-width: 0; overscroll-behavior-y: contain; }
    body > .mobile-nav { position: static; padding-bottom: env(safe-area-inset-bottom, 0px); }
    body > .mobile-nav a { min-height: 44px; justify-content: center; }
    body > .mobile-nav ul { padding: .25rem 0; }
    .footer .container { grid-template-columns: minmax(0, 1fr); }
    .footer .contact-info { overflow-wrap: anywhere; }
    .header .search-bar { min-width: 0; }
    .header .search-bar input { min-width: 0; font-size: 16px; }
}
.product-grid .product-card:not(.hidden-product), .product-slider .product-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.product-grid .product-info, .product-slider .product-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-grid .product-title, .product-slider .product-title {
    display: block;
    height: auto;
    min-height: 3em;
    max-height: none;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
.product-grid .product-price, .product-slider .product-price { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-top: auto; }
.product-grid .view-product-btn, .product-slider .view-product-btn { min-height: 44px; align-content: center; }
.product-slider .swiper-wrapper { align-items: stretch; }
body .product-slider { padding-bottom: 54px; }
body .product-slider :is(.swiper-button-next, .swiper-button-prev) {
    top: auto; bottom: 0; margin: 0; width: 44px; height: 44px;
    border: 1px solid var(--kartiva-line); border-radius: .5rem;
    background: #fff; color: var(--kartiva-rose);
}
body .product-slider :is(.swiper-button-next, .swiper-button-prev)::after { font-size: 17px; }
body .product-slider .swiper-button-prev { left: auto; right: 53px; }
body .product-slider .swiper-button-next { right: 0; }
body .product-slider .swiper-button-lock { display: none; }
.catalog-description { max-width: 78ch; line-height: 1.75; overflow-wrap: anywhere; }
.catalog-description :is(p, ul, ol, h2, h3, h4) { margin: .7rem 0; }
.catalog-description :is(ul, ol) { padding-inline-start: 1.3rem; }
.catalog-description img { max-width: 100%; height: auto; }
.product-image-container { align-self: start; }
#catalog-main-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.catalog-gallery { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem; }
.catalog-gallery button { flex: none; border: 1px solid var(--kartiva-line); background: #fff; border-radius: .4rem; cursor: pointer; }
.catalog-gallery img { display: block; object-fit: contain; }
.launch-hero { padding: clamp(1.5rem, 5vw, 4rem) 0; background: var(--kartiva-plum); color: #fff; }
.launch-hero h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.15; }
.launch-hero p { margin: .65rem 0 1rem; }
.launch-hero .store-button { color: var(--kartiva-plum); background: #f6c7ab; }
.launch-hero .store-button:focus-visible { outline-color: #fff; }
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-details, .product-actions > * { min-width: 0; }
    .catalog-description, .tab-content.active { font-size: 1rem; }
}
.product-grid .product-title a, .product-slider .product-title a { white-space: normal; overflow-wrap: anywhere; }
.product-slider:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; }
.product-slider:not(.swiper-initialized) .swiper-slide { flex: 0 0 min(46%, 220px); scroll-snap-align: start; }
.product-slider:not(.swiper-initialized) :is(.swiper-button-next, .swiper-button-prev) { display: none; }
.store-payment a { text-decoration: underline; }
@media (max-width: 768px) {
    .header .header-main { padding-block: .55rem; }
    .header .search-bar { margin-top: .5rem; }
}

/* Keep price components separate when the row wraps. */
.mproduct-price { gap: .4rem .65rem; }
.mproduct-price > * { margin: 0; white-space: nowrap; }
.mproduct-price .moriginal-price { display: inline-block; text-decoration: line-through; }
.product-grid .product-info, .product-slider .product-info { gap: .25rem; }
.product-grid .product-rating, .product-slider .product-rating { flex-wrap: wrap; }
.product-slider .swiper-slide { min-width: 0; }
@media (max-width: 768px) {
    .storefront > .store-scroll { overflow-x: clip; }
    .footer { padding-top: 2rem; }
    .footer .container { gap: 1.25rem; }
    .footer-column h3 { margin-bottom: .85rem; }
    .mobile-nav ul { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
    .metadata-table td { padding: .65rem .55rem; overflow-wrap: anywhere; }
    .metadata-table td:first-child { width: 42%; }
    .catalog-description { font-size: 1rem; line-height: 1.75; }
    .catalog-description table { display: block; max-width: 100%; overflow-x: auto; }
    .product-actions > form, .product-actions > a { flex: 1 0 100%; }
    .product-actions .store-button { white-space: normal; }
}

.shared-breadcrumbs { background: #f3f4f6; padding: 15px 0; }
.shared-breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; font-size: 14px; }
.shared-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: .5rem; color: var(--kartiva-muted); }
.shared-breadcrumbs a { color: var(--kartiva-muted); }
.shared-breadcrumbs a:hover { text-decoration: underline; }
.shared-breadcrumbs .active { color: var(--kartiva-rose); font-weight: 600; }
.checkout-product-image { flex: 0 0 auto; }
.checkout-product-image img { display: block; width: clamp(52px, 16vw, 74px); height: auto; aspect-ratio: 1; }
.store-product > div { min-width: 0; }

.hero-slider .swiper-wrapper { align-items: center; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next {
    width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
    color: var(--kartiva-plum); background: rgb(255 255 255 / 92%);
}
.hero-slider .swiper-button-prev::after, .hero-slider .swiper-button-next::after { font-size: 16px; }
.hero-slider .swiper-pagination-bullet { background: var(--kartiva-plum); }
@media (max-width: 768px) {
    .hero-slider.swiper { width: calc(100% - 24px); margin-inline: auto; }
    .hero-slider .swiper-button-prev { left: 4px; }
    .hero-slider .swiper-button-next { right: 4px; }
}
