@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

.clora-bg {
    background-color: #fff3e8;
    font-family: 'Manrope', sans-serif;
}

.clora-svg-bg {
    background-image: url('/gradient_animation.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.clora-link {
    position: relative;
}

.clora-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #111111;
    transition: width .25s ease;
}

.clora-link:hover::after {
    width: 100%;
}

.motion-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.motion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.11);
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.glass-input {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 9999px;
    min-width: 4.7rem;
    height: 3.2rem;
    padding: 0 0.95rem;
    background: rgba(255, 255, 255, 0.56);
    color: #1d0f15;
    white-space: nowrap;
    line-height: 1;
}

.header-icon-link svg {
    flex-shrink: 0;
}

.header-count {
    display: inline-block;
    min-width: 1ch;
    font-size: 0.9rem;
    font-weight: 900;
    color: #111111;
    flex-shrink: 0;
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    z-index: 90;
    transform: translate(-50%, 120%);
    min-width: min(92vw, 28rem);
    max-width: 92vw;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff7ef;
    padding: 0.95rem 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(17, 17, 17, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.app-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.35);
}

.product-discount-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    border-radius: 9999px;
    background: linear-gradient(135deg, #9a1f4f, #de6f8f);
    color: #fff8f2;
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 18px rgba(154, 31, 79, 0.24);
}

.product-card-rating {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 800;
    color: #7a5a00;
}

.product-image-wishlist {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.82);
    color: #7d4258;
    box-shadow: 0 10px 18px rgba(33, 16, 24, 0.15);
}

.product-image-wishlist.is-active {
    background: linear-gradient(135deg, #9a1f4f, #de6f8f);
    color: #fff8f2;
}

.inline-cart-button {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.9);
    color: #fff7ef;
    margin-left: auto;
    flex-shrink: 0;
}

.product-title-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cart-qty-control {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff7ef;
    flex-shrink: 0;
}

.cart-qty-control-lg {
    width: 100%;
    justify-content: space-between;
    padding: 0.4rem;
    min-height: 3.45rem;
}

.cart-qty-btn {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.cart-qty-btn-lg {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
}

.cart-qty-value {
    min-width: 1.2rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 900;
}

.cart-qty-value-lg {
    min-width: 2rem;
    font-size: 1rem;
}

.product-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    animation: product-gallery-fade 25s infinite;
}

.product-gallery-image.is-visible {
    opacity: 1;
}

.rating-star {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    color: #d9a400;
    text-shadow: 0 0 10px rgba(255, 208, 59, 0.5), 0 0 20px rgba(255, 247, 184, 0.35);
    animation: star-glimmer 2.8s ease-in-out infinite;
}

.shop-action-primary {
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #111111, #2e2025);
    color: #fff3e8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.shop-action-secondary {
    background: linear-gradient(135deg, #a11d4f, #d3577b);
    box-shadow: 0 14px 22px rgba(154, 31, 79, 0.2);
}

.shop-action-icon {
    width: 2.9rem;
    height: 2.9rem;
    display: inline-grid;
    place-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.64);
    color: #7d4258;
    font-size: 1.1rem;
    font-weight: 900;
}

.shop-action-icon.is-active {
    background: linear-gradient(135deg, #9a1f4f, #de6f8f);
    color: #fff8f2;
    box-shadow: 0 12px 20px rgba(154, 31, 79, 0.22);
}

.search-location-bar {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
}

.search-location-input {
    flex: 1 1 auto;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 10.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.58);
    padding: 0.75rem 0.95rem;
    text-align: left;
    color: #25161c;
}

.location-chip-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(37, 22, 28, 0.58);
}

.location-chip-pin {
    font-size: 0.95rem;
    font-weight: 900;
}

.location-modal[hidden] {
    display: none;
}

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 17, 0.45);
    backdrop-filter: blur(6px);
}

.location-modal-card {
    position: relative;
    width: min(92vw, 46rem);
    margin: 5.5rem auto 0;
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
}

.location-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    font-weight: 700;
    color: #22161b;
}

.location-suggestions {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.location-suggestion-item {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.66);
    padding: 0.8rem 0.95rem;
    text-align: left;
}

.location-suggestion-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 900;
    color: #25161c;
}

.location-suggestion-item span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: rgba(37, 22, 28, 0.68);
}

.location-save-btn {
    border-radius: 9999px;
    padding: 0.75rem 1.2rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: #25161c;
    font-size: 0.82rem;
    font-weight: 900;
}

.delivery-estimate {
    font-size: 0.74rem;
    font-weight: 800;
    color: #1b6f52;
    display: block;
}

.share-icon-button {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.76);
    color: #23151c;
    box-shadow: 0 10px 18px rgba(17, 17, 17, 0.08);
}

.share-icon-button-soft {
    width: 2rem;
    height: 2rem;
    box-shadow: none;
}

.product-zoom-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.35);
}

.product-zoom-image {
    transform: scale(var(--product-zoom, 1));
    transform-origin: center center;
    transition: transform 0.22s ease;
    cursor: zoom-in;
}

.product-zoom-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(12px);
}

.product-zoom-btn {
    min-width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ef;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    padding: 0.78rem 1.25rem 0.78rem 0.9rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.55);
    color: #311d24;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(43, 21, 30, 0.08);
}

.category-pill.is-active {
    background: linear-gradient(135deg, #111111, #382a30);
    color: #fff3e8;
    box-shadow: 0 14px 22px rgba(17, 17, 17, 0.16);
}

.shop-main-categories {
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
}

.shop-page-shell {
    position: relative;
}

.shop-mobile-topbar {
    position: static;
}

.shop-search-panel {
    position: relative;
}

.category-pill-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-pill-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(33, 16, 24, 0.16));
    animation: category-icon-float 4.8s ease-in-out infinite;
}

.seller-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 9999px;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.variant-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    min-width: 8rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    color: #311d24;
}

.variant-pill.is-active {
    background: linear-gradient(135deg, #111111, #382a30);
    color: #fff3e8;
    box-shadow: 0 14px 22px rgba(17, 17, 17, 0.16);
}

.variant-compact-wrap {
    max-width: 100%;
}

.variant-pill-compact {
    min-width: auto;
    padding: 0.6rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
}

.variant-pill-compact span + span {
    display: none;
}

.product-rich-copy {
    font-size: 0.96rem;
    line-height: 1.9;
    color: #332126;
}

.product-rich-copy img {
    width: 100%;
    border-radius: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 28px rgba(24, 12, 18, 0.12);
}

.coupon-panel {
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(17, 17, 17, 0.08);
    padding: 0.95rem 1rem;
}

.coupon-summary,
.product-meta-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 900;
}

.coupon-summary::-webkit-details-marker,
.product-meta-summary::-webkit-details-marker {
    display: none;
}

.coupon-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 1rem;
    background: rgba(255, 248, 234, 0.95);
    padding: 0.8rem 0.9rem;
    font-size: 0.78rem;
}

.coupon-inline-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.1rem;
}

.coupon-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    background: rgba(255, 248, 234, 0.95);
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 900;
    color: #5a3b12;
    white-space: nowrap;
}

.coupon-inline-more {
    position: relative;
}

.coupon-inline-more summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.45rem 0.75rem;
    color: #7d4258;
    white-space: nowrap;
}

.coupon-inline-more summary::-webkit-details-marker {
    display: none;
}

.coupon-inline-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 4;
    min-width: 14rem;
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 26px rgba(23, 12, 18, 0.12);
}

.product-meta-card[open] {
    box-shadow: 0 16px 28px rgba(23, 12, 18, 0.1);
}

.suggestions-carousel-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.suggestions-carousel-wrap::-webkit-scrollbar {
    display: none;
}

.product-carousel-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestions-carousel-track {
    display: flex;
    gap: 1rem;
}

.suggestion-card {
    width: 17rem;
    flex: 0 0 17rem;
    scroll-snap-align: start;
}

.carousel-nav {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.6rem;
    font-weight: 700;
    color: #23151c;
    flex-shrink: 0;
}

.mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 70;
    display: flex;
    justify-content: space-around;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 24px rgba(0,0,0,0.16);
    padding: 0.62rem;
}

.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.42);
    color: #1d0f15;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.52rem 0.35rem;
}

.hero-banner {
    overflow: hidden;
}

.hero-carousel-wrap {
    height: 340px;
    perspective: 1200px;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 400px;
    justify-self: end;
    overflow: hidden;
    border-radius: 24px;
}

.hero-carousel {
    width: 240px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin-carousel 24s linear infinite;
}

.hero-slide {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 60deg)) translateZ(220px);
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 32px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.25);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 9999px;
    padding: 0.45rem 0.75rem;
    background: rgba(0, 0, 0, 0.56);
    color: #fff;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stat-graphic-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.35);
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9), rgba(255,255,255,0.6) 45%, rgba(255,255,255,0.35) 65%),
        linear-gradient(145deg, #fef1f4, #f6e6ff 48%, #e6f3ff);
    box-shadow: 0 18px 38px rgba(70, 35, 55, 0.18);
    min-height: 360px;
    display: grid;
    gap: 14px;
    padding: 22px;
    transform: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stat-graphic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(70, 35, 55, 0.2);
    border-color: rgba(0,0,0,0.12);
}

.stat-chart-wrap {
    position: relative;
    z-index: 2;
    min-height: 220px;
    margin-bottom: 0.4rem;
    display: grid;
    place-items: center;
}

.stat-chart-wrap-area {
    min-height: 260px;
    align-content: start;
    gap: 0.6rem;
}

.stat-chart-svg {
    width: 100%;
    max-width: 270px;
    height: 190px;
    animation: chart-rise 0.8s ease both;
}

.stat-graph-title {
    position: relative;
    z-index: 3;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(39, 14, 24, 0.86);
    text-align: left;
}

.g3d-bar-chart {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    align-items: end;
    gap: 0.6rem;
    padding: 0.4rem 0.2rem 0;
}

.g3d-bar-item {
    width: 100%;
    display: grid;
    gap: 0.28rem;
    justify-items: center;
}

.g3d-bar {
    --w: 30px;
    width: var(--w);
    height: var(--h);
    position: relative;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffcedc 0%, #f69ab3 55%, #d86c95 100%);
    box-shadow: 0 10px 18px rgba(216, 108, 149, 0.25);
}

.g3d-bar::before {
    display: none;
}

.g3d-bar::after {
    display: none;
}

.g3d-bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 900;
    color: #2b0f1d;
}

.g3d-bar-label {
    text-align: center;
    font-size: 0.64rem;
    line-height: 1.2;
    font-weight: 800;
    color: #2f1724;
}

.g3d-pie-layout {
    display: grid;
    grid-template-columns: 134px 1fr;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.g3d-pie {
    width: 124px;
    height: 124px;
    border-radius: 9999px;
    background: var(--pie);
    position: relative;
    box-shadow:
        inset 0 -10px 18px rgba(0,0,0,0.12),
        0 14px 20px rgba(0,0,0,0.18);
}

.g3d-pie::after {
    content: '';
    position: absolute;
    inset: auto 10px -12px 10px;
    height: 22px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.16);
    filter: blur(2px);
}

.g3d-pie-hole {
    position: absolute;
    inset: 30px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.85);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.98rem;
    color: #2f1320;
}

.g3d-pie-legend {
    display: grid;
    gap: 0.32rem;
}

.g3d-pie-legend span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.64rem;
    line-height: 1.2;
    font-weight: 800;
    color: #3a1a28;
}

.g3d-pie-legend i {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.g3d-trend-row {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    justify-content: flex-start;
    padding: 0.3rem 0.5rem;
    scrollbar-width: thin;
}

.g3d-trend-row span {
    font-size: 0.7rem;
    font-weight: 800;
    color: #3d1928;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 0.26rem 0.65rem;
    white-space: nowrap;
}

.stat-value-chip {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 3;
    border-radius: 9999px;
    padding: 0.38rem 0.68rem;
    font-size: 0.84rem;
    font-weight: 900;
    background: rgba(24, 14, 20, 0.74);
    color: #fff3e8;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.stat-label {
    position: relative;
    z-index: 2;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 800;
    color: #311d24;
}

/* ---------- Health stats override (v2 aesthetic) ---------- */
.health-stats .stat-graphic-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.35);
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9), rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.28) 65%),
        linear-gradient(145deg, #fdf3f7 0%, #f3e7ff 45%, #e6f3ff 100%);
    box-shadow: 0 22px 48px rgba(60, 25, 45, 0.18);
    min-height: 380px;
    display: grid;
    gap: 16px;
    padding: 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.health-stats .stat-graphic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(60, 25, 45, 0.2);
    border-color: rgba(0,0,0,0.1);
}
.health-stats .stat-graph-title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
}
.health-stats .stat-chart-wrap {
    min-height: 230px;
    margin-bottom: 0.5rem;
}
.health-stats .stat-chart-wrap-area {
    min-height: 260px;
    gap: 0.65rem;
}
.health-stats .g3d-bar-chart {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem 0.4rem 0;
}
.health-stats .g3d-bar-item { gap: 0.34rem; }
.health-stats .g3d-bar { --w: 32px; border-radius: 12px; background: linear-gradient(180deg, #ffd4e2 0%, #f79bb8 55%, #d66b9a 100%); box-shadow: 0 12px 20px rgba(214,107,154,0.25); }
.health-stats .g3d-bar-value { top: -14px; font-size: 0.76rem; }
.health-stats .g3d-bar-label { font-size: 0.68rem; }
.health-stats .g3d-pie { width: 132px; height: 132px; }
.health-stats .g3d-pie-hole { inset: 32px; font-size: 1.05rem; }
.health-stats .g3d-pie-legend span { font-size: 0.68rem; }
.health-stats .g3d-trend-row {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    scrollbar-width: thin;
}
.health-stats .g3d-trend-row span {
    font-size: 0.72rem;
    padding: 0.28rem 0.7rem;
    background: rgba(255,255,255,0.9);
}
.health-stats .stat-value-chip {
    padding: 0.42rem 0.78rem;
    font-size: 0.9rem;
}
.health-stats .stat-label {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Health stats V3 (brand-new look) ---------- */
.health-stats-v2 .hs2-card {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(180deg, #fffdfc 0%, #f7eefc 40%, #eef5ff 100%);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(68, 33, 54, 0.12);
    display: grid;
    gap: 14px;
    min-height: 360px;
}
.health-stats-v2 .hs2-card::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7), transparent 55%);
    pointer-events: none;
}
.health-stats-v2 .hs2-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.health-stats-v2 .hs2-eyebrow {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1f0f1a;
    text-transform: uppercase;
}
.health-stats-v2 .hs2-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #1f0f1a;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}
.health-stats-v2 .hs2-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
    align-items: end;
}
.health-stats-v2 .hs2-bar-item {
    display: grid;
    gap: 6px;
    justify-items: center;
}
.health-stats-v2 .hs2-bar {
    width: 34px;
    height: clamp(90px, calc(var(--v) * 1.8), 220px);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffd3e2 0%, #f89cbc 60%, #d66c9c 100%);
    box-shadow: 0 12px 18px rgba(214,108,156,0.25);
    position: relative;
    display: grid;
    place-items: center;
}
.health-stats-v2 .hs2-bar span {
    position: absolute;
    top: -18px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #2b0f1d;
}
.health-stats-v2 .hs2-bar-item label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #2f1724;
}
.health-stats-v2 .hs2-pie-wrap {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
}
.health-stats-v2 .hs2-pie {
    width: 130px;
    height: 130px;
    border-radius: 9999px;
    background: var(--pie);
    position: relative;
    box-shadow: 0 16px 26px rgba(0,0,0,0.14);
}
.health-stats-v2 .hs2-pie-hole {
    position: absolute;
    inset: 30px;
    background: #fff;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.98rem;
    color: #1f0f1a;
}
.health-stats-v2 .hs2-legend {
    display: grid;
    gap: 6px;
}
.health-stats-v2 .hs2-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #2f1724;
}
.health-stats-v2 .hs2-legend i {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    display: inline-block;
}
.health-stats-v2 .hs2-line-wrap {
    display: grid;
    gap: 10px;
}
.health-stats-v2 .hs2-line-chart {
    width: 100%;
    height: 200px;
}
.health-stats-v2 .hs2-line-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}
.health-stats-v2 .hs2-line-chips span {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
    color: #2f1724;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 0.28rem 0.7rem;
}
.health-stats-v2 .hs2-label {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.5;
    color: #1f1018;
}

.stat-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    right: -18px;
    top: -22px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.2) 48%, rgba(246,169,179,0.35));
    box-shadow: inset -8px -12px 22px rgba(0,0,0,0.15);
    animation: float-orb 4.6s ease-in-out infinite;
}

.stat-spark {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.66);
}

.stat-spark-1 {
    width: 18px;
    height: 18px;
    left: 18px;
    bottom: 20px;
}

.stat-spark-2 {
    width: 10px;
    height: 10px;
    left: 42px;
    bottom: 16px;
}

.bubble-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border-radius: 9999px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
}

.sphere-card {
    border-radius: 9999px;
    width: min(100%, 390px);
    height: 390px;
    min-height: 390px;
    max-width: 390px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 2.2rem;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.94) 0 15%, rgba(255,255,255,0.58) 26%, rgba(255,255,255,0.2) 42%, rgba(255,255,255,0.06) 58%),
        radial-gradient(circle at 74% 78%, rgba(246,169,179,0.18), rgba(255,255,255,0.03) 58%),
        radial-gradient(circle at 50% 68%, rgba(76,34,49,0.18), rgba(255,255,255,0.02) 62%),
        linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.58),
        inset -24px -28px 42px rgba(79,36,50,0.2),
        inset 18px 16px 30px rgba(255,255,255,0.32),
        0 26px 42px rgba(0, 0, 0, 0.16);
}

.sphere-card::before {
    content: '';
    position: absolute;
    width: 164px;
    height: 102px;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    border-radius: 9999px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.78), rgba(255,255,255,0.08) 72%);
    pointer-events: none;
}

.sphere-card::after {
    content: none;
}

.bubble-card:not(.sphere-card)::before {
    content: '';
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 9999px;
    right: 16px;
    top: 16px;
    background: rgba(246, 169, 179, 0.35);
    animation: pulse-bubble 2.8s ease-in-out infinite;
}

.bubble-card:not(.sphere-card)::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    left: 18px;
    bottom: 22px;
    background: rgba(247, 233, 218, 0.95);
}

.sphere-card h3,
.sphere-card p {
    max-width: 275px;
    word-break: break-word;
    text-wrap: balance;
}

.sphere-card h3 {
    font-weight: 800;
}

.sphere-card p {
    font-weight: 700;
}

.journey-asset {
    position: relative;
    width: 98px;
    height: 98px;
    object-fit: contain;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 0.35rem;
    z-index: 3;
    filter: drop-shadow(0 12px 16px rgba(0,0,0,0.28));
}

.journey-tree-wrap {
    position: relative;
    padding: 1rem 0.25rem;
    overflow: visible;
}

.journey-tree {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

.journey-tree::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(246,169,179,0.8), rgba(255,255,255,0.8));
}

.journey-node {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: center;
}

.journey-left article {
    grid-column: 1 / 2;
    justify-self: end;
}

.journey-right article {
    grid-column: 3 / 4;
    justify-self: start;
}

.journey-dot {
    grid-column: 2 / 3;
    justify-self: center;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(247, 233, 218, 1);
    border: 2px solid rgba(246, 169, 179, 0.75);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.32);
}

.journey-float {
    position: absolute;
    width: 52px;
    height: 52px;
    opacity: 0.7;
    animation: drift 6s ease-in-out infinite;
    pointer-events: none;
}

.journey-float-1 { left: 8%; top: 12%; }
.journey-float-2 { right: 10%; top: 24%; animation-duration: 7s; }
.journey-float-3 { left: 12%; bottom: 13%; animation-duration: 6.6s; }
.journey-float-4 { right: 6%; bottom: 18%; animation-duration: 5.8s; }

.vendor-shell {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    min-height: 100vh;
    padding: 1.25rem;
}

.vendor-dashboard-body {
    background:
        radial-gradient(circle at top left, rgba(246, 169, 179, 0.35), rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #fff7ef 0%, #f8efe7 100%);
    font-family: 'Manrope', sans-serif;
}

.vendor-sidebar {
    position: sticky;
    top: 1.25rem;
    border-radius: 2rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(20, 12, 17, 0.96), rgba(46, 29, 37, 0.92));
    color: #fff3e8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 48px rgba(20, 10, 15, 0.18);
}

.vendor-sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff7ef;
}

.vendor-sidebar-brand p:last-child {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 243, 232, 0.68);
}

.vendor-eyebrow {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(220, 202, 194, 0.58);
}

.vendor-sidebar-nav {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.vendor-sidebar-nav a {
    border-radius: 1rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: rgba(255, 243, 232, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vendor-sidebar-nav a.is-active {
    background: linear-gradient(135deg, #f6a9b3, #e27b95);
    color: #fff3e8;
    box-shadow: 0 16px 26px rgba(226, 123, 149, 0.28);
}

.vendor-content {
    min-width: 0;
}

.vendor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1.6rem;
}

.vendor-topbar h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #1d1217;
}

.vendor-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.vendor-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.65rem 0.95rem;
    background: rgba(17, 17, 17, 0.92);
    color: #fff3e8;
    font-size: 0.78rem;
    font-weight: 900;
}

.dashboard-main {
    width: min(96%, 1440px);
    max-width: 1440px;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.vendor-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.vendor-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.72rem 1rem;
    background: linear-gradient(135deg, #111111, #392a31);
    color: #fff3e8;
    font-size: 0.8rem;
    font-weight: 900;
}

.vendor-stat-row,
.vendor-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 1.15rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.48);
}

.vendor-trend-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.vendor-trend-bar {
    height: 0.8rem;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.vendor-trend-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d85c7f, #111111);
}

.vendor-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.vendor-table th,
.vendor-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    text-align: left;
    vertical-align: top;
}

.vendor-table th {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(33, 20, 25, 0.58);
}

.vendor-status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.65rem;
    background: rgba(17, 17, 17, 0.9);
    color: #fff3e8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.vendor-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.vendor-actions-cell button,
.vendor-actions-cell a,
.vendor-action-dark,
.vendor-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.58rem 0.95rem;
    font-size: 0.76rem;
    font-weight: 900;
}

.vendor-actions-cell button,
.vendor-action-dark {
    background: linear-gradient(135deg, #111111, #34262d);
    color: #fff3e8;
}

.vendor-actions-cell a,
.vendor-action-link {
    background: rgba(255, 255, 255, 0.74);
    color: #311d24;
}

.vendor-input {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.85rem 1rem;
    color: #23151c;
}

.vendor-upload {
    display: grid;
    gap: 0.6rem;
    border-radius: 1.2rem;
    border: 1px dashed rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.54);
    padding: 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #311d24;
}

.vendor-json-preview {
    max-height: 28rem;
    overflow: auto;
    border-radius: 1rem;
    background: rgba(17, 17, 17, 0.92);
    color: #fff3e8;
    padding: 1rem;
    font-size: 0.72rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .vendor-shell {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }

    .vendor-sidebar {
        position: static;
    }

    .vendor-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-topbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vendor-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.shop-mobile-mode .site-header,
    body.shop-mobile-mode .site-footer,
    body.shop-mobile-mode .site-mobile-nav {
        display: none;
    }

    body.shop-mobile-mode .site-main {
        width: 100%;
        max-width: 100%;
        padding-top: 5.6rem;
        padding-bottom: 1.25rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.shop-mobile-mode .shop-page-shell {
        padding-top: 0;
    }

    body.shop-mobile-mode .shop-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        margin-inline: -0.85rem;
        padding: 0.7rem 0.85rem 0.8rem;
        background: linear-gradient(180deg, rgba(255, 243, 232, 0.98), rgba(255, 243, 232, 0.92));
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    }

    body.shop-mobile-mode .shop-main-categories {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    body.shop-mobile-mode .shop-main-categories::-webkit-scrollbar {
        display: none;
    }

    body.shop-mobile-mode .category-pill {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 0.72rem 1rem 0.72rem 0.8rem;
        font-size: 0.78rem;
    }

    body.shop-mobile-mode .category-pill-icon {
        width: 2.45rem;
        height: 2.45rem;
    }

    body.shop-mobile-mode .shop-search-panel {
        margin-top: 0.95rem;
        padding: 1rem;
        border-radius: 1.35rem;
    }

    body.shop-mobile-mode .shop-search-panel .mt-4 {
        margin-top: 0;
    }

    body.shop-mobile-mode .grid.gap-4.md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    body.shop-mobile-mode .glass-card.rounded-2xl.p-4 {
        padding: 0.85rem;
        border-radius: 1.2rem;
    }

    body.shop-mobile-mode .product-gallery.h-44 {
        height: 9.5rem;
    }

    body.shop-mobile-mode .product-card-rating {
        font-size: 0.68rem;
    }

    body.shop-mobile-mode .inline-cart-button,
    body.shop-mobile-mode .cart-qty-control {
        margin-left: 0;
    }

    body.shop-mobile-mode .location-modal-card {
        margin-top: 1.5rem;
    }

    .search-location-bar {
        flex-direction: column;
    }

    .location-chip {
        width: 100%;
        justify-content: space-between;
    }

    .location-modal-card {
        width: min(94vw, 42rem);
        margin-top: 4.25rem;
        padding: 1.35rem;
    }

    .mobile-app-header {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0 0 18px 18px;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .mobile-app-main {
        padding-top: 88px;
    }

    .hero-carousel-wrap {
        height: 250px;
        max-width: 280px;
        justify-self: center;
    }

    .hero-carousel {
        width: 190px;
        height: 210px;
    }

    .hero-slide {
        transform: rotateY(calc(var(--i) * 60deg)) translateZ(170px);
        border-radius: 18px;
    }

    .hero-slide figcaption {
        font-size: 0.68rem;
    }

    .journey-tree::before {
        left: 20px;
    }

    .journey-node {
        grid-template-columns: 40px 1fr;
    }

    .journey-left article,
    .journey-right article {
        grid-column: 2 / 3;
        justify-self: start;
        margin-left: 10px;
    }

    .journey-dot {
        grid-column: 1 / 2;
    }

    .journey-asset {
        width: 76px;
        height: 76px;
        margin-bottom: 0.2rem;
    }

    .sphere-card {
        width: min(100%, 302px);
        height: 302px;
        min-height: 302px;
        max-width: 302px;
        padding: 1.3rem 1.2rem 1.5rem;
    }

    .sphere-card h3 {
        font-size: 1.3rem;
    }

    .sphere-card p {
        font-size: 0.76rem;
    }

    .g3d-pie-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .g3d-pie-legend {
        width: 100%;
        margin-top: 0.25rem;
    }

    .g3d-pie-legend span {
        justify-content: center;
        font-size: 0.62rem;
    }

    .g3d-bar-label {
        font-size: 0.54rem;
    }

    .stat-value-chip {
        font-size: 0.74rem;
        top: 10px;
        right: 10px;
    }

    .stat-chart-wrap-area {
        height: 250px;
    }

    .stat-chart-wrap {
        height: 205px;
    }

    .stat-chart-svg {
        height: 182px;
    }

    .g3d-trend-row span {
        font-size: 0.53rem;
    }

    .hero-banner,
    .glass-card,
    .stat-graphic-card {
        border-radius: 20px;
    }
}

@media (min-width: 769px) {
    .vendor-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .mobile-bottom-nav {
        display: none;
    }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes pulse-bubble {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.18); opacity: 0.75; }
}

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

@keyframes spin-carousel {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(-360deg); }
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes chart-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes product-gallery-fade {
    0%, 16% { opacity: 0; }
    20%, 36% { opacity: 1; }
    40%, 100% { opacity: 0; }
}

@keyframes star-glimmer {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.18); }
}

@keyframes category-icon-float {
    0%, 100% { transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0); }
    50% { transform: perspective(800px) rotateX(8deg) rotateY(-10deg) translateY(-3px); }
}

section > * {
    animation: fade-up .5s ease both;
}

/* Vendor dashboard overrides */
.vendor-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 100vh;
    padding: 0;
}

.vendor-dashboard-layout {
    display: grid;
    gap: 1.25rem;
}

.vendor-sidebar {
    position: sticky;
    top: 0.5rem;
    align-self: start;
    border-radius: 1.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, #17161c 0%, #231f29 100%);
    color: #f8f4ee;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(16, 12, 16, 0.22);
}

.vendor-brand-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vendor-brand-mark {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffb3c3, #e56f8f);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.vendor-brand-card h1 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff8f2;
}

.vendor-brand-card p:last-child {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: rgba(248, 244, 238, 0.68);
}

.vendor-sidebar-status span,
.vendor-nav-title,
.vendor-panel-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(230, 221, 214, 0.56);
}

.vendor-sidebar-groups,
.vendor-nav-group {
    margin-top: 1rem;
}

.vendor-sidebar-nav {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.35rem;
}

.vendor-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.95rem;
    padding: 0.82rem 0.95rem;
    color: rgba(250, 244, 236, 0.88);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vendor-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.vendor-sidebar-nav a.is-active {
    background: linear-gradient(135deg, #ffb7c6, #e67c98);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 28px rgba(230, 124, 152, 0.3);
}

.vendor-sidebar-nav a i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: currentColor;
}

.vendor-content {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.vendor-console-header,
.vendor-action-board,
.vendor-panel,
.vendor-flash-message {
    border: 1px solid rgba(19, 16, 18, 0.08);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 46px rgba(41, 21, 28, 0.09);
}

.vendor-console-header {
    border-radius: 1.75rem;
    padding: 1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.16)),
        radial-gradient(circle at top left, rgba(255, 199, 211, 0.42), rgba(255, 255, 255, 0) 34%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 18px 45px rgba(34, 18, 28, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
}

.vendor-storefront-bar {
    width: 100%;
}

.vendor-console-logo {
    min-height: 3.25rem;
}

.vendor-console-title h2 {
    margin-top: 0.18rem;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    font-weight: 900;
    color: #191317;
}

.vendor-console-toolbar {
    display: grid;
    gap: 0.85rem;
    justify-items: end;
}

.vendor-notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
    color: #241a20;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 14px 28px rgba(34, 18, 28, 0.12);
    backdrop-filter: blur(18px) saturate(170%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vendor-notification-bell:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 30px rgba(34, 18, 28, 0.16);
}

.vendor-notification-count {
    position: absolute;
    top: -0.18rem;
    right: -0.18rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.28rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8ea8, #e4577f);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(228, 87, 127, 0.32);
}

.vendor-storefront-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border-radius: 9999px;
    padding: 0.72rem 1rem;
    color: #241a20;
    font-size: 0.98rem;
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vendor-storefront-nav a.is-active {
    background: #111;
    color: #fff8f1;
    box-shadow: 0 12px 22px rgba(17, 17, 17, 0.16);
}

.vendor-toolbar-pills,
.vendor-topbar-actions,
.vendor-quick-actions,
.vendor-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.vendor-toolbar-pills span,
.vendor-topbar-actions a,
.vendor-quick-actions a,
.vendor-inline-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 9999px;
    padding: 0.68rem 0.95rem;
    font-size: 0.76rem;
    font-weight: 900;
}

.vendor-toolbar-pills span {
    background: rgba(20, 16, 18, 0.06);
    color: #34282e;
}

.vendor-topbar-actions a,
.vendor-inline-actions a {
    background: #16151b;
    color: #fff8f1;
}

.vendor-action-board {
    border-radius: 1.65rem;
    padding: 1.2rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vendor-action-board h3 {
    margin-top: 0.18rem;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1b1518;
}

.vendor-quick-actions a {
    background: linear-gradient(135deg, #1a1920, #43353e);
    color: #fff8f2;
    box-shadow: 0 14px 24px rgba(21, 19, 24, 0.18);
}

.vendor-flash-message {
    border-radius: 1.25rem;
    padding: 0.95rem 1rem;
    color: #14653f;
    font-size: 0.9rem;
    font-weight: 800;
}

.vendor-dashboard-home,
.vendor-module-grid {
    display: grid;
    gap: 1rem;
}

.vendor-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.vendor-kpi-card {
    border-radius: 1.45rem;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(19, 16, 18, 0.08);
    background: #fff;
    box-shadow: 0 18px 36px rgba(40, 22, 28, 0.07);
}

.vendor-kpi-card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a6972;
}

.vendor-kpi-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1b1518;
}

.vendor-kpi-primary {
    background: linear-gradient(135deg, #1c1a22, #40323b);
}

.vendor-kpi-primary span,
.vendor-kpi-primary strong {
    color: #fff8f2;
}

.vendor-kpi-warning {
    background: linear-gradient(135deg, #fff3dd, #ffe2ba);
}

.vendor-kpi-success {
    background: linear-gradient(135deg, #e9fff1, #c9f2d6);
}

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

.vendor-panel {
    border-radius: 1.6rem;
    padding: 1.2rem;
}

.vendor-panel header h3,
.vendor-subsection-header h4 {
    margin-top: 0.2rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a1518;
}

.vendor-panel-header-split,
.vendor-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vendor-detail-copy {
    display: grid;
    gap: 1rem;
}

.vendor-detail-copy p:last-child {
    margin-top: 0.28rem;
    color: #3b3137;
    line-height: 1.65;
}

.vendor-product-hero {
    margin-top: 1rem;
    align-items: start;
}

.vendor-sku-pair {
    display: grid;
    gap: 0.18rem;
    font-size: 0.78rem;
    line-height: 1.42;
    color: #3b3137;
}

.vendor-sku-pair strong {
    font-size: 0.82rem;
    color: #171216;
}

.vendor-history-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(19, 16, 18, 0.1);
    background: rgba(255, 255, 255, 0.85);
    color: #241a20;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vendor-history-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(34, 18, 28, 0.12);
}

.vendor-action-dropdown {
    display: grid;
    gap: 0.45rem;
    min-width: 11rem;
}

.vendor-action-dropdown button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1a1920, #43353e);
    color: #fff8f2;
    font-size: 0.76rem;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(21, 19, 24, 0.16);
}

.vendor-filter-field {
    display: grid;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: #5c4b54;
}

.vendor-filter-actions {
    display: flex;
    align-items: end;
    gap: 0.75rem;
}

.vendor-rich-panel {
    overflow: hidden;
}

.vendor-rich-content {
    display: grid;
    gap: 1rem;
    color: #33272d;
    line-height: 1.75;
}

.vendor-rich-content > * {
    max-width: 100%;
}

.vendor-rich-content p,
.vendor-rich-content ul,
.vendor-rich-content ol,
.vendor-rich-content blockquote {
    margin: 0;
}

.vendor-rich-content h1,
.vendor-rich-content h2,
.vendor-rich-content h3,
.vendor-rich-content h4 {
    margin: 0;
    color: #191317;
    font-weight: 900;
    line-height: 1.25;
}

.vendor-rich-content ul,
.vendor-rich-content ol {
    padding-left: 1.25rem;
}

.vendor-rich-content img,
.vendor-rich-content video,
.vendor-rich-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    margin: 0.25rem 0;
}

.vendor-stat-stack,
.vendor-card-stack,
.vendor-list-stack,
.vendor-form-stack,
.vendor-trend-list,
.vendor-variant-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.vendor-stat-row,
.vendor-list-item,
.vendor-inline-card,
.vendor-note-card,
.vendor-variant-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(19, 16, 18, 0.07);
    background: rgba(249, 247, 246, 0.95);
}

.vendor-stat-row,
.vendor-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

.vendor-chart-grid,
.vendor-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.vendor-trend-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.vendor-trend-bar {
    height: 0.72rem;
    overflow: hidden;
    border-radius: 9999px;
    background: rgba(25, 21, 24, 0.08);
}

.vendor-trend-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1a1a22, #eb7d99);
}

.vendor-form-grid,
.vendor-upload-grid,
.vendor-variant-grid {
    display: grid;
    gap: 0.85rem;
}

.vendor-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.vendor-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.vendor-variant-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vendor-textarea {
    min-height: 7rem;
    margin-top: 1rem;
}

.vendor-textarea-lg {
    min-height: 10rem;
    margin-top: 0.85rem;
}

.vendor-variant-card,
.vendor-inline-card,
.vendor-note-card {
    padding: 1rem;
}

.vendor-primary-cta,
.vendor-action-dark,
.vendor-action-link,
.vendor-actions-cell button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    border-radius: 9999px;
    padding: 0.72rem 1rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.vendor-primary-cta,
.vendor-actions-cell button,
.vendor-action-dark {
    background: linear-gradient(135deg, #17161d, #43343d);
    color: #fff8f2;
}

.vendor-action-link {
    background: rgba(20, 16, 18, 0.06);
    color: #2b2025;
}

.vendor-status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.42rem 0.72rem;
    background: #15141b;
    color: #fff8f2;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vendor-table-wrap {
    margin-top: 1rem;
    overflow: auto;
}

.vendor-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.vendor-table th {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid rgba(19, 16, 18, 0.08);
    text-align: left;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c6b74;
}

.vendor-table td {
    padding: 0.82rem 0.78rem;
    border-bottom: 1px solid rgba(19, 16, 18, 0.05);
    vertical-align: top;
    color: #31252b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.vendor-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vendor-input,
.vendor-upload {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(19, 16, 18, 0.1);
    background: #fff;
    color: #261d22;
}

.vendor-input {
    padding: 0.88rem 1rem;
}

.vendor-upload {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.vendor-json-preview {
    max-height: 28rem;
    overflow: auto;
    border-radius: 1rem;
    background: #16151b;
    color: #fff8f2;
    padding: 1rem;
    font-size: 0.72rem;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .vendor-kpi-grid,
    .vendor-overview-grid,
    .vendor-chart-grid,
    .vendor-rank-grid,
    .vendor-module-grid,
    .vendor-form-grid,
    .vendor-upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .vendor-shell {
        grid-template-columns: 1fr;
    }

    .vendor-sidebar {
        position: static;
    }

    .vendor-console-header,
    .vendor-action-board,
    .vendor-panel-header-split,
    .vendor-subsection-header {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-console-toolbar {
        justify-items: stretch;
    }
}

@media (max-width: 640px) {
    .vendor-shell {
        padding: 0.25rem 0 0.5rem;
    }

    .dashboard-main {
        width: min(98%, 1440px);
        padding-top: 0.5rem;
    }

    .vendor-kpi-grid,
    .vendor-overview-grid,
    .vendor-chart-grid,
    .vendor-rank-grid,
    .vendor-module-grid,
    .vendor-form-grid,
    .vendor-upload-grid,
    .vendor-variant-grid {
        grid-template-columns: 1fr;
    }

    .vendor-topbar-actions,
    .vendor-quick-actions,
    .vendor-inline-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vendor-storefront-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
