:root {
    --primary-purple: #5b4882;
    --primary-rgb: 91, 72, 130;
    --accent-green: #c1e1c1;
    --text-dark: #333;
    --bg-light: #ffffff;
    --white: #ffffff;
    --surface-border: #e1d9eb;
    --surface-tint: #faf8fc;
    --surface-tint-2: #f3eff9;
    --surface-radius: 10px;
    --surface-shadow: 0 2px 8px rgba(0,0,0,0.035);
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Non-Production Environment Warning Banner */
.env-banner {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 36px;
    background: linear-gradient(90deg, #8b0000 0%, #b71c1c 25%, #c62828 50%, #b71c1c 75%, #8b0000 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
    border-bottom: 2px solid #7f0000;
    user-select: none;
    box-sizing: border-box;
}

body.has-env-banner header[role="banner"],
body.has-env-banner > header {
    top: 36px;
}

.env-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.25rem 1rem;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    line-height: 1.3;
}

.env-banner-beacon {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.env-banner-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff5252;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff1744;
    animation: envBannerPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes envBannerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }
}

.env-banner-badge {
    display: inline-block;
    background: #ffffff;
    color: #b71c1c;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.env-banner-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.env-banner-sub {
    color: #ffcdd2;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
}

@media (max-width: 600px) {
    .env-banner {
        font-size: 0.725rem;
        min-height: 34px;
    }
    body.has-env-banner header[role="banner"],
    body.has-env-banner > header {
        top: 34px;
    }
    .env-banner-sub {
        display: none;
    }
    .env-banner-text {
        font-size: 0.68rem;
    }
}

header[role="banner"],
body > header {
    background-color: var(--white);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 70px;
    width: auto;
}

#site-name {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

#site-name:hover,
#site-name:active,
#site-name:focus {
    color: var(--primary-purple);
    text-decoration: none;
}

#site-name:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
    border-radius: 4px;
    text-decoration: none;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: 2.5rem;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.desktop-nav .cart-nav-item {
    margin-left: auto;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #7d6ba8;
}

/* ==========================================================================
   Navigation Dropdown Menu (Products)
   ========================================================================== */

.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.dropdown-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--primary-purple);
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

/* Desktop dropdown container */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -0.5rem;
    min-width: 280px;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px -4px rgba(var(--primary-rgb, 91, 72, 130), 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    z-index: 1100;
    pointer-events: none;
}

/* Invisible hover bridge to prevent cursor gap dropouts */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.65rem;
    left: 0;
    right: 0;
    height: 0.65rem;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu-inner {
    padding: 0.45rem 0.35rem;
}

.dropdown-products-list {
    max-height: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8cde6 transparent;
}

.dropdown-products-list::-webkit-scrollbar,
.dropdown-category-products-inner::-webkit-scrollbar {
    width: 5px;
}

.dropdown-products-list::-webkit-scrollbar-thumb,
.dropdown-category-products-inner::-webkit-scrollbar-thumb {
    background: #d8cde6;
    border-radius: 4px;
}

.desktop-nav .dropdown-item {
    display: block;
    padding: 0.55rem 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.915rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.desktop-nav .dropdown-item:hover,
.desktop-nav .dropdown-item:focus {
    background-color: #f7f3fb;
    color: var(--primary-purple);
    outline: none;
    transform: translateX(3px);
}

.dropdown-products-list .dropdown-item-title,
.dropdown-categories-list .dropdown-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Category dropdown navigation */
.dropdown-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-category-group {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.15rem 0;
}

.dropdown-category-group + .dropdown-category-group {
    border-top: 1px solid #f1ecf7;
}

.dropdown-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.dropdown-category-title:hover,
.dropdown-category-title:focus,
.dropdown-categories-list:not(.js-hover-managed) .dropdown-category-group:hover .dropdown-category-title,
.dropdown-category-group:focus-within .dropdown-category-title,
.dropdown-category-group.is-active .dropdown-category-title {
    color: var(--primary-purple-hover, #422d64);
    background-color: #f7f3fb;
}

.dropdown-category-title:hover .dropdown-category-arrow,
.dropdown-category-title:focus .dropdown-category-arrow,
.dropdown-categories-list:not(.js-hover-managed) .dropdown-category-group:hover .dropdown-category-arrow,
.dropdown-category-group:focus-within .dropdown-category-arrow,
.dropdown-category-group.is-active .dropdown-category-arrow {
    transform: translateX(3px);
    color: var(--primary-purple-hover, #422d64);
    opacity: 1;
}

.dropdown-category-arrow {
    color: var(--primary-purple);
    opacity: 0.7;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.dropdown-category-title-static {
    cursor: default;
    color: #7a6e8a;
    background: transparent !important;
}

/* Category products hidden by default; expand out to the right on category hover/focus so category rows never shift vertically */
.dropdown-category-products {
    position: absolute;
    top: -0.35rem;
    left: calc(100% + 0.35rem);
    min-width: 260px;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px -4px rgba(var(--primary-rgb, 91, 72, 130), 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    padding: 0.45rem 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    pointer-events: none;
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.16s;
    z-index: 1110;
}

/* Invisible hover bridge between category row and flyout panel */
.dropdown-category-products::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -0.85rem;
    width: 0.85rem;
}

.dropdown-category-products-inner {
    display: flex;
    flex-direction: column;
    max-height: min(420px, calc(100vh - 140px));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8cde6 transparent;
}

.dropdown-categories-list:not(.js-hover-managed) .dropdown-category-group:hover .dropdown-category-products,
.dropdown-category-group:focus-within .dropdown-category-products,
.dropdown-category-group.is-active .dropdown-category-products {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dropdown-item.dropdown-category-product {
    padding: 0.38rem 0.75rem;
    font-size: 0.885rem;
    color: #3d3548;
}

.dropdown-item.dropdown-category-product:hover,
.dropdown-item.dropdown-category-product:focus {
    color: var(--primary-purple);
    background-color: #f7f3fb;
}

/* Mobile Dropdown Submenu Styles */
.mobile-nav-item-dropdown {
    width: 100%;
}

.mobile-nav-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: var(--primary-purple);
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.mobile-dropdown-toggle:hover {
    background-color: var(--surface-tint-2, #f3eff9);
}

.mobile-dropdown-toggle .dropdown-chevron {
    transition: transform 0.25s ease;
}

.mobile-dropdown-toggle.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 0.75rem;
    margin: 0.25rem 0 0.5rem 0.5rem;
    border-left: 2px solid #ede7f5;
    display: none;
}

.mobile-submenu.is-open {
    display: block;
}

.mobile-nav-link.mobile-submenu-link {
    font-size: 0.925rem;
    padding: 0.4rem 0.6rem;
    color: #4a4a4a;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-link.mobile-submenu-link:hover,
.mobile-nav-link.mobile-submenu-link:focus {
    color: var(--primary-purple);
    background-color: #f8f6fc;
}

/* Mobile Category Styles */
.mobile-category-item {
    margin-bottom: 0.45rem;
}

.mobile-category-item:last-child {
    margin-bottom: 0.2rem;
}

.mobile-nav-link.mobile-category-title {
    font-size: 0.885rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-purple);
    padding: 0.35rem 0.5rem;
}

.mobile-category-title-static {
    color: #7a6e8a !important;
    cursor: default;
}

.mobile-category-submenu {
    list-style: none;
    padding-left: 0.65rem;
    margin: 0.15rem 0 0.35rem 0.45rem;
    border-left: 2px solid #ede7f5;
}

.mobile-category-submenu .mobile-submenu-link {
    font-size: 0.865rem;
    padding: 0.3rem 0.5rem;
    color: #4a4a4a;
}

/* Mobile navigation elements hidden by default on desktop */
.hamburger-btn,
.mobile-nav-backdrop,
.mobile-nav-drawer {
    display: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: scale(1.1);
}

.hero {
    background: linear-gradient(135deg, var(--accent-green) 0%, #e8f5e8 100%);
    padding: 0.6rem 5%;
    text-align: center;
    color: var(--primary-purple);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 110px;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}

.hero::before {
    left: 2%;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 350' fill='none' stroke='%235b4882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20,330 C45,260 55,180 45,60' stroke-width='3.5' /%3E%3Cpath d='M40,240 Q60,230 75,225' /%3E%3Cpath d='M75,225 C95,195 135,185 165,200 C130,225 100,235 75,225 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,225 C105,210 135,200 165,200' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M48,170 Q30,165 15,160' /%3E%3Cpath d='M15,160 C-5,140 -20,105 5,115 C20,130 35,145 15,160 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M15,160 C5,145 -5,130 5,115' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M46,120 Q60,115 75,110' /%3E%3Cpath d='M75,110 C95,85 130,75 155,90 C125,110 95,118 75,110 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,110 C105,98 130,90 155,90' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,80 Q30,75 18,70' /%3E%3Cpath d='M18,70 C1,55 -10,25 12,35 C22,45 35,60 18,70 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M18,70 C10,55 2,42 12,35' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,60 Q45,45 45,35' /%3E%3Cpath d='M45,35 C35,15 45,0 45,0 C45,0 55,15 45,35 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M45,35 C45,20 45,8 45,0' stroke-width='1.2' opacity='0.7' /%3E%3C/svg%3E");
}

.hero::after {
    right: 2%;
    transform: translateY(-50%) scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 350' fill='none' stroke='%235b4882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20,330 C45,260 55,180 45,60' stroke-width='3.5' /%3E%3Cpath d='M40,240 Q60,230 75,225' /%3E%3Cpath d='M75,225 C95,195 135,185 165,200 C130,225 100,235 75,225 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,225 C105,210 135,200 165,200' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M48,170 Q30,165 15,160' /%3E%3Cpath d='M15,160 C-5,140 -20,105 5,115 C20,130 35,145 15,160 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M15,160 C5,145 -5,130 5,115' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M46,120 Q60,115 75,110' /%3E%3Cpath d='M75,110 C95,85 130,75 155,90 C125,110 95,118 75,110 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,110 C105,98 130,90 155,90' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,80 Q30,75 18,70' /%3E%3Cpath d='M18,70 C1,55 -10,25 12,35 C22,45 35,60 18,70 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M18,70 C10,55 2,42 12,35' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,60 Q45,45 45,35' /%3E%3Cpath d='M45,35 C35,15 45,0 45,0 C45,0 55,15 45,35 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M45,35 C45,20 45,8 45,0' stroke-width='1.2' opacity='0.7' /%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .hero {
        padding: 0.5rem 4%;
    }
    .hero::before,
    .hero::after {
        width: 60px;
        height: 100px;
        opacity: 0.15;
    }
    .hero::before {
        left: 1%;
    }
    .hero::after {
        right: 1%;
    }
}

.hero h1,
.hero h2 {
    font-size: 1.85rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.hero p {
    font-size: 0.95rem;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.hero-offer-banner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    padding: 0.35rem 0.95rem;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(91, 72, 130, 0.22);
    color: var(--primary-purple);
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(91, 72, 130, 0.08);
}

.product-hero {
    padding: 0.65rem 5%;
    text-align: left;
}

.product-hero::before,
.product-hero::after {
    width: 65px;
    height: 95px;
    opacity: 0.16;
}

.product-hero-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.product-hero-nav {
    display: inline-flex;
    align-items: center;
}

.product-hero-nav.product-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.885rem;
    color: var(--primary-purple);
    line-height: 1.4;
}

.product-hero-nav.product-breadcrumb .breadcrumb-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.product-hero-nav.product-breadcrumb .breadcrumb-link:hover {
    color: var(--primary-dark, #3d2a45);
    text-decoration: underline;
}

.product-hero-nav.product-breadcrumb .breadcrumb-sep {
    color: rgba(var(--primary-rgb, 91, 72, 130), 0.5);
    font-size: 0.8rem;
    user-select: none;
}

.product-hero-nav.product-breadcrumb .breadcrumb-current {
    color: #4a3e59;
    font-weight: 600;
}

.product-hero-back-link {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-hero-back-link:hover {
    color: var(--primary-dark, #3d2a45);
    text-decoration: underline;
    transform: translateX(-2px);
}

.product-hero-deal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--primary-purple);
    background-color: rgba(255, 255, 255, 0.75);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb, 91, 72, 130), 0.18);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-hero-deal .deal-icon {
    flex-shrink: 0;
    color: var(--primary-purple);
}

.product-hero-deal .deal-text {
    letter-spacing: 0.2px;
}

@media (max-width: 600px) {
    .product-hero-deal {
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
    }
    .product-hero-nav.product-breadcrumb {
        font-size: 0.815rem;
        gap: 0.35rem;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: #4a3a6a;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

ul {
    list-style-position: inside;
    padding-left: 30px;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.full-ingredients {
    display: none;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.8rem;
    padding: 0.5rem;
    background-color: #ebe4f3;
    border-radius: 8px;
    line-height: 1.4;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-purple);
    color: white;
    padding: 1rem;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.section-title {
    text-align: center;
    margin: 2rem 0 2rem;
    color: var(--primary-purple);
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
    padding: 0 5% 4.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb, 91, 72, 130), 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #eae3f2;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(var(--primary-rgb, 91, 72, 130), 0.12), 0 2px 6px rgba(0, 0, 0, 0.03);
    border-color: #d6c9e6;
}

.product-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #fcfbfe 0%, #f4eef9 100%);
}

.product-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-card-image {
    transform: scale(1.04);
}

.placeholder-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4eef9;
    height: 100%;
}

.card-placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.product-card-badge-wrap {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    pointer-events: none;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.stock-badge.in-stock {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #15803d;
    border: 1px solid rgba(187, 247, 208, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    display: inline-block;
}

.stock-badge.out-of-stock {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #854d0e;
    border: 1px solid rgba(254, 240, 138, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.product-card-content {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #2d223f;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card:hover .product-card-title a {
    color: var(--primary-purple);
}

.product-card-summary {
    font-size: 0.86rem;
    color: #635d6e;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    border-top: 1px solid #f2edf8;
    padding-top: 0.85rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-card-price-wrap {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #887e97;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2a203c;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.product-card-variations {
    font-size: 0.75rem;
    color: #776c85;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.product-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f4edf8;
    color: var(--primary-purple);
    border: 1px solid #e1d4ec;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-view-link svg {
    transition: transform 0.2s ease;
}

.product-view-link:hover {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 91, 72, 130), 0.22);
}

.product-view-link:hover svg {
    transform: translateX(2px);
}

.product-page {
    padding: 1rem 5% 4rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 72rem;
    margin: 0.5rem auto 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(20rem, 40vw, 32rem);
    padding: 0;
    background-color: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Gallery Carousel Track & Slide Layout:
   Desktop: Stacked layout with cross-fade (zero jitter).
   Mobile/Tablet: Horizontal scroll-snap track with touch swiping.
*/
.gallery-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Mobile and Tablet viewports: keep scroll-snap touch carousel exactly as is */
@media (max-width: 900px), (pointer: coarse) {
    .gallery-carousel-track {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x pan-y pinch-zoom;
    }

    .gallery-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-slide {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .gallery-slide.active {
        z-index: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-carousel-track {
        scroll-behavior: auto !important;
    }
    .gallery-slide {
        transition: none !important;
    }
}

/* Carousel Control Buttons (Desktop hover only; removed on mobile/tablet) */
.carousel-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--surface-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    color: var(--primary-purple);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.carousel-control-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.carousel-control-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control-btn.carousel-prev {
    left: 0.65rem;
}

.carousel-control-btn.carousel-next {
    right: 0.65rem;
}

@media (min-width: 901px) and (hover: hover) {
    .gallery-main:hover .carousel-control-btn {
        display: flex;
        opacity: 0.88;
    }
}

/* Strictly remove right and left arrow buttons on mobile/tablet and touch devices */
@media (max-width: 900px), (pointer: coarse) {
    .carousel-control-btn {
        display: none !important;
    }
}

/* Carousel Pagination Dots (Mobile & Tablet only; hidden on larger screen widths) */
.carousel-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0.25rem;
    padding: 0.25rem 0;
}

@media (max-width: 900px), (pointer: coarse) {
    .carousel-dots {
        display: flex;
    }
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--surface-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.carousel-dot:hover {
    background-color: var(--primary-purple-light, #7c629f);
}

.carousel-dot.active {
    width: 24px;
    background-color: var(--primary-purple);
    box-shadow: 0 1px 4px rgba(var(--primary-rgb, 91, 72, 130), 0.35);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-dot {
        transition: none !important;
    }
}

.gallery-main-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.gallery-main-btn img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.gallery-main-btn:hover img {
    transform: scale(1.02);
}

.zoom-indicator {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.gallery-main-btn:hover .zoom-indicator {
    opacity: 1;
    transform: scale(1.1);
}

/* Full Viewport Centered Product Image Modal Dialog */
dialog.image-modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 88px 1fr 88px;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    outline: none;
    z-index: 10000;
    box-sizing: border-box;
}

dialog.image-modal-dialog:not([open]) {
    display: none;
}

dialog.image-modal-dialog::backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 8, 16, 0.88);
    backdrop-filter: blur(8px);
}

.image-modal-layout {
    display: contents;
}

.image-modal-col-left,
.image-modal-col-right {
    width: 88px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.image-modal-col-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 78vw;
    max-height: 80vh;
}

.image-modal-content img {
    display: block;
    max-width: 78vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.image-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-purple);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10003;
    transition: background-color 0.2s, transform 0.2s;
}

.image-modal-close:hover {
    background-color: #3b285b;
    transform: scale(1.1);
}

.image-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: rgba(26, 18, 38, 0.88);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.image-modal-nav:hover {
    background-color: var(--primary-purple);
    transform: scale(1.12);
    color: #ffffff;
}

.image-modal-nav:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.image-modal-counter {
    margin-top: 16px;
    background-color: rgba(15, 10, 25, 0.85);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10002;
}

@media (max-width: 900px), (pointer: coarse) {
    dialog.image-modal-dialog {
        grid-template-columns: 52px 1fr 52px;
    }
    .image-modal-col-left,
    .image-modal-col-right {
        width: 52px;
    }
    .image-modal-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100vw - 120px);
        height: min(72vh, 560px);
        max-width: 560px;
    }
    .image-modal-content img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .image-modal-nav {
        width: 44px;
        height: 44px;
        transition: background-color 0.15s ease, opacity 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .image-modal-nav:hover {
        transform: none; /* Prevent button scale jitter on touch */
    }
    .image-modal-nav:active {
        transform: scale(0.92);
    }
}

@media (max-width: 600px) {
    dialog.image-modal-dialog {
        grid-template-columns: 44px 1fr 44px;
    }
    .image-modal-col-left,
    .image-modal-col-right {
        width: 44px;
    }
    .image-modal-content {
        width: calc(100vw - 100px);
        height: min(70vh, 460px);
        max-width: 460px;
    }
    .image-modal-close {
        top: -12px;
        right: -8px;
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
    .image-modal-nav {
        width: 38px;
        height: 38px;
    }
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    display: flex;
    flex: 0 0 4.5rem;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.25rem;
    background-color: var(--white);
    border: 2px solid var(--surface-border);
    border-radius: 0.35rem;
    cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-purple);
}

.gallery-thumb.active {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
}

.gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-back-link {
    margin-bottom: 1rem;
}

.product-back-link a {
    color: var(--primary-purple);
    font-weight: 600;
}

.product-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    background: var(--white);
    overflow: hidden;
}

.product-page-images {
    display: grid;
    align-content: start;
    background: var(--white);
}

.product-page-images img {
    width: 100%;
    height: auto;
    align-self: start;
    display: block;
}

.product-page-details {
    padding: 2.5rem 2rem 2rem;
}

.product-page-details h1,
.product-page-details h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.product-detail-copy p,
.product-detail-section {
    margin-bottom: 1rem;
}

.product-detail-section h3,
.product-detail-section h4 {
    color: var(--primary-purple);
    margin-bottom: 0.35rem;
}

.product-detail-section ul {
    color: #666;
    font-size: 0.9rem;
}

.product-detail-section h4:not(:first-child) {
    margin-top: 0.75rem;
}

.product-warning {
    color: #666;
    font-size: 0.9rem;
}

.product-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
    z-index: 1;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.related-products {
    max-width: 72rem;
    margin: 4rem auto 0;
    padding-top: 3rem;
    padding-bottom: 4rem;
    border-top: 1px solid var(--surface-border, #eae3f2);
}

.related-products-title {
    font-size: 1.75rem;
    color: var(--primary-purple);
    margin-bottom: 2rem;
    text-align: center;
}

.related-products-grid {
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.youtube-page {
    padding: 0 5% 4rem;
}

.youtube-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.youtube-player {
    aspect-ratio: 16 / 9;
}

.youtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-feature-content,
.youtube-video-card-content {
    padding: 1.5rem;
}

.youtube-label,
.youtube-video-date {
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.youtube-feature-content h2,
.youtube-video-card h3 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
}

.youtube-more-title {
    color: var(--primary-purple);
    margin: 3rem 0 1.5rem;
}

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

.youtube-video-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.youtube-video-image-link,
.youtube-video-image-link img {
    display: block;
    width: 100%;
}

.youtube-video-card h3 a {
    color: inherit;
    text-decoration: none;
}

.youtube-empty-state {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .youtube-feature {
        grid-template-columns: 1fr;
    }

    .youtube-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }

    .product-page-layout {
        grid-template-columns: 1fr;
    }

    .product-page-images {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .product-page-details {
        padding: 1.5rem;
    }

    .youtube-video-grid {
        grid-template-columns: 1fr;
    }

    .product-purchase-actions {
        position: static;
    }
}

/* ==========================================================================
   Punched-Up About / Our Story Page Styles (/about)
   ========================================================================== */
.about-page-main {
    background-color: var(--bg-light);
}

/* 1. About Hero Banner */
.about-hero {
    background: linear-gradient(135deg, #fdfbfe 0%, #f4eef9 100%);
    padding: 2rem 5% 1.6rem;
    text-align: center;
    border-bottom: 1px solid #eadef4;
}

.about-hero-container {
    max-width: 860px;
    margin: 0 auto;
}

.about-hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-purple);
    background-color: rgba(var(--primary-rgb, 91, 72, 130), 0.1);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
}

.about-hero-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.65rem;
    line-height: 1.2;
}

.about-hero-lead {
    font-size: 1.02rem;
    line-height: 1.5;
    color: #554868;
    max-width: 660px;
    margin: 0 auto;
}

/* 2. Main Narrative Story Section */
.about-story-section {
    padding: 4.5rem 5%;
}

.about-story-container {
    max-width: 1140px;
    margin: 0 auto;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.about-story-media {
    position: sticky;
    top: 2rem;
}

.about-story-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(var(--primary-rgb, 91, 72, 130), 0.16);
    border: 4px solid var(--white);
    background: #e9e0f2;
}

.about-story-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-story-image-card:hover .about-story-img {
    transform: scale(1.03);
}

.about-story-logo-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--surface-border, #e1d9eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    max-width: 370px;
    margin: 0 auto;
    box-shadow: 0 14px 32px rgba(var(--primary-rgb, 91, 72, 130), 0.1);
}

.about-story-logo-img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
}

.about-story-image-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
}

.about-image-tag {
    background: rgba(36, 19, 46, 0.78);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
}

.about-story-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-style: italic;
    color: #6b5b95;
    text-align: center;
}

.about-story-caption svg {
    color: var(--accent-green, #8bb174);
    flex-shrink: 0;
}

.about-story-text {
    display: flex;
    flex-direction: column;
}

.about-section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.about-section-heading {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.about-text-lead {
    font-size: 1.14rem;
    line-height: 1.75;
    color: #2c223a;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.about-story-text p {
    font-size: 1rem;
    line-height: 1.72;
    color: #4c4257;
    margin: 0 0 1.25rem;
}

.about-story-text p:last-child {
    margin-bottom: 0;
}

.about-drop-cap::first-letter {
    float: left;
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 3.4rem;
    line-height: 0.85;
    font-weight: 700;
    color: var(--primary-purple);
    padding-right: 0.55rem;
    padding-top: 0.15rem;
}

.about-quote-box {
    background: #fcfaff;
    border-left: 4px solid var(--accent-green, #8bb174);
    padding: 1.35rem 1.75rem;
    border-radius: 0 16px 16px 0;
    margin: 1.5rem 0 1.75rem;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb, 91, 72, 130), 0.05);
}

.about-quote-box blockquote {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-purple);
    margin: 0;
    line-height: 1.55;
}

.about-place-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    background: var(--white);
    border: 1px solid #e7dfee;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.05);
}

.about-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
    flex-shrink: 0;
}

.about-highlight-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3d3448;
}

.about-highlight-body strong {
    display: block;
    color: var(--primary-purple);
    margin-bottom: 0.2rem;
}

/* 3. Botanical Pillars Section */
.about-pillars-section {
    padding: 5.5rem 5%;
    background: linear-gradient(180deg, #f7f2fb 0%, #efe7f6 100%);
    border-top: 1px solid #e6d8f0;
    border-bottom: 1px solid #e6d8f0;
}

.about-pillars-container {
    max-width: 1140px;
    margin: 0 auto;
}

.about-pillars-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.about-pillars-subhead {
    font-size: 1.05rem;
    color: #5d4e70;
    margin-top: 0.6rem;
    line-height: 1.6;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 1.85rem;
    border: 1px solid #e7ddf0;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 91, 72, 130), 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
}

.pillar-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fbf8fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    border: 1px solid #ede3f5;
    box-shadow: inset 0 2px 6px rgba(var(--primary-rgb, 91, 72, 130), 0.04);
}

.pillar-emoji {
    font-size: 1.85rem;
}

.pillar-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.85rem;
}

.pillar-desc {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #5c5369;
    margin: 0;
}

/* 4. Call to Action Banner */
.about-cta-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #381f47 0%, #25132f 100%);
    color: #ffffff;
    text-align: center;
}

.about-cta-container {
    max-width: 820px;
    margin: 0 auto;
}

.about-cta-heading {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 2.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.15rem;
    line-height: 1.25;
}

.about-cta-desc {
    font-size: 1.1rem;
    color: #ded1e9;
    margin-bottom: 2.25rem;
    line-height: 1.65;
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.15rem;
}

.about-cta-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.about-cta-btn.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: transparent;
}

.about-cta-btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Queries for About Page */
@media (max-width: 900px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-story-media {
        position: static;
    }

    .about-hero-title {
        font-size: 2.25rem;
    }

    .about-section-heading {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 1.5rem 5% 1.25rem;
    }

    .about-hero-title {
        font-size: 1.65rem;
    }

    .about-pillars-section,
    .about-cta-section {
        padding: 4rem 5%;
    }

    .about-cta-heading {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Multi-Column Site Footer
   ========================================================================== */
footer.site-footer,
body > footer {
    background: linear-gradient(180deg, #321c40 0%, #24132e 100%);
    color: #f0ebf5;
    padding: 4.5rem 5% 2.5rem;
    text-align: left;
    margin-top: auto;
    border-top: 3px solid var(--accent-green, #8bb174);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-brand {
    padding-right: 1rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.footer-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand-name {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-brand-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #d1c5db;
    margin-bottom: 1.5rem;
}

.footer-col-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.35rem;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--accent-green, #8bb174);
    border-radius: 2px;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu-list li {
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    color: #d1c5db;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu-list a:hover,
.footer-menu-list a:focus-visible {
    color: #ffffff;
    padding-left: 4px;
    text-decoration: none;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-btn:hover,
.footer-social-btn:focus-visible {
    background-color: var(--accent-green, #8bb174);
    color: #24132e;
    border-color: var(--accent-green, #8bb174);
    transform: translateY(-2px);
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-links a {
    color: #b7a4c4;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
    color: #ffffff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.footer-copyright {
    color: #9f8ba9;
    font-size: 0.84rem;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Responsive Footer Queries */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-col-brand {
        padding-right: 0;
    }
}

@media (max-width: 580px) {
    footer.site-footer,
    footer {
        padding: 3.5rem 5% 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-etsy-container {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 5%;
    }
    
    .logo-container img {
        height: 50px;
    }
    
    #site-name {
        font-size: 1.25rem;
    }

    .desktop-nav {
        display: none;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    /* Mobile Hamburger Trigger Style */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
        align-items: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }
    
    .hamburger-btn:hover,
    .hamburger-btn:focus-visible {
        background-color: rgba(var(--primary-rgb, 91, 72, 130), 0.08);
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-purple);
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 4px;
    }

    /* Transform hamburger into X when active */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Drawer Backdrop Overlay */
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1050;
    }

    .mobile-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Drawer Panel */
    .mobile-nav-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
        padding: 5rem 2rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        z-index: 1080;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-drawer.active {
        transform: translateX(0);
    }

    body.no-scroll {
        overflow: hidden;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-nav-link {
        display: block;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-purple);
        text-decoration: none;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0edf5;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:focus-visible {
        color: #7d6ba8;
        padding-left: 0.5rem;
    }

    .mobile-nav-sublink {
        font-size: 1.05rem;
        font-weight: 500;
        color: #614f77;
        padding: 0.5rem 0;
    }

    .mobile-nav-divider {
        height: 1px;
        background-color: #f0edf5;
        margin: 0.5rem 0;
    }

    .mobile-social-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .mobile-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--surface-tint-2, #f3eff9);
        color: var(--primary-purple);
        transition: background-color 0.3s, color 0.3s, transform 0.3s;
        flex-shrink: 0;
    }

    .mobile-social-link:hover .mobile-social-icon,
    .mobile-social-link:focus-visible .mobile-social-icon {
        background-color: var(--primary-purple);
        color: var(--white);
        transform: scale(1.05);
    }
}

/* Club Page specific styles */
.about-top-aligned {
    align-items: flex-start;
}

.about-image-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

/* Club Page Styling */
.club-hero {
    background: linear-gradient(135deg, #f5f0fa 0%, #e9dfef 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
}

.club-hero-content {
    max-width: 620px;
    margin: 0 auto;
}

.club-tagline {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(var(--primary-rgb, 91, 72, 130), 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    margin-bottom: 0.35rem;
}

.club-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--primary-purple);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.club-hero-sub {
    font-size: 0.98rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0;
}

.club-container {
    max-width: 680px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-title.text-center {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--primary-purple);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.benefit-card {
    background-color: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 1.25rem 1rem;
    box-shadow: var(--surface-shadow);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-color: #f3edf8;
    color: var(--primary-purple);
    border-radius: 10px;
}

.benefit-card h3 {
    font-size: 1rem;
    color: var(--primary-purple);
    margin-bottom: 0.25rem;
}

.benefit-card p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.club-signup-section {
    display: flex;
    justify-content: center;
}

.club-card-main {
    background-color: var(--white);
    border: 1px solid #d8cfe5;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.signup-header h2 {
    font-size: 1.6rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.signup-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.club-subscribe-form {
    max-width: 520px;
    margin: 1.5rem auto 1rem;
    text-align: left;
}

.club-honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
}

.club-alert {
    max-width: 520px;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1.15rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: left;
}

.club-alert p {
    margin: 0;
}

.club-alert-error {
    background-color: #fff0f0;
    border-left: 4px solid #d9534f;
    color: #a94442;
}

.club-alert-success {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

.club-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.club-form-group {
    display: flex;
    flex-direction: column;
}

.club-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.club-label-optional {
    font-weight: 400;
    color: #777;
    font-size: 0.82rem;
}

.club-label-required {
    color: #c9302c;
}

.club-form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d5ceea;
    border-radius: 8px;
    font-size: 0.98rem;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #2d1f40;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.club-form-input:focus {
    outline: none;
    border-color: var(--primary-purple, #5b4882);
    box-shadow: 0 0 0 3px rgba(91, 72, 130, 0.14);
}

.club-subscribe-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .club-form-fields {
        grid-template-columns: 1fr;
    }
}

.privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #777;
    margin-top: 1rem;
}

/* Footer Etsy Badge styles */
.footer-etsy-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-etsy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-etsy-link:hover,
.footer-etsy-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-1px);
}

.etsy-badge-text {
    font-style: italic;
    opacity: 0.85;
}

.footer-etsy-link:hover .etsy-badge-text {
    opacity: 1;
}

.etsy-badge-logo {
    display: flex;
    align-items: center;
}

.etsy-badge-logo svg {
    width: 38px;
    height: auto;
    display: block;
}

/* ==========================================================================
   E-Commerce: Cart, Checkout, Orders & Navigation Styles
   ========================================================================== */

/* Cart Navigation Badge */
.cart-nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
}

.cart-nav-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.cart-badge {
    background-color: var(--primary-purple);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
}

/* Product Detail: Purchase Box */
.product-purchase-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #fbf9fd;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-control, .variation-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-control:focus, .variation-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 91, 72, 130), 0.15);
}

.selected-variation-price, .single-variation-price {
    margin: 0.75rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.single-variation-details {
    margin: 0.5rem 0 0.85rem;
}

.single-variation-name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.single-variation-name .variation-label {
    color: var(--text-dark);
}

.single-variation-details .single-variation-price {
    margin: 0.25rem 0 0.75rem;
}

.selected-variation-price .unit-price,
.single-variation-price .unit-price {
    font-size: 0.95rem;
    font-weight: 400;
    color: #645c73;
    margin-left: 0.4rem;
}

.quantity-add-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.qty-field-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.qty-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 38px;
    padding: 0;
    border: none;
    background: #f6f3fa;
    color: var(--primary-purple, #5b4882);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qty-step-btn:hover {
    background: #ebe4f5;
}

.qty-step-btn:active {
    background: #ded4ee;
}

.qty-input {
    width: 54px;
    padding: 0.45rem 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-left: 1px solid var(--surface-border);
    border-right: 1px solid var(--surface-border);
    border-radius: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-stock-notice {
    margin: 0.75rem 0 0 0;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: #9a3412;
}

.qty-stock-notice.is-hidden {
    display: none;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-purple);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-add-cart:hover {
    background-color: #4a3a6a;
    transform: translateY(-1px);
}

.sold-out-box,
.product-unavailable-box {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background-color: #fff6f6;
    border: 1px solid #f8c9c0;
    border-left: 4px solid #c62828;
    border-radius: 8px;
    color: #8b1818;
}

.unavailable-reason-text,
.sold-out-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unavailable-reason-text .unavailable-icon {
    flex-shrink: 0;
    color: #c62828;
}

/* Product Detail: Description */
.product-info .description {
    margin: 1.5rem 0;
    line-height: 1.7;
    color: var(--text-dark, #2b2b2b);
}

.product-info .description p {
    margin: 0 0 1.6rem 0;
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    text-wrap: pretty;
}

.product-info .description p:last-child {
    margin-bottom: 0;
}

/* Product Detail: Unordered Lists (Ingredients & Description lists) */
.product-info ul,
.product-detail-container ul,
.product-info .description ul,
ul.description-list,
ul.ingredients-list,
.product-description-content ul {
    margin: 0.75rem 0 1.6rem 0;
    padding-left: 2.25rem;
    list-style-type: disc;
}

.product-info ul li,
.product-detail-container ul li,
.product-info .description ul li,
ul.description-list li,
ul.ingredients-list li,
.product-description-content ul li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    color: var(--text-dark, #2b2b2b);
}

/* Alerts */
.alert {
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fdf2f2;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
}

.alert-warning {
    background-color: #fdf8eb;
    border: 1px solid #f7dfa5;
    color: #8f5b00;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Cart Page */
.cart-page, .checkout-page, .confirmation-page, .orders-page, .order-detail-page {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-header-row h1, .checkout-container h1, .orders-container h1 {
    color: var(--primary-purple);
    margin-bottom: 0;
}

.cart-user-account-badge {
    display: inline-flex;
    align-items: center;
}

.cart-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background-color: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
    border: 1px solid var(--surface-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.cart-account-link:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-1px);
}

.cart-layout, .checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 850px) {
    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items-wrapper {
    background: transparent;
}

/* Cart Grid & Compact Cards */
.cart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

@media (max-width: 600px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.cart-item-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
}

.cart-item-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-thumb-col {
    flex-shrink: 0;
}

.cart-thumb-link img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    display: block;
}

.cart-thumb-placeholder {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbf9fd;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-item-details-col {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.cart-item-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--primary-purple);
}

.cart-item-variation {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.cart-item-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.cart-unit-price {
    color: #777;
    font-size: 0.82rem;
}

.cart-line-total {
    color: var(--primary-purple);
    font-size: 1rem;
}

.cart-item-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.qty-label {
    font-size: 0.8rem;
    color: #666;
}

.qty-input {
    width: 50px;
    padding: 0.3rem 0.4rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--surface-border);
    border-radius: 4px;
}

.btn-update-qty {
    background: none;
    border: 1px solid var(--surface-border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--primary-purple);
    font-weight: 500;
}

.btn-update-qty:hover {
    background-color: var(--surface-tint-2, #f3eff9);
}

.btn-remove-item {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #aaa;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    border-radius: 4px;
}

.btn-remove-item:hover {
    color: #d32f2f;
    background-color: #ffebee;
}

/* Cart & Checkout Summary Cards */
.cart-summary-card, .checkout-summary-card {
    background: var(--surface-tint, #faf8fc);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 1.5rem;
}

.cart-summary-card h2, .checkout-summary-card h2 {
    color: var(--primary-purple);
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.total-line {
    border-top: 1px solid var(--surface-border);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.summary-note {
    font-size: 0.8rem;
    color: #777;
    margin: 0.75rem 0 1.25rem;
}

.btn-checkout, .btn-pay {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-checkout:hover, .btn-pay:hover:not(:disabled) {
    background-color: #4a3a6a;
    transform: translateY(-1px);
}

.btn-pay:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-continue-shopping, .checkout-cancel-link a {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.empty-cart-view, .empty-orders-view {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--surface-tint, #faf8fc);
    border-radius: var(--surface-radius);
    border: 1px solid var(--surface-border);
}

.empty-cart-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.empty-cart-desc {
    color: #635b73;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Empty Cart Login Box */
.empty-cart-login-box {
    max-width: 480px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #faf7fc 0%, #f4eff9 100%);
    border: 1.5px solid #e3d7f0;
    border-radius: var(--surface-radius);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 91, 72, 130), 0.05);
    text-align: center;
}

.empty-cart-login-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.empty-cart-login-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary-purple);
}

.empty-cart-login-message {
    font-size: 0.92rem;
    color: #584a75;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.empty-cart-login-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-cart-signin-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* Checkout Page */
.checkout-fieldset {
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
}

.checkout-fieldset legend {
    font-weight: 700;
    color: var(--primary-purple);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.payment-security-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #4b6b4b;
    background-color: #f1f8f1;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
/* Digital Wallets (Apple Pay & Google Pay Express Checkout) */
.digital-wallets-container {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--surface-tint, #faf8fc);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
}

.digital-wallets-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    text-align: center;
}

.digital-wallets-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .digital-wallets-buttons {
        flex-direction: row;
    }
    .wallet-button-wrapper {
        flex: 1;
    }
}

.wallet-button-wrapper {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 1rem;
    margin: 0;
    border: none;
    border-radius: 6px;
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.apple-pay-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

@supports (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button {
        -webkit-appearance: -apple-pay-button;
        -apple-pay-button-type: buy;
        -apple-pay-button-style: black;
    }
    .apple-pay-button .apple-pay-fallback-content {
        display: none;
    }
}

.apple-pay-fallback-content {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

#google-pay-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-wallets-divider {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    text-align: center;
    color: #6c637a;
    font-size: 0.8rem;
    font-weight: 500;
}

.digital-wallets-divider::before,
.digital-wallets-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dcd5e7;
}

.digital-wallets-divider span {
    padding: 0 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.payment-methods-accepted {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--surface-tint, #faf8fc);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
}

@media (min-width: 640px) {
    .payment-methods-accepted {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.payment-method-subgroup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-group-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.payment-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-purple);
}

.payment-group-subtitle {
    font-size: 0.72rem;
    color: #6c637a;
    font-weight: 500;
}

.payment-methods-group-divider {
    display: block;
    height: 1px;
    width: 100%;
    background: #e2dcee;
}

@media (min-width: 640px) {
    .payment-methods-group-divider {
        width: 1px;
        height: 60px;
        align-self: center;
    }
}

.payment-brand-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.payment-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 50px;
    background: #ffffff;
    border: 1px solid #dcd5e7;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    vertical-align: middle;
}

.payment-group-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-group-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
}

.payment-wallet-clickable {
    cursor: pointer;
    border: 1px solid #c4b5d6;
    background: #ffffff;
    padding: 0;
    outline: none;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.payment-wallet-clickable:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

.payment-wallet-clickable:hover {
    transform: translateY(-2px);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 91, 72, 130), 0.22);
}

.payment-wallet-clickable:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
}

.wallet-info-drawer {
    display: none;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--primary-purple);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 91, 72, 130), 0.08);
    animation: drawerSlide 0.2s ease-out;
}

@keyframes drawerSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wallet-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.wallet-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.wallet-info-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 0.25rem;
}

.wallet-info-close:hover {
    color: var(--text-dark);
}

.wallet-info-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #49454f;
    margin: 0 0 0.5rem 0;
}

.wallet-info-cta {
    font-size: 0.76rem;
    color: #6b6278;
    font-style: italic;
    border-top: 1px dashed #e8e2ee;
    padding-top: 0.4rem;
}

.payment-brand-badge:hover {
    transform: translateY(-1px);
    border-color: var(--primary-purple);
    box-shadow: 0 3px 6px rgba(var(--primary-rgb, 91, 72, 130), 0.18);
}

.payment-brand-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.square-card-container {
    min-height: 100px;
    margin-bottom: 1.5rem;
}

.payment-loading-placeholder {
    padding: 2rem;
    text-align: center;
    color: #777;
    font-style: italic;
    background: var(--surface-tint, #faf8fc);
    border-radius: 6px;
}

.checkout-item-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e5dfee;
}

.checkout-item-details {
    display: flex;
    flex-direction: column;
}

.checkout-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-item-meta {
    font-size: 0.8rem;
    color: #666;
}

.checkout-item-total {
    font-weight: 600;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* Confirmation Page */
.confirmation-header-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e8 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--surface-radius);
    margin-bottom: 2rem;
}

.confirmation-check-icon {
    width: 50px;
    height: 50px;
    background-color: #22c55e;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.confirmation-subtitle {
    font-size: 1.1rem;
    color: #2f6b3e;
    margin-bottom: 0.75rem;
}

.confirmation-meta {
    font-size: 0.95rem;
    color: #444;
}

.confirmation-details-card, .order-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 2rem;
}

.confirmation-info-grid, .order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0eaf7;
}

@media (max-width: 600px) {
    .confirmation-info-grid, .order-info-grid {
        grid-template-columns: 1fr;
    }
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
}

.status-completed {
    background-color: #e6f9ed;
    color: #15803d;
}

.status-shipped {
    background-color: #e0f2fe;
    color: #0369a1;
}

.status-in_progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-failed,
.status-cancelled,
.status-refunded {
    background-color: #fee2e2;
    color: #991b1b;
}

.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: inline-block;
    margin: 0;
}

.admin-btn-compact {
    padding: 2px 8px;
    font-size: 0.8rem;
}

.admin-muted-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.order-tracking-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
}

.confirmation-table, .order-items-table, .orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.confirmation-table th, .confirmation-table td,
.order-items-table th, .order-items-table td,
.orders-table th, .orders-table td {
    padding: 0.85rem;
    border-bottom: 1px solid #f0eaf7;
    text-align: left;
}

.text-right {
    text-align: right;
}

.total-cell {
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.confirmation-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.btn-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Login & Member Account Styling
   ========================================================================== */

.login-page {
    min-height: calc(100vh - 280px);
    background: radial-gradient(circle at 50% 12%, #fbf9fd 0%, #f5f0fa 50%, #ffffff 95%);
    padding: 3rem 1.25rem 4.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Guest Sign In Card */
.login-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    animation: loginFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-card {
    background-color: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 16px 40px -10px rgba(var(--primary-rgb, 91, 72, 130), 0.12), 0 4px 16px -2px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
}

.login-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-purple);
    background-color: #f4eef9;
    border: 1px solid #e7dcf2;
    margin-bottom: 1.25rem;
}

.login-brand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #faf7fc 0%, #efe7f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
    border: 2px solid #ffffff;
}

.login-logo-img {
    width: 48px;
    height: auto;
}

.login-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 0.94rem;
    color: #5d566b;
    line-height: 1.55;
    margin: 0 auto 1.5rem auto;
    max-width: 380px;
}

/* Alert Styling inside login */
.login-card .alert-error {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    background-color: #fdf3f2;
    border: 1px solid #f8c8c5;
    color: #b3261e;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.alert-error .alert-icon {
    flex-shrink: 0;
    color: #d93025;
}

.is-hidden {
    display: none !important;
}

/* Loading State Indicator */
.login-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--primary-purple);
    font-size: 0.92rem;
    font-weight: 600;
}

.login-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ede7f5;
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: loginSpin 0.75s linear infinite;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Google Sign-in Container */
.gsi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    margin: 1.25rem 0 0.75rem 0;
}

/* Fallback Google Sign-in Button */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google:hover {
    background-color: #f8fafd;
    border-color: #c4c7cc;
    color: #1a73e8;
    box-shadow: 0 3px 8px rgba(60, 64, 67, 0.16);
    transform: translateY(-1px);
}

.btn-google:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.google-logo {
    flex-shrink: 0;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #7b7389;
    margin-top: 0.6rem;
}

.login-security-note svg {
    color: #8b8399;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.25rem 0;
    color: #9c94aa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ede7f5;
}

.login-divider span {
    padding: 0 0.85rem;
}

.login-perks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #4e4759;
    line-height: 1.45;
}

.login-perks-list .perk-check {
    color: #137333;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.login-footer-nav {
    padding-top: 1.25rem;
    border-top: 1px solid #f2eef8;
}

.login-back-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.login-back-link:hover {
    color: #4a3a6a;
    text-decoration: underline;
}

/* Local Authentication Form Styles */
.auth-form {
    text-align: left;
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.15rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b3547;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 0.82rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #3a2b58;
    text-decoration: underline;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background-color: #faf9fc;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 91, 72, 130), 0.15);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background-color: #faf9fc;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 91, 72, 130), 0.15);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 4.25rem;
}

.btn-toggle-password {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #7b7389;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-password:hover {
    background-color: #ede7f5;
    color: var(--primary-purple);
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: #7b7389;
    margin-top: 0.35rem;
    line-height: 1.35;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.auth-toggle-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #645c73;
    margin-bottom: 1.5rem;
}

.auth-toggle-link-row .text-link,
.text-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-toggle-link-row .text-link:hover,
.text-link:hover {
    text-decoration: underline;
    color: #3a2b58;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 1.25rem 0;
    color: #9c94aa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ede7f5;
}

.auth-divider span {
    padding: 0 0.85rem;
}

.auth-action-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

/* Email sent confirmation card */
.email-sent-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f8f1;
    margin: 0 auto 1rem auto;
}

.highlight-email {
    color: var(--primary-purple);
    word-break: break-all;
}

.email-sent-body {
    text-align: left;
    margin: 1.5rem 0;
}

.email-instruction-text {
    font-size: 0.95rem;
    color: #4e4759;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.email-tips-box {
    background-color: #fbf9fd;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.2rem;
}

.email-tips-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: #3b3547;
    margin-bottom: 0.5rem;
}

.email-tips-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.84rem;
    color: #645c73;
    line-height: 1.45;
}

.email-tips-list li {
    margin-bottom: 0.35rem;
}

.auth-helper-note {
    font-size: 0.85rem;
    color: #7b7389;
    margin: 0.8rem 0 1.2rem;
    text-align: center;
}

.badge-pill-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.badge-pill-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.badge-provider-local {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
}

.badge-provider-google {
    background: #fce8e6;
    color: #ea4335;
    border: 1px solid #fad2cf;
}

.badge-unverified {
    background: #fef7e0;
    color: #b06000;
    border: 1px solid #feefc3;
}

/* Account / Profile Page Styling */
.account-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-card {
    background-color: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 24px -6px rgba(var(--primary-rgb, 91, 72, 130), 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
}

.account-hero-card {
    background: linear-gradient(135deg, var(--surface-tint, #faf8fc) 0%, #f3edf8 100%);
    border-color: #e5daf0;
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.avatar-wrapper {
    flex-shrink: 0;
}

.account-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 91, 72, 130), 0.15);
}

.account-avatar-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.user-display-name {
    font-size: 1.6rem;
    color: var(--primary-purple);
    margin: 0;
    line-height: 1.2;
}

.user-display-email {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.user-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-verified {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceebd6;
}

.badge-admin-role {
    background-color: #f3edf8;
    color: var(--primary-purple);
    border: 1px solid #dcd0ea;
}

.badge-customer-role {
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #e0e0e0;
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0eaf7;
    color: var(--primary-purple);
}

.account-card-header h2 {
    font-size: 1.25rem;
    color: var(--primary-purple);
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    background-color: #faf9fc;
    border-radius: 10px;
    border: 1px solid #f0eaf7;
}

.info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    font-weight: 600;
}

.info-value {
    font-size: 0.98rem;
    color: #222;
    font-weight: 500;
    word-break: break-word;
}

.code-value code {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    background-color: #eef0f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #333;
}

/* Admin Card Styling */
.admin-details-card {
    border-color: #dcd0ea;
    background-color: #fcfaff;
}

.admin-card-header {
    color: var(--primary-purple);
}

.admin-notice-text {
    font-size: 0.88rem;
    color: #6b5b95;
    margin-bottom: 1rem;
    font-style: italic;
}

.admin-dashboard-link-row {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e7deee;
}

.admin-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Account Actions */
.account-actions-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    padding: 0.5rem 0;
}

.account-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--primary-purple);
    color: #ffffff;
    border: 1.5px solid var(--primary-purple);
}

.btn-primary:hover {
    background-color: #4a3a6a;
    border-color: #4a3a6a;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f7f3fb;
    color: var(--primary-purple);
    border: 1.5px solid #dcd0ea;
}

.btn-secondary:hover {
    background-color: #eee4f7;
    border-color: #c9b4e2;
    color: #433364;
    transform: translateY(-1px);
}

.btn-outline-danger {
    background-color: transparent;
    color: #d93025;
    border: 1.5px solid #fce8e6;
    padding: 0.65rem 1.35rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #fce8e6;
    color: #a50e0e;
    border-color: #f8c4c0;
    transform: translateY(-1px);
}

/* Guest Google Login Touchpoints */
.guest-login-invite {
    background: linear-gradient(135deg, #faf7fc 0%, #f4eff9 100%);
    border: 1.5px solid #e3d7f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 91, 72, 130), 0.05);
    overflow: hidden;
}

.guest-login-invite-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-login-invite-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guest-login-invite-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.guest-login-invite-text strong {
    font-size: 1.05rem;
    color: var(--primary-purple);
}

.guest-login-invite-text span {
    font-size: 0.88rem;
    color: #635b73;
}

.guest-login-invite-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-google-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--white);
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.btn-google-signin:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
    color: #1a73e8;
}

.btn-continue-guest {
    background: transparent;
    border: none;
    color: #726886;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.btn-continue-guest:hover {
    color: var(--primary-purple);
}

/* Cart Login Nudge */
.cart-login-nudge {
    background-color: #f6f0fc;
    border: 1px solid #e4d7f3;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-login-nudge-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #584a75;
}

.cart-login-nudge-text svg {
    flex-shrink: 0;
    color: var(--primary-purple);
}

.cart-login-nudge-text a {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: underline;
}

.cart-nudge-dismiss {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #8c7fa6;
    cursor: pointer;
    padding: 0 0.25rem;
}

.cart-nudge-dismiss:hover {
    color: var(--primary-purple);
}

/* Post Purchase Guest Account Invite */
.post-purchase-invite {
    background: linear-gradient(135deg, #faf7fc 0%, #f4eff9 100%);
    border: 1.5px solid #e3d7f0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 91, 72, 130), 0.06);
}

.post-purchase-invite-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.post-purchase-invite-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.post-purchase-invite-body h3 {
    font-size: 1.25rem;
    color: var(--primary-purple);
    margin: 0;
}

.post-purchase-invite-body p {
    font-size: 0.94rem;
    color: #5f5573;
    margin: 0 0 0.75rem;
}

.post-purchase-dismiss {
    background: transparent;
    border: none;
    color: #7b7093;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.post-purchase-dismiss:hover {
    color: var(--primary-purple);
}

/* ==========================================================================
   Admin Dashboard & Order Management Styles (/admin)
   ========================================================================== */
.admin-page-main {
    background-color: var(--bg-light);
    padding: 3rem 5% 5rem;
    min-height: 80vh;
}

.admin-page-main.admin-dashboard-page {
    padding: 2.5rem 3% 4rem;
}

.admin-container {
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
}

.admin-dashboard-container {
    max-width: 1560px;
}

.admin-products-container {
    max-width: 1500px;
}

.admin-breadcrumb-nav {
    margin-bottom: 1.25rem;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-back-link:hover {
    color: #452f63;
    transform: translateX(-3px);
}

.admin-header-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.04);
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-header-title-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1 1 320px;
    min-width: 0;
}

.admin-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.admin-header-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.admin-header-badges .account-badge,
.admin-header-badges .feature-badge {
    margin-bottom: 0;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.admin-page-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 2.2rem;
    color: var(--primary-purple);
    margin: 0;
    line-height: 1.2;
}

.admin-order-subtitle {
    font-size: 0.95rem;
    color: #726584;
    margin: 0.35rem 0 0;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-outline-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #d5c8e2;
    color: var(--primary-purple);
    background: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-admin:hover {
    background: #f4edf9;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0eaf6;
}

.admin-stat-card {
    background: #faf7fc;
    border: 1px solid #ebdff4;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7a6e8b;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-purple);
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
}

.stat-sublabel {
    font-size: 0.8rem;
    color: #6f6282;
    font-weight: 500;
}

.campaign-clicks-sub {
    font-size: 0.78rem;
    color: #726584;
    margin-top: 2px;
    white-space: nowrap;
}

.campaign-conv-rate {
    font-weight: 600;
    color: #2e7d32;
    white-space: nowrap;
}

.admin-campaigns-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.campaign-filter-empty-cell {
    text-align: center;
    padding: 2rem 1rem;
    color: #726584;
    font-style: italic;
}

.campaign-name-link {
    color: var(--primary-purple);
    text-decoration: none;
}

.campaign-name-link:hover,
.campaign-name-link:focus-visible {
    text-decoration: underline;
}

.campaign-status-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.campaign-stage-badge.stage-draft {
    background: #f4edf7;
    color: #5b4882;
    border: 1px solid #d9c8e8;
}

.campaign-stage-badge.stage-deployed {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.campaign-actions-cell {
    text-align: right;
}

.campaign-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.campaign-action-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.campaign-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.campaign-deployed-notice {
    background: #f4f1f9;
    border: 1px solid #d9cde9;
    border-left: 4px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    color: #432b68;
    font-size: 0.92rem;
}

.campaign-form-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.campaign-save-btn,
.campaign-deploy-btn {
    padding: 10px 22px;
}

.campaign-delete-btn:hover,
.campaign-delete-btn:focus-visible {
    color: #c62828;
    border-color: #c62828;
    background: #fff5f5;
}

.admin-orders-card,
.admin-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    padding: 2.25rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.04);
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0eaf6;
}

.admin-table-header h2 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.45rem;
    color: var(--primary-purple);
    margin: 0;
}

.admin-order-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7a6e8b;
    background: var(--surface-tint-2, #f3eff9);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.94rem;
}

.admin-orders-table th {
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #e7deee;
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-orders-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #f0eaf6;
    vertical-align: middle;
}

.admin-orders-table tbody tr:hover td {
    background-color: #faf7fd;
}

.admin-order-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.02rem;
}

.admin-order-link:hover {
    text-decoration: underline;
    color: #452f63;
}

.customer-name {
    color: #2c223a;
}

.customer-email {
    font-size: 0.85rem;
    color: #6e637e;
    margin-top: 0.15rem;
}

.btn-admin-view {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
    border: 1px solid #ded4ea;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-admin-view:hover {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.status-badge-lg {
    font-size: 0.95rem;
    padding: 0.35rem 1rem;
}

.admin-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid #f6f2f9;
    padding-bottom: 0.75rem;
}

.admin-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-text-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.admin-text-link:hover {
    text-decoration: underline;
}

.address-text {
    line-height: 1.6;
    color: #3b3147;
}

.item-variant-tag {
    display: inline-block;
    font-size: 0.82rem;
    background: var(--surface-tint-2, #f3eff9);
    color: var(--primary-purple);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.square-external-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.2s ease;
}

.square-external-link code {
    color: var(--primary-purple);
    background: #f4eff9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #e2d7ec;
    transition: all 0.2s ease;
}

.square-external-link:hover code {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.square-external-link svg {
    color: #8c7f9f;
    transition: transform 0.2s ease, color 0.2s ease;
}

.square-external-link:hover svg {
    color: var(--primary-purple);
    transform: translate(2px, -2px);
}

.empty-orders-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #706580;
}

.empty-orders-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-orders-state h3 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

/* Abandoned Cart Styling in Order Management */
.status-abandoned {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-user-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-user-type.registered {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-user-type.guest {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}

.order-time-ago {
    display: block;
    font-size: 0.78rem;
    color: #777;
    margin-top: 0.2rem;
}

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

.btn-toggle-cart-items {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--primary-purple);
    background: #f7f2fb;
    border: 1px solid #ede1f4;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-toggle-cart-items:hover {
    background: #ede1f4;
}

.cart-items-detail-drawer {
    margin-top: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--surface-tint, #faf8fc);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    min-width: 240px;
    max-width: 380px;
}

.cart-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
}

.cart-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e8e0f0;
}

.cart-items-list li:last-child {
    border-bottom: none;
}

.cart-items-list .item-qty {
    font-weight: 700;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.cart-items-list .item-name {
    flex: 1;
    color: #444;
}

.cart-items-list .item-price {
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

@media (max-width: 850px) {
    .admin-details-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-card,
    .admin-orders-card,
    .admin-card {
        padding: 1.5rem;
    }

    .admin-page-title {
        font-size: 1.75rem;
    }

    .admin-header-title-group {
        gap: 0.85rem;
    }

    .admin-header-icon {
        width: 46px;
        height: 46px;
        border-radius: 11px;
    }

    .admin-header-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* =========================================================================
   Blog & TipTap Editor Styles
   ========================================================================= */

.blog-page-main {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.5rem 5.5rem;
    background: #fdfaf6;
    min-height: calc(100vh - 300px);
}

.blog-container {
    position: relative;
    z-index: 1;
    max-width: 1020px;
    margin: 0 auto;
}

.blog-page-main .vb-garden-orb.orb-1 {
    left: max(-55px, calc(50% - 620px));
}

.blog-page-main .vb-garden-orb.orb-2 {
    right: max(-50px, calc(50% - 610px));
}

.blog-page-main .vb-garden-orb.orb-3 {
    left: max(-50px, calc(50% - 615px));
}

.blog-page-main .vb-garden-orb.orb-4 {
    right: max(-55px, calc(50% - 625px));
}

.blog-page-main .vb-garden-orb.orb-5 {
    left: max(-45px, calc(50% - 605px));
}

.blog-page-main .blog-garden-sprig.sprig-1 {
    left: max(0.5rem, calc(50% - 600px));
}

.blog-page-main .blog-garden-sprig.sprig-2 {
    right: max(0.5rem, calc(50% - 605px));
}

.blog-page-main .blog-garden-sprig.sprig-3 {
    left: max(0.5rem, calc(50% - 595px));
}

.blog-page-main .blog-garden-sprig.sprig-4 {
    right: max(0.5rem, calc(50% - 605px));
}

.blog-page-main .blog-garden-sprig.sprig-5 {
    left: max(0.5rem, calc(50% - 600px));
}

.blog-page-main .blog-garden-sprig.sprig-6 {
    right: max(0.5rem, calc(50% - 595px));
}

.blog-header-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.25rem;
}

.blog-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.65;
}

.blog-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.25rem;
}

.blog-grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 56px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='160' viewBox='0 0 56 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0C38 40 18 120 28 160' stroke='%23639165' stroke-width='2' stroke-opacity='0.44'/%3E%3Cpath d='M32 36C44 28 52 34 50 44C42 46 36 42 32 36Z' fill='%23c1e1c1' fill-opacity='0.75' stroke='%23639165' stroke-width='1.2' stroke-opacity='0.6'/%3E%3Cpath d='M24 108C12 100 4 106 6 116C14 118 20 114 24 108Z' fill='%23c1e1c1' fill-opacity='0.75' stroke='%23639165' stroke-width='1.2' stroke-opacity='0.6'/%3E%3Ccircle cx='28' cy='76' r='3' fill='%235b4882' fill-opacity='0.34'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-position: center top;
    z-index: 0;
    pointer-events: none;
}

.blog-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(49, 73, 51, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #d7e4d6;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #5d8a5e;
    box-shadow: 0 16px 38px rgba(43, 64, 45, 0.12), 0 0 0 3px rgba(193, 225, 193, 0.35);
}

.blog-card-media {
    height: 220px;
    overflow: hidden;
    background: #f1f7f0;
    border-bottom: 1px solid #e3ede2;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 1.65rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #5d6a5e;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.38rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--text-dark, #2b2523);
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-card-title a:hover {
    color: #2b402d;
}

.blog-card-summary {
    font-size: 0.96rem;
    color: #555;
    line-height: 1.68;
    margin-bottom: 1.35rem;
    flex: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #e5efe4;
}

.blog-read-more-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease, color 0.15s ease;
}

.blog-read-more-link:hover {
    gap: 8px;
    color: #2b402d;
}

.blog-empty-state {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid #d7e4d6;
    box-shadow: 0 12px 32px rgba(49, 73, 51, 0.07);
    max-width: 520px;
    margin: 2rem auto;
}

.blog-empty-btn {
    margin-top: 1rem;
}

.blog-empty-icon {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.blog-empty-state h2 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    color: #666;
    line-height: 1.5;
}

/* Single Post View */
.blog-post-main {
    padding: 2.5rem 1.5rem 5rem;
    background: #fdfaf6;
    min-height: calc(100vh - 300px);
}

.blog-post-article {
    max-width: 780px;
    margin: 0 auto;
}

.blog-breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-article-header {
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    margin-bottom: 2rem;
}

.blog-article-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    line-height: 1.2;
    color: var(--primary-purple);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Professional Editorial Byline */
.blog-article-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.1rem 0 1.25rem;
    border-top: 1px solid #e8ded4;
    border-bottom: 1px solid #e8ded4;
    margin: 1.5rem 0 2.25rem;
}

.byline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(109, 40, 217, 0.2);
    border: 2px solid #ffffff;
}

.byline-avatar-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1;
    user-select: none;
}

.byline-meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.byline-author-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.byline-author-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8c7f76;
    font-weight: 500;
}

.byline-author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b2523;
    white-space: nowrap;
}

.byline-date-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #7d726b;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.byline-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.byline-date svg {
    color: #9d8e84;
}

.byline-bullet {
    color: #c9bcaf;
    font-size: 0.85rem;
}

.byline-journal-badge {
    color: var(--primary-purple, #5b21b6);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    background: #f3ecfb;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #ebdcf8;
    white-space: nowrap;
}

.blog-featured-hero {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Prose Typography for Article Content */
.prose {
    font-size: 1.125rem;
    line-height: var(--blog-line-height, 1.8);
    color: #2b2523;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h1, .prose h2, .prose h3 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    color: var(--primary-purple);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.35rem; }

/* Lists in Article Prose & TipTap Editor */
.prose ul,
.tiptap-editor-surface ul,
.ProseMirror ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem !important;
}

.prose ol,
.tiptap-editor-surface ol,
.ProseMirror ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem !important;
}

.prose li,
.tiptap-editor-surface li,
.ProseMirror li {
    list-style-position: outside !important;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* Ensure paragraph inside list item does not create line breaks or extra vertical gap */
.prose li > p,
.tiptap-editor-surface li > p,
.ProseMirror li > p {
    margin: 0 !important;
    display: inline;
}

/* If a list item contains multiple paragraphs, subsequent paragraphs get standard spacing */
.prose li > p + p,
.tiptap-editor-surface li > p + p,
.ProseMirror li > p + p {
    display: block;
    margin-top: 0.35rem !important;
}

.prose blockquote {
    border-left: 4px solid var(--primary-purple);
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background: #f8f2ed;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #443c39;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose hr {
    border: none;
    border-top: 2px dashed #ded4c8;
    margin: 2.5rem 0;
}

.prose a {
    color: var(--primary-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose figure.blog-figure {
    margin: 2rem 0;
    text-align: center;
}

.prose figure.blog-figure img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.prose figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.prose .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.prose .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-article-footer {
    margin-top: 4rem;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(135deg, #2d1836 0%, #1f1026 100%);
    border-radius: 14px;
    border: 1px solid #4a2958;
    box-shadow: 0 6px 24px rgba(26, 12, 33, 0.18);
    color: #f3ecf8;
}

.blog-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.blog-footer-author {
    display: flex;
    gap: 1.35rem;
    align-items: center;
    max-width: 520px;
}

.blog-footer-avatar {
    font-size: 1.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-footer-product-link {
    display: block;
    width: 102px;
    height: 102px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    background-color: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.blog-footer-product-link:hover,
.blog-footer-product-link:focus-visible {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
    outline: none;
}

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

.blog-footer-byline {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.blog-footer-bio {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #e2d9ec !important;
    margin-top: 4px;
}

.blog-footer-actions {
    display: flex;
    gap: 0.75rem;
}

.blog-next-post-teaser {
    max-width: 720px;
    margin: 2.5rem auto 0;
}

.blog-next-post-teaser + .blog-article-footer {
    margin-top: 2.25rem;
}

.blog-next-post-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 1.6rem;
    background: linear-gradient(135deg, #f3f9f3 0%, #ffffff 100%);
    border: 1.5px solid #b5d5b5;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(43, 64, 45, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-next-post-link:hover,
.blog-next-post-link:focus-visible {
    transform: translateY(-2px);
    border-color: #7ea87e;
    box-shadow: 0 16px 34px rgba(43, 64, 45, 0.14);
    outline: none;
}

.blog-next-post-media {
    width: 124px;
    height: 124px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #d5e4d5;
    background: #eef5ee;
}

.blog-next-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.blog-next-post-link:hover .blog-next-post-img,
.blog-next-post-link:focus-visible .blog-next-post-img {
    transform: scale(1.04);
}

.blog-next-post-body {
    flex: 1;
    min-width: 0;
}

.blog-next-post-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f7b51;
    margin-bottom: 0.35rem;
}

.blog-next-post-title {
    margin: 0 0 0.4rem;
    font-size: 1.28rem;
    line-height: 1.3;
    color: var(--primary-purple);
}

.blog-next-post-excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #554c46;
}

.blog-next-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-purple);
}

@media (max-width: 640px) {
    .blog-next-post-link {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.15rem;
    }

    .blog-next-post-media {
        width: 100%;
        height: 170px;
    }

    .blog-next-post-title {
        font-size: 1.15rem;
    }
}

/* =========================================================================
   Botanical Garden Floating Stanzas Blog Layout (Default)
   ========================================================================= */

.blog-post-main {
    position: relative;
    overflow: hidden;
    background: #fdfaf6;
}

.blog-garden-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Signature VB Logo Celadon-Green Circles Echoed Behind the Floating Stanzas */
.vb-garden-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, rgba(206, 234, 206, 0.72) 0%, rgba(182, 219, 182, 0.48) 72%, rgba(182, 219, 182, 0.12) 100%);
    border: 1.5px solid rgba(134, 180, 134, 0.28);
}

.vb-garden-orb.orb-1 {
    width: 310px;
    height: 310px;
    top: 120px;
    left: max(-40px, calc(50% - 495px));
}

.vb-garden-orb.orb-2 {
    width: 260px;
    height: 260px;
    top: 430px;
    right: max(-30px, calc(50% - 480px));
}

.vb-garden-orb.orb-3 {
    width: 290px;
    height: 290px;
    top: 860px;
    left: max(-35px, calc(50% - 490px));
}

.vb-garden-orb.orb-4 {
    width: 320px;
    height: 320px;
    top: 1300px;
    right: max(-45px, calc(50% - 505px));
}

.vb-garden-orb.orb-5 {
    width: 270px;
    height: 270px;
    bottom: 220px;
    left: max(-30px, calc(50% - 480px));
}

.blog-garden-sprig {
    position: absolute;
    width: 215px;
    height: auto;
    color: #4f7b51;
    opacity: 0.44;
    filter: drop-shadow(0 6px 14px rgba(79, 123, 81, 0.08));
}

.blog-garden-sprig.sprig-1 {
    top: 150px;
    left: max(0.5rem, calc(50% - 475px));
    color: var(--primary-purple);
    opacity: 0.42;
    transform: rotate(-8deg);
}

.blog-garden-sprig.sprig-2 {
    top: 420px;
    right: max(0.5rem, calc(50% - 485px));
    color: #447047;
    opacity: 0.48;
    transform: rotate(7deg);
}

.blog-garden-sprig.sprig-3 {
    top: 860px;
    left: max(0.5rem, calc(50% - 470px));
    color: #5b4882;
    opacity: 0.4;
    transform: rotate(6deg);
}

.blog-garden-sprig.sprig-4 {
    top: 1290px;
    right: max(0.5rem, calc(50% - 485px));
    color: #447047;
    opacity: 0.48;
    transform: rotate(-7deg);
}

.blog-garden-sprig.sprig-5 {
    top: 1740px;
    left: max(0.5rem, calc(50% - 475px));
    color: #5b4882;
    opacity: 0.42;
    transform: rotate(-5deg);
}

.blog-garden-sprig.sprig-6 {
    bottom: 220px;
    right: max(0.5rem, calc(50% - 475px));
    color: #4a784d;
    opacity: 0.46;
    transform: rotate(8deg);
}

.blog-post-article {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.blog-header-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.9rem;
}

.byline-reading-time {
    font-size: 0.84rem;
    color: #7d726b;
    font-weight: 500;
}

.blog-post-article .blog-breadcrumb-nav,
.blog-post-article .blog-article-header {
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blog-post-article .blog-article-byline {
    justify-content: center;
}

.blog-stanza-stage {
    position: relative;
}

.blog-post-article .blog-article-content.prose {
    position: relative;
    padding: 1.5rem 0 2.5rem;
}

/* Winding Botanical Garden Vine Connecting Floating Stanzas */
.blog-post-article .blog-article-content.prose::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 56px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='160' viewBox='0 0 56 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0C38 40 18 120 28 160' stroke='%23639165' stroke-width='2' stroke-opacity='0.52'/%3E%3Cpath d='M32 36C44 28 52 34 50 44C42 46 36 42 32 36Z' fill='%23c1e1c1' fill-opacity='0.8' stroke='%23639165' stroke-width='1.2' stroke-opacity='0.65'/%3E%3Cpath d='M24 108C12 100 4 106 6 116C14 118 20 114 24 108Z' fill='%23c1e1c1' fill-opacity='0.8' stroke='%23639165' stroke-width='1.2' stroke-opacity='0.65'/%3E%3Ccircle cx='28' cy='76' r='3' fill='%235b4882' fill-opacity='0.38'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-position: center top;
    z-index: 0;
}

.blog-post-article .prose > p,
.blog-post-article .prose > ul,
.blog-post-article .prose > ol,
.blog-post-article .prose > blockquote,
.blog-post-article .prose > figure {
    --stanza-shift: 0px;
    position: relative;
    z-index: 1;
    max-width: 60ch;
    margin: 0 auto 3.25rem !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid #d7e4d6;
    border-radius: 16px;
    padding: 2.35rem 2.75rem !important;
    font-size: 1.2rem;
    line-height: 1.92;
    letter-spacing: 0.006em;
    color: #2b2523;
    box-shadow: 0 12px 32px rgba(49, 73, 51, 0.07);
    opacity: 0.34;
    transform: translate3d(var(--stanza-shift), 26px, 0) scale(0.98);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}

.blog-post-article .prose > ul,
.blog-post-article .prose > ol {
    padding-left: 3.75rem !important;
}

.blog-post-article .prose > .stanza-odd {
    --stanza-shift: -16px;
}

.blog-post-article .prose > .stanza-even {
    --stanza-shift: 16px;
}

/* Woven Featured Image Stanza Plate */
.blog-post-article .prose > figure.blog-featured-stanza {
    max-width: 68ch;
    padding: 1.15rem 1.15rem 1rem !important;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #cce0cc;
    border-radius: 18px;
}

.blog-featured-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #eef4ed;
}

.blog-featured-stanza .blog-featured-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: none;
}

.blog-featured-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.8rem !important;
    font-size: 0.86rem;
    color: #5b695b;
    font-style: italic;
}

.blog-featured-ornament {
    color: #5a875a;
    font-style: normal;
    font-size: 0.95rem;
}

.blog-post-article .prose > .stanza-block.is-revealed {
    opacity: 0.74;
    transform: translate3d(var(--stanza-shift), 0, 0) scale(0.99);
}

.blog-post-article .prose > .stanza-block.is-in-focus {
    opacity: 1;
    transform: translate3d(var(--stanza-shift), -4px, 0) scale(1.012);
    border-color: #7ea87e;
    box-shadow: 0 22px 52px rgba(43, 64, 45, 0.13), 0 0 0 5px rgba(193, 225, 193, 0.45);
}

.blog-post-article .prose > h1,
.blog-post-article .prose > h2,
.blog-post-article .prose > h3 {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 56ch;
    margin: 3.75rem auto 2.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #eef7ee 0%, #faf6f0 100%);
    border: 1.5px solid #b5d5b5;
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(72, 108, 74, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-article .prose > p,
    .blog-post-article .prose > ul,
    .blog-post-article .prose > ol,
    .blog-post-article .prose > blockquote,
    .blog-post-article .prose > figure {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
}

@media (max-width: 900px) {
    .vb-garden-orb {
        transform: scale(0.7);
        opacity: 0.75;
    }

    .blog-garden-sprig {
        width: 135px;
        opacity: 0.28;
    }

    .blog-post-article .prose > p,
    .blog-post-article .prose > ul,
    .blog-post-article .prose > ol,
    .blog-post-article .prose > blockquote,
    .blog-post-article .prose > figure {
        --stanza-shift: 0px !important;
        padding: 1.75rem 1.5rem !important;
        margin-bottom: 2.25rem !important;
    }
}

/* TipTap Editor Admin Styles */
.blog-meta-accordion {
    background: #ffffff;
    border: 1px solid #e5dcd2;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-meta-accordion[open] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d8c8ba;
}

.blog-meta-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    user-select: none;
    background: #fdfaf6;
    border-bottom: 1px solid transparent;
    transition: background-color 0.15s ease;
    list-style: none;
}

.blog-meta-summary::-webkit-details-marker {
    display: none;
}

.blog-meta-summary:hover {
    background: #f8f1e8;
}

.blog-meta-accordion[open] .blog-meta-summary {
    border-bottom: 1px solid #ebdcd0;
    background: #fbf6ef;
}

.meta-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: #443c39;
}

.meta-summary-icon {
    color: var(--primary-purple);
    flex-shrink: 0;
}

.meta-chip {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0e6f5;
    color: var(--primary-purple);
    border: 1px solid #e2d1eb;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-chip-author {
    background: #eef2f6;
    color: #3b506b;
    border-color: #d6e0ea;
}

.meta-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #8c7f76;
    flex-shrink: 0;
}

.meta-toggle-hint {
    color: #8c7f76;
}

.meta-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.95rem;
    color: #8c7f76;
}

.blog-meta-accordion[open] .meta-chevron {
    transform: rotate(180deg);
}

.blog-meta-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: #ffffff;
}

/* Editorial Post Canvas inside Admin */
.blog-editor-article-canvas {
    max-width: 840px;
    margin: 0 auto 3rem;
    background: #ffffff;
    border: 1px solid #ece4dc;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2.75rem;
}

@media (max-width: 768px) {
    .blog-editor-article-canvas {
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }
}

.blog-editor-header {
    margin-bottom: 1rem;
}

.blog-editor-title-input {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-purple);
    border: 1px solid transparent;
    border-radius: 6px;
    outline: none;
    width: 100%;
    background: transparent;
    padding: 0.35rem 0.5rem;
    margin-left: -0.5rem;
    letter-spacing: -0.01em;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-editor-title-input:hover {
    border-color: #e5ded6;
    background: #fdfaf6;
}

.blog-editor-title-input:focus {
    border-color: var(--primary-purple);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(107, 36, 122, 0.12);
}

.blog-editor-title-input::placeholder {
    color: #c9bcaf;
    font-style: italic;
    font-weight: 400;
}

.blog-editor-byline {
    margin: 1rem 0 1.5rem;
    padding: 0.85rem 0;
}

.btn-meta-shortcut {
    background: transparent;
    border: none;
    color: var(--primary-purple);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 6px;
}

.btn-meta-shortcut:hover {
    color: #3b1243;
}

/* HUGE WYSIWYG Featured Hero Banner in Editor */
.blog-editor-hero-section {
    margin: 1.5rem 0 2rem;
}

.blog-editor-hero {
    position: relative;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #2a1533;
}

.blog-editor-hero .blog-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.blog-editor-hero-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 12, 33, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.hero-tag {
    color: #f1e7f6;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-right: 4px;
}

.hero-btn-group {
    display: flex;
    gap: 6px;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hero-btn:hover {
    background: #ffffff;
    color: var(--primary-purple);
}

.hero-btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.blog-editor-hero-placeholder {
    border: 2px dashed #ded4c8;
    border-radius: 12px;
    background: #faf7f3;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.blog-editor-hero-placeholder:hover {
    border-color: var(--primary-purple);
    background: #fdfaf6;
}

.placeholder-icon {
    color: #9d8e84;
    flex-shrink: 0;
}

.placeholder-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.placeholder-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3e3430;
}

.placeholder-subtitle {
    font-size: 0.82rem;
    color: #7d726b;
}

@media (max-width: 640px) {
    .blog-editor-hero-placeholder {
        flex-direction: column;
        text-align: center;
    }
    .blog-editor-hero .blog-featured-img {
        max-height: 280px;
    }
    .blog-editor-hero-overlay {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
    }
    .hero-tag {
        display: none;
    }
}

.blog-editor-body-card {
    border: 1px solid #e0d7ce;
    border-radius: 8px;
    overflow: hidden;
}

.blog-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .blog-meta-grid {
        grid-template-columns: 1fr;
    }
}

.blog-form-group {
    margin-bottom: 0.5rem;
}

.blog-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.35rem;
}

.blog-form-label .required {
    color: #c62828;
}

.blog-form-input,
.blog-form-select,
.blog-form-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dcd4cc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-form-select {
    cursor: pointer;
}

.blog-form-input:focus,
.blog-form-select:focus,
.blog-form-textarea:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 36, 122, 0.12);
}

.editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #faf7f3;
    border-bottom: 1px solid #e0d7ce;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: #ede4da;
    color: var(--primary-purple);
}

.toolbar-btn.is-active {
    background: var(--primary-purple);
    color: #fff;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #dcd2c7;
    margin: 0 4px;
}

.tiptap-editor-surface {
    min-height: 420px;
    padding: 1.75rem 2rem;
    outline: none;
    background: #fff;
    font-size: 1.1rem;
    line-height: var(--blog-line-height, 1.2);
}

.tiptap-editor-surface p {
    margin-bottom: 0.75rem;
}

.tiptap-editor-surface:focus {
    outline: none;
}

.line-height-adjustor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #dcd2c7;
    border-radius: 6px;
    padding: 2px 6px;
    margin: 0 4px;
    vertical-align: middle;
}

.line-height-icon {
    color: #666;
    flex-shrink: 0;
}

.line-height-select {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    padding: 2px 2px;
    outline: none;
    font-family: inherit;
}

.line-height-select:focus {
    color: var(--primary-purple);
}

.tiptap-editor-surface p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #aaa;
    pointer-events: none;
    height: 0;
}

.blog-editor-figure {
    margin: 1.5rem auto;
    max-width: 100%;
    text-align: center;
}

.blog-editor-figure img,
.blog-editor-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.blog-editor-caption {
    font-size: 0.88rem;
    color: #666;
    margin-top: 0.55rem;
    font-style: italic;
    text-align: center;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-editor-caption:hover {
    background-color: #f0ecf5;
    color: var(--primary-purple, #5c3d75);
}

.blog-editor-youtube {
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
    border-radius: 8px;
}

.editor-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #faf7f3;
    border-top: 1px solid #e0d7ce;
    font-size: 0.8rem;
    color: #777;
}

.editor-bottom-bar kbd {
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.75rem;
}

/* Floating Slash Menu */
.slash-menu-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 230px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.slash-menu-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #999;
    padding: 8px 12px 4px;
}

.slash-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: background 0.1s ease;
}

.slash-menu-item:hover {
    background: #f4ecf7;
    color: var(--primary-purple);
}

.slash-icon {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    font-weight: 700;
    color: #777;
}

/* Floating Image Action Bar */
.image-floating-bar {
    position: absolute;
    display: flex;
    gap: 4px;
    background: rgba(30, 25, 22, 0.9);
    padding: 4px 6px;
    border-radius: 6px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.img-bar-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.img-bar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.img-bar-btn.is-featured-active {
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.25);
}

.img-bar-btn.is-featured-active:hover {
    background: rgba(255, 213, 79, 0.4);
}

/* Save Status Indicator Badge */
.save-status-badge {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eee;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

.save-status-badge.is-saving {
    background: #fff3e0;
    color: #e65100;
}

.save-status-badge.is-saved {
    background: #e8f5e9;
    color: #2e7d32;
}

.save-status-badge.is-error {
    background: #ffebee;
    color: #c62828;
}

/* =========================================================================
   Admin Dashboard Dedicated Hub (/admin)
   ========================================================================= */

.admin-dashboard-header-compact {
    margin-bottom: 1rem;
    padding: 1.1rem 1.5rem;
}

.admin-dashboard-header-compact .admin-order-subtitle {
    margin-top: 0.2rem;
    color: #666;
    font-size: 0.9rem;
}

.admin-dashboard-feature-grid,
.admin-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.admin-dashboard-card {
    background: #ffffff;
    border: 1px solid #e3d8ec;
    border-radius: 10px;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 2px 8px rgba(107, 36, 122, 0.04);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-dashboard-card[data-main-url] {
    cursor: pointer;
}

.admin-dashboard-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(107, 36, 122, 0.1);
    border-color: #bfaed5;
}

.dashboard-row-main {
    flex: 1 1 0%;
    min-width: 0;
}

.feature-card-header-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    margin-bottom: 0;
    outline: none;
}

.feature-card-header-link:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0;
}

.feature-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-row-title-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.dashboard-row-metrics {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #665e75;
    margin-top: 0.15rem;
}

.dashboard-row-metrics .metric-completed,
.dashboard-row-metrics .metric-published {
    color: #2e7d32;
}

.dashboard-row-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.dashboard-row-actions .btn-sm {
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.admin-dashboard-activity-section {
    margin-bottom: 2rem;
}

.admin-dashboard-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
}

.admin-dashboard-activity-card {
    background: #ffffff;
    border: 1px solid #e3d8ec;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(107, 36, 122, 0.04);
}

@media (max-width: 760px) {
    .admin-dashboard-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .dashboard-row-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

.orders-gradient {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.blog-gradient {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: var(--primary-purple);
}

.campaigns-gradient {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.feature-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.badge-orders {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-blog {
    background: #f3e5f5;
    color: var(--primary-purple);
}

.badge-campaigns {
    background: #e8f5e9;
    color: #2e7d32;
}

.products-gradient {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.badge-products {
    background: #fff3e0;
    color: #e65100;
}

.dashboard-gradient {
    background: linear-gradient(135deg, #ede7f6, #d1c4e9);
    color: #512da8;
}

.badge-dashboard {
    background: #ede7f6;
    color: #512da8;
}

.settings-gradient {
    background: linear-gradient(135deg, #eceff1, #cfd8dc);
    color: #37474f;
}

.badge-settings {
    background: #eceff1;
    color: #37474f;
}

.feature-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    color: var(--primary-purple);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.feature-title-arrow {
    display: inline-block;
    font-size: 1.15rem;
    color: #9c83ac;
    transition: transform 0.2s ease, color 0.2s ease;
}

.admin-dashboard-card:hover .feature-title,
.feature-card-header-link:hover .feature-title {
    color: #4a1555;
}

.admin-dashboard-card:hover .feature-title-arrow,
.feature-card-header-link:hover .feature-title-arrow {
    transform: translateX(4px);
    color: var(--primary-purple);
}

.admin-dashboard-card:hover .feature-icon-wrapper {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.feature-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric-pill {
    background: #faf7fb;
    border: 1px solid #ede3f2;
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-dashboard-card:hover .metric-pill:hover {
    background: #f4ecf8;
    border-color: #d8c3e4;
    transform: translateY(-1px);
}

.metric-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.metric-num.metric-completed,
.metric-num.metric-published {
    color: #2e7d32;
}

.metric-num.metric-drafts {
    color: #ed6c02;
}

.metric-lbl {
    display: block;
    font-size: 0.72rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.feature-preview-section {
    background: #faf9f8;
    border: 1px solid #ede5de;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.preview-header h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin: 0;
    font-weight: 700;
}

.preview-view-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
}

.preview-view-all:hover {
    text-decoration: underline;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #eae2db;
    border-radius: 6px;
    font-size: 0.88rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.preview-order-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
}

.preview-order-top,
.preview-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.preview-order-top .preview-item-id {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.preview-order-top .preview-item-amount {
    font-weight: 700;
    color: #2e7d32;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.preview-order-bottom .preview-item-title {
    color: #555;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    max-width: none;
}

.preview-order-bottom .preview-item-date {
    font-size: 0.76rem;
    color: #888;
    flex-shrink: 0;
    white-space: nowrap;
}

a.preview-list-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
    background-color: #faf7fd;
    text-decoration: none;
}

a.preview-list-item:hover .preview-item-id {
    text-decoration: underline;
}

.preview-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-item-id {
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.preview-item-title {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.preview-item-slug {
    color: #888;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.preview-item-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.preview-item-amount {
    font-weight: 700;
    color: #2e7d32;
}

.preview-item-date {
    font-size: 0.78rem;
    color: #888;
}

.preview-item-status {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.preview-item-status.status-pub {
    background: #e8f5e9;
    color: #2e7d32;
}

.preview-item-status.status-draft {
    background: #fff3e0;
    color: #e65100;
}

.preview-empty {
    font-size: 0.88rem;
    color: #888;
    text-align: center;
    margin: 1rem 0;
}

.feature-footer-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
}

.feature-btn-main {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.feature-btn-sub {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.preview-list-item,
.preview-view-all,
.feature-footer-actions a,
.feature-footer-actions button {
    position: relative;
    z-index: 2;
}

.admin-quick-links-card {
    background: #ffffff;
    border: 1px solid #e3d8ec;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.quick-links-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b5b95;
    margin-bottom: 0.85rem;
}

.quick-links-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-link-pill {
    background: #fbf9fc;
    border: 1px solid #e3d8ec;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.15s ease;
}

.quick-link-pill:hover {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
}

/* Campaign Builder & Management Styles */
.campaign-url-preview-box {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.campaign-url-preview-box:hover {
    border-color: #c9bed8;
}

.campaign-toggle-btn {
    transition: all 0.15s ease;
}

/* Legal & Policy Pages (Privacy Policy, Terms of Service, Refunds) */
.legal-page {
    background: #fdfaf6;
    min-height: calc(100vh - 320px);
}

.legal-content-container {
    max-width: 840px;
    margin: 2.5rem auto 4.5rem;
    padding: 0 1.5rem;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #eae2f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb, 91, 72, 130), 0.05);
}

.legal-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0eaf5;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #6d6278;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eadef4;
}

.legal-nav-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: #f5f0fa;
    color: var(--primary-purple);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.legal-nav-pill:hover {
    background: var(--primary-purple);
    color: #ffffff;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 1.5rem 1.2rem;
    }
}

/* Partners Page Styling */
.partners-hero {
    background: linear-gradient(135deg, #f5f0fa 0%, #e9dfef 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
}

.partners-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.partners-tagline {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(var(--primary-rgb, 91, 72, 130), 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.partners-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.partners-hero-sub {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0;
}

.partners-container {
    max-width: 960px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
    min-height: 300px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-card {
    flex: 0 1 280px;
    width: 280px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.partner-card:hover,
.partner-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
    border-color: var(--primary-purple);
}

.partner-card img,
.partner-img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.partner-card:hover img,
.partner-card:hover .partner-img {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .partners-container {
        margin: 2rem auto 3.5rem;
        padding: 0 1rem;
    }

    .partners-grid {
        gap: 1.25rem;
    }

    .partner-card {
        flex: 1 1 100%;
        max-width: 320px;
        height: 150px;
        padding: 1.25rem;
    }
}

/* ==========================================================================
   Admin Products & Shipping Weights Management Section
   ========================================================================== */

.admin-products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1 1 280px;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    border: 1px solid #d4c8dd;
    border-radius: 8px;
    font-size: 0.92rem;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(107, 36, 122, 0.15);
}

.filter-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.status-filter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.status-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.admin-status-select {
    padding: 0.45rem 0.85rem;
    border: 1px solid #d4c8dd;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple);
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-status-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(107, 36, 122, 0.15);
}

.filter-pill-btn {
    background: #f4edf7;
    color: #555;
    border: 1px solid #e2d3e9;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill-btn:hover {
    background: #ece0f2;
    color: var(--primary-purple);
}

.filter-pill-btn.is-active {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
}

.admin-products-card {
    background: #ffffff;
    border: 1px solid #e3d8ec;
    border-radius: 0;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 16px rgba(107, 36, 122, 0.05);
    overflow: hidden;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
}

.admin-product-item {
    border-bottom: 1px solid #f0eaf3;
    padding: 0.85rem 1.25rem;
    transition: background-color 0.15s ease;
}

.admin-product-item:last-child {
    border-bottom: none;
}

.admin-product-item:hover {
    background-color: #fdfcfe;
}

.admin-product-item-header {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.admin-product-thumb-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f3f8;
    border: 1px solid #e6dbe9;
    flex-shrink: 0;
}

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

.admin-product-summary {
    flex: 1;
    min-width: 0;
}

.admin-product-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.admin-product-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.admin-product-name a {
    color: inherit;
    text-decoration: none;
}

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

.product-id-badge {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.admin-product-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.badge-weight-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-weight-needed {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.badge-weight-needed[hidden] {
    display: none;
}

.badge-low-stock {
    background: #fff3e0;
    color: #b71c1c;
    border: 1px solid #ffb74d;
    font-weight: 700;
}

.badge-low-stock[hidden] {
    display: none;
}

.admin-products-top-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.admin-products-top-row > .admin-header-card {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 0;
}

.low-stock-alert-card {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.75rem 2rem;
    border-radius: var(--surface-radius);
    border: 2px solid #e65100;
    border-left: 6px solid #c62828;
    background: #fff8e1;
    color: #4e2a00;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.1);
}

.low-stock-alert-card[hidden] {
    display: none;
}

.low-stock-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.low-stock-banner-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.low-stock-banner-icon {
    color: #c62828;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.low-stock-banner-title {
    color: #b71c1c;
    font-size: 1.1rem;
}

.low-stock-banner-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4e2a00;
    max-height: 120px;
    overflow-y: auto;
}

.low-stock-banner-list li + li {
    margin-top: 0.15rem;
}

.low-stock-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.low-stock-banner-btn {
    background: #c62828;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.low-stock-banner-btn:hover,
.low-stock-banner-btn:focus-visible {
    background: #8e0000;
}

.low-stock-banner-close {
    background: transparent;
    border: none;
    color: #6d4c41;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
}

.low-stock-config-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.low-stock-threshold-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #555;
}

.low-stock-threshold-input {
    width: 5.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d5c8e3;
    border-radius: 6px;
    font-size: 0.9rem;
}

.free-offer-form {
    max-width: 720px;
}

.free-offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .admin-products-card {
        padding: 1rem;
    }
}

@media (max-width: 959px) {
    .admin-products-top-row {
        flex-direction: column;
    }

    .low-stock-alert-card {
        padding: 1.25rem 1.5rem;
    }
}

.badge-inactive {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #dcdcdc;
}

.product-variation-count-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    background: #f0edf3;
    padding: 2px 8px;
    border-radius: 12px;
}

.variation-stock-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.3;
    font-weight: 500;
    color: #3e2f5c;
    background: #f3eff8;
    border: 1px solid #e2d9eb;
    padding: 2px 9px;
    border-radius: 12px;
}

.var-stock-item + .var-stock-item::before {
    content: "\00b7";
    margin-right: 0.35rem;
    color: #9c8db5;
}

.var-stock-num {
    font-weight: 700;
    color: #2e7d32;
}

.var-stock-num.is-sold-out {
    color: #c62828;
}

.square-library-link {
    font-size: 0.75rem;
    color: #1565c0;
    text-decoration: none;
    padding: 2px 8px;
    background: #e3f2fd;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.square-library-link:hover {
    background: #bbdefb;
    text-decoration: underline;
}

.admin-product-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Product QR Code Download Block */
.admin-product-qrcode-block {
    display: inline-flex;
    align-items: center;
}

.admin-qrcode-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid #e3dbe7;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-qrcode-btn:hover {
    border-color: var(--primary-purple);
    background: #fbf7fd;
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.qrcode-thumb-frame {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-qrcode-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qrcode-download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 20, 140, 0.78);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 3px;
}

.admin-qrcode-btn:hover .qrcode-download-overlay {
    opacity: 1;
}

.qrcode-btn-text {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    white-space: nowrap;
}

.admin-qrcode-btn:hover .qrcode-btn-text {
    color: var(--primary-purple);
}

.admin-homepage-qrcode-btn {
    align-self: stretch;
    justify-content: center;
    box-sizing: border-box;
}

.btn-toggle-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-toggle-details .chevron-icon {
    transition: transform 0.2s ease;
}

.btn-toggle-details.is-open .chevron-icon {
    transform: rotate(180deg);
}

/* Product Settings Section (Unified Slug & Shipping Weights) */
.admin-product-settings-section {
    margin-top: 0;
    margin-bottom: 1.25rem;
    background: var(--surface-tint, #faf8fc);
    border: 1px solid #ede4f3;
    border-radius: 8px;
    padding: 1rem 1.15rem;
}

.product-setting-group {
    margin-bottom: 0.85rem;
}

.slug-setting-group {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #ede4f3;
}

.status-setting-group {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #ede4f3;
}

.active-toggle-wrapper {
    display: inline-flex;
    align-items: center;
}

.toggle-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
}

.active-toggle-checkbox,
.homepage-toggle-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.active-toggle-text,
.homepage-toggle-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.setting-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.setting-field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    min-width: 70px;
}

.slug-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbbedc;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    max-width: 320px;
    flex: 1 1 200px;
}

.slug-input-wrapper:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(107, 36, 122, 0.15);
}

.slug-prefix {
    padding: 0.35rem 0.5rem;
    background: #f3edf7;
    color: #777;
    font-size: 0.82rem;
    font-weight: 500;
    border-right: 1px solid #cbbedc;
    user-select: none;
}

.slug-input {
    flex: 1;
    min-width: 120px;
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
    border: none;
    outline: none;
    color: #333;
}

.slug-preview-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #666;
}

.slug-preview-label {
    font-weight: 600;
    color: #555;
}

.slug-preview-link {
    color: var(--primary-purple);
    text-decoration: underline;
    word-break: break-all;
}

.product-form-actions,
.weight-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0e6f5;
}

.btn-save-product,
.btn-save-weights {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    min-width: 80px;
}

.btn-save-product.is-loading,
.btn-save-weights.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.variations-weight-table-wrapper {
    overflow-x: auto;
}

.variations-weight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.variations-weight-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    border-bottom: 1px solid #e4d8eb;
}

.variations-weight-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f2e9f7;
    vertical-align: middle;
}

.variations-weight-table tbody tr:last-child td {
    border-bottom: none;
}

.variation-sq-id {
    font-size: 0.8rem;
    background: #f0ebf5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #444;
}

.variation-stock-value {
    font-weight: 700;
    color: #2e7d32;
}

.variation-stock-value.is-sold-out {
    color: #c62828;
}

.variation-stock-untracked {
    font-size: 0.78rem;
    color: #726584;
}

.single-variation-weight-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.single-var-meta {
    font-size: 0.9rem;
    color: #444;
}

.single-var-meta code {
    font-size: 0.8rem;
    background: #f0ebf5;
    padding: 2px 6px;
    border-radius: 4px;
}

.single-var-input-group,
.weight-input-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.weight-field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.weight-input-field {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbbedc;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.weight-input {
    width: 80px;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    border: none;
    text-align: right;
    box-sizing: border-box;
}

.weight-input:focus {
    outline: none;
}

.weight-input-field:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(107, 36, 122, 0.15);
}

.weight-unit-addon {
    padding: 0.35rem 0.5rem;
    background: #f3edf7;
    color: #666;
    font-size: 0.82rem;
    font-weight: 600;
    border-left: 1px solid #cbbedc;
}

.weight-grams-conversion {
    font-size: 0.8rem;
    color: #777;
    min-width: 60px;
}

.weight-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-save-weights {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-save-weights.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.save-status-msg {
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.save-status-msg.is-saving {
    color: #666;
}

.save-status-msg.is-success {
    color: #2e7d32;
}

.save-status-msg.is-error {
    color: #c62828;
}

/* Expandable Full Product Data Panel */
.product-full-data-panel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #dcd0e5;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-data-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
}

.product-data-heading {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-purple);
    font-weight: 700;
    border-bottom: 1px solid #ede3f2;
    padding-bottom: 0.25rem;
}

.product-description-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
    white-space: pre-line;
    text-wrap: pretty;
}

.product-suggested-use,
.product-warnings {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.ingredient-category-title {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
}

.ingredient-items-list {
    margin: 0 0 0.5rem 1.2rem;
    padding: 0;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.45;
}

.product-meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.85rem;
    margin: 0;
}

.product-meta-list dt {
    font-weight: 600;
    color: #666;
}

.product-meta-list dd {
    margin: 0;
    color: #222;
}

.product-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gallery-thumb-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dcd0e5;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(107, 36, 122, 0.85);
    color: #ffffff;
    font-size: 0.6rem;
    text-align: center;
    padding: 1px 0;
    font-weight: 700;
}

@media (max-width: 900px) {
    .product-data-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .admin-product-item-header {
        flex-wrap: wrap;
    }

    .admin-product-top-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .weight-form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* =============================================================================
   Events Page Styles
   ============================================================================= */

.events-page-main {
    min-height: 60vh;
}

.events-hero {
    background: linear-gradient(135deg, var(--accent-green) 0%, #e8f5e8 100%);
    padding: 0.6rem 5%;
    text-align: center;
    border-bottom: 1px solid rgba(var(--primary-rgb, 91, 72, 130), 0.12);
}

.events-hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.events-hero-tagline {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(var(--primary-rgb, 91, 72, 130), 0.12);
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}

.events-hero h1 {
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    color: var(--primary-purple);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.events-hero-sub {
    font-size: 0.95rem;
    color: var(--primary-purple);
    opacity: 0.92;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.events-container {
    max-width: 900px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
}

/* Events Map Section (Regional MA to ME View) */
.events-map-section {
    margin-bottom: 3.5rem;
}

.events-map-intro {
    font-size: 0.98rem;
    color: #555;
    margin: -0.85rem 0 1.5rem;
    line-height: 1.5;
}

.events-map-wrapper {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb, 91, 72, 130), 0.08);
    overflow: hidden;
    position: relative;
}

.events-map {
    width: 100%;
    height: 420px;
    background: #f4ede6;
    z-index: 1;
}

.events-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.95rem;
}

.events-map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #fcf9f7;
    border-top: 1px solid var(--surface-border);
    font-size: 0.85rem;
}

.events-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    border: 1px solid #d4c8db;
    border-radius: 6px;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.events-map-btn:hover {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.events-map-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6a6475;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
}

/* Custom Leaflet Marker Styling */
.vb-custom-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.vb-map-pin {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(61, 42, 69, 0.25));
}

.vb-map-pin:hover {
    transform: scale(1.15) translateY(-3px);
}

/* Custom Leaflet Popup Styling */
.vb-custom-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(61, 42, 69, 0.2);
    border: 1px solid #e7ddec;
    background: var(--white);
}

.vb-custom-popup .leaflet-popup-content {
    margin: 1.1rem 1.25rem 1.1rem;
    line-height: 1.4;
}

.vb-popup-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-purple);
    background: rgba(var(--primary-rgb, 91, 72, 130), 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.45rem;
}

.vb-popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.vb-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 0.85rem;
}

.vb-popup-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.vb-popup-row svg {
    color: var(--primary-purple);
    flex-shrink: 0;
}

.vb-popup-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.65rem;
    border-top: 1px solid #f0e6f2;
}

.vb-popup-btn {
    padding: 0.4rem 0.65rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.vb-popup-btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    flex: 1;
}

.vb-popup-btn-primary:hover {
    background: #47356a;
}

.vb-popup-btn-secondary {
    background: #f4ecf7;
    color: var(--primary-purple);
}

.vb-popup-btn-secondary:hover {
    background: #e9dbef;
}

.event-card-highlighted {
    animation: eventCardPulse 2s ease;
}

@keyframes eventCardPulse {
    0% {
        box-shadow: 0 0 0 5px rgba(var(--primary-rgb, 91, 72, 130), 0.45);
        transform: translateY(-4px);
    }
    70% {
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
    }
    100% {
        box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.08);
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .events-map {
        height: 340px;
    }
    .events-map-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* Upcoming Events Section (Highlighted at top) */
.events-upcoming-section {
    margin-bottom: 3.5rem;
}

.events-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.events-section-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(var(--primary-rgb, 91, 72, 130), 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.events-section-title {
    font-size: 1.5rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin: 0;
}

.events-featured-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Highlighted Event Card */
.event-card-featured {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-left: 5px solid var(--primary-purple);
    border-radius: var(--surface-radius);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
}

.event-card-featured.event-cancelled {
    border-left-color: #d9534f;
    opacity: 0.85;
}

/* Calendar Date Badge */
.event-badge-col {
    padding: 1.75rem 1.25rem 1.75rem 1.75rem;
    display: flex;
    align-items: flex-start;
}

.event-date-badge {
    width: 76px;
    background: linear-gradient(180deg, #f5edf9 0%, #ede0f5 100%);
    border: 1px solid #dfd2ec;
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem 0.25rem 0.4rem;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb, 91, 72, 130), 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.badge-month {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.badge-day {
    font-size: 1.85rem;
    font-weight: 800;
    color: #222;
    line-height: 1.1;
}

.badge-weekday {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #6a6475;
    margin-top: 0.15rem;
}

/* Event Details Column */
.event-details-col {
    flex: 1;
    padding: 1.75rem 1.75rem 1.75rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.event-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
}

.event-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    line-height: 1;
}

.pill-upcoming {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.pill-tentative {
    background: #fef7e0;
    color: #b06000;
    border: 1px solid #feefc3;
}

.pill-cancelled {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.event-date-full,
.event-time-full {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #555;
    font-weight: 600;
}

.event-icon {
    color: var(--primary-purple);
    flex-shrink: 0;
}

.event-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.event-cancelled .event-title {
    text-decoration: line-through;
    color: #777;
}

.event-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.event-map-link {
    font-size: 0.825rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.event-map-link:hover {
    text-decoration: underline;
}

.event-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
    margin-bottom: 1rem;
}

.event-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.event-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

/* Empty State */
.events-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface-tint, #faf8fc);
    border: 1px dashed var(--surface-border);
    border-radius: var(--surface-radius);
}

.events-empty-icon {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.events-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.35rem;
}

.events-empty-desc {
    font-size: 0.95rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Past Events Section (In smaller type beneath) */
.events-past-section {
    margin-top: 4rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 2rem;
}

.events-past-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.events-past-list {
    display: flex;
    flex-direction: column;
}

.past-event-item {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid #f0ecf4;
    font-size: 0.85rem;
    color: #555;
    transition: background-color 0.15s ease;
}

.past-event-item:hover {
    background-color: #faf7fc;
    border-radius: 6px;
}

.past-event-date-col {
    width: 125px;
    flex-shrink: 0;
    padding-right: 1rem;
}

.past-event-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #777;
    display: block;
}

.past-event-main-col {
    flex: 1;
    min-width: 0;
}

.past-event-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.2rem;
    line-height: 1.35;
}

.past-event-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.past-event-icon {
    color: #888;
    vertical-align: -1px;
}

.past-event-description {
    font-size: 0.8rem;
    color: #666;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.past-event-link-wrap {
    margin-top: 0.35rem;
}

.past-event-link {
    font-size: 0.8rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.past-event-link:hover {
    text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 680px) {
    .events-hero {
        padding: 0.5rem 4%;
    }

    .events-hero h1 {
        font-size: 1.4rem;
    }

    .events-hero-sub {
        font-size: 0.875rem;
    }

    .events-container {
        margin: 1.25rem auto 3rem;
        padding: 0 1rem;
    }

    .event-card-featured {
        flex-direction: column;
    }

    .event-badge-col {
        padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    }

    .event-date-badge {
        flex-direction: row;
        width: auto;
        gap: 0.5rem;
        padding: 0.35rem 0.75rem;
    }

    .badge-month,
    .badge-weekday {
        margin: 0;
    }

    .badge-day {
        font-size: 1.2rem;
    }

    .event-details-col {
        padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    }

    .past-event-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .past-event-date-col {
        width: auto;
        padding-right: 0;
    }
}

/* ==========================================================================
   Admin Shipping Costs by Weight & Offers Section
   ========================================================================== */

.admin-shipping-card {
    background: #ffffff;
    border: 1px solid #e3d8ec;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(107, 36, 122, 0.05);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    transition: all 0.2s ease;
}

details.admin-shipping-card summary.admin-shipping-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    outline: none;
}

details.admin-shipping-card summary.admin-shipping-summary::-webkit-details-marker {
    display: none;
}

details.admin-shipping-card summary.admin-shipping-summary::marker {
    display: none;
}

details.admin-shipping-card[open] summary.admin-shipping-summary {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0eaf6;
}

details.admin-shipping-card .shipping-toggle-text-open {
    display: none;
}

details.admin-shipping-card .shipping-toggle-text-closed {
    display: inline;
}

details.admin-shipping-card[open] .shipping-toggle-text-open {
    display: inline;
}

details.admin-shipping-card[open] .shipping-toggle-text-closed {
    display: none;
}

details.admin-shipping-card .shipping-toggle-chevron {
    transition: transform 0.25s ease;
}

details.admin-shipping-card[open] .shipping-toggle-chevron {
    transform: rotate(180deg);
}

.admin-shipping-toggle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.85rem;
    background: #f7f3fa;
    color: var(--primary-purple);
    border: 1px solid #e2d3ec;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

details.admin-shipping-card summary:hover .admin-shipping-toggle-badge,
details.admin-shipping-card summary:focus-visible .admin-shipping-toggle-badge {
    background: #ede3f5;
    border-color: #d1b8e4;
}

details.admin-shipping-card summary:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 4px;
    border-radius: 8px;
}

.admin-shipping-form {
    margin-top: 1.25rem;
}

.shipping-offer-box {
    background: #faf6fd;
    border: 1px solid #eadcf5;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.shipping-offer-toggle-row {
    display: flex;
    align-items: center;
}

.shipping-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #2c2533;
}

.shipping-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.shipping-min-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #dfcde8;
}

.shipping-min-wrapper.is-hidden {
    display: none;
}

.shipping-min-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a3d54;
    margin-bottom: 0.4rem;
}

.shipping-currency-input-wrapper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #c9b4d8;
    border-radius: 6px;
    padding: 0 0.5rem;
    width: 160px;
}

.shipping-currency-input-wrapper .currency-prefix {
    font-weight: 600;
    color: #666;
    margin-right: 0.25rem;
}

.shipping-currency-input {
    border: none !important;
    box-shadow: none !important;
    padding: 0.45rem 0.25rem;
    font-size: 0.95rem;
    width: 100%;
}

.shipping-currency-input:focus {
    outline: none;
}

.shipping-help-text {
    display: block;
    font-size: 0.82rem;
    color: #6a5a75;
    margin-top: 0.4rem;
}

.shipping-levels-section {
    background: #ffffff;
    border: 1px solid #eee4f5;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.shipping-levels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shipping-levels-table-wrapper {
    overflow-x: auto;
}

.shipping-levels-table {
    width: 100%;
    border-collapse: collapse;
}

.shipping-levels-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a6a86;
    border-bottom: 2px solid #ede1f4;
}

.shipping-levels-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f2eaf7;
    vertical-align: middle;
}

.level-index-col {
    width: 110px;
}

.level-badge {
    display: inline-block;
    background: #f0e6f7;
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.tier-input-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tier-input-prefix,
.tier-input-suffix {
    font-weight: 600;
    color: #6b5c77;
    font-size: 0.9rem;
}

.tier-weight-input,
.tier-cost-input {
    width: 110px;
    padding: 0.45rem 0.65rem;
    border: 1px solid #cbbed4;
    border-radius: 6px;
    font-size: 0.92rem;
    background: var(--surface-tint, #faf8fc);
    transition: all 0.2s;
}

.tier-weight-input:focus,
.tier-cost-input:focus {
    background: #ffffff;
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 36, 122, 0.12);
}

.btn-remove-tier {
    background: transparent;
    border: 1px solid #f3d4d4;
    color: #b71c1c;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-tier:hover {
    background: #ffebee;
    border-color: #d32f2f;
}

.shipping-actions-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Checkout shipping badge and package weight styles */
.badge-free-shipping {
    display: inline-block;
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.shipping-reason-hint {
    font-size: 0.8rem;
    color: #2e7d32;
    margin-left: 0.35rem;
}

/* =========================================================================
   Admin Products 3-Tab Interface (Products, Shipping, Storefront)
   ========================================================================= */

.admin-tabs-nav {
    margin: 1.5rem 0 1.75rem;
    border-bottom: 2px solid #ede1f4;
}

.admin-tabs {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #6a587e;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.admin-tab-btn:hover {
    color: var(--primary-purple);
    background-color: #f7f2fb;
}

.admin-tab-btn.is-active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
    background-color: #ffffff;
    font-weight: 700;
}

.admin-tab-btn:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: -2px;
}

.tab-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 0.12rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #ede1f4;
    color: var(--primary-purple);
    border-radius: 12px;
    line-height: 1.2;
}

.admin-tab-btn.is-active .tab-count-badge {
    background: var(--primary-purple);
    color: #ffffff;
}

.admin-tab-panel {
    display: block;
    animation: fadeInAdminTab 0.2s ease;
}

.admin-tab-panel[hidden] {
    display: none !important;
}

@keyframes fadeInAdminTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   Storefront Product Order & Drag-and-Drop Shopping Grid
   ========================================================================= */

.storefront-order-card {
    background: #ffffff;
    border: 1px solid #ede1f4;
    border-radius: var(--surface-radius, 12px);
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 91, 72, 130), 0.04);
    margin-bottom: 2rem;
}

.storefront-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #f0eaf6;
    flex-wrap: wrap;
}

.storefront-order-title-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 720px;
}

.storefront-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7b5ea7, #5b4882);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.storefront-order-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    color: var(--primary-purple);
    margin: 0;
}

.storefront-order-subtitle {
    margin: 0.35rem 0 0;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
}

.storefront-order-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.storefront-sortable-grid {
    position: relative;
    user-select: none;
}

.storefront-sortable-card {
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    border: 1px solid #ede1f4;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.storefront-sortable-card:hover {
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 91, 72, 130), 0.12);
    transform: translateY(-2px);
}

.storefront-sortable-card.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
    transform: scale(0.97);
    border: 2px dashed var(--primary-purple);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb, 91, 72, 130), 0.2);
}

.storefront-sortable-card.is-drop-target {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    box-shadow: 0 0 14px rgba(var(--primary-rgb, 91, 72, 130), 0.25);
}

.storefront-card-reorder-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    background: #f8f4fb;
    border-bottom: 1px solid #ede1f4;
}

.storefront-drag-handle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6a587e;
    cursor: grab;
}

.storefront-sortable-card.is-dragging .storefront-drag-handle {
    cursor: grabbing;
}

.storefront-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary-purple);
    padding: 0.12rem 0.55rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.storefront-move-btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-card-move {
    background: #ffffff;
    border: 1px solid #dcd1e6;
    border-radius: 5px;
    color: #5b4882;
    padding: 0.25rem 0.45rem;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-card-move:hover:not(:disabled) {
    background: var(--primary-purple);
    color: #ffffff;
    border-color: var(--primary-purple);
}

.btn-card-move:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.storefront-card-action-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
}

.storefront-view-preview-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.storefront-view-preview-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   Product Category Checkboxes in Product Edit Panel
   ========================================================================= */

.category-setting-group {
    border-top: 1px solid #ede8e3;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.product-categories-wrapper {
    flex: 1;
    min-width: 240px;
}

.category-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.category-label-col {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    gap: 0.2rem;
}

.category-save-status {
    font-size: 0.785rem;
    min-height: 1.1rem;
    display: block;
    line-height: 1.2;
    padding: 0;
}

.category-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    background: #fbf9f6;
    border: 1px solid #e5dcd2;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.category-checkbox-label:hover {
    background: #f4eee6;
    border-color: #d6c6b7;
}

.category-checkbox-label:has(input:checked) {
    background: #f3ecf8;
    border-color: #baa4d4;
    color: var(--primary-purple);
    font-weight: 600;
}

.category-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-purple);
    cursor: pointer;
    margin: 0;
}

.category-checkbox-name {
    line-height: 1.2;
}

.categories-empty-hint {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    padding-top: 0.25rem;
}

.btn-link-action {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
}

.btn-link-action:hover {
    text-decoration: underline;
}

/* =========================================================================
   Admin Categories Tab Interface
   ========================================================================= */

.admin-categories-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-category-create-card {
    background: #ffffff;
    border: 1px solid #e1d9eb;
    border-radius: var(--surface-radius);
    padding: 1.5rem;
    box-shadow: var(--surface-shadow);
}

.category-create-form .category-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 680px) {
    .category-create-form .category-form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-categories-list-card {
    background: #ffffff;
    border: 1px solid #e1d9eb;
    border-radius: var(--surface-radius);
    padding: 1.5rem;
    box-shadow: var(--surface-shadow);
}

.admin-categories-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.admin-categories-table th,
.admin-categories-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #ede8e3;
    vertical-align: middle;
    text-align: left;
}

.admin-categories-table th {
    background: #fbf9f6;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6a587e;
    border-top: 1px solid #ede8e3;
}

.admin-categories-table tr:hover td {
    background: #faf7fc;
}

.category-cell-name {
    font-size: 0.95rem;
}

.category-public-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.category-public-link:hover,
.category-public-link:focus-visible {
    color: #432a68;
    text-decoration: underline;
}

.category-cell-slug code {
    background: #f3ecf8;
    color: var(--primary-purple);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.category-cell-desc {
    font-size: 0.88rem;
    color: #555;
    min-width: 280px;
    line-height: 1.45;
    word-break: break-word;
}

.category-prod-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 0.18rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: #ede1f4;
    color: var(--primary-purple);
    border-radius: 12px;
}

.cat-actions-view,
.cat-actions-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
}

.btn-xs {
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.btn-outline-danger:hover {
    background: #ffebee;
    border-color: #e57373;
    color: #b71c1c;
}

.cat-edit-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    border: 1px solid #baa4d4;
    border-radius: 4px;
    background: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
}

.cat-edit-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 91, 72, 130), 0.15);
}

textarea.cat-edit-desc {
    min-height: 80px;
    resize: vertical;
    line-height: 1.45;
}

/* ==========================================================================
   Category Page Styles
   ========================================================================== */
.category-page-main {
    min-height: 60vh;
}

.category-header {
    margin-bottom: 2.25rem;
}

.category-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.category-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.885rem;
    color: var(--primary-purple);
    line-height: 1.4;
    margin-bottom: 0;
}

.category-breadcrumb .breadcrumb-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.category-breadcrumb .breadcrumb-link:hover {
    color: var(--primary-dark, #3d2a45);
    text-decoration: underline;
}

.category-breadcrumb .breadcrumb-sep {
    color: rgba(var(--primary-rgb, 91, 72, 130), 0.5);
    font-size: 0.8rem;
    user-select: none;
}

.category-breadcrumb .breadcrumb-current {
    color: #4a3e59;
    font-weight: 600;
}

.category-header-wrap {
    max-width: 780px;
}

.category-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.015em;
}

.category-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #554e60;
    margin: 0 0 1rem 0;
}

.category-meta-count {
    font-size: 0.875rem;
    color: #7a7086;
    font-weight: 500;
}

.category-products-section {
    padding: 2.2rem 1.5rem 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-container {
    width: 100%;
}

.category-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fbf9fd;
    border: 1px dashed #d8cde6;
    border-radius: 16px;
    max-width: 560px;
    margin: 2rem auto;
}

.category-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.category-empty-title {
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.category-empty-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #635b70;
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .category-products-section {
        padding: 1.5rem 1rem 3rem 1rem;
    }

    .category-header {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   Square Catalog & Inventory Sync Modal and Trigger
   ========================================================================== */

.btn-sync-square {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 600;
}

.btn-sync-square,
#btnRunSync {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 600;
}

.square-logo-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.sync-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.sync-spin-icon {
    display: none;
}

.btn-sync-square.is-busy .square-logo-icon,
#btnRunSync.is-busy .square-logo-icon {
    display: none;
}

.btn-sync-square.is-busy .sync-spin-icon,
#btnRunSync.is-busy .sync-spin-icon {
    display: inline-block;
}

.sync-icon.is-spinning {
    animation: squareSyncSpin 0.9s linear infinite;
}

@keyframes squareSyncSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Modern <dialog> styling */
dialog.sync-modal-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 780px;
    width: 92vw;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(35, 20, 60, 0.25);
    margin: auto;
    overflow: hidden;
}

dialog.sync-modal-dialog::backdrop {
    background: rgba(18, 12, 30, 0.6);
    backdrop-filter: blur(3px);
}

.sync-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.sync-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    background: var(--surface-tint, #faf8fc);
    border-bottom: 1px solid var(--surface-border);
}

.sync-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sync-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sync-modal-title {
    font-size: 1.25rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.sync-modal-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0.2rem 0 0 0;
}

.sync-modal-close {
    background: transparent;
    border: none;
    font-size: 1.85rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 0.4rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.sync-modal-close:hover {
    color: #222;
    background: #eee6f5;
}

.sync-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sync-prompt-box {
    padding: 1.25rem 1.5rem;
    background: #fbf9fd;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: #444;
}

.sync-prompt-box p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.sync-prompt-box p:last-child {
    margin-bottom: 0;
}

.sync-prompt-note {
    font-size: 0.85rem;
    color: #666;
}

.sync-loading-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fbf9fd;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sync-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(var(--primary-rgb, 91, 72, 130), 0.2);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: squareSyncSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.sync-loading-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sync-loading-text strong {
    color: var(--primary-purple);
    font-size: 0.95rem;
}

.sync-loading-text span {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sync-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.sync-status-banner.status-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
}

.sync-status-banner.status-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #b71c1c;
}

.sync-status-banner.status-conflict {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #e65100;
}

.sync-status-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.sync-status-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sync-status-text strong {
    font-size: 0.95rem;
}

.sync-status-text span {
    font-size: 0.82rem;
    opacity: 0.9;
}

.sync-output-container {
    border: 1px solid #332d40;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1625;
    margin-top: 0.75rem;
}

.sync-output-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: #252033;
    border-bottom: 1px solid #332d40;
    font-size: 0.8rem;
    color: #e1d9eb;
}

.sync-output-label {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sync-output-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-log-path {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.75rem;
    color: #b2a4c8;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sync-console-output {
    margin: 0;
    padding: 1rem;
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #dcd0ef;
    background: #1a1625;
    max-height: 380px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.sync-console-output::-webkit-scrollbar {
    width: 8px;
}

.sync-console-output::-webkit-scrollbar-thumb {
    background: #443c55;
    border-radius: 4px;
}

.sync-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface-tint, #faf8fc);
    border-top: 1px solid var(--surface-border);
}

.sync-dry-run-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.sync-dry-run-label input {
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.sync-modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 600px) {
    .sync-modal-header {
        padding: 1rem;
    }

    .sync-modal-title {
        font-size: 1.1rem;
    }

    .sync-modal-body {
        padding: 1rem;
    }

    .sync-modal-footer {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
        padding: 1rem;
    }

    .sync-modal-buttons {
        justify-content: flex-end;
    }

    .sync-output-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sync-log-path {
        max-width: 100%;
    }
}

/* ==========================================================================
   Site Skin Selector (/admin/settings)
   ========================================================================== */
.skin-settings-card {
    margin-top: 0;
    padding: 2rem;
}

.skin-settings-title {
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-bottom: 0.4rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.skin-settings-intro {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.skin-settings-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.skin-settings-row .blog-form-label {
    margin-bottom: 0;
    font-weight: 600;
}

.skin-select {
    max-width: 260px;
}

.skin-status {
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 1.25rem;
}

.skin-status.is-ok {
    color: #2e7d32;
}

.skin-status.is-error {
    color: #c62828;
}

.skin-option-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.skin-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    background: var(--surface-tint);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.skin-option.is-active {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--primary-purple);
}

.skin-swatch {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 2px;
}

.skin-swatch-classic {
    background: linear-gradient(135deg, #5b4882 0%, #5b4882 55%, #c1e1c1 55%, #e8f5e8 100%);
}

.skin-swatch-minimal {
    background: linear-gradient(135deg, #111111 0%, #111111 50%, #ffffff 50%, #ffffff 100%);
    box-shadow: inset 0 2px 0 0 #5b4882, inset 0 -2px 0 0 #c1e1c1;
}

.skin-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.4;
}

.skin-option-text strong {
    font-size: 0.96rem;
    color: var(--text-dark);
}


/* ==========================================================================
   Slide-Out Cart Panel
   ========================================================================== */

.cart-panel-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1190;
}

.cart-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    z-index: 1200;
}

.cart-panel.active {
    transform: translateX(0);
    visibility: visible;
}

.cart-panel.is-busy .cart-panel-items {
    opacity: 0.6;
    pointer-events: none;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--surface-border);
}

.cart-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-purple);
}

.cart-panel-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.cart-panel-close:hover,
.cart-panel-close:focus-visible {
    background-color: var(--surface-tint-2);
}

.cart-panel-status {
    margin: 0;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    color: var(--primary-purple);
}

.cart-panel-status:not(:empty) {
    padding-top: 0.75rem;
}

.cart-panel-items {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.25rem;
    overflow-y: auto;
    transition: opacity 0.15s ease;
}

.cart-panel-items[hidden],
.cart-panel-empty[hidden],
.cart-panel-footer[hidden] {
    display: none;
}

.cart-panel-item {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.75rem 1rem 0;
    border-bottom: 1px solid var(--surface-tint-2);
}

.cart-panel-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.cart-panel-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-panel-item-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.3;
}

.cart-panel-item-name:hover {
    color: var(--primary-purple);
}

.cart-panel-item-variation {
    font-size: 0.8rem;
    color: #6b6475;
}

.cart-panel-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.cart-panel-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    overflow: hidden;
}

.cart-panel-step {
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    color: var(--primary-purple);
    cursor: pointer;
}

.cart-panel-step:hover:not(:disabled) {
    background-color: var(--surface-tint-2);
}

.cart-panel-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-panel-qty {
    min-width: 1.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.cart-panel-remove {
    position: absolute;
    top: 0.65rem;
    right: 0;
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: #8a8294;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

.cart-panel-remove:hover,
.cart-panel-remove:focus-visible {
    color: #c9302c;
    background-color: var(--surface-tint-2);
}

.cart-panel-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6475;
}

.cart-panel-footer {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--surface-border);
    background: var(--surface-tint);
}

.cart-panel-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.cart-panel-note {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    color: #6b6475;
}

.cart-panel-view-cart {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.cart-panel-view-cart:hover {
    text-decoration: underline;
}

.cart-panel .cart-panel-continue {
    width: 100%;
    margin: 0;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface-tint);
    border: none;
    cursor: pointer;
}

.cart-panel .cart-panel-continue:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .cart-panel {
        width: 100vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-panel,
    .cart-panel-backdrop {
        transition: none;
    }
}

/* ==========================================================================
   Free Lip Balm Promotion & Checkout Selector
   ========================================================================== */

.promo-announcement-bar {
    background: linear-gradient(90deg, var(--primary-purple-dark, #3e2f5c) 0%, var(--primary-purple, #5b4882) 100%);
    color: var(--white, #ffffff);
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.promo-announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    text-align: center;
}

.promo-announcement-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white, #ffffff);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
}

.promo-announcement-text {
    font-weight: 500;
}

.product-hero-deals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.promo-deal-pill {
    background-color: rgba(244, 240, 250, 0.92);
    border-color: rgba(var(--primary-rgb, 91, 72, 130), 0.28);
}

.deal-gift-icon {
    flex-shrink: 0;
    line-height: 1;
}

.cart-promo-nudge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    background: #f5f2fa;
    border: 1px solid rgba(91, 72, 130, 0.2);
    border-radius: 8px;
    color: var(--text-dark, #2d2638);
    font-size: 0.88rem;
    line-height: 1.4;
}

.cart-promo-icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.promo-setting-box {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: #f9f7fc;
    border: 1px solid #e1d9ee;
    border-radius: 8px;
}

.promo-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0;
}

.promo-toggle-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.22rem;
    flex-shrink: 0;
    transform: scale(1.15);
    accent-color: var(--primary-purple, #5b4882);
}

.promo-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promo-toggle-desc {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: #5b5566;
    line-height: 1.45;
}

.checkout-gift-intro {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    color: #524b60;
}

.checkout-gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 0.75rem;
}

.checkout-gift-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.checkout-gift-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.checkout-gift-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #dfd8eb;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    height: 100%;
    box-sizing: border-box;
}

.checkout-gift-option:hover .checkout-gift-card {
    border-color: rgba(91, 72, 130, 0.55);
}

.checkout-gift-option input[type="radio"]:focus-visible + .checkout-gift-card {
    outline: 2px solid var(--primary-purple, #5b4882);
    outline-offset: 2px;
}

.checkout-gift-option input[type="radio"]:checked + .checkout-gift-card {
    border-color: var(--primary-purple, #5b4882);
    background: #f6f2fc;
    box-shadow: 0 2px 10px rgba(91, 72, 130, 0.14);
}

.checkout-gift-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3eff8;
}

.checkout-gift-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.checkout-gift-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark, #2d2638);
    line-height: 1.28;
    word-break: break-word;
}

.checkout-gift-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2f6b3c;
    background: #e7f5ea;
    border: 1px solid #bfe0c6;
    border-radius: 999px;
}

.checkout-item-free-gift {
    background: #f6fbf7;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
}

.checkout-gift-price {
    color: #2f6b3c;
    font-weight: 700;
}

@media (max-width: 600px) {
    .promo-announcement-bar {
        font-size: 0.82rem;
        padding: 0.4rem 0.75rem;
    }

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

.mobile-shop-all-item,
.dropdown-shop-all-item {
    border-top: 1px solid #ede7f5;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

/* =========================================================================
   Admin Email Subscribers & Bulk Mailer
   ========================================================================= */

.subscribers-gradient {
    background: linear-gradient(135deg, #4b6cb7 0%, #5b4882 100%);
    color: #ffffff;
}

.badge-subscribers {
    background: #eef2ff;
    color: #4338ca;
}

.stat-value-active {
    color: #2e7d32;
}

.stat-value-muted {
    color: #726584;
}

.admin-section-subtext {
    margin: 0.25rem 0 0 0;
    font-size: 0.88rem;
    color: #666;
}

.mailer-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.mode-pill-test {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.mode-pill-live {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.admin-mailer-card {
    margin-bottom: 2rem;
}

.admin-mailer-body {
    padding: 1.5rem;
}

.mailer-status-banner,
.subscriber-action-feedback {
    padding: 0.9rem 1.15rem;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.subscriber-action-feedback {
    margin: 0 1.5rem 1rem 1.5rem;
}

.banner-success {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

.banner-error {
    background-color: #fff0f0;
    border-left: 4px solid #d9534f;
    color: #a94442;
}

.mailer-mode-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.35rem 0;
}

.mailer-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.mailer-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border: 2px solid #e4ddf0;
    border-radius: 10px;
    background-color: #faf8fc;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mailer-mode-option.is-selected {
    border-color: var(--primary-purple, #5b4882);
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(91, 72, 130, 0.08);
}

.mailer-mode-option input[type="radio"] {
    margin-top: 0.22rem;
    accent-color: var(--primary-purple, #5b4882);
}

.mailer-mode-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mailer-mode-title {
    font-weight: 700;
    font-size: 0.96rem;
    color: #2d1f40;
}

.mailer-mode-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.mailer-field-group {
    margin-bottom: 1.25rem;
}

.mailer-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.mailer-field-label {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
    color: #2d1f40;
    margin-bottom: 0.4rem;
}

.mailer-label-row .mailer-field-label {
    margin-bottom: 0;
}

.mailer-input,
.mailer-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d5ceea;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2d1f40;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mailer-textarea {
    line-height: 1.55;
    resize: vertical;
}

.mailer-input:focus,
.mailer-textarea:focus {
    outline: none;
    border-color: var(--primary-purple, #5b4882);
    box-shadow: 0 0 0 3px rgba(91, 72, 130, 0.12);
}

.mailer-field-hint {
    margin: 0.35rem 0 0 0;
    font-size: 0.82rem;
    color: #726584;
}

.mailer-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.05rem;
    border: 1px solid #e4ddf0;
    border-radius: 10px;
    background-color: #faf8fc;
}

.mailer-toggle-text .mailer-field-label {
    margin-bottom: 0.15rem;
    cursor: pointer;
}

.mailer-toggle-text .mailer-field-hint {
    margin-top: 0;
}

.mailer-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.mailer-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mailer-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #cfc5df;
    border-radius: 999px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mailer-switch-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.mailer-switch-input:checked + .mailer-switch-slider {
    background-color: var(--primary-purple, #5b4882);
}

.mailer-switch-input:checked + .mailer-switch-slider::before {
    transform: translateX(20px);
}

.mailer-switch-input:focus-visible + .mailer-switch-slider {
    box-shadow: 0 0 0 3px rgba(91, 72, 130, 0.22);
}

.mailer-preview-panel {
    margin-bottom: 1.25rem;
    border: 1px solid #e4ddf0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

.mailer-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background-color: #f6f2fb;
    border-bottom: 1px solid #e4ddf0;
}

.mailer-preview-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-purple, #5b4882);
}

.mailer-preview-sub {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.mailer-preview-body {
    padding: 0;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #2d1f40;
    background-color: #f7f4fa;
}

.mailer-preview-frame {
    display: block;
    width: 100%;
    min-height: 440px;
    height: 480px;
    border: none;
    background-color: #f7f4fa;
}

.preview-placeholder {
    color: #888;
    font-style: italic;
    margin: 0;
}

.mailer-header-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mailer-draft-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background-color: #f3edf7;
    color: #5b4882;
    border: 1px solid #d5ceea;
}

.mailer-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mailer-save-draft-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.2rem;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
}

.mailer-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
}

.bulk-email-meta-sub {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #726584;
}

.mailer-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background-color: rgba(27, 18, 40, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.mailer-modal-dialog {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e4ddf0;
    box-shadow: 0 18px 42px rgba(27, 18, 40, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mailer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: #faf8fc;
    border-bottom: 1px solid #e4ddf0;
}

.mailer-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d1f40;
}

.mailer-modal-meta {
    margin: 0.25rem 0 0 0;
    font-size: 0.82rem;
    color: #726584;
}

.mailer-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    background-color: #f7f4fa;
}

.mailer-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    background-color: #faf8fc;
    border-top: 1px solid #e4ddf0;
}

.mailer-label-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mailer-hyperlink-dialog {
    max-width: 680px;
}

.mailer-hyperlink-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mailer-hyperlink-modal-body {
    padding: 1.25rem;
    background-color: #ffffff;
}

.hyperlink-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.hyperlink-preview-group {
    margin-bottom: 0;
}

.hyperlink-url-preview {
    padding: 0.7rem 0.9rem;
    background-color: #f8f6fb;
    border: 1px solid #e2d9eb;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.84rem;
    color: #432b68;
    word-break: break-all;
    line-height: 1.45;
}

.mailer-image-dialog {
    max-width: 820px;
}

.mailer-image-modal-body {
    padding: 1.15rem 1.25rem;
    background-color: #ffffff;
}

.image-picker-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.image-picker-search {
    flex: 1 1 auto;
}

.image-picker-folder {
    width: auto;
    min-width: 170px;
    flex-shrink: 0;
}

.image-picker-status {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #726584;
    font-size: 0.92rem;
}

.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    max-height: 330px;
    overflow-y: auto;
    padding: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #ede7f5;
    border-radius: 10px;
    background-color: #faf8fc;
}

.image-picker-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0.45rem;
    border: 2px solid #e4ddf0;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.image-picker-card:hover {
    border-color: #9b84c4;
    transform: translateY(-1px);
}

.image-picker-card.is-selected {
    border-color: var(--primary-purple, #5b4882);
    box-shadow: 0 0 0 3px rgba(91, 72, 130, 0.16);
}

.image-picker-thumb-wrap {
    width: 100%;
    height: 105px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f3eff8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
}

.image-picker-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.image-picker-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.image-picker-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2d1f40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-picker-sub {
    font-size: 0.72rem;
    color: #726584;
}

.image-picker-options {
    padding-top: 0.85rem;
    border-top: 1px solid #eee8f6;
}

.image-picker-option-group {
    margin-bottom: 0.5rem;
}

.subscribers-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background-color: #faf8fc;
    border-bottom: 1px solid #eee8f6;
}

.add-subscriber-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.subscriber-inline-input {
    width: 210px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.subscriber-add-btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
    cursor: pointer;
}

.subscribers-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.subscriber-search-input {
    width: 210px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.subscriber-status-select {
    width: auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.admin-col-actions {
    text-align: right;
}

.subscriber-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
}

.btn-sm-admin {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
}

.admin-empty-title {
    color: var(--primary-purple, #5b4882);
    margin: 0 0 0.5rem 0;
}

.admin-empty-desc {
    color: #666;
    max-width: 460px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mailer-mode-grid,
    .hyperlink-grid-2 {
        grid-template-columns: 1fr;
    }

    .mailer-label-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .subscribers-toolbar,
    .add-subscriber-form,
    .subscribers-filter-group,
    .image-picker-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .subscriber-inline-input,
    .subscriber-search-input,
    .subscriber-status-select,
    .image-picker-folder,
    .subscriber-add-btn,
    .mailer-save-draft-btn,
    .mailer-send-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   Free Shipping Progress Bar (Cart Panel & /cart Page)
   ========================================================================= */

.free-shipping-progress {
    padding: 0.75rem 0.9rem;
    background: #f5f2fa;
    border: 1px solid rgba(91, 72, 130, 0.2);
    border-radius: 8px;
    color: var(--text-dark, #2d2638);
}

.free-shipping-progress-panel {
    margin: 0 1.25rem 0.75rem;
}

.free-shipping-progress-cart {
    margin-bottom: 0.9rem;
}

.free-shipping-progress.is-qualified {
    background: #eef7f0;
    border-color: #bfe0c6;
    color: #214e2a;
}

.free-shipping-progress-text {
    margin: 0 0 0.45rem 0;
    font-size: 0.87rem;
    line-height: 1.35;
}

.free-shipping-progress-bar {
    display: block;
    width: 100%;
    height: 8px;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(91, 72, 130, 0.14);
    appearance: none;
    -webkit-appearance: none;
}

.free-shipping-progress-bar::-webkit-progress-bar {
    background-color: rgba(91, 72, 130, 0.14);
    border-radius: 999px;
}

.free-shipping-progress-bar::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-purple, #5b4882), #8068b0);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.free-shipping-progress-bar::-moz-progress-bar {
    background: linear-gradient(90deg, var(--primary-purple, #5b4882), #8068b0);
    border-radius: 999px;
}

.free-shipping-progress.is-qualified .free-shipping-progress-bar::-webkit-progress-value {
    background: linear-gradient(90deg, #2f6b3c, #448d54);
}

.free-shipping-progress.is-qualified .free-shipping-progress-bar::-moz-progress-bar {
    background: linear-gradient(90deg, #2f6b3c, #448d54);
}

/* =========================================================================
   Admin Etsy Catalog & Product/Variation Picker (/admin/etsy)
   ========================================================================= */

.etsy-gradient {
    background: linear-gradient(135deg, #f1641e, #d94a0f);
    color: #ffffff;
}

.badge-etsy {
    background: rgba(241, 100, 30, 0.12);
    color: #c7480a;
}

.admin-etsy-stats-grid {
    margin-top: 1.25rem;
}

.admin-etsy-alert {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
}

.admin-etsy-alert-success {
    border-left: 4px solid #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}

.admin-etsy-alert-error {
    border-left: 4px solid #d32f2f;
    background: #ffebee;
    color: #b71c1c;
}

.admin-etsy-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 440px;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(25, 18, 40, 0.24);
    animation: etsyToastSlideIn 0.2s ease-out;
}

.admin-etsy-toast-success {
    background: #1b5e20;
    color: #ffffff;
    border: 1px solid #2e7d32;
}

.admin-etsy-toast-error {
    background: #b71c1c;
    color: #ffffff;
    border: 1px solid #d32f2f;
}

.etsy-toast-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.etsy-toast-text {
    flex: 1 1 auto;
    line-height: 1.35;
}

.etsy-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
}

.etsy-toast-close:hover {
    color: #ffffff;
}

.etsy-row-saved-pill {
    display: inline-block;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: #1b5e20;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-etsy-item.is-just-saved {
    animation: etsyRowSavedFlash 2.2s ease-out;
}

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

@keyframes etsyRowSavedFlash {
    0% {
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.55);
        background-color: #e8f5e9;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.etsy-oauth-card {
    margin-bottom: 1.15rem;
    padding: 0.75rem 1.25rem;
}

.etsy-oauth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.etsy-oauth-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.etsy-oauth-title-row h2 {
    margin: 0;
    font-size: 1rem;
}

.etsy-oauth-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.etsy-oauth-details {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ebe6f4;
}

.etsy-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.etsy-status-connected {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.etsy-status-pending {
    background: #fff8e1;
    color: #8d5800;
    border: 1px solid #ffe082;
}

.etsy-oauth-desc {
    margin: 0 0 0.75rem 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.45;
}

.etsy-callback-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: #f8f6fc;
    border: 1px solid #e3ddf0;
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
}

.etsy-callback-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3d66;
}

.etsy-callback-code {
    font-size: 0.82rem;
    color: #2d2638;
    word-break: break-all;
}

.admin-etsy-toolbar {
    margin-bottom: 1.25rem;
}

.admin-etsy-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 1rem 1.25rem;
}

.admin-etsy-item {
    border: 1px solid #e6e1f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-etsy-item:hover {
    border-color: #c9bedf;
    box-shadow: 0 4px 14px rgba(91, 72, 130, 0.08);
}

.admin-etsy-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
}

.admin-etsy-item-info {
    flex: 1 1 45%;
    min-width: 0;
}

.admin-etsy-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.admin-etsy-meta-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.etsy-listing-id-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    background: #fff1eb;
    color: #c7480a;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: monospace;
}

.etsy-state-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.etsy-state-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.etsy-state-inactive {
    background: #f1f1f4;
    color: #666;
}

.etsy-variations-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #f3effb;
    color: #5b4882;
    font-size: 0.75rem;
    font-weight: 600;
}

.etsy-price-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d2638;
}

.etsy-stock-badge {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    background: #f5f2fa;
    color: #392c54;
    font-size: 0.82rem;
}

.etsy-external-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-purple, #5b4882);
    text-decoration: none;
}

.etsy-external-link:hover {
    text-decoration: underline;
}

.admin-etsy-item-title {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.3;
    color: #221c2c;
}

.admin-etsy-submeta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6b6478;
}

.admin-etsy-item.is-linked {
    border-left: 5px solid #2e7d32;
    border-color: #c7e0c9;
    border-left-color: #2e7d32;
}

.admin-etsy-item.is-unlinked {
    border-left: 5px solid #e0a800;
    background: #fffdf8;
}

.admin-etsy-association-panel {
    flex: 0 0 500px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #faf9fd;
    border: 1px solid #e6e0f2;
    border-radius: 8px;
}

.admin-etsy-item.is-linked .admin-etsy-association-panel {
    background: #f3f9f4;
    border-color: #c5e1c7;
}

.admin-etsy-item.is-unlinked .admin-etsy-association-panel {
    background: #fffaf0;
    border: 1px dashed #e2c785;
}

.etsy-assoc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.etsy-assoc-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b4882;
}

.admin-etsy-item.is-linked .etsy-assoc-label {
    color: #1b5e20;
}

.admin-etsy-item.is-unlinked .etsy-assoc-label {
    color: #8a5a00;
}

.etsy-assoc-status-badge {
    display: inline-block;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.assoc-badge-linked {
    background: #2e7d32;
    color: #ffffff;
}

.assoc-badge-unlinked {
    background: #fff0c2;
    color: #7c4d00;
    border: 1px solid #e6c670;
}

.etsy-assoc-body {
    flex: 1 1 0%;
    min-width: 0;
    margin-bottom: 0;
}

.etsy-assoc-linked-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.55rem;
    background: #ffffff;
    border: 1px solid #d2e7d4;
    border-radius: 6px;
}

.etsy-assoc-thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e6e0f0;
    background: #ffffff;
}

.etsy-assoc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etsy-assoc-details {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.4;
}

.etsy-assoc-product-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: #1c1724;
    margin-bottom: 0.25rem;
}

.etsy-assoc-product-link {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--primary-purple, #5b4882);
    text-decoration: none;
}

.etsy-assoc-product-link:hover {
    text-decoration: underline;
}

.etsy-assoc-var-pill {
    display: inline-block;
    padding: 0.14rem 0.5rem;
    border-radius: 4px;
    background: #ece6f8;
    color: #49386b;
    font-size: 0.76rem;
    font-weight: 600;
}

.etsy-assoc-ids {
    font-size: 0.77rem;
    color: #665e75;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.etsy-assoc-stock-compare {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.etsy-stock-pill-local,
.etsy-stock-pill-etsy {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    background: #f2f4f8;
    color: #2d2638;
}

.etsy-stock-pill-local {
    background: #e8f5e9;
    color: #1b5e20;
}

.etsy-stock-pill-untracked,
.etsy-untracked-flag-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    background: #fff3e0;
    color: #9a3412;
    border: 1px solid #fdba74;
    font-weight: 600;
}

.etsy-untracked-flag-badge {
    font-size: 0.74rem;
}

.admin-etsy-item.is-local-untracked {
    border-left-color: #d97706;
}

.etsy-assoc-unlinked-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 240, 194, 0.45);
    border-radius: 6px;
}

.etsy-unlinked-icon {
    color: #9c6200;
    font-size: 0.95rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.etsy-assoc-empty {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #6b4e16;
}

.etsy-assoc-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.etsy-assoc-actions .btn-sm {
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
}

.admin-etsy-details-drawer {
    border-top: 1px solid #ebe6f4;
    background: #fcfbfe;
    padding: 1.1rem 1.35rem;
}

.etsy-details-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.5rem;
}

.etsy-details-col h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5b4882;
}

.etsy-description-box {
    max-height: 240px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
    background: #ffffff;
    border: 1px solid #e6e1f0;
    border-radius: 6px;
    padding: 0.75rem;
}

.etsy-meta-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.75rem;
    margin: 0 0 0.85rem 0;
    font-size: 0.83rem;
}

.etsy-meta-dl dt {
    font-weight: 600;
    color: #554c66;
}

.etsy-meta-dl dd {
    margin: 0;
    color: #221c2c;
}

.etsy-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.etsy-tag-chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f0ecf8;
    color: #4a3b69;
    font-size: 0.76rem;
}

.etsy-material-chip {
    background: #eef6f0;
    color: #285934;
}

.etsy-sku-chip {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 0.76rem;
}

.admin-etsy-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #665e75;
}

/* Modal Product / Variation Picker Dialog */
.etsy-picker-dialog {
    max-width: 780px;
    width: 94vw;
}

.etsy-picker-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 86vh;
}

.etsy-picker-modal-content .sync-modal-header,
.etsy-picker-modal-content .sync-modal-footer {
    flex-shrink: 0;
}

.etsy-picker-modal-content .etsy-picker-modal-header {
    background: #ffffff;
    align-items: flex-start;
}

.etsy-picker-header-text {
    min-width: 0;
}

.etsy-picker-target-banner {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    line-height: 1.35;
}

.etsy-picker-target-product {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
    overflow-wrap: break-word;
}

.etsy-picker-target-variation {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-purple, #5b4882);
}

.etsy-picker-target-listing {
    font-size: 0.84rem;
    font-weight: 600;
    color: #4a4458;
}

.etsy-picker-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 64vh;
    overflow: hidden;
    padding: 1.15rem 1.5rem;
}

.etsy-picker-search-bar {
    flex-shrink: 0;
}

#etsyPickerSearchInput {
    padding: 0.65rem 1rem;
}

.etsy-picker-list {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.etsy-picker-product-group {
    display: block;
    margin-bottom: 0.85rem;
    border: 1px solid #e3ddf0;
    border-radius: 8px;
    background: #ffffff;
}

.etsy-picker-product-group:last-child {
    margin-bottom: 0;
}

.etsy-picker-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: #f8f6fc;
    border-radius: 7px 7px 0 0;
}

.etsy-picker-product-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.etsy-picker-product-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #221c2c;
}

.etsy-picker-product-meta {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #665e75;
}

.etsy-picker-inactive-tag {
    color: #b71c1c;
    font-weight: 600;
}

.etsy-picker-variations-list {
    display: block;
    border-top: 1px solid #ebe6f5;
}

.etsy-picker-variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.1rem 0.65rem 1.5rem;
    border-bottom: 1px solid #f2eff8;
}

.etsy-picker-variation-row:last-child {
    border-bottom: none;
}

.etsy-picker-variation-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.etsy-picker-variation-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #2d2638;
}

.etsy-picker-variation-meta {
    font-size: 0.76rem;
    line-height: 1.4;
    color: #6b6478;
}

.btn-select-local-target {
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-select-local-target.is-current-selection {
    outline: 2px solid #2e7d32;
    outline-offset: 1px;
}

@media (max-width: 900px) {
    .admin-etsy-item-main {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-etsy-association-panel {
        flex: 1 1 auto;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .etsy-details-grid {
        grid-template-columns: 1fr;
    }

    .etsy-picker-product-header,
    .etsy-picker-variation-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================================
   Shop All Toolbar & Grid / List View Toggle (/?show=all)
   ========================================================================= */

.shop-all-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 5% 1.25rem;
}

.shop-all-heading {
    margin: 0;
    font-size: 1.45rem;
    color: var(--primary-purple, #5b4882);
}

.shop-view-toggle {
    display: inline-flex;
    align-items: center;
    background: #f5f2fa;
    border: 1px solid #dfd6ec;
    border-radius: 999px;
    padding: 0.22rem;
    gap: 0.2rem;
}

.shop-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #5b4882;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-view-btn:hover {
    background: rgba(91, 72, 130, 0.08);
}

.shop-view-btn.is-active {
    background: var(--primary-purple, #5b4882);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(91, 72, 130, 0.25);
}

.product-grid.is-list-view {
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

.product-grid.is-list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
}

.product-grid.is-list-view .product-card:hover {
    transform: translateY(-2px);
}

.product-grid.is-list-view .product-card-image-wrap {
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 1 / 1;
}

.product-grid.is-list-view .product-card-content {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.4rem;
}

.product-grid.is-list-view .product-card-body {
    flex: 1 1 0%;
    min-width: 0;
}

.product-grid.is-list-view .product-card-footer {
    flex: 0 0 auto;
    border-top: none;
    padding-top: 0;
    gap: 1.25rem;
}

@media (max-width: 720px) {
    .product-grid.is-list-view .product-card-image-wrap {
        flex: 0 0 110px;
        width: 110px;
    }

    .product-grid.is-list-view .product-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .product-grid.is-list-view .product-card-footer {
        width: 100%;
        justify-content: space-between;
    }
}


/* =========================================================================
   Customer Product Reviews (Site Settings, Submission Page, Product Cards)
   ========================================================================= */

.review-settings-fields {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e7dfd8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-days-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-days-input {
    max-width: 140px;
}

.review-test-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.review-test-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.review-test-input {
    flex: 1 1 240px;
    min-width: 0;
}

.review-test-status {
    font-size: 0.88rem;
    min-height: 1.2em;
    color: #555;
}

.review-test-status.is-ok {
    color: #2e7d32;
    font-weight: 600;
}

.review-test-status.is-error {
    color: #c62828;
    font-weight: 600;
}

.review-page-main {
    background: #fdfaf6;
    padding: 3rem 1.25rem 4.5rem;
    min-height: 60vh;
}

.review-page-container {
    max-width: 680px;
    margin: 0 auto;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e6ddd4;
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 8px 28px rgba(45, 24, 54, 0.06);
}

.review-greeting {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4f7b51;
}

.review-page-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--primary-purple);
}

.review-page-subtitle {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #5e544e;
}

.review-product-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    background: #f8f5f1;
    border: 1px solid #e6ddd4;
    border-radius: 10px;
}

.review-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ddd3c8;
}

.review-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.review-product-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7d726b;
    font-weight: 600;
}

.review-product-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.review-product-name:hover {
    text-decoration: underline;
}

.review-form-error {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #b71c1c;
    border-radius: 6px;
    font-size: 0.92rem;
}

.review-rating-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.review-form-label {
    display: block;
    font-weight: 600;
    color: #3f3632;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required-mark {
    color: #c62828;
}

.review-star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
}

.review-star-picker input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.review-star-picker label {
    font-size: 2rem;
    line-height: 1;
    color: #d6cec6;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.review-star-picker label:hover,
.review-star-picker label:hover ~ label,
.review-star-picker input:checked ~ label {
    color: #e09f2d;
}

.review-star-picker label:hover {
    transform: scale(1.08);
}

.review-text-group {
    margin-bottom: 1.5rem;
}

.review-textarea {
    width: 100%;
    resize: vertical;
}

.review-submit-actions {
    display: flex;
    justify-content: flex-start;
}

.review-status-state {
    text-align: center;
    padding: 1rem 0.5rem;
}

.review-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef7ee;
    border: 1.5px solid #b5d5b5;
    color: #4f7b51;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.review-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.product-reviews-section {
    max-width: 1120px;
    margin: 3.5rem auto 2rem;
    padding: 0 1.25rem;
}

.product-reviews-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e7dfd8;
    padding-bottom: 0.75rem;
}

.product-reviews-title {
    margin: 0;
    font-size: 1.55rem;
    color: var(--primary-purple);
}

.product-reviews-count {
    font-size: 0.92rem;
    color: #6b615b;
    font-weight: 500;
}

.product-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.product-review-card {
    background: #ffffff;
    border: 1px solid #e6ddd4;
    border-radius: 12px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 4px 16px rgba(45, 24, 54, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-review-stars {
    color: #e09f2d;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.product-review-text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #3f3632;
    flex: 1;
}

.product-review-meta {
    font-size: 0.85rem;
    color: #7d726b;
    font-weight: 600;
}

@media (max-width: 640px) {
    .review-card {
        padding: 1.5rem 1.2rem;
    }

    .review-page-title {
        font-size: 1.45rem;
    }

    .review-product-preview {
        align-items: flex-start;
    }
}

/* Variation-level Low Stock Alert Controls */
.var-low-stock-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.var-low-stock-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #3f3632;
    cursor: pointer;
    user-select: none;
}

.var-low-stock-threshold-input {
    width: 68px;
}

.var-low-stock-untracked {
    font-size: 0.82rem;
    color: #8a7f78;
    font-style: italic;
}
