/* Layout: sidebar + topbar + main */

.layout-shop {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,107,157,0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(232,37,74,0.08) 0%, transparent 35%),
        var(--cream);
}

.layout-shop > .main-content {
    flex: 1 1 auto;
    width: 100%;
}

.shop-bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shop-bg-decor__e {
    position: absolute;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    opacity: 0.14;
    line-height: 1;
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(232, 37, 74, 0.08));
}

.shop-bg-decor__e--1  { top: 6%;  left: 4%;   animation-delay: 0s; }
.shop-bg-decor__e--2  { top: 12%; right: 6%;  animation-delay: 0.8s; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.shop-bg-decor__e--3  { top: 28%; left: 10%;  animation-delay: 1.6s; }
.shop-bg-decor__e--4  { top: 22%; right: 14%; animation-delay: 2.2s; }
.shop-bg-decor__e--5  { top: 42%; left: 3%;   animation-delay: 1s; }
.shop-bg-decor__e--6  { top: 48%; right: 5%;  animation-delay: 2.8s; }
.shop-bg-decor__e--7  { top: 58%; left: 12%;  animation-delay: 0.4s; }
.shop-bg-decor__e--8  { top: 65%; right: 10%; animation-delay: 1.8s; }
.shop-bg-decor__e--9  { top: 78%; left: 6%;   animation-delay: 2.4s; }
.shop-bg-decor__e--10 { top: 82%; right: 8%;  animation-delay: 0.6s; }
.shop-bg-decor__e--11 { top: 35%; left: 48%;  animation-delay: 3s; opacity: 0.1; }
.shop-bg-decor__e--12 { top: 70%; left: 42%;  animation-delay: 1.2s; opacity: 0.1; }

@media (max-width: 640px) {
    .shop-bg-decor__e--11,
    .shop-bg-decor__e--12 { display: none; }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    object-fit: contain;
    height: 2.35rem;
    width: auto;
    max-width: min(200px, 52vw);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,179,217,0.4);
    box-shadow: 0 2px 16px rgba(232,37,74,0.06);
}

.topbar__start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.topbar--search {
    display: grid;
    grid-template-columns: 1fr minmax(0, 420px) 1fr;
    align-items: center;
    gap: 0.65rem 1rem;
}

.topbar--search .topbar__start {
    grid-column: 1;
    justify-self: start;
}

.topbar--search .topbar__actions {
    grid-column: 3;
    justify-self: end;
}

.topbar .brand {
    margin-right: 0;
    flex-shrink: 1;
    min-width: 0;
}

.topbar .brand__logo {
    height: 3.15rem;
    max-width: min(280px, 58vw);
}

@media (max-width: 768px) {
    .topbar .brand__logo {
        height: 2.35rem;
        max-width: min(160px, 40vw);
    }
}

.topbar__actions {
    flex-shrink: 0;
    margin-left: auto;
}

.topbar-search {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--pink-light);
    border: 2px solid rgba(255, 179, 217, 0.6);
    border-radius: 999px;
    padding: 0.35rem 0.75rem 0.35rem 0.65rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar--search .topbar-search {
    grid-column: 2;
    justify-self: center;
    margin: 0;
}
.topbar-search:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}
.topbar-search__icon {
    font-size: 0.95rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.topbar-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.25rem 0;
}
.topbar-search__input:focus { outline: none; }
.topbar-search__input::placeholder { color: var(--text-muted); font-weight: 500; }
.topbar-search__clear {
    border: none;
    background: rgba(232, 37, 74, 0.1);
    color: var(--red);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.topbar__cart {
    position: relative;
    font-size: 1.35rem;
    padding: 0.35rem;
}
.badge--cart {
    position: absolute;
    top: -4px;
    right: -6px;
}

.badge--pulse {
    animation: cartBadgePulse 0.55s ease;
}

@keyframes cartBadgePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.btn.is-loading {
    opacity: 0.82;
    cursor: wait;
}

.cart-item--busy {
    opacity: 0.65;
    pointer-events: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: none;
    background: var(--pink-light);
    border-radius: 12px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transition: 0.2s;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,27,46,0.4);
    z-index: 500;
    backdrop-filter: blur(2px);
}
.sidebar-overlay:not([hidden]) { display: block; }
.sidebar-overlay[hidden] { display: none; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, var(--pink-light) 100%);
    z-index: 600;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 32px rgba(232,37,74,0.15);
    border-right: 2px solid rgba(255,179,217,0.5);
}
.sidebar.is-open { transform: translateX(0); }

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,179,217,0.4);
}
.sidebar__close {
    border: none;
    background: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.sidebar__nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}
.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}
.sidebar__link:hover, .sidebar__link--accent {
    background: rgba(232,37,74,0.08);
    color: var(--red);
}
.sidebar__section {
    padding: 1rem 1rem 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 800;
}
.sidebar__logout { margin-top: auto; padding: 0.75rem; }
.sidebar__decor { position: relative; height: 80px; overflow: hidden; opacity: 0.5; }
.strawberry-float { position: absolute; font-size: 1.5rem; animation: float 4s ease-in-out infinite; }
.strawberry-float.s1 { left: 20%; animation-delay: 0s; }
.strawberry-float.s2 { left: 50%; animation-delay: 1s; }
.strawberry-float.s3 { left: 75%; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 1;
}
.main-content--narrow { max-width: 900px; }
.main-content--cart {
    max-width: 1100px;
    display: grid;
    gap: 1rem;
}
.main-content--shop {
    padding-top: 0;
}

/* Hero */
.hero {
    position: relative;
    margin: 0 -1rem 1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(232,37,74,0.9) 0%, rgba(255,107,157,0.85) 50%, rgba(255,179,217,0.8) 100%);
    z-index: 0;
    overflow: hidden;
}

.hero__emotes {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0.5rem;
    padding: 1rem;
    opacity: 0.22;
}

.hero__emotes span {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1;
    animation: float 5s ease-in-out infinite;
}

.hero__emotes span:nth-child(2n) { animation-delay: 0.6s; }
.hero__emotes span:nth-child(3n) { animation-delay: 1.2s; }
.hero__emotes span:nth-child(5n) { animation-delay: 1.8s; }

.hero__content { position: relative; z-index: 1; color: var(--white); max-width: 640px; }
.hero__eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0 0 0.5rem;
}
.hero__title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    margin: 0 0 0.75rem;
    font-weight: 800;
    line-height: 1.15;
}
.hero__title span { font-family: var(--font-display); font-weight: 400; }
.hero__subtitle { margin: 0; opacity: 0.95; font-size: 1.05rem; max-width: 520px; }

/* Categories */
.categories-bar { margin-bottom: 1rem; overflow: hidden; }
.categories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.cat-pill {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--white);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.15s;
    cursor: pointer;
    font-family: inherit;
}
.cat-pill:hover, .cat-pill.is-active {
    border-color: var(--pink);
    background: var(--pink-light);
    color: var(--red);
}

/* Shop feed AJAX */
.shop-feed { min-height: 200px; }
.shop-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem;
    color: var(--text-muted);
    font-weight: 700;
}
.shop-loader__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid var(--pink-soft);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.shop-loader[hidden],
.shop-loader.is-hidden,
.shop-end[hidden],
.shop-end.is-hidden {
    display: none !important;
}
.shop-sentinel { height: 1px; pointer-events: none; }
.shop-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.75rem 1rem 0.5rem;
    text-align: center;
    color: var(--text-muted);
}
.shop-end__icon { font-size: 1.5rem; }
.shop-end p {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--red);
}
.shop-error { color: var(--red); font-weight: 600; padding: 1rem 0; }
.shop-skeleton {
    background: linear-gradient(90deg, #fce8ef 25%, #fff5f8 50%, #fce8ef 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 999px;
}
.shop-skeleton--pill {
    width: 100px;
    height: 36px;
    flex-shrink: 0;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.product-card {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fffbfc 100%);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(232, 37, 74, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 179, 217, 0.45);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.7), rgba(232, 37, 74, 0.15), rgba(255, 240, 245, 0.9));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(232, 37, 74, 0.16);
}

.product-card--soldout { opacity: 0.88; }

.product-card__media {
    position: relative;
    padding: 0.65rem 0.65rem 0;
}

.product-card__image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__image-frame {
    position: relative;
    border-radius: calc(var(--radius-sm) + 2px);
    overflow: hidden;
    background: linear-gradient(145deg, #fff5f9, #ffe8f1);
    border: 1px solid rgba(255, 179, 217, 0.5);
    aspect-ratio: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.product-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover .product-card__shine {
    transform: translateX(120%);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
}

.product-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-card__frame-accent {
    position: absolute;
    top: 0.35rem;
    right: 0.85rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.25), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.product-card__category-chip {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    z-index: 4;
    max-width: calc(100% - 2rem);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--red-dark);
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 4;
    background: var(--text);
    color: var(--white);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__badge--out { background: #444; }
.product-card__badge--low { background: linear-gradient(135deg, var(--red), #ff8c42); }

/* Product gallery */
.product-gallery {
    position: relative;
    width: 100%;
}

.product-gallery__frame {
    position: relative;
    border-radius: calc(var(--radius-sm) + 2px);
    overflow: hidden;
    background: linear-gradient(145deg, #fff5f9, #ffe8f1);
    border: 1px solid rgba(255, 179, 217, 0.5);
    aspect-ratio: 1;
}

.product-gallery--card .product-gallery__frame {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.product-gallery__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.product-card:hover .product-gallery__shine {
    transform: translateX(120%);
}

.product-gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.product-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red-dark);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.product-gallery--multi:hover .product-gallery__nav,
.product-gallery--multi:focus-within .product-gallery__nav {
    opacity: 1;
}

.product-gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.product-gallery__nav--prev { left: 0.5rem; }
.product-gallery__nav--next { right: 0.5rem; }

.product-gallery__dots {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(45, 27, 46, 0.35);
    backdrop-filter: blur(6px);
}

.product-gallery__dot {
    width: 0.45rem;
    height: 0.45rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.product-gallery__dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

.product-gallery__counter {
    position: absolute;
    bottom: 0.55rem;
    left: 0.55rem;
    top: auto;
    z-index: 5;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(45, 27, 46, 0.45);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.product-gallery--detail .product-gallery__frame {
    aspect-ratio: 1;
    border-radius: calc(var(--radius) + 4px);
    border-width: 2px;
    box-shadow:
        0 12px 36px rgba(232, 37, 74, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.product-gallery--detail .product-gallery__nav {
    opacity: 1;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.4rem;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.product-gallery__thumb {
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--pink-light);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__thumb:hover {
    transform: translateY(-2px);
}

.product-gallery__thumb.is-active {
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.2);
}

@media (max-width: 768px) {
    .product-gallery--multi .product-gallery__nav {
        opacity: 1;
    }
}

.product-stock {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.product-stock--ok { color: var(--text-muted); }
.product-stock--low { color: var(--red); }
.product-stock--out { color: #666; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; }
.product-stock--detail { font-size: 1rem; margin-bottom: 1rem; }
.product-stock-hint {
    margin: -0.5rem 0 1rem;
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
}
.product-stock-alert strong { color: var(--red-dark); }

.main-content--product {
    max-width: 1080px;
    padding-top: 0.5rem;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.product-breadcrumb a {
    color: var(--red);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-breadcrumb__current {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.product-detail__gallery {
    position: relative;
}

.product-detail__gallery-hint {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.product-detail__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    z-index: 6;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.product-detail__badge--out { background: #444; }
.product-detail__badge--low { background: linear-gradient(135deg, var(--red), #ff8c42); }
.product-card__body {
    padding: 1rem 1rem 1.15rem;
}

.product-card__name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.product-card__name a:hover { color: var(--red); }

.product-card__desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

.product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(255, 179, 217, 0.55);
}

.product-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.product-card__price-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
}

.product-card__cart-btn {
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.2);
}

.product-card__form { margin: 0; }

/* Product detail page */
.product-detail {
    position: relative;
    display: grid;
    gap: 2rem;
    background: linear-gradient(180deg, #fff 0%, #fffbfc 100%);
    border-radius: calc(var(--radius) + 6px);
    padding: 1.35rem;
    box-shadow: 0 16px 48px rgba(232, 37, 74, 0.1);
    border: 2px solid rgba(255, 179, 217, 0.45);
    overflow: hidden;
}

.product-detail__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.product-detail__decor span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.product-detail__decor span:nth-child(1) { top: 8%; right: 6%; }
.product-detail__decor span:nth-child(2) { bottom: 12%; left: 4%; animation-delay: 1.5s; }
.product-detail__decor span:nth-child(3) { top: 42%; right: 12%; animation-delay: 0.8s; }

@media (min-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2.5rem;
        padding: 2rem;
        align-items: start;
    }
}

.product-detail__gallery-col,
.product-detail__info {
    position: relative;
    z-index: 1;
}

.product-detail__head {
    margin-bottom: 1.25rem;
}

.product-detail__category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.12);
    color: var(--red-dark);
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: background 0.15s, transform 0.15s;
}

.product-detail__category:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-1px);
}

.product-detail__category-icon {
    font-size: 1rem;
    line-height: 1;
}

.product-detail__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.product-detail__price-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.25rem;
    border-radius: calc(var(--radius-sm) + 2px);
    background: linear-gradient(135deg, #fff5f9, #ffe8f1);
    border: 1px solid rgba(255, 179, 217, 0.55);
    box-shadow: 0 6px 20px rgba(232, 37, 74, 0.06);
}

.product-detail__price-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.product-detail__price {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
}

.product-detail__stock-pill {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 179, 217, 0.5);
}

.product-detail__stock-pill--ok { color: var(--text-muted); }
.product-detail__stock-pill--low {
    color: var(--red-dark);
    background: rgba(232, 37, 74, 0.08);
    border-color: rgba(232, 37, 74, 0.2);
}
.product-detail__stock-pill--out {
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail__desc-box {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.75);
    border: 1px dashed rgba(255, 179, 217, 0.65);
}

.product-detail__desc-title {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.product-detail__desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.product-detail__purchase {
    padding: 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 2px solid rgba(255, 179, 217, 0.4);
    box-shadow: 0 8px 24px rgba(232, 37, 74, 0.07);
}

.product-detail__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail__qty {
    margin-bottom: 0;
}

.product-detail__cta {
    margin-top: 0.25rem;
    box-shadow: 0 8px 24px rgba(232, 37, 74, 0.22);
}

.product-detail__alert {
    margin: 0;
}

.product-detail__back {
    display: inline-flex;
    margin-top: 1.25rem;
    font-weight: 800;
}

/* Cart */
.cart-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff8fb 0%, #ffe8f0 50%, #fff 100%);
    border: 1px solid rgba(255, 179, 217, 0.45);
    box-shadow: 0 10px 32px rgba(232, 37, 74, 0.08);
}

.cart-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    font-size: 1.35rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.cart-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.4rem;
}

.cart-hero__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.4), rgba(255, 107, 157, 0.22));
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(232, 37, 74, 0.12);
}

.cart-hero__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.cart-hero__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}

.cart-hero__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.cart-hero__sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-hero__cta {
    margin-left: auto;
    flex-shrink: 0;
}

.cart-empty {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.4);
    box-shadow: var(--shadow);
    padding: 2.75rem 1.5rem;
}

.cart-empty__visual {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pink-light), rgba(255, 179, 217, 0.35));
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(232, 37, 74, 0.12);
}

.cart-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.cart-empty .btn {
    margin-top: 1.25rem;
}

.cart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.cart-summary__item {
    text-align: center;
    padding: 0.85rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 179, 217, 0.38);
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.05);
}

.cart-summary__item--total {
    background: linear-gradient(180deg, #fff, #fff8fb);
    border-color: rgba(255, 107, 157, 0.35);
}

.cart-summary__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.cart-summary__value {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--red-dark);
}

.cart-summary__item--total .cart-summary__value {
    font-size: 1.3rem;
    color: var(--red);
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.35);
    box-shadow: var(--shadow);
    padding: 1.15rem 1.25rem;
}

.cart-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(255, 179, 217, 0.45);
}

.cart-panel__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.35), rgba(255, 107, 157, 0.18));
    flex-shrink: 0;
}

.cart-panel__title {
    margin: 0;
    font-size: 1.05rem;
}

.cart-panel__sub {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
}

.cart-items {
    width: 100%;
}

.cart-checkout {
    width: 100%;
    background: linear-gradient(180deg, #fffafb 0%, var(--white) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 179, 217, 0.4);
}

.cart-checkout__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 179, 217, 0.4);
}

.cart-checkout__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 16rem;
    min-width: 0;
}

.cart-checkout__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.35), rgba(255, 107, 157, 0.18));
    flex-shrink: 0;
}

.cart-checkout__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.cart-checkout__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.cart-checkout__subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.cart-checkout__subtotal span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cart-checkout__subtotal strong {
    font-size: 1.35rem;
    color: var(--red);
    font-weight: 800;
}

.cart-checkout__guest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.cart-checkout__guest .alert { margin: 0; flex: 1; min-width: 200px; }

.cart-checkout__guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cart-checkout__notices {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 179, 217, 0.4);
}

.cart-shipping-notices {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0;
}

.cart-shipping-notices__item {
    margin: 0;
    display: grid;
    gap: 0.2rem;
}

.cart-shipping-notices__item strong {
    font-size: 0.92rem;
}

.cart-shipping-notices__item span {
    font-size: 0.86rem;
    line-height: 1.45;
}

.checkout-form--wide { margin: 0; padding: 0; border: none; }

.checkout-form__row {
    display: grid;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.checkout-form__row--4 {
    grid-template-columns: repeat(2, 1fr);
}

.checkout-form__row--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .checkout-form__row--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-form__row--2 {
        grid-template-columns: 1.4fr 1fr;
    }
}

@media (min-width: 900px) {
    .checkout-form__row--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.checkout-form--wide .field {
    margin-bottom: 0;
}

.checkout-form--wide .field span {
    font-size: 0.8rem;
}

.checkout-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.checkout-form__actions .btn {
    min-width: 220px;
}

.cart-item {
    display: grid;
    grid-template-columns: 5px 64px 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "accent thumb info remove"
        "accent footer footer footer";
    gap: 0.85rem 1rem;
    align-items: start;
    background: var(--white);
    padding: 1rem 1rem 1rem 0;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 179, 217, 0.35);
    box-shadow: 0 4px 16px rgba(232, 37, 74, 0.05);
    overflow: hidden;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item__accent {
    grid-area: accent;
    align-self: stretch;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--pink), var(--red));
}

.cart-item__thumb {
    grid-area: thumb;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { grid-area: info; min-width: 0; }

.cart-item__remove {
    grid-area: remove;
    margin: 0;
    align-self: start;
}

.cart-item__remove-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #faf6f7;
    line-height: 1;
}

.cart-item__remove-btn:hover {
    background: #fee;
    color: var(--red);
}

.cart-item h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    padding-right: 0.25rem;
}

.cart-item p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.cart-item__price { margin-top: 0.2rem !important; }

.cart-item__stock {
    margin-top: 0.35rem !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.cart-item__stock-warn {
    margin-top: 0.35rem !important;
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 700;
    line-height: 1.4;
}

.cart-item__footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f5eef1;
}

.cart-item__qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
}

.cart-item__qty-title,
.cart-item__total-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cart-item__qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item__qty-label { display: block; }

.cart-item__qty .input--sm {
    width: 4.25rem;
    text-align: center;
    padding: 0.45rem 0.35rem;
}

.cart-item__qty-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.cart-item__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.cart-item__total strong {
    font-size: 1.05rem;
    color: var(--red);
    font-weight: 800;
}

.btn-icon { border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

@media (min-width: 641px) {
    .cart-item {
        grid-template-columns: 5px 64px 1fr auto auto;
        grid-template-rows: auto;
        grid-template-areas: "accent thumb info qty total";
        align-items: center;
    }

    .cart-item__remove {
        position: absolute;
        top: 0.65rem;
        right: 0.65rem;
    }

    .cart-item {
        position: relative;
        padding: 1rem 2.75rem 1rem 0;
    }

    .cart-item__footer {
        display: contents;
    }

    .cart-item__qty {
        grid-area: qty;
        align-items: center;
    }

    .cart-item__qty-title { display: none; }

    .cart-item__total {
        grid-area: total;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .cart-item__total-label { display: none; }

    .cart-item__total strong { font-size: 1rem; }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 5px 52px 1fr auto;
        grid-template-areas:
            "accent thumb info remove"
            "accent footer footer footer";
        gap: 0.75rem;
        padding: 0.9rem 0.9rem 0.9rem 0;
    }

    .cart-item__thumb {
        width: 52px;
        height: 52px;
    }

    .cart-item h3 { font-size: 0.95rem; }

    .cart-item__footer {
        flex-wrap: wrap;
    }

    .checkout-form__actions .btn {
        width: 100%;
        min-width: 0;
    }

    .topbar--search {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 0.65rem;
    }

    .topbar--search .topbar__start {
        grid-column: 1;
        grid-row: 1;
    }

    .topbar--search .topbar__actions {
        grid-column: 3;
        grid-row: 1;
    }

    .topbar--search .topbar-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        width: 100%;
    }

    .topbar .brand__logo {
        height: 1.95rem;
        max-width: min(120px, 34vw);
    }

    .topbar-search__input { font-size: 0.85rem; }

    .cart-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .cart-hero__cta {
        margin-left: 0;
        width: 100%;
    }

    .cart-summary {
        grid-template-columns: 1fr;
    }
}

/* Profile */
.main-content--profile {
    display: grid;
    gap: 1.1rem;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 48%, #fff 100%);
    border: 1px solid rgba(255, 179, 217, 0.45);
    box-shadow: 0 10px 32px rgba(232, 37, 74, 0.08);
}

.profile-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.profile-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.5rem 1.35rem;
}

.profile-hero__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(232, 37, 74, 0.22);
}

.profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}

.profile-hero__title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.profile-hero__username {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-weight: 700;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 179, 217, 0.38);
    box-shadow: 0 4px 16px rgba(232, 37, 74, 0.05);
}

.profile-stat__icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.profile-stat__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.profile-stat__value {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: break-word;
}

.profile-panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.4);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.35rem;
}

.profile-panel--orders {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.profile-panel--whatsapp {
    display: grid;
    gap: 1rem;
}

.profile-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.profile-panel__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.35), rgba(255, 107, 157, 0.2));
    flex-shrink: 0;
}

.profile-panel__title {
    margin: 0;
    font-size: 1.1rem;
}

.profile-panel__text {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-panel__action {
    white-space: nowrap;
}

.profile-whatsapp-form {
    margin: 0;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(255, 179, 217, 0.55);
}

.profile-whatsapp-form .field {
    margin-bottom: 1rem;
}

.phone-input__row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
}

.phone-input__country-wrap,
.phone-input__local-wrap {
    display: block;
    margin: 0;
    min-width: 0;
}

.phone-input__country,
.phone-input__local {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid #f0d4de;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.25;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.phone-input__country {
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.4 1.4 6 6l4.6-4.6L12 3l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
}

.phone-input__country:focus,
.phone-input__local:focus {
    outline: none;
    border-color: var(--pink);
}

.phone-input__local-wrap {
    position: relative;
}

.phone-input__prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.phone-input__local {
    padding-left: 3.35rem !important;
}

.phone-input__hint {
    display: block;
    margin-top: 0.45rem;
}

.card-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 720px) {
    .profile-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-panel--orders {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .phone-input__row {
        grid-template-columns: 1fr;
    }

    .my-orders-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .my-orders-hero__cta {
        margin-left: 0;
        width: 100%;
    }

    .my-orders-summary {
        grid-template-columns: 1fr;
    }

    .my-order-detail-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .my-order-steps--cards {
        grid-template-columns: 1fr;
    }

    .my-order-track {
        display: none;
    }

    .my-order-steps__card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 0.85rem 1rem;
    }

    .my-order-steps__content {
        flex: 1;
        align-items: flex-start;
    }
}

/* Mis pedidos (cliente) */
.main-content--orders {
    display: grid;
    gap: 1.1rem;
}

.my-orders-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff8fb 0%, #ffe8f0 50%, #fff 100%);
    border: 1px solid rgba(255, 179, 217, 0.45);
    box-shadow: 0 10px 32px rgba(232, 37, 74, 0.08);
}

.my-orders-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    font-size: 1.35rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.my-orders-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.4rem;
}

.my-orders-hero__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.4), rgba(255, 107, 157, 0.22));
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(232, 37, 74, 0.12);
}

.my-orders-hero__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.my-orders-hero__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}

.my-orders-hero__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.my-orders-hero__sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.my-orders-hero__cta {
    margin-left: auto;
    flex-shrink: 0;
}

.my-orders-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.my-orders-summary__item {
    text-align: center;
    padding: 0.85rem 0.75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 179, 217, 0.38);
    box-shadow: 0 4px 14px rgba(232, 37, 74, 0.05);
}

.my-orders-summary__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.my-orders-summary__value {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--red-dark);
}

.my-orders-empty {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.4);
    box-shadow: var(--shadow);
    padding: 2.75rem 1.5rem;
}

.my-orders-empty__visual {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pink-light), rgba(255, 179, 217, 0.35));
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(232, 37, 74, 0.12);
}

.my-orders-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.my-orders-empty .btn {
    margin-top: 1.25rem;
}

.my-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.my-order-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem 1rem 0;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 179, 217, 0.35);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.my-order-card:hover {
    border-color: var(--pink-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 37, 74, 0.1);
}

.my-order-card__accent {
    width: 5px;
    align-self: stretch;
    flex-shrink: 0;
    border-radius: 0 4px 4px 0;
    background: var(--pink-soft);
}

.my-order-card--pending .my-order-card__accent { background: #ffb74d; }
.my-order-card--accepted .my-order-card__accent { background: var(--pink); }
.my-order-card--completed .my-order-card__accent { background: #66bb6a; }
.my-order-card--cancelled .my-order-card__accent { background: #bdbdbd; }

.my-order-card__main {
    flex: 1;
    min-width: 0;
}

.my-order-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.my-order-card__id-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.my-order-card__id {
    font-weight: 800;
    color: var(--text);
    font-size: 0.98rem;
}

.my-order-card__date {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.my-order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.my-order-card__items {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.my-order-card__total {
    color: var(--red);
    font-size: 1.08rem;
}

.my-order-card__chevron {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--red);
    background: var(--pink-light);
    transition: background 0.15s ease, color 0.15s ease;
}

.my-order-card:hover .my-order-card__chevron {
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: var(--white);
}

.my-order-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.my-order-badge--lg {
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
}

.my-order-badge--pending { background: #fff3e0; color: #e65100; }
.my-order-badge--accepted { background: var(--pink-light); color: var(--red-dark); }
.my-order-badge--completed { background: #e8f8ec; color: #1a7a32; }
.my-order-badge--cancelled { background: #f0f0f0; color: #666; }

.main-content--order-detail {
    display: grid;
    gap: 1rem;
}

.my-order-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    width: fit-content;
}

.my-order-detail__back:hover {
    color: var(--red);
}

.my-order-detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff8fb 0%, #ffe8f0 50%, #fff 100%);
    border: 1px solid rgba(255, 179, 217, 0.45);
    box-shadow: 0 10px 32px rgba(232, 37, 74, 0.08);
}

.my-order-detail-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.my-order-detail-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.4rem;
}

.my-order-detail-hero__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.4), rgba(255, 107, 157, 0.22));
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(232, 37, 74, 0.12);
}

.my-order-detail-hero__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.my-order-detail-hero__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}

.my-order-detail-hero__title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.15;
}

.my-order-detail-hero__sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.my-order-detail__help {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #fff5f8, #fff);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 179, 217, 0.55);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.my-order-detail__help p {
    margin: 0;
}

.my-order-detail__help-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--pink-light);
}

.my-order-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.35rem;
    margin-bottom: 0;
    border: 1px solid rgba(255, 179, 217, 0.3);
}

.my-order-panel--status {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fffafb 0%, var(--white) 100%);
}

.my-order-panel__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.my-order-status {
    padding: 1.25rem 1.35rem 1.35rem;
}

.my-order-status__banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1.35rem;
}

.my-order-status__banner--pending {
    background: linear-gradient(135deg, #fff8e8 0%, #fff3e0 100%);
    border-color: rgba(255, 183, 77, 0.35);
}

.my-order-status__banner--accepted {
    background: linear-gradient(135deg, #fff5f9 0%, var(--pink-light) 100%);
    border-color: rgba(255, 179, 217, 0.5);
}

.my-order-status__banner--completed {
    background: linear-gradient(135deg, #f0faf2 0%, #e8f8ec 100%);
    border-color: rgba(102, 187, 106, 0.35);
}

.my-order-status__banner--cancelled {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

.my-order-status__banner-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.my-order-status__banner--pending .my-order-status__banner-icon { color: #e65100; }
.my-order-status__banner--accepted .my-order-status__banner-icon { color: var(--red); }
.my-order-status__banner--completed .my-order-status__banner-icon { color: #1a7a32; }
.my-order-status__banner--cancelled .my-order-status__banner-icon {
    color: #666;
    font-weight: 800;
    font-size: 1rem;
}

.my-order-status__banner-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.my-order-status__banner-title {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.my-order-status__banner-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.my-order-track {
    margin-bottom: 1.15rem;
    padding: 0 0.5rem;
}

.my-order-track__line {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 179, 217, 0.35);
    overflow: hidden;
}

.my-order-track__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--pink));
    transition: width 0.3s ease;
}

.my-order-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-order-steps--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.my-order-steps__item {
    min-width: 0;
}

.my-order-steps__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 1rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 179, 217, 0.35);
    background: var(--white);
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.my-order-steps__icon {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.85;
}

.my-order-steps__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--pink-light);
    color: var(--text-muted);
    border: 2px solid var(--pink-soft);
}

.my-order-steps__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.my-order-steps__label {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text);
}

.my-order-steps__hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.my-order-steps__item.is-done .my-order-steps__card {
    border-color: rgba(255, 107, 157, 0.45);
    background: linear-gradient(180deg, #fff, #fff8fb);
}

.my-order-steps__item.is-done .my-order-steps__dot {
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: var(--white);
    border-color: transparent;
}

.my-order-steps__item.is-done .my-order-steps__label {
    color: var(--red);
}

.my-order-steps__item.is-current .my-order-steps__card {
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(232, 37, 74, 0.14);
    transform: translateY(-2px);
    background: linear-gradient(180deg, #fff, #fff5f8);
}

.my-order-steps__item.is-current .my-order-steps__dot {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232, 37, 74, 0.12);
}

.my-order-steps__item.is-current .my-order-steps__label {
    color: var(--red-dark);
}

.my-order-steps__item.is-current .my-order-steps__icon {
    opacity: 1;
}

.my-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-order-items__row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 179, 217, 0.35);
}

.my-order-items__row:last-child {
    border-bottom: none;
}

.my-order-items__thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-order-items__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-order-items__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.my-order-items__info strong {
    font-size: 0.95rem;
}

.my-order-items__total {
    color: var(--red);
    white-space: nowrap;
}

.my-order-totals {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--pink-light);
}

.my-order-totals__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.my-order-totals__row strong {
    color: var(--text);
}

.my-order-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 179, 217, 0.65);
    font-size: 1.05rem;
}

.my-order-grand-total strong {
    color: var(--red);
    font-size: 1.2rem;
}

.my-order-billing {
    margin: 0;
}

.my-order-billing__row {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 179, 217, 0.25);
}

.my-order-billing__row:last-child {
    border-bottom: none;
}

.my-order-billing__row dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.my-order-billing__row dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.my-order-billing__row--phone dd {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.my-order-phone__current {
    margin: 0;
    font-size: 0.9rem;
}

.my-order-phone__updated {
    margin: 0;
    font-size: 0.82rem;
}

.my-order-phone__form {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(255, 179, 217, 0.45);
}

.my-order-phone__form .phone-input {
    margin-bottom: 0.75rem;
}

.my-order-phone__submit {
    width: 100%;
}

/* Términos y condiciones */
.main-content--legal {
    display: grid;
    gap: 1rem;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff8fb 0%, #ffe8f0 50%, #fff 100%);
    border: 1px solid rgba(255, 179, 217, 0.45);
    box-shadow: 0 10px 32px rgba(232, 37, 74, 0.08);
}

.legal-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.legal-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
}

.legal-hero__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.4), rgba(255, 107, 157, 0.22));
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(232, 37, 74, 0.12);
}

.legal-hero__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
}

.legal-hero__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.legal-hero__sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.legal-doc {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.38);
    box-shadow: 0 4px 16px rgba(232, 37, 74, 0.05);
    padding: 1rem 1.1rem;
}

.legal-toc__title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.legal-toc__list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.86rem;
}

.legal-toc__list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.legal-toc__list a:hover {
    color: var(--red);
}

.legal-doc__body {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 179, 217, 0.35);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.5rem;
}

.legal-section {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 179, 217, 0.28);
    scroll-margin-top: 1rem;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: var(--red-dark);
}

.legal-section__subtitle {
    margin: 1rem 0 0.45rem;
    font-size: 0.95rem;
    color: var(--text);
}

.legal-section p {
    margin: 0 0 0.65rem;
    line-height: 1.6;
    color: var(--text);
    font-size: 0.94rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 0.65rem;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    line-height: 1.55;
    font-size: 0.94rem;
    color: var(--text);
}

.legal-section ul:last-child,
.legal-section ol:last-child {
    margin-bottom: 0;
}

.checkout-form__terms {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.checkout-form__save {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.checkout-form__terms a {
    font-weight: 800;
}

@media (max-width: 640px) {
    .my-order-billing__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .my-order-items__row {
        grid-template-columns: 44px 1fr;
        grid-template-areas:
            "thumb info"
            "thumb total";
    }

    .my-order-items__thumb { grid-area: thumb; width: 44px; height: 44px; }
    .my-order-items__info { grid-area: info; }
    .my-order-items__total { grid-area: total; padding-left: calc(44px + 0.75rem); }

    .legal-doc {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}

/* Aviso: navegador integrado (Instagram, Facebook, TikTok) */
.in-app-notice {
    position: relative;
    z-index: 1;
}

.in-app-notice--embedded {
    margin: 0 0 1.75rem;
    padding: 0;
    background: none;
}

.in-app-notice--embedded + .categories-bar {
    margin-top: 0.85rem;
}

.in-app-notice__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 2px solid rgba(232, 37, 74, 0.22);
    background: linear-gradient(135deg, #fff8fa, #fff);
    box-shadow: 0 10px 28px rgba(232, 37, 74, 0.1);
}

.in-app-notice__icon {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--pink-light);
    font-size: 1.25rem;
}

.in-app-notice__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.in-app-notice__title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: var(--red-dark);
    font-size: 0.98rem;
    line-height: 1.35;
}

.in-app-notice__desc {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.in-app-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.in-app-notice__copy {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.in-app-browser-restricted .product-card__form,
body.in-app-browser-restricted .product-detail__form,
body.in-app-browser-restricted .cart-item__qty,
body.in-app-browser-restricted .cart-item__remove,
body.in-app-browser-restricted .checkout-form {
    opacity: 0.55;
    pointer-events: none;
}

body.in-app-browser-restricted .product-detail__purchase::after,
body.in-app-browser-restricted .cart-checkout::before {
    content: 'Abre en Safari o Chrome para usar el carrito';
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: #fff0f3;
    border: 1px solid #ffc9d4;
    color: var(--red-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 640px) {
    .in-app-notice--embedded {
        margin-bottom: 1.5rem;
    }

    .in-app-notice--embedded + .categories-bar {
        margin-top: 0.65rem;
    }

    .in-app-notice__inner {
        padding: 0.9rem;
    }

    .in-app-notice__title {
        font-size: 0.92rem;
    }

    .in-app-notice__desc {
        font-size: 0.85rem;
    }
}

.shop-footer {
    margin-top: 2.5rem;
    padding: 1.5rem 1.25rem 2rem;
    border-top: 1px solid #f0d4dc;
    background: linear-gradient(180deg, transparent, #fff8fa 40%);
}

.site-footer {
    margin-top: 3rem;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text);
    border-top: 1px solid rgba(255, 179, 217, 0.4);
    box-shadow: 0 -2px 16px rgba(232, 37, 74, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--pink-light) 100%);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 179, 217, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 12% 88%, rgba(232, 37, 74, 0.05) 0%, transparent 32%);
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.site-footer__glow span {
    position: absolute;
    font-size: 1.35rem;
    opacity: 0.28;
}

.site-footer__glow span:nth-child(1) { top: 14%; left: 6%; }
.site-footer__glow span:nth-child(2) { top: 22%; right: 10%; font-size: 1.1rem; }
.site-footer__glow span:nth-child(3) { bottom: 28%; left: 42%; font-size: 1rem; opacity: 0.35; }

.site-footer__main {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 0.85rem;
}

.site-footer__logo {
    display: block;
    width: min(180px, 100%);
    height: auto;
}

.site-footer__tagline {
    margin: 0;
    max-width: 22rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.site-footer__heading {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.site-footer__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
}

.site-footer__list a {
    color: var(--red-dark);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__list a:hover {
    color: var(--red);
    text-decoration: underline;
}

.site-footer__list-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    opacity: 0.95;
}

.site-footer__list--links a {
    font-weight: 500;
}

.site-footer__social {
    display: grid;
    gap: 0.55rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--pink-light);
    border: 2px solid rgba(255, 179, 217, 0.6);
    color: var(--red-dark);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__social-link:hover {
    background: var(--white);
    border-color: var(--pink);
    color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(232, 37, 74, 0.08);
}

.site-footer__social-icon {
    font-size: 1rem;
    line-height: 1;
}

.site-footer__social-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 179, 217, 0.4);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 1.1rem 1.25rem 1.5rem;
    text-align: center;
}

.site-footer__copy {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.site-footer__support {
    margin: 0;
    max-width: 42rem;
    margin-inline: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.site-footer__support a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.site-footer__support a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2rem;
    }
}

.payment-start,
.payment-result {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid #f0d4dc;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.payment-start__icon,
.payment-result__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.payment-start__title,
.payment-result__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.payment-start__text,
.payment-result__text {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.payment-start__status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--pink-light);
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
}

.payment-start__status--error {
    background: #fff0f3;
    color: var(--red-dark);
}

.payment-start__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(232, 37, 74, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: payment-spin 0.8s linear infinite;
}

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

.payment-start__hint {
    margin-bottom: 1.25rem;
}

.payment-start__alert {
    text-align: left;
    margin-bottom: 1rem;
}

.payment-start__back {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
}

.payment-start__form--fallback {
    display: none;
}

.payment-start__actions,
.payment-result .btn + .btn {
    margin-top: 0.75rem;
}

.my-order-panel .payment-start__actions {
    margin-top: 1rem;
}

.payment-result .btn + .btn {
    margin-left: 0.5rem;
}

.payment-result--success {
    border-color: #b8e6c8;
    background: #f6fff9;
}

.payment-result--error {
    border-color: #ffc9d4;
    background: #fff8fa;
}

body.payment-result-page .main-content:empty {
    min-height: 40vh;
}
