/* Papilio — Menorista-faithful storefront skin
   Sizes / colors / typography mirrored from shopmenorista.com (Raleway scale).
   Fonts load via <link> from themes.php. */

body.theme-papilio {
    --pp-ink: #000000;
    --pp-rose: #be4151;
    --pp-rose-soft: rgba(190, 65, 81, 0.9);
    --pp-mist: #e6e6e6;
    --pp-search: #f2f2f2;
    --pp-muted: #b4b4b4;
    --pp-soft: #6b6b6b;
    --brand: #000000;
    --brand-dark: #000000;
    --accent: #be4151;
    --text-main: #000000;
    --text-soft: #6b6b6b;
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --line: #e6e6e6;
    background: #ffffff !important;
    color: var(--text-main);
    font-family: "Raleway", "Segoe UI", sans-serif !important;
    letter-spacing: 0.01em;
    font-size: 16px;
}

body.theme-papilio.app-rtl,
body.theme-papilio[dir="rtl"],
html[dir="rtl"] body.theme-papilio {
    font-family: "Noto Sans Arabic", "Raleway", "Segoe UI", sans-serif !important;
}

body.theme-papilio.pp-drawer-open,
body.theme-papilio.no-scroll {
    overflow: hidden;
}

body.theme-papilio .bi,
body.theme-papilio [class^="bi-"]::before,
body.theme-papilio [class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

/* Content gutter — Menorista .content */
body.theme-papilio .pp-content {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 992px) {
    body.theme-papilio .pp-content {
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media (min-width: 1200px) {
    body.theme-papilio .pp-content {
        max-width: 1600px;
        padding-right: 40px !important;
        padding-left: 40px !important;
    }
}

body.theme-papilio.layout-papilio .pp-main {
    padding: 0 !important;
    max-width: none !important;
    width: 100%;
}

/* ---------- Header (compact 75px / inner 70px) ---------- */
body.theme-papilio .pp-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #ffffff;
    height: 75px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.theme-papilio .pp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

body.theme-papilio .pp-header-left,
body.theme-papilio .pp-header-right {
    display: flex;
    align-items: center;
}

body.theme-papilio .pp-header-left {
    gap: 0.75rem;
}

body.theme-papilio .pp-header-right {
    gap: 0;
}

body.theme-papilio .pp-brand {
    display: inline-flex;
    align-items: center;
    max-width: 200px;
    width: 200px;
    color: #000 !important;
    text-decoration: none !important;
    font-family: "Raleway", sans-serif !important;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    margin-left: 0;
}

body.theme-papilio .pp-brand img,
body.theme-papilio .pp-brand .brand-logo,
body.theme-papilio .pp-brand .site-logo,
body.theme-papilio .pp-brand svg {
    max-height: 28px;
    width: auto;
    max-width: 100%;
}

body.theme-papilio .pp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin-right: 1rem;
    line-height: 1;
    cursor: pointer;
}

body.theme-papilio .pp-icon-btn:last-child {
    margin-right: 0;
}

body.theme-papilio .pp-icon-btn:hover {
    opacity: 0.7;
}

body.theme-papilio .pp-hamburger {
    margin-right: 0.75rem;
}

body.theme-papilio .pp-cart-link {
    position: relative;
    margin-right: 1.25rem;
    gap: 0.2rem;
}

body.theme-papilio .pp-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

body.theme-papilio .pp-cart-count {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-left: 0.15rem;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Filled cart: clear rose badge so the count is obvious on phone */
body.theme-papilio .pp-cart-link.is-cart-filled .pp-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.28rem;
    margin-left: 0.15rem;
    border-radius: 999px;
    background: var(--pp-rose);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

body.theme-papilio .pp-cart-link.is-cart-filled .pp-cart-count-paren {
    display: none;
}

body.theme-papilio .pp-cart-link.is-cart-pulse {
    animation: pp-cart-pulse 1.35s ease-out 1;
}

body.theme-papilio .pp-cart-link.is-cart-pulse .pp-cart-icon {
    animation: pp-cart-icon-pop 1.35s ease-out 1;
}

body.theme-papilio .pp-cart-link.is-cart-pulse .pp-cart-count {
    animation: pp-cart-badge-pop 1.35s ease-out 1;
}

@keyframes pp-cart-pulse {
    0% { box-shadow: 0 0 0 0 rgba(190, 65, 81, 0.45); border-radius: 999px; }
    40% { box-shadow: 0 0 0 10px rgba(190, 65, 81, 0); border-radius: 999px; }
    100% { box-shadow: 0 0 0 0 rgba(190, 65, 81, 0); border-radius: 999px; }
}

@keyframes pp-cart-icon-pop {
    0% { transform: scale(1); }
    25% { transform: scale(1.18); }
    55% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@keyframes pp-cart-badge-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.28); }
    60% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

@media (max-width: 767px) {
    body.theme-papilio .pp-cart-link.is-cart-filled .pp-cart-count {
        min-width: 1.35rem;
        height: 1.35rem;
        font-size: 0.72rem;
    }
}

body.theme-papilio .pp-lang span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Search box — 250×50, #F2F2F2 */
body.theme-papilio .pp-search {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    width: 250px;
    height: 50px;
    margin-left: 0.25rem;
}

body.theme-papilio .pp-search input {
    border: 0;
    outline: 0;
    background: transparent;
    height: 50px;
    width: calc(100% - 50px);
    padding: 0 20px;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #000;
}

body.theme-papilio .pp-search button {
    border: 0;
    outline: 0;
    background: transparent;
    width: 50px;
    height: 50px;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Drawer (super menu) */
body.theme-papilio .pp-drawer {
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.theme-papilio .pp-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}

body.theme-papilio .pp-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

body.theme-papilio .pp-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(360px, 88vw);
    background: #fff;
    padding: 1.25rem 1.25rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    overflow: auto;
}

body.theme-papilio.app-rtl .pp-drawer-panel,
[dir="rtl"] body.theme-papilio .pp-drawer-panel {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

body.theme-papilio .pp-drawer.is-open .pp-drawer-panel {
    transform: translateX(0);
}

body.theme-papilio .pp-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

body.theme-papilio .pp-drawer-title {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

body.theme-papilio .pp-drawer-panel a {
    display: block;
    padding: 0.65rem 0;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #e6e6e6;
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: capitalize;
}

body.theme-papilio .pp-drawer-panel a:hover {
    color: var(--pp-rose);
}

/* ---------- Hero / slideshows — 100vh (no horizontal scroll trap) ---------- */
body.theme-papilio .pp-hero.slideshows {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 100dvh;
    background-color: #e6e6e6;
    margin-top: 0;
    overflow: hidden;
    touch-action: pan-y !important;
}

body.theme-papilio .pp-hero .hero-carousel,
body.theme-papilio .pp-hero .hero-carousel-home {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    height: 100%;
    overflow: hidden !important;
    touch-action: pan-y !important;
}

body.theme-papilio .pp-hero .hero-carousel-home,
body.theme-papilio .pp-hero .hero-track,
body.theme-papilio .pp-hero .hero-slide {
    border-radius: 0 !important;
    height: 100%;
    min-height: 100vh;
}

/* Stack slides instead of a swipeable track so page scroll always works. */
body.theme-papilio .pp-hero .hero-track,
body.theme-papilio .pp-hero .pp-hero-track {
    display: block !important;
    position: relative;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scroll-snap-type: none !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    height: 100%;
    width: 100%;
}

body.theme-papilio .pp-hero .hero-slide {
    position: absolute !important;
    inset: 0;
    flex: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease;
    scroll-snap-align: unset !important;
}

body.theme-papilio .pp-hero .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

body.theme-papilio .pp-hero .hero-slide[hidden] {
    display: block !important;
}

body.theme-papilio .pp-hero .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

body.theme-papilio .pp-hero .hero-slide-image,
body.theme-papilio .pp-hero .background-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

body.theme-papilio .pp-hero .hero-slide-empty {
    position: absolute;
    inset: 0;
    background: #e6e6e6;
    z-index: 1;
}

body.theme-papilio .pp-hero .slide-content {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    z-index: 3;
}

body.theme-papilio .pp-hero-copy {
    color: #fff;
    max-width: min(640px, 90vw);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

body.theme-papilio .pp-hero-title {
    margin: 0 0 0.5rem;
    font-family: "Raleway", sans-serif !important;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff !important;
}

body.theme-papilio .pp-hero-sub {
    margin: 0 0 1rem;
    font-size: clamp(0.85rem, 1.5vw, 1.0625rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Underline CTA — Menorista .btn-underline */
body.theme-papilio .btn-underline {
    color: #ffffff;
    padding-bottom: 7px;
    text-decoration: none;
    position: relative;
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: inline-block;
}

body.theme-papilio .btn-underline::after,
body.theme-papilio .btn-underline::before {
    position: absolute;
    content: "";
    bottom: 0;
    height: 2px;
    background-color: #ffffff;
}

body.theme-papilio .btn-underline::after {
    right: 0;
    left: 0;
    transition: all 0.35s ease-in-out 0s;
}

body.theme-papilio .btn-underline::before {
    right: 100%;
    left: 0;
    transition: all 0.35s ease-in-out 0.35s;
}

body.theme-papilio .btn-underline:hover::after {
    left: 100% !important;
    right: 0 !important;
}

body.theme-papilio .btn-underline:hover::before {
    right: 0 !important;
    left: 0 !important;
}

body.theme-papilio .slideshow-arrows-container {
    position: absolute;
    bottom: 100px;
    right: 100px;
    z-index: 99;
    display: flex;
    gap: 0.35rem;
}

body.theme-papilio .pp-circle-arrow {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

body.theme-papilio .pp-circle-arrow:hover {
    opacity: 0.85;
}

/* ---------- Collection rails ---------- */
body.theme-papilio .pp-collection.collection {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 80px 0;
}

body.theme-papilio .pp-collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

body.theme-papilio .pp-collection-arrows {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 4rem;
}

body.theme-papilio .pp-collection-arrows button {
    border: 0;
    background: transparent;
    color: #000;
    padding: 0.15rem;
    cursor: pointer;
    line-height: 0;
}

body.theme-papilio .pp-collection-title {
    font-size: 1.4375rem; /* t-6 */
    font-weight: 500;
    text-align: center;
    flex: 1;
    color: #000;
}

body.theme-papilio .pp-view-all {
    font-size: 0.9375rem; /* t-2 */
    font-weight: 500;
    color: #000;
    text-decoration: none;
    opacity: 0.5;
    min-width: 4.5rem;
    text-align: right;
}

body.theme-papilio .pp-view-all:hover {
    opacity: 1;
    color: var(--pp-rose);
}

body.theme-papilio .pp-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

body.theme-papilio .pp-rail > .product-card {
    flex: 0 0 261px;
    width: 261px;
    scroll-snap-align: start;
    margin-right: 0;
}

body.theme-papilio .pp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 10px;
}

/* ---------- Product cards (exact Menorista anatomy) ---------- */
body.theme-papilio .product-card,
body.theme-papilio a.product-card,
body.theme-papilio .pp-product-card {
    display: block !important;
    position: relative !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    flex-direction: unset !important;
    transition: none !important;
}

body.theme-papilio .product-card:hover,
body.theme-papilio a.product-card:hover,
body.theme-papilio .pp-product-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.theme-papilio .product-card .product-card-hit {
    display: none !important;
}

body.theme-papilio .product-card.out-of-stock .product-card-inner {
    opacity: 0.5;
}

body.theme-papilio .product-card-inner {
    position: relative;
    display: block;
    border-radius: 0 !important;
    overflow: visible;
}

body.theme-papilio .pp-related .pp-related-grid,
body.theme-papilio .pp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 10px;
}

body.theme-papilio .pp-related .product-related-head {
    width: min(1600px, calc(100% - 30px));
    margin-inline: auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    body.theme-papilio .pp-related .product-related-head {
        padding-left: 40px;
        padding-right: 40px;
        width: min(1600px, 100%);
    }
}

/* 2:3 ratio */
body.theme-papilio .ratio-2-3 {
    width: 100%;
    padding-bottom: calc((100% * 3) / 2);
    position: relative;
    overflow: hidden;
}

body.theme-papilio .ratio-8-3 {
    width: 100%;
    padding-bottom: calc((100% * 3) / 8);
    position: relative;
}

body.theme-papilio .ratio-16-9 {
    width: 100%;
    padding-bottom: calc((100% * 9) / 16);
    position: relative;
}

body.theme-papilio .product-image {
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
}

body.theme-papilio .product-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.theme-papilio .product-image .product-image-secondary {
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.theme-papilio .product-card:hover .product-image .product-image-secondary[src],
body.theme-papilio .product-card:hover .product-image .product-image-secondary[data-src] {
    opacity: 1;
}

/* Badge — 60×25, top-left, #BE4151 @ 0.9 */
body.theme-papilio .product-badge {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    height: 25px;
    font-size: 0.8125rem;
    line-height: 25px;
    width: 60px;
    text-align: center;
    z-index: 3;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.theme-papilio .product-badge.badge-red {
    background-color: rgba(190, 65, 81, 0.9);
}

/* Size slogan — 25px Verdana bar */
body.theme-papilio .sizes-slogan {
    position: absolute;
    font-family: Verdana, Geneva, sans-serif;
    bottom: 0;
    right: 0;
    left: 0;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    text-align: center;
    line-height: 25px;
    font-size: 0.6875rem;
    overflow: hidden;
    padding: 0 3px;
    z-index: 3;
    pointer-events: none;
}

/* Hover View CTA */
body.theme-papilio .add-to-cart {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    outline: none;
    border: 1px solid #ffffff;
    color: #ffffff;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: transparent;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.theme-papilio .product-card:not(.out-of-stock):hover .product-image::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    inset: 0;
    z-index: 1;
}

body.theme-papilio .product-card:not(.out-of-stock):hover .product-image .add-to-cart {
    display: block;
}

body.theme-papilio .add-to-cart:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Sold out overlay */
body.theme-papilio .out-of-stock-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    pointer-events: none;
}

body.theme-papilio .out-of-stock-box {
    text-align: center;
    line-height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 33%;
    font-size: 0.8125rem;
    height: 40px;
    background-color: #000000;
    color: #ffffff;
    z-index: 2;
}

/* Card meta — centered like Menorista */
body.theme-papilio .product-card-meta {
    padding: 0.5rem 0 0.25rem;
    text-align: center;
}

body.theme-papilio .product-card-cat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0.15rem 0;
}

body.theme-papilio .product-card-cat {
    font-size: 0.8125rem; /* t-1 */
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.04em;
}

body.theme-papilio .saved-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
}

body.theme-papilio .product-card-title {
    font-size: 0.9375rem; /* t-2 */
    font-weight: 600;
    text-transform: capitalize;
    margin: 0.25rem 0;
    line-height: 1.35;
    color: #000;
}

body.theme-papilio .product-card-price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

body.theme-papilio .product-card-price {
    color: #000;
}

body.theme-papilio .product-card-compare {
    color: var(--pp-rose);
    text-decoration: line-through;
}

/* Hide classic card chrome */
body.theme-papilio .product-card-hit,
body.theme-papilio .product-card-action-btns,
body.theme-papilio .product-share-btn-card,
body.theme-papilio .product-card-price-options,
body.theme-papilio .product-availability {
    display: none !important;
}

/* ---------- Mid banner (ratio 8:3) ---------- */
body.theme-papilio .pp-banner.banner-card {
    display: block;
    position: relative;
    text-decoration: none;
    margin: 0;
    overflow: hidden;
}

body.theme-papilio .pp-banner-image {
    background: #e6e6e6 center / cover no-repeat;
}

body.theme-papilio .pp-banner .banner-content {
    position: absolute;
    left: 10%;
    right: 0;
    bottom: 11%;
    z-index: 2;
}

body.theme-papilio .pp-banner .btn-underline {
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ---------- Category tiles (16:9) ---------- */
body.theme-papilio .pp-categories {
    padding: 3rem 0;
}

body.theme-papilio .pp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

body.theme-papilio .category-card {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    display: block;
    text-decoration: none;
}

body.theme-papilio .category-card:hover {
    filter: brightness(0.95);
}

body.theme-papilio .category-card .category-image {
    background: #ececec center / cover no-repeat;
    transition: transform 0.35s ease;
}

body.theme-papilio .category-card:hover .category-image {
    transform: scale(1.1);
}

body.theme-papilio .category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

body.theme-papilio .category-card .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    font-size: 1.0625rem; /* t-3 */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    white-space: nowrap;
}

/* ---------- Newsletter ---------- */
body.theme-papilio .pp-newsletter {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

body.theme-papilio .pp-newsletter-title {
    font-size: 1.5625rem; /* ~t-7 */
    font-weight: 500;
    margin: 0 0 0.75rem;
}

body.theme-papilio .pp-newsletter-text {
    width: 400px;
    max-width: 100%;
    margin: 0 auto 1.25rem;
    font-size: 0.9375rem;
    color: var(--pp-soft);
}

body.theme-papilio .subscribe-textfield {
    display: flex;
    width: 500px;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    border-bottom: 1px solid #000000;
}

body.theme-papilio .subscribe-textfield input,
body.theme-papilio .subscribe-textfield button {
    border: 0;
    outline: 0;
    background-color: transparent;
    font-family: inherit;
}

body.theme-papilio .subscribe-textfield input {
    padding: 0 5px;
    height: 40px;
    flex: 1;
    font-size: 0.9375rem;
}

body.theme-papilio .subscribe-textfield button {
    color: #000000;
    font-weight: 600;
    height: 40px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
    padding: 0 0.5rem;
}

body.theme-papilio .subscribe-textfield button:hover {
    background-color: #f3f3f3;
    padding-right: 20px;
    padding-left: 20px;
}

body.theme-papilio .pp-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

body.theme-papilio .pp-social a {
    color: #000;
    text-decoration: none;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

body.theme-papilio .pp-social a:hover {
    color: var(--pp-rose);
}

/* ---------- Footer ---------- */
body.theme-papilio .pp-footer .footer-top {
    background-color: #e6e6e6;
    padding: 20px 0 !important;
}

body.theme-papilio .pp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 1rem;
}

body.theme-papilio .pp-footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: 90px;
    line-height: 90px;
    margin: 0 0.5rem;
}

body.theme-papilio .pp-footer-links a:hover {
    opacity: 0.7;
}

body.theme-papilio .pp-footer .footer-bottom {
    background-color: #000000;
}

body.theme-papilio .pp-footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 0;
    gap: 1rem;
}

body.theme-papilio .pp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

body.theme-papilio .pp-footer-legal a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.theme-papilio .pp-footer-legal a:hover {
    opacity: 0.8;
}

body.theme-papilio .pp-footer-copy {
    color: #fff;
    font-size: 0.8125rem;
    text-align: center;
}

body.theme-papilio .pp-footer-spacer {
    min-height: 1px;
}

/* ---------- Shop page ---------- */
body.theme-papilio .pp-shop-head {
    padding: 1.75rem 0 1rem;
}

body.theme-papilio .pp-shop-title {
    font-family: "Raleway", sans-serif !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    margin: 0 0 0.85rem;
    letter-spacing: 0.04em;
}

body.theme-papilio .pp-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 0.65rem;
}

body.theme-papilio .pp-shop-tabs a {
    color: var(--pp-soft);
    text-decoration: none;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid transparent;
}

body.theme-papilio .pp-shop-tabs a.is-active {
    color: #000;
    border-bottom-color: #000;
}

body.theme-papilio .pp-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
    font-size: 0.85rem;
    color: var(--pp-soft);
}

body.theme-papilio .pp-shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.theme-papilio .pp-shop-grid-section {
    padding-bottom: 3rem;
}

/* ---------- Product detail ---------- */
body.theme-papilio.layout-papilio .product-breadcrumb,
body.theme-papilio.layout-papilio .product-showcase,
body.theme-papilio.layout-papilio .product-tabs-shell,
body.theme-papilio.layout-papilio .related-products,
body.theme-papilio.layout-papilio .home-section {
    width: min(1600px, calc(100% - 30px));
    margin-inline: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    body.theme-papilio.layout-papilio .product-breadcrumb,
    body.theme-papilio.layout-papilio .product-showcase,
    body.theme-papilio.layout-papilio .product-tabs-shell,
    body.theme-papilio.layout-papilio .related-products,
    body.theme-papilio.layout-papilio .home-section {
        padding-left: 40px;
        padding-right: 40px;
        width: min(1600px, 100%);
    }
}

body.theme-papilio.layout-papilio .product-breadcrumb {
    padding-top: 1.25rem;
}

body.theme-papilio .product-showcase,
body.theme-papilio .product-info-card,
body.theme-papilio .product-media-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.theme-papilio .product-breadcrumb {
    font-size: 0.78rem;
    color: var(--pp-soft);
}

body.theme-papilio .product-title {
    font-family: "Raleway", sans-serif !important;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 600;
}

body.theme-papilio .product-vendor-label {
    display: none;
}

/* Colors stay under the gallery image */
body.theme-papilio .product-gallery-colors {
    margin-top: 0.85rem;
    padding: 0 0.15rem;
}

body.theme-papilio .product-gallery-colors .product-option-label {
    color: #000;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

body.theme-papilio .product-benefits-grid-bottom {
    margin-top: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-papilio .product-benefits-grid-bottom span {
    border-radius: 0 !important;
    background: #f5f5f5;
    border-color: #e6e6e6;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.theme-papilio .product-unit-modal-panel {
    border-radius: 0 !important;
}

body.theme-papilio .product-unit-row {
    border-radius: 0 !important;
    background: #fafafa;
    border-color: #e6e6e6;
}

@media (max-width: 767px) {
    body.theme-papilio .product-benefits-grid-bottom {
        grid-template-columns: 1fr;
    }
}

body.theme-papilio .product-size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.theme-papilio .product-size-pill {
    min-width: 4.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d7d7d7;
    background: #efefef;
    color: #222;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    position: relative;
}

body.theme-papilio .product-size-pill.is-selected {
    background: #fff;
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

body.theme-papilio .product-size-pill.is-sold-out {
    color: #999;
    background: #f3f3f3;
}

body.theme-papilio .product-size-pill.is-sold-out::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    border-top: 1px solid rgba(120, 120, 120, 0.85);
    transform: rotate(-28deg);
}

body.theme-papilio .product-size-status {
    margin-top: 0.45rem;
    color: var(--pp-rose);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2em;
}

body.theme-papilio .product-buy-form .form-select#product-size {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

body.theme-papilio .product-add-btn.is-notify,
body.theme-papilio .product-add-btn:disabled {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.theme-papilio .ui-btn {
    border-radius: 0 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
}

body.theme-papilio .ui-btn-primary {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.theme-papilio .ui-btn-outline {
    border-color: #111 !important;
    color: #111 !important;
    background: transparent !important;
}

body.theme-papilio .announcement-bar {
    background: #000 !important;
    color: #fff !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    body.theme-papilio .pp-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-papilio .pp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.theme-papilio .pp-search {
        display: none;
    }

    body.theme-papilio .pp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-papilio .pp-rail > .product-card {
        flex: 0 0 calc(50vw - 20px);
        width: calc(50vw - 20px);
    }

    body.theme-papilio .slideshow-arrows-container {
        bottom: 15px !important;
        right: 15px !important;
    }

    body.theme-papilio .pp-banner .banner-content {
        left: 15px !important;
        bottom: 16px !important;
    }

    body.theme-papilio .pp-footer-links a {
        height: 30px !important;
        line-height: 30px !important;
    }

    body.theme-papilio .pp-footer-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    body.theme-papilio .pp-footer-legal {
        justify-content: center;
    }

    body.theme-papilio .out-of-stock-box {
        width: 50%;
    }

    body.theme-papilio .category-card .label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 991px) {
    body.theme-papilio .pp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.theme-papilio .pp-hero.slideshows,
    body.theme-papilio .pp-hero .hero-carousel,
    body.theme-papilio .pp-hero .hero-carousel-home,
    body.theme-papilio .pp-hero .hero-track,
    body.theme-papilio .pp-hero .hero-slide,
    body.theme-papilio .pp-hero .hero-slide.active {
        height: min(150vw, 85vh);
        min-height: min(150vw, 85vh);
        max-height: 85vh;
    }

    body.theme-papilio .pp-collection.collection {
        padding: 48px 0;
    }

    body.theme-papilio .pp-collection-title {
        font-size: 1.1875rem;
        text-align: left;
    }

    body.theme-papilio .pp-brand {
        width: 140px !important;
        max-width: 140px;
        font-size: 1.05rem;
    }

    body.theme-papilio .pp-header {
        height: 60px;
    }

    body.theme-papilio .pp-header-inner {
        height: 56px;
    }
}

@media (max-width: 575px) {
    body.theme-papilio .pp-cat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
