/* Layout: sidebar + topbar + main */

.layout-shop {
    position: relative;
    min-height: 100vh;
    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);
}

.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);
}
.brand__icon { font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(232,37,74,0.3)); }
.brand__text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--red);
    line-height: 1;
}

.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: 0;
}
.topbar__actions {
    flex-shrink: 0;
}

.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;
}

.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; }
.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-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-items {
    width: 100%;
}

.cart-checkout {
    width: 100%;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--pink-light);
}

.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__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; }

.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: 64px 1fr auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "thumb info info remove"
        "footer footer footer footer";
    gap: 0.85rem 1rem;
    align-items: start;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.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: 64px 1fr auto auto;
        grid-template-rows: auto;
        grid-template-areas: "thumb info qty total";
        align-items: center;
    }

    .cart-item__remove {
        position: absolute;
        top: 0.65rem;
        right: 0.65rem;
    }

    .cart-item {
        position: relative;
        padding-right: 2.75rem;
    }

    .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: 52px 1fr auto;
        grid-template-areas:
            "thumb info remove"
            "footer footer footer";
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .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__text { display: none; }
    .topbar-search__input { font-size: 0.85rem; }
}

/* Profile */
.profile-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.profile-card__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--red));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    overflow: hidden;
}
.profile-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-actions {
    margin-bottom: 1.25rem;
}

/* Mis pedidos (cliente) */
.my-orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.my-orders-header__sub {
    margin: 0.35rem 0 0;
}

.my-orders-empty {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.5rem;
}

.my-orders-empty__icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.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.85rem;
}

.my-order-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.my-order-card:hover {
    border-color: var(--pink-soft);
    transform: translateY(-1px);
}

.my-order-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.my-order-card__id {
    font-weight: 800;
    color: var(--text);
}

.my-order-card__date {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.my-order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.my-order-card__meta strong {
    color: var(--red);
    font-size: 1.05rem;
}

.my-order-card__link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red);
}

.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; }

.my-order-detail__header {
    margin-bottom: 1.25rem;
}

.my-order-detail__back {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
}

.my-order-detail__back:hover {
    color: var(--red);
}

.my-order-detail__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.my-order-detail__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
}

.my-order-detail__help {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.my-order-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.my-order-panel__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.my-order-status__message {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    background: var(--pink-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
}

.my-order-status__alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: #f5f5f5;
}

.my-order-status__alert--cancelled span {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ddd;
    font-weight: 800;
}

.my-order-status__alert p {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.my-order-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.my-order-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0;
    position: relative;
}

.my-order-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    top: 2.35rem;
    bottom: -0.1rem;
    width: 2px;
    background: rgba(255, 179, 217, 0.55);
}

.my-order-steps__item.is-done:not(:last-child)::after {
    background: var(--pink);
}

.my-order-steps__dot {
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--pink-light);
    color: var(--text-muted);
    border: 2px solid var(--pink-soft);
    z-index: 1;
}

.my-order-steps__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.15rem;
}

.my-order-steps__label {
    font-weight: 800;
    color: var(--text);
}

.my-order-steps__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.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__dot {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232, 37, 74, 0.15);
}

.my-order-steps__item.is-current .my-order-steps__label {
    color: var(--red-dark);
}

.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-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--pink-light);
    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);
}

@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); }
}
