:root {
    --bg: #fcf8ff;
    --bg-secondary: #f5ecfb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --surface-strong: #f7f1fb;
    --text: #1f1630;
    --text-muted: #685b7a;
    --text-soft: #8d84a0;
    --border: rgba(122, 86, 156, 0.14);
    --shadow-soft: 0 18px 50px rgba(63, 23, 110, 0.08);
    --shadow-card: 0 10px 25px rgba(68, 35, 112, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --header-bg: rgba(252, 248, 255, 0.78);
    --success-bg: #e7fff3;
    --success-text: #0f7f4d;
    --danger-bg: #fff0f2;
    --danger-text: #c43050;
}

html[data-theme="dark"] {
    --bg: #140f1f;
    --bg-secondary: #1b132a;
    --surface: rgba(31, 24, 48, 0.88);
    --surface-solid: #1f1830;
    --surface-strong: #221936;
    --text: #f5f0fb;
    --text-muted: #b7afc8;
    --text-soft: #958cab;
    --border: rgba(222, 197, 255, 0.1);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 12px 26px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(20, 15, 31, 0.86);
    --success-bg: rgba(24, 73, 50, 0.25);
    --success-text: #88e0b7;
    --danger-bg: rgba(120, 25, 48, 0.22);
    --danger-text: #ff9eb3;
}

html[data-theme-preset="valentines"] {
    --brand-primary: #e579ae;
    --brand-secondary: #ce79d7;
    --brand-accent: #b84dbd;
}

html[data-theme-preset="newyear"] {
    --brand-primary: #cf7d9e;
    --brand-secondary: #8b7ef0;
    --brand-accent: #5d8ff1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 115, 197, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 22%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
    color: var(--text);
    min-height: 100vh;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-block {
    padding: 72px 0;
}

.page-shell {
    min-height: 60vh;
}

.card-surface,
.feature-card,
.category-card,
.product-card,
.campaign-banner,
.newsletter-panel,
.profile-card,
.mini-stat,
.address-card,
.contact-card,
.success-panel,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.card-surface {
    border-radius: var(--radius-lg);
    padding: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 12px;
}

.text-link {
    color: var(--brand-accent);
    font-weight: 600;
}

.announcement-bar {
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.announcement-inner,
.announcement-copy,
.announcement-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.announcement-inner {
    justify-content: space-between;
    flex-wrap: wrap;
}

.announcement-meta span + span {
    position: relative;
    padding-left: 14px;
}

.announcement-meta span + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-soft);
    transform: translateY(-50%);
}

.site-header {
    padding: 12px 0 18px;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.site-navbar {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    min-height: 74px;
    flex-wrap: nowrap;
}

.brand-lockup {
    flex: 0 0 auto;
}

.brand-lockup img,
.footer-brand img {
    height: 42px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.primary-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 420px;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.primary-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 10px 11px !important;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.93rem;
}

.primary-nav .nav-link.active,
.primary-nav .nav-link:hover {
    color: var(--text);
    background: rgba(217, 115, 197, 0.1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex: 0 1 240px;
    width: min(240px, 100%);
    min-width: 0;
    margin: 0;
}

.header-search input {
    border: 0;
    background: transparent;
    outline: 0;
    color: var(--text);
    width: 100%;
}

.header-search input::placeholder,
.form-control::placeholder,
.newsletter-form input::placeholder {
    color: var(--text-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

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

.icon-circle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.icon-circle i {
    font-size: 1.2rem;
}

.icon-circle:hover,
.social-links a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.dropdown-menu {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
}

.dropdown-item {
    border-radius: 14px;
    color: var(--text-muted);
    padding: 10px 14px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background: rgba(217, 115, 197, 0.12);
    color: var(--text);
}

.theme-switcher-menu {
    min-width: 186px;
    padding: 8px;
}

.theme-choice-grid {
    display: grid;
    gap: 6px;
}

.theme-choice-grid-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    border-radius: 18px;
    background: rgba(217, 115, 197, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.theme-choice {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    border-radius: 14px;
    min-height: 46px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.theme-choice i {
    font-size: 1rem;
    color: var(--brand-accent);
}

.theme-choice span {
    line-height: 1;
}

.theme-choice:hover,
.theme-choice.active {
    background: linear-gradient(135deg, rgba(217, 115, 197, 0.18), rgba(124, 58, 237, 0.18));
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
    color: var(--text);
}

html[data-theme="dark"] .theme-choice-grid-dual {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 8, 22, 0.46);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1040;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 390px);
    height: 100vh;
    padding: 20px 18px 24px;
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transform: translateX(104%);
    transition: transform 0.28s ease;
    z-index: 1045;
    display: grid;
    align-content: start;
    gap: 18px;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-search {
    min-width: 100%;
    margin: 0;
}

.mobile-drawer-nav,
.mobile-drawer-shortcuts,
.mobile-drawer-categories {
    display: grid;
    gap: 10px;
}

.mobile-drawer-nav a,
.mobile-drawer-shortcuts a,
.mobile-drawer-categories a {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.mobile-drawer-nav a.active {
    background: linear-gradient(135deg, rgba(217, 115, 197, 0.14), rgba(124, 58, 237, 0.18));
}

.mobile-drawer-shortcuts a.active,
.mobile-drawer-categories a.active {
    background: linear-gradient(135deg, rgba(217, 115, 197, 0.14), rgba(124, 58, 237, 0.18));
}

.mobile-drawer-shortcuts a,
.mobile-drawer-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-panel {
    display: grid;
    gap: 12px;
}

.mobile-drawer-tools {
    display: grid;
    gap: 10px;
}

.mobile-drawer-tools .btn {
    width: 100%;
}

.icon-count {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    padding: 44px 0 24px;
}

.hero-section h1,
.page-hero h1,
.success-panel h1,
.auth-copy h1,
.product-detail-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-copy,
.page-hero p,
.product-detail-copy,
.feature-card p,
.campaign-banner p,
.contact-card p,
.legal-shell p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 32px;
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(128, 60, 178, 0.22);
}

.btn-outline-primary {
    color: var(--brand-accent);
    border-color: rgba(124, 58, 237, 0.26);
}

.hero-secondary {
    color: var(--text);
    border-color: var(--border);
}

.hero-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-stats div {
    min-width: 148px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border);
}

html[data-theme="dark"] .hero-stats div {
    background: rgba(255, 255, 255, 0.03);
}

.hero-stats strong {
    display: block;
    font-size: 1.45rem;
}

.hero-stats span {
    color: var(--text-muted);
}

.hero-metrics-wrap {
    padding-top: 12px;
}

.hero-metrics-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .hero-metrics-panel {
    background: rgba(255, 255, 255, 0.03);
}

.hero-metrics-panel > div {
    min-width: 148px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--border);
}

html[data-theme="dark"] .hero-metrics-panel > div {
    background: rgba(255, 255, 255, 0.03);
}

.hero-metrics-panel strong {
    display: block;
    font-size: 1.45rem;
}

.hero-metrics-panel span {
    color: var(--text-muted);
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

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

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 22, 48, 0.64), rgba(31, 22, 48, 0.14) 58%, transparent);
}

.hero-slide-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(28px, 7vw, 78px);
    z-index: 2;
    width: min(560px, calc(100% - 48px));
    color: #fff;
}

.hero-slide-content h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.02;
}

.hero-slide-content p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 22px;
}

.hero-slider-dots {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-slider-dots button.active {
    width: 28px;
    background: #fff;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: end;
}

.hero-stage-panel {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: var(--surface);
}

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

.hero-stage-panel-primary {
    min-height: 520px;
}

.hero-stage-panel-secondary {
    min-height: 420px;
    margin-bottom: 28px;
}

.section-header p {
    color: var(--text-muted);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.category-grid,
.product-grid,
.social-placeholder-grid,
.story-grid,
.address-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

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

.category-card {
    display: grid;
    gap: 18px;
    border-radius: var(--radius-lg);
    padding: 18px;
}

.category-card img {
    aspect-ratio: 1.15 / 1;
    object-fit: cover;
    border-radius: 20px;
}

.category-card h3,
.feature-card h3,
.order-summary-card h3,
.contact-card h3,
.detail-panel h3,
.auth-form h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.category-card span {
    color: var(--brand-accent);
    font-weight: 600;
}

.muted-section {
    background: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .muted-section {
    background: rgba(255, 255, 255, 0.02);
}

.campaign-banner {
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    background:
        radial-gradient(circle at top left, rgba(217, 115, 197, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 30%),
        var(--surface);
}

.feature-card {
    border-radius: 24px;
    padding: 28px;
    height: 100%;
}

.feature-card i,
.support-channel i,
.success-panel > i {
    font-size: 1.7rem;
    color: var(--brand-accent);
    margin-bottom: 16px;
}

.product-card {
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.product-media {
    position: relative;
}

.product-media img {
    aspect-ratio: 0.88 / 1;
    width: 100%;
    object-fit: cover;
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #36234f;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-discount {
    background: #fff2f5;
    color: #d34467;
}

.badge-featured {
    background: #f5eafe;
    color: #7e41d3;
}

.badge-new {
    background: #e8fff6;
    color: #0f8b5d;
}

.badge-out {
    background: #f2f2f4;
    color: #60606f;
}

.product-media .wishlist-trigger {
    position: absolute;
    right: 16px;
    top: 16px;
}

.wishlist-form-card {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
}

.wishlist-trigger.active,
.wishlist-detail-form .btn.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    border-color: transparent;
}

.product-card-body {
    padding: 22px;
}

.product-title {
    font-size: 1.08rem;
    line-height: 1.5;
    min-height: 52px;
    margin-bottom: 10px;
}

.product-copy {
    color: var(--text-muted);
    font-size: 0.92rem;
    min-height: 52px;
}

.price-row,
.detail-price-box {
    display: flex;
    gap: 14px;
    align-items: center;
}

.price-current {
    font-weight: 700;
    font-size: 1.24rem;
    color: var(--text);
}

.price-old {
    color: var(--text-soft);
    text-decoration: line-through;
}

.page-hero {
    padding: 56px 0 18px;
}

.compact-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.catalog-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.sidebar-card ul,
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li + li,
.site-footer li + li {
    margin-top: 12px;
}

.category-list a,
.site-footer a {
    color: var(--text-muted);
}

.category-list a:hover,
.site-footer a:hover {
    color: var(--text);
}

.pagination-shell {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.pagination-shell a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pagination-shell a.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
}

.table {
    color: var(--text);
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: var(--border);
    color: inherit;
}

.product-gallery,
.product-buy-box,
.cart-table,
.auth-form,
.profile-card,
.success-panel,
.contact-card,
.legal-shell {
    border-radius: var(--radius-xl);
}

.product-main-image {
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.product-main-image img {
    aspect-ratio: 0.92 / 1;
    object-fit: cover;
    width: 100%;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow: auto;
}

.thumb-button {
    width: 90px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 6px;
    background: var(--surface);
}

.thumb-button img {
    border-radius: 12px;
}

.product-detail-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.detail-price-box {
    margin: 28px 0;
}

.product-social-proof {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.94rem;
}

.wishlist-detail-form {
    margin-bottom: 20px;
}

.product-buy-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.option-group + .option-group {
    margin-top: 22px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.option-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-chip {
    border: 1px solid var(--border);
    background: var(--surface-solid);
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--text);
}

.option-chip.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    border-color: transparent;
}

.variant-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.trust-strip div {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.trust-strip i {
    font-size: 1.2rem;
    color: var(--brand-accent);
}

.product-accordion {
    margin-top: 28px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

.accordion-button {
    background: transparent;
    color: var(--text);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--brand-accent);
}

.cart-item-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-row img {
    width: 110px;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
}

.cart-item-copy h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.cart-item-copy p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-actions {
    min-width: 130px;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.order-summary-card,
.sticky-summary {
    position: sticky;
    top: 110px;
}

.summary-line,
.summary-product {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.coupon-form {
    margin-bottom: 14px;
}

.coupon-inline {
    display: flex;
    gap: 10px;
}

.summary-product small {
    display: block;
    color: var(--text-soft);
}

.admin-form-grid {
    display: grid;
    gap: 14px;
}

.inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    background: var(--surface-solid);
}

.total-line {
    font-size: 1.06rem;
    border-bottom: 0;
    padding-top: 16px;
}

.form-card .form-control,
.form-card .form-select,
.auth-form .form-control,
.auth-form .form-select,
.catalog-filters .form-control,
.catalog-filters .form-select,
.newsletter-form input {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    min-height: 50px;
}

html[data-theme="dark"] .form-card .form-control,
html[data-theme="dark"] .form-card .form-select,
html[data-theme="dark"] .auth-form .form-control,
html[data-theme="dark"] .auth-form .form-select,
html[data-theme="dark"] .catalog-filters .form-control,
html[data-theme="dark"] .catalog-filters .form-select,
html[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.03);
}

.payment-options {
    display: grid;
    gap: 14px;
}

.payment-option {
    display: block;
}

.payment-option input {
    display: none;
}

.payment-option span {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
}

.payment-option input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(217, 115, 197, 0.16), rgba(124, 58, 237, 0.18));
    color: var(--brand-accent);
}

.auth-shell {
    padding: 64px 0 90px;
}

.auth-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.single-auth-card {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.auth-copy {
    padding-right: 30px;
}

.auth-form {
    padding: 32px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 0.92rem;
}

.account-nav {
    display: grid;
    gap: 10px;
}

.account-nav a {
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--text-muted);
}

.account-nav a.active,
.account-nav a:hover {
    background: linear-gradient(135deg, rgba(217, 115, 197, 0.14), rgba(124, 58, 237, 0.14));
    color: var(--text);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
}

.stats-grid {
    display: grid;
    gap: 16px;
}

.mini-stat {
    border-radius: 22px;
    padding: 24px;
}

.mini-stat strong {
    display: block;
    font-size: 1.6rem;
}

.mini-stat span {
    color: var(--text-muted);
}

.support-channel {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.support-channel:last-child {
    border-bottom: 0;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-panel {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid var(--border);
}

html[data-theme="dark"] .detail-panel {
    background: rgba(255, 255, 255, 0.02);
}

.address-card {
    border-radius: 22px;
    padding: 24px;
}

.address-card-compact,
.saved-address-item {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid var(--border);
}

html[data-theme="dark"] .address-card-compact,
html[data-theme="dark"] .saved-address-item {
    background: rgba(255, 255, 255, 0.03);
}

.address-card-head,
.saved-address-item,
.saved-address-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.address-card-head p,
.saved-address-copy p,
.saved-address-copy span {
    margin: 0;
    color: var(--text-muted);
}

.saved-address-list,
.address-checks {
    display: grid;
    gap: 14px;
}

.saved-address-item {
    padding: 18px 20px;
    border-radius: 22px;
}

.saved-address-item.active {
    border-color: rgba(124, 58, 237, 0.22);
    box-shadow: 0 18px 34px rgba(92, 51, 156, 0.12);
}

.saved-address-copy {
    display: grid;
    gap: 8px;
}

.saved-address-actions {
    min-width: 132px;
    flex-direction: column;
    align-items: stretch;
}

.error-shell {
    min-height: 58vh;
    display: grid;
    place-items: center;
}

.error-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 44px;
    text-align: center;
}

.error-card p {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
}

.error-code {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--brand-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.empty-state {
    text-align: center;
    border-radius: 28px;
    padding: 42px;
}

.empty-state i {
    font-size: 2.3rem;
    color: var(--brand-accent);
    margin-bottom: 16px;
}

.success-panel {
    padding: 44px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.success-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 34px;
}

.success-meta div {
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid var(--border);
}

html[data-theme="dark"] .success-meta div {
    background: rgba(255, 255, 255, 0.03);
}

.success-meta span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.faq-accordion {
    overflow: hidden;
}

.rich-content p + p,
.rich-content ul + p,
.rich-content p + ul {
    margin-top: 16px;
}

.maintenance-shell {
    display: grid;
    align-items: center;
}

.maintenance-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
    border-radius: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.maintenance-logo {
    height: 54px;
    margin: 0 auto 22px;
}

.maintenance-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.maintenance-meta div {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.36);
}

html[data-theme="dark"] .maintenance-meta div {
    background: rgba(255, 255, 255, 0.03);
}

.maintenance-meta strong {
    display: block;
    margin-bottom: 8px;
}

.maintenance-meta span {
    color: var(--text-muted);
}

.site-footer {
    padding: 24px 0 44px;
}

.newsletter-panel {
    border-radius: 30px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    gap: 26px;
    align-items: center;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    min-width: min(100%, 460px);
}

.newsletter-form input {
    flex: 1;
    padding: 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 36px 0;
}

.footer-grid p,
.footer-bottom p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.flash-stack {
    margin-top: 20px;
}

.alert {
    border-radius: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.floating-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1055;
    padding: 14px 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    box-shadow: var(--shadow-soft);
}

.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(217, 115, 197, 0.18), transparent 25%),
        rgba(249, 245, 255, 0.82);
    backdrop-filter: blur(10px);
    z-index: 1100;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

html[data-theme="dark"] .page-loader {
    background:
        radial-gradient(circle at top left, rgba(217, 115, 197, 0.18), transparent 25%),
        rgba(16, 12, 24, 0.82);
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.55);
    border-top-color: var(--brand-accent);
    border-bottom-color: var(--brand-primary);
    animation: floryn-spin 0.9s linear infinite;
    box-shadow: 0 0 0 14px rgba(217, 115, 197, 0.08);
}

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

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

    .auth-card,
    .dashboard-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        min-width: 100%;
        margin: 18px 0;
        width: 100%;
        flex-basis: auto;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 44px;
    }

    .hero-metrics-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stage {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-slider {
        min-height: 480px;
    }

    .hero-stage-panel-secondary {
        margin-bottom: 0;
    }

    .category-grid,
    .product-grid,
    .social-placeholder-grid,
    .story-grid,
    .address-grid,
    .success-meta,
    .order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .campaign-banner,
    .newsletter-panel,
    .catalog-toolbar,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .sticky-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .section-block {
        padding: 56px 0;
    }

    .card-surface,
    .auth-form,
    .success-panel,
    .campaign-banner,
    .newsletter-panel {
        padding: 22px;
    }

    .hero-stage-panel,
    .hero-stage-panel-primary,
    .hero-stage-panel-secondary {
        min-height: 300px;
        margin-bottom: 0;
    }

    .hero-slider {
        min-height: 420px;
        border-radius: 26px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgba(31, 22, 48, 0.14), rgba(31, 22, 48, 0.78));
    }

    .category-grid,
    .product-grid,
    .compact-grid,
    .social-placeholder-grid,
    .story-grid,
    .address-grid,
    .success-meta,
    .order-detail-grid,
    .maintenance-meta,
    .trust-strip,
    .hero-metrics-panel {
        grid-template-columns: 1fr;
    }

    .saved-address-item,
    .address-card-head {
        flex-direction: column;
    }

    .saved-address-actions {
        width: 100%;
        min-width: 0;
    }

    .cart-item-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .cart-item-actions {
        width: 100%;
        justify-items: stretch;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
    }

    .announcement-meta {
        display: none;
    }

    .newsletter-form,
    .catalog-filters,
    .hero-actions,
    .coupon-inline {
        width: 100%;
        flex-direction: column;
    }

    .btn,
    .catalog-filters .form-control,
    .catalog-filters .form-select,
    .newsletter-form input {
        width: 100%;
    }
}
