.detail-breadcrumb__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Base Layout */

@font-face {
    font-family: 'SF Pro Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('SF Pro Text'), local('SFProText-Regular');
}

@font-face {
    font-family: 'SF Pro Text';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('SF Pro Text Medium'), local('SFProText-Medium');
}

@font-face {
    font-family: 'SF Pro Text';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('SF Pro Text Semibold'), local('SFProText-Semibold');
}

@font-face {
    font-family: 'SF Pro Text';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('SF Pro Text Bold'), local('SFProText-Bold');
}

:root {
    --bg: #f4f6fb;
    --bg-alt: #ffffff;
    --panel-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.06);
    --sidebar-bg: linear-gradient(180deg, #1f2b55 0%, #1a2446 100%);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --accent: #7357f9;
    --accent-strong: #5b46d4;
    --accent-soft: rgba(115, 87, 249, 0.14);
    --accent-muted: rgba(115, 87, 249, 0.08);
    --text: #1c2340;
    --text-muted: #707a9a;
    --text-inverse: #ffffff;
    --success: #3acb8e;
    --danger: #f97373;
    --warning: #fbbf24;
    --radius: 18px;
    --shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

.dashboard-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    transition: grid-template-columns 0.28s ease;
}

.dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.main-area {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    min-height: 100vh;
}

.main-area > .content,
.main-area > .detail-content {
    flex: 1;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 36px;
    background: var(--panel-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.topbar__icon-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(115, 87, 249, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.topbar__icon-button:hover {
    background: rgba(115, 87, 249, 0.18);
    border-color: rgba(115, 87, 249, 0.24);
    transform: translateY(-1px);
}

.topbar__icon-button--menu {
    background: rgba(115, 87, 249, 0.1);
    border-color: rgba(115, 87, 249, 0.14);
}

.topbar__icon-button--menu span,
.topbar__icon-button--menu span::before,
.topbar__icon-button--menu span::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #4c5a82;
    transition: background 0.2s ease;
}

.topbar__icon-button--menu span {
    position: relative;
}

.topbar__icon-button--menu span::before,
.topbar__icon-button--menu span::after {
    content: '';
    position: absolute;
    left: 0;
}

.topbar__icon-button--menu span::before {
    top: -6px;
}

.topbar__icon-button--menu span::after {
    top: 6px;
}

.topbar__icon {
    width: 20px;
    height: 20px;
    background: #4c5a82;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.topbar__icon--search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 7.5-7.5 7.5 7.5 0 0 1-7.5 7.5Z' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.topbar__icon--moon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z' fill='%23000'/%3E%3C/svg%3E"); }
.topbar__icon--cart { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h15l-1.5 9h-12zm1-3h-2l-1 2v2h2l1-2h12.5l.5-2H7Zm.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z' fill='%23000'/%3E%3C/svg%3E"); }
.topbar__icon--bell { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2 2 0 0 0 2-2H10a2 2 0 0 0 2 2Zm6-6V11a6 6 0 1 0-12 0v5l-2 2v1h16v-1l-2-2Z' fill='%23000'/%3E%3C/svg%3E"); }
.topbar__icon--grid { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h5v5H4zm0 7h5v5H4zm0 7h5v4H4zm7-14h5v5h-5zm0 7h5v5h-5zm0 7h5v4h-5zm7-14h5v5h-5zm0 7h5v5h-5zm0 7h5v4h-5z' fill='%23000'/%3E%3C/svg%3E"); }
.topbar__icon--expand { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v2H6v4H4V4Zm14 0v6h-2V6h-4V4h6ZM4 14h2v4h4v2H4v-6Zm14 4v-4h2v6h-6v-2h4Z' fill='%23000'/%3E%3C/svg%3E"); }
.topbar__icon--settings { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm8.94-4.06-1.64-.27a6 6 0 0 0-.52-1.24l.97-1.38-1.35-1.35-1.38.97a6 6 0 0 0-1.24-.52l-.27-1.64h-1.9l-.27 1.64a6 6 0 0 0-1.24.52l-1.38-.97-1.35 1.35.97 1.38a6 6 0 0 0-.52 1.24l-1.64.27v1.9l1.64.27a6 6 0 0 0 .52 1.24l-.97 1.38 1.35 1.35 1.38-.97a6 6 0 0 0 1.24.52l.27 1.64h1.9l.27-1.64a6 6 0 0 0 1.24-.52l1.38.97 1.35-1.35-.97-1.38a6 6 0 0 0 .52-1.24l1.64-.27v-1.9Z' fill='%23000'/%3E%3C/svg%3E"); }

.topbar__icon-button--lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: rgba(115, 87, 249, 0.08);
    border-color: rgba(115, 87, 249, 0.12);
    color: #4c5a82;
    font-weight: 600;
}

.topbar__flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at 35% 35%, #fff 0, #fff 45%, transparent 46%), linear-gradient(135deg, #f87171 0%, #f97373 50%, #f87171 100%);
    position: relative;
}

.topbar__flag::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    clip-path: polygon(0 0, 65% 0, 65% 100%, 0 100%);
    border-radius: 50%;
}

.topbar__lang-text {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.topbar__icon-button--badge {
    position: relative;
}

.topbar__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7357f9, #5b46d4);
    color: #fff;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
    padding: 0 4px;
    font-weight: 600;
}

.topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.topbar__spacer {
    flex: 1;
}

.topbar__profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 16px;
    background: rgba(115, 87, 249, 0.06);
    border: 1px solid rgba(115, 87, 249, 0.1);
}

.topbar__avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
}

.topbar__profile-info {
    display: grid;
    gap: 2px;
}

.topbar__profile-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #2a3354;
}

.topbar__profile-role {
    font-size: 0.78rem;
    color: rgba(76, 90, 130, 0.7);
}

.topbar-search {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin-left: 20px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fbff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    min-width: 320px;
    flex: 1 1 420px;
    max-width: 560px;
}

.topbar-search__select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #2a3354;
    font-size: 0.92rem;
    appearance: none;
    padding-right: 18px;
}

.topbar-search__select:focus {
    outline: none;
}

.topbar-search__divider {
    width: 1px;
    height: 24px;
    background: rgba(15, 23, 42, 0.08);
}

.topbar-search__input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #2a3354;
    min-width: 0;
    flex: 1 1 180px;
}

.topbar-search__input::placeholder {
    color: rgba(76, 90, 130, 0.6);
}

.topbar-search__input:focus {
    outline: none;
}

.topbar-search__submit {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(115, 87, 249, 0.22);
}
/* Sidebar */
.sidebar {
    background: #1f2a3a;
    color: rgba(236, 242, 255, 0.92);
    min-height: 100vh;
    padding: 28px 26px;
    position: relative;
    display: flex;
    transform: translateX(0);
    opacity: 1;
    transition: padding 0.28s ease, width 0.28s ease, opacity 0.3s ease, transform 0.3s ease;
    border-right: 1px solid rgba(66, 78, 105, 0.6);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.sidebar::before,
.sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sidebar::before {
    background: linear-gradient(200deg, rgba(79, 107, 255, 0.16) 0%, transparent 55%);
}

.sidebar::after {
    background: linear-gradient(30deg, rgba(33, 45, 72, 0.6) 0%, transparent 55%);
}

.sidebar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
}

.sidebar__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 2px 0;
}

.sidebar__title {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f8ff;
    position: relative;
    white-space: nowrap;
}

.sidebar__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: rgba(130, 155, 255, 0.9);
}

.sidebar__search {
    transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.sidebar-search {
    display: none;
}

.sidebar__menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.sidebar__menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sidebar-menu__item {
    position: relative;
}

.sidebar-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 13px;
    background: rgba(33, 45, 72, 0.65);
    border: 1px solid rgba(86, 104, 149, 0.18);
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border 0.2s ease, transform 0.18s ease;
}

.sidebar-menu__link:hover {
    background: rgba(63, 83, 132, 0.65);
    border-color: rgba(120, 143, 196, 0.32);
    transform: translateX(4px);
}

.sidebar-menu__item.is-active .sidebar-menu__link {
    background: rgba(96, 123, 196, 0.35);
    border-color: rgba(149, 176, 237, 0.54);
}

.sidebar-menu__link::after {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: rgba(173, 187, 224, 0.7);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='%23000'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background 0.2s ease;
}

.sidebar-menu__link:hover::after,
.sidebar-menu__item.is-active .sidebar-menu__link::after {
    background: rgba(206, 217, 255, 0.92);
}

.sidebar-menu__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(148, 173, 227, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(198, 212, 247, 0.86);
    letter-spacing: 0.02em;
    flex: 0 0 auto;
}

.sidebar-menu__item.is-active .sidebar-menu__icon {
    background: rgba(198, 212, 247, 0.24);
    color: #ffffff;
}

.sidebar-menu__text-group {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-menu__text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sidebar-menu__hint {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(188, 205, 240, 0.5);
}

.dashboard-shell.is-sidebar-collapsed .sidebar,
.detail-shell.is-sidebar-collapsed .sidebar {
    padding: 0;
    opacity: 0;
    transform: translateX(-48px);
    pointer-events: none;
}

.dashboard-shell.is-sidebar-collapsed .sidebar__inner,
.detail-shell.is-sidebar-collapsed .sidebar__inner {
    opacity: 0;
    visibility: hidden;
}

/* Main Content */
.content {
    padding: 15px;
    display: grid;
    gap: 36px;
    background: var(--bg);
}

.content--detail {
    display: block;
    gap: 0;
}

.content__header,
.landing-hero {
    display: grid;
    gap: 24px;
    background: var(--panel-bg);
    border-radius: calc(var(--radius) + 6px);
    padding: 32px 36px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.content__header::before,
.landing-hero::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 87, 249, 0.18), transparent 65%);
    top: -70px;
    right: -40px;
}

.content__header::after,
.landing-hero::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 16px solid rgba(115, 87, 249, 0.16);
    top: 28px;
    right: 84px;
    filter: blur(0.4px);
}

.content__header > *,
.landing-hero > * {
    position: relative;
    z-index: 1;
}

.main-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.main-header__welcome {
    display: grid;
    gap: 10px;
}

.main-header__greeting {
    font-size: 0.95rem;
    color: var(--accent-strong);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content__title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
}

.content__title::after {
    content: '';
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #9b8bff);
    display: block;
    margin-top: 12px;
}

.main-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--accent-muted);
    border-radius: 999px;
    border: 1px solid rgba(115, 87, 249, 0.2);
    color: var(--accent-strong);
    font-weight: 500;
}

.main-header__meta-item,
.main-header__meta-location {
    position: relative;
    padding-left: 18px;
    white-space: nowrap;
}

.main-header__meta-item::before,
.main-header__meta-location::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-strong);
    opacity: 0.75;
}

.main-header__meta-item:first-child,
.main-header__meta-location:first-child {
    padding-left: 0;
}

.main-header__meta-item:first-child::before,
.main-header__meta-location:first-child::before {
    display: none;
}

.content__subtitle {
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
    font-size: 1rem;
}

.main-header__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
}

.main-header__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    flex: 1 1 520px;
    padding: 18px 20px;
    background: var(--panel-bg);
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow);
}

.main-header__field {
    display: grid;
    gap: 8px;
}

.main-header__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(112, 122, 152, 0.9);
}

.main-header__select,
.main-header__field input[type="search"] {
    width: 100%;
    border-radius: calc(var(--radius) - 8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px 16px;
    background: #f9fbff;
    color: var(--text);
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.main-header__select:focus,
.main-header__field input[type="search"]:focus {
    outline: none;
    border-color: rgba(115, 87, 249, 0.6);
    box-shadow: 0 0 0 3px rgba(115, 87, 249, 0.18);
    background: #ffffff;
}

.main-header__field--search {
    position: relative;
}

.main-header__field--search input[type="search"] {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%237357f9' stroke-width='2'/%3E%3Cpath d='M16.65 16.65L21 21' stroke='%237357f9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.main-header__submit {
    align-self: end;
    justify-content: center;
    min-height: 44px;
}

.main-header__action {
    align-self: stretch;
    padding: 14px 24px;
    font-size: 0.92rem;
}

.button--secondary {
    background: var(--accent-soft);
    border-color: rgba(115, 87, 249, 0.3);
    color: var(--accent-strong);
    box-shadow: 0 12px 24px rgba(115, 87, 249, 0.14);
}

.button--secondary:hover {
    background: rgba(115, 87, 249, 0.22);
}

.landing-hero {
    gap: 36px;
    padding: 48px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.landing-hero::before {
    background: radial-gradient(circle at 20% 0%, rgba(115, 87, 249, 0.16), transparent 70%);
}

.landing-hero::after {
    border-color: rgba(115, 87, 249, 0.1);
    transform: rotate(8deg);
}

.landing-hero__body {
    display: grid;
    gap: 20px;
    max-width: 680px;
}

.landing-hero__eyebrow {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
    font-weight: 600;
}

.landing-hero__title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.landing-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.landing-hero__cta {
    min-width: 200px;
    justify-content: center;
}

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

.landing-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: calc(var(--radius) - 10px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(115, 87, 249, 0.16);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.landing-highlight__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.landing-highlight__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(28, 35, 64, 0.86);
}

.landing-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.landing-stat {
    flex: 1 1 160px;
    min-width: 140px;
    padding: 16px 18px;
    border-radius: calc(var(--radius) - 8px);
    background: linear-gradient(145deg, rgba(115, 87, 249, 0.1), rgba(115, 87, 249, 0.04));
    border: 1px solid rgba(115, 87, 249, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 6px;
}

.landing-stat__number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.landing-stat__label {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(28, 35, 64, 0.62);
}

.landing-hero__panel {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 251, 0.85));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    padding: 28px 26px;
    display: grid;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.landing-hero__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(115, 87, 249, 0.18), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.landing-hero__panel-header,
.landing-hero__form {
    position: relative;
    z-index: 1;
}

.landing-hero__panel-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(112, 122, 152, 0.85);
}

.landing-hero__panel-title {
    margin: 6px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.landing-hero__panel-copy {
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(28, 35, 64, 0.7);
}

.landing-hero__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.landing-hero__field {
    display: grid;
    gap: 8px;
}

.landing-hero__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(112, 122, 152, 0.9);
}

.landing-hero__select,
.landing-hero__field input[type="search"] {
    width: 100%;
    border-radius: calc(var(--radius) - 8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px 16px;
    background: #f9fbff;
    color: var(--text);
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-hero__select:focus,
.landing-hero__field input[type="search"]:focus {
    outline: none;
    border-color: rgba(115, 87, 249, 0.6);
    box-shadow: 0 0 0 3px rgba(115, 87, 249, 0.18);
    background: #ffffff;
}

.landing-hero__field--search input[type="search"] {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%237357f9' stroke-width='2'/%3E%3Cpath d='M16.65 16.65L21 21' stroke='%237357f9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.landing-hero__submit {
    align-self: end;
    min-height: 48px;
}

.category-icon-grid {
    display: grid;
    gap: 24px;
    background: transparent;
}

.category-icon-grid__header {
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.category-icon-grid__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.category-icon-grid__subtitle {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.category-icon-grid__items {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-icon-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: calc(var(--radius) - 4px);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 251, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 110% -10%, rgba(115, 87, 249, 0.2), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-icon-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    border-color: rgba(115, 87, 249, 0.22);
}

.category-icon-box:hover::before {
    opacity: 1;
}

.category-icon-box__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(115, 87, 249, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-icon-box__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(115, 87, 249, 0.18));
}

.category-icon-box__glyph {
    position: relative;
    width: 28px;
    height: 28px;
    background: var(--category-accent);
    mask-image: var(--category-icon);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: var(--category-icon);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.category-icon-box__body {
    display: grid;
    gap: 6px;
}

.category-icon-box__title {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.category-icon-box__subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(112, 122, 152, 0.7);
}

.category-icon-box__chevron {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(115, 87, 249, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon-box__chevron::before,
.category-icon-box__chevron::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: var(--category-accent);
    border-radius: 999px;
    transform-origin: center;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -5px;
}

.category-icon-box__chevron::before {
    transform: rotate(45deg);
}

.category-icon-box__chevron::after {
    transform: rotate(-45deg);
}

.comparison-showcase {
    display: grid;
    gap: 24px;
}

.comparison-showcase__header {
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.comparison-showcase__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.comparison-showcase__subtitle {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.comparison-showcase__items {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.comparison-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: calc(var(--radius) - 6px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 251, 0.92));
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 42px rgba(15, 23, 42, 0.16);
    border-color: rgba(115, 87, 249, 0.28);
}

.comparison-card__body {
    display: grid;
    gap: 16px;
}

.comparison-card__info {
    display: grid;
    gap: 12px;
    text-align: left;
}

.comparison-card__title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--text);
}

.comparison-card__summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.comparison-card__extra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(115, 87, 249, 0.12);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.comparison-card__images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.comparison-card__product {
    margin: 0;
    flex: 1 1 0;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    min-width: 0;
}

.comparison-card__image-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.comparison-card__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 70%);
}

.comparison-card__image-wrapper img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.comparison-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

.comparison-card__vs {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(115, 87, 249, 0.18), rgba(115, 87, 249, 0.32));
    border: 1px solid rgba(115, 87, 249, 0.28);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(115, 87, 249, 0.24);
    margin-inline: -6px;
}

.comparison-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(112, 122, 152, 0.9);
    flex-wrap: wrap;
}

.comparison-card__category {
    color: var(--accent-strong);
    font-weight: 600;
}

.comparison-card__hits {
    color: rgba(112, 122, 152, 0.75);
}

.comparison-card__count,
.comparison-card__updated {
    color: rgba(112, 122, 152, 0.75);
}

.empty-state--standalone {
    display: grid;
    place-items: center;
    padding: 60px 24px;
    border-radius: calc(var(--radius) - 4px);
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background: var(--panel-bg);
    color: var(--text-muted);
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
        align-items: stretch;
    }

    .landing-hero__panel {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
    }

    .landing-hero__body {
        grid-column: 1 / span 1;
    }
}

@media (max-width: 992px) {
    .landing-hero {
        padding: 32px 28px;
    }

    .landing-hero__title {
        font-size: 2.1rem;
    }

    .landing-hero__highlights {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-hero {
        padding: 28px 22px;
    }

    .landing-hero__title {
        font-size: 1.9rem;
    }

    .landing-hero__actions {
        flex-direction: column;
    }

    .landing-hero__cta {
        width: 100%;
    }

    .landing-hero__highlights {
        grid-template-columns: 1fr;
    }

    .landing-hero__stats {
        flex-direction: column;
    }

    .category-icon-grid__items {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .category-icon-box {
        padding: 18px 20px;
        grid-template-columns: auto 1fr auto;
    }

    .category-icon-box__icon {
        width: 54px;
        height: 54px;
    }

    .comparison-card__images {
        flex-direction: column;
    }

    .comparison-card__vs {
        order: -1;
    }

    .comparison-showcase__items {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

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

@media (min-width: 1600px) {
    .comparison-showcase__items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease, background 0.18s ease;
}

.button--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(115, 87, 249, 0.26);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.94rem;
}

.button--ghost {
    border-color: rgba(115, 87, 249, 0.26);
    color: var(--accent-strong);
    background: rgba(115, 87, 249, 0.08);
    box-shadow: 0 10px 18px rgba(115, 87, 249, 0.12);
}

.button--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(115, 87, 249, 0.16);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.product-card {
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #ffffff 85%, rgba(239, 234, 255, 0.8) 100%);
    border: 1px solid rgba(108, 93, 211, 0.14);
    padding: 22px;
    display: grid;
    gap: 16px;
    box-shadow: 0 24px 44px rgba(86, 79, 190, 0.18);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 93, 211, 0.45);
    box-shadow: 0 32px 62px rgba(72, 58, 186, 0.28);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(239, 234, 255, 0.75);
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 93, 211, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text);
}

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.product-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-card__compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(115, 87, 249, 0.22);
    background: rgba(115, 87, 249, 0.1);
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.product-card__compare-button:hover {
    transform: translateY(-1px);
    background: rgba(115, 87, 249, 0.18);
    border-color: rgba(115, 87, 249, 0.34);
    box-shadow: 0 8px 18px rgba(115, 87, 249, 0.22);
}

.product-card__compare-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.product-card__compare-button--active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: rgba(115, 87, 249, 0.32);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(115, 87, 249, 0.32);
}

.product-card__compare-button--active:hover {
    background: linear-gradient(135deg, var(--accent-strong), #4b39c8);
    box-shadow: 0 16px 28px rgba(75, 57, 200, 0.36);
}

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 24px;
    background: var(--panel-bg);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.18);
    z-index: 140;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.compare-bar--visible {
    transform: translateY(0);
    opacity: 1;
}

.compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.compare-bar__controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    position: relative;
}

.compare-bar__status {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
}

.compare-bar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.compare-bar__search::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    background: rgba(115, 87, 249, 0.42);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 7.5-7.5 7.5 7.5 0 0 1-7.5 7.5Z' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.compare-bar__search-input {
    width: 100%;
    min-width: 200px;
    padding: 8px 12px 8px 36px;
    border-radius: 12px;
    border: 1px solid rgba(115, 87, 249, 0.22);
    background: rgba(115, 87, 249, 0.06);
    font-size: 0.88rem;
    color: var(--text);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.compare-bar__search-input::placeholder {
    color: rgba(76, 90, 130, 0.6);
}

.compare-bar__search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(115, 87, 249, 0.16);
    background: #ffffff;
}

.compare-bar__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid rgba(115, 87, 249, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    padding: 8px;
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 150;
}

.compare-bar__search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.compare-bar__search-item:hover {
    background: rgba(115, 87, 249, 0.08);
    transform: translateY(-1px);
}

.compare-bar__search-item:active {
    transform: translateY(0);
}

.compare-bar__search-item--empty {
    cursor: default;
    color: var(--text-muted);
    font-size: 0.85rem;
    justify-content: center;
    padding: 12px 10px;
}

.compare-bar__search-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(115, 87, 249, 0.12);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.compare-bar__search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-bar__search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.compare-bar__search-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-bar__search-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.compare-bar__items-container {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-bar__items {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    overflow-x: auto;
    padding-right: 16px;
}

.compare-bar__empty {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.compare-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(115, 87, 249, 0.1);
    border: 1px solid rgba(115, 87, 249, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-width: 0;
}

.compare-bar__thumb {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(115, 87, 249, 0.18);
    position: relative;
    display: grid;
    place-items: center;
}

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

.compare-bar__thumb-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-bar__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.compare-bar__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.compare-bar__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-bar__remove {
    background: transparent;
    border: none;
    color: rgba(15, 23, 42, 0.45);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.compare-bar__remove:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.compare-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-bar__clear {
    border-color: rgba(115, 87, 249, 0.24);
    color: var(--accent-strong);
}

.compare-bar__clear:hover {
    border-color: rgba(115, 87, 249, 0.36);
    color: var(--accent);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    z-index: 120;
    padding: 32px;
}

.modal--open {
    display: flex;
}

.modal__dialog {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    width: min(900px, 92vw);
    max-height: 90vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.22);
}

.modal__header,
.modal__footer {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal__footer {
    border-bottom: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.modal__body {
    padding: 24px 28px;
    overflow: auto;
}

.modal__title {
    margin: 0;
    font-size: 1.4rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.attribute-card {
    background: var(--bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
}

.attribute-card__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.attribute-card__value {
    font-size: 1rem;
}

.table-scroll {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
}

.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--text);
    --compare-first-col-width: 220px;
}

.compare-table__col--label {
    width: var(--compare-first-col-width);
}

.compare-table__col--product {
    width: calc((100% - var(--compare-first-col-width)) / var(--compare-columns, 2));
}

.compare-table th,
.compare-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 16px;
    vertical-align: top;
}

.compare-table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.compare-table__product {
    font-weight: 600;
    font-size: 1rem;
}

.empty-state {
    padding: 48px;
    border-radius: calc(var(--radius) + 8px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed rgba(108, 93, 211, 0.28);
    text-align: center;
    color: var(--text-muted);
    box-shadow: 0 22px 48px rgba(80, 56, 198, 0.16);
}

.detail-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
    transition: grid-template-columns 0.28s ease;
}

.detail-shell.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.detail-sidebar {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #f3f4f6;
    padding: 42px 30px;
    display: grid;
    gap: 24px;
}

.detail-sidebar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(191, 219, 254, 0.9);
}

.detail-sidebar__meta {
    display: grid;
    gap: 6px;
}

.detail-sidebar__label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.5);
}

.detail-sidebar__value {
    font-size: 1rem;
}

.detail-sidebar__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid transparent;
}

.detail-sidebar__badge--success {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.32);
    color: #bbf7d0;
}

.detail-sidebar__badge--muted {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.32);
    color: rgba(226, 232, 240, 0.8);
}

.detail-content {
    padding: 48px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 450px);
    gap: 44px;
    align-items: start;
}

.detail-content__primary {
    display: grid;
    gap: 44px;
}

.detail-content__aside {
    position: sticky;
    top: 32px;
}

.detail-breadcrumb {
    border-radius: 16px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
}

.detail-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.detail-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-breadcrumb__item::after {
    content: '›';
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
}

.detail-breadcrumb__item:last-child::after {
    content: none;
}

.detail-breadcrumb__item--current .detail-breadcrumb__label {
    color: var(--text);
    font-weight: 600;
}

.detail-breadcrumb__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-breadcrumb__link:hover {
    color: var(--primary);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

.detail-hero__media img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.18);
}

.detail-hero__info {
    display: grid;
    gap: 20px;
}

.detail-hero__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.detail-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.detail-hero__badge--muted {
    background: rgba(148, 163, 184, 0.15);
    color: rgba(30, 41, 59, 0.8);
}

.detail-hero__title {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text);
}

.detail-hero__subtitle {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
}

.detail-hero__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.detail-hero__stat {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.detail-hero__stat dt {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-hero__stat dd {
    margin: 6px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.detail-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.detail-related__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.detail-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.detail-related__item {
    display: block;
}

.detail-related {
    background: rgba(248, 250, 252, 0.92);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 22px;
    display: grid;
    gap: 16px;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.detail-related__link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.detail-related__link:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.detail-related__thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-related__body {
    display: grid;
    gap: 6px;
}

.detail-related__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.detail-related__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.detail-rating {
    display: grid;
    gap: 28px;
    padding: 32px 36px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.detail-rating__header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.detail-rating__subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.detail-rating__actions {
    display: flex;
    align-items: center;
}

.detail-rating__grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
}

.detail-rating__summary {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-rating__score {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.detail-rating__score small {
    font-size: 1rem;
    color: var(--text-muted);
}

.detail-rating__stars {
    display: inline-flex;
    gap: 6px;
}

.detail-rating__count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-rating__distribution {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.detail-rating__distribution li {
    display: grid;
    grid-template-columns: 52px 1fr 38px;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-rating__progress {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.detail-rating__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.detail-rating__progress-value {
    font-weight: 600;
    color: var(--text);
}

.detail-rating__reviews {
    background: rgba(248, 250, 252, 0.95);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 24px;
    max-height: 420px;
    overflow-y: auto;
}

.detail-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.detail-review-list__empty {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
}

.detail-review {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.1);
    display: grid;
    gap: 10px;
}

.detail-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-review__name {
    font-weight: 600;
    color: var(--text);
}

.detail-review__stars {
    display: inline-flex;
    gap: 4px;
}

.detail-review__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.detail-review__comment {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.detail-review-form {
    display: none;
}

.detail-review-form--visible {
    display: block;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 28px 44px rgba(15, 23, 42, 0.1);
    padding: 32px;
}

.detail-review-form__body {
    display: grid;
    gap: 20px;
}

.detail-review-form__body h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text);
}

.detail-review-form__group {
    display: grid;
    gap: 10px;
}

.detail-review-form__group label {
    font-weight: 600;
    color: var(--text);
}

.detail-review-form__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 10px;
}

.detail-review-form__stars label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.8);
    transition: color 0.2s ease;
}

.detail-review-form__stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.detail-review-form__stars label:hover,
.detail-review-form__stars input:checked + span,
.detail-review-form__stars label:hover ~ label span {
    color: #facc15;
}

.detail-review-form__stars label span {
    font-size: 1.1rem;
}

.detail-review-form__group input[type="text"],
.detail-review-form__group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(248, 250, 252, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-review-form__group input[type="text"]:focus,
.detail-review-form__group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.detail-review-form__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.detail-review-form__message {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-review-form__message--error {
    color: #dc2626;
}

.detail-review-form__message--success {
    color: #059669;
}

.detail-rating__star {
    font-size: 1.4rem;
    color: rgba(148, 163, 184, 0.6);
    transition: color 0.2s ease;
}

.detail-rating__star--active {
    color: #fbbf24;
}

.detail-attributes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.detail-attribute-card {
    background: var(--bg-alt);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 16px 18px;
    display: grid;
    gap: 8px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.detail-attribute-card__label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-attribute-card__value {
    font-size: 1.05rem;
    color: var(--text);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-section-title {
    font-size: 1.6rem;
    margin: 0 0 18px;
    color: var(--text);
}

.detail-groups {
    display: grid;
    gap: 28px;
}

.detail-group {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 24px 26px;
    display: grid;
    gap: 18px;
}

.detail-group__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.detail-group__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-shell {
        grid-template-columns: 100%;
    }

    .detail-shell {
        grid-template-columns: 100%;
    }

    .sidebar {
        position: static;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 50;
        grid-template-rows: auto auto;
    }

    .content {
        padding: 32px 24px;
    }

    .main-header__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .main-header__form {
        width: 100%;
    }

    .main-header__action {
        width: 100%;
        justify-content: center;
    }
}

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

    .detail-content__aside {
        position: static;
    }
}

@media (max-width: 920px) {
    .detail-content__primary {
        gap: 36px;
    }

    .detail-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .main-header__top {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .main-header__meta {
        align-self: flex-start;
    }
}

@media (max-width: 680px) {
    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

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

@media (max-width: 920px) {
    .detail-hero {
        grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    }

    .detail-hero__related {
        grid-column: span 2;
    }
}

@media (max-width: 680px) {
    .detail-related__link {
        grid-template-columns: 60px 1fr;
    }

    .detail-hero__media img {
        border-radius: 18px;
    }
}

.compare-page {
    margin: 0 auto;
    padding: 56px 24px 72px;
    display: grid;
    gap: 48px;
}

.compare-page__header {
    text-align: center;
    display: grid;
    gap: 18px;
}

.compare-page__breadcrumb {
    display: flex;
    justify-content: center;
}

.compare-page__breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.compare-page__breadcrumb li {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.compare-page__breadcrumb li:not(.is-current)::after {
    content: '›';
    opacity: 0.6;
}

.compare-page__breadcrumb a {
    color: inherit;
    transition: color 0.2s ease;
}

.compare-page__breadcrumb a:hover {
    color: var(--accent);
}

.compare-page__breadcrumb .is-current span {
    color: var(--text);
    font-weight: 600;
}

.compare-page__title {
    font-size: 2.4rem;
    margin: 0;
    color: var(--text);
}

.compare-page__subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1rem;
}

.compare-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.compare-product-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.compare-product-card__media {
    background: rgba(15, 23, 42, 0.04);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-product-card__media img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.compare-product-card__body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.compare-product-card__body h2 {
    margin: 0;
    font-size: 1.3rem;
}

.compare-product-card__body p {
    margin: 0;
    font-size: 0.96rem;
    color: var(--text-muted);
}

.compare-table-section {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 32px;
    display: grid;
    gap: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.compare-table__product-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    align-items: end;
}

.compare-table__product-card {
    margin: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.compare-table__product-thumb {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
    padding: 10px;
}

.compare-table__product-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.compare-section-title {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text);
}

.compare-page__footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 760px;
    margin: 0 auto;
}

/* --- Enhanced Comparison Layout --- */
.detail-content--comparison {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    margin-top: 32px;
}

.compare-hero {
    border-radius: 24px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.38), rgba(226, 232, 240, 0));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 24px;
}

.compare-hero__stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.compare-hero__stats .detail-hero__stat {
    min-width: 160px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.compare-hero__stats dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
    margin-bottom: 6px;
}

.compare-hero__stats dd {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.compare-group-nav {
    border-radius: 20px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.compare-group-nav__list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.compare-group-nav__list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.14);
}

.compare-group-nav__list a:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.16);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.18);
}

.compare-product-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(37, 99, 235, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.compare-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.22);
}

.compare-product-card:hover::after {
    opacity: 1;
}

.compare-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.compare-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compare-table-section tbody tr:hover {
    background: rgba(226, 232, 240, 0.45);
}

.compare-table-section td,
.compare-table-section th {
    transition: background 0.18s ease;
}

.compare-sidebar {
    display: grid;
    gap: 28px;
}

.compare-sidebar section {
    border-radius: 20px;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 18px;
}

.compare-vote__summary {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.compare-vote__chart {
    position: relative;
    width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: conic-gradient(#d1d5db 0deg 360deg);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.compare-vote__chart::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.compare-vote__chart-visual {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    z-index: 0;
}

.compare-vote__chart-total {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.compare-vote__legend,
.compare-vote__legend-item,
.compare-vote__legend-swatch,
.compare-vote__legend-name,
.compare-vote__legend-thumb,
.compare-vote__legend-info,
.compare-vote__legend-value,
.compare-vote__legend-count {
    display: none;
}

.compare-vote__legend-item--leading {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(191, 219, 254, 0.36);
}

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

.compare-vote__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.96);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.compare-vote__option--leading {
    border-color: rgba(59, 130, 246, 0.48);
    box-shadow: 0 20px 36px rgba(59, 130, 246, 0.18);
}

.compare-vote__option--selected {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(219, 234, 254, 0.55);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.16);
}

.compare-vote__option:hover {
    border-color: rgba(29, 78, 216, 0.45);
    background: rgba(226, 232, 240, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.compare-vote__option input {
    accent-color: var(--accent);
    transform: scale(1.15);
    margin-right: 12px;
}

.compare-vote__option-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.compare-vote__option-thumb {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.compare-vote__option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.compare-vote__option-name {
    font-weight: 600;
    color: var(--text);
}

.compare-vote__option-score {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.compare-vote__message,
.compare-reviews__message {
    min-height: 1.2rem;
    font-size: 0.85rem;
    margin: 0;
}

.compare-vote__message--error,
.compare-reviews__message--error {
    color: #dc2626;
}

.compare-vote__message--success,
.compare-reviews__message--success {
    color: #047857;
}

.compare-reviews__form .form-group {
    display: grid;
    gap: 8px;
}

.compare-reviews__form label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.compare-reviews__form input,
.compare-reviews__form textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 12px 14px;
    font: inherit;
    background: rgba(255, 255, 255, 0.96);
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.compare-reviews__form input:focus,
.compare-reviews__form textarea:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

.compare-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.compare-reviews--primary {
    grid-column: 1 / -1;
}

.compare-reviews__item {
    border-radius: 14px;
    padding: 16px 18px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 10px;
}

.compare-reviews__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.compare-reviews__item-name {
    font-weight: 600;
}

.compare-reviews__item-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.compare-reviews__item-comment {
    margin: 0;
    line-height: 1.5;
    color: var(--text);
}

.compare-recent__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.compare-recent__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.compare-recent__item:last-child {
    border-bottom: none;
}

.compare-recent__item a {
    font-weight: 600;
    color: var(--accent-strong);
    transition: color 0.18s ease;
}

.compare-recent__item a:hover {
    color: #2563eb;
}

.compare-recent__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.compare-recent__empty,
.compare-reviews__empty {
    color: var(--text-muted);
    font-size: 0.86rem;
}

@media (max-width: 1280px) {
    .detail-content--comparison {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    }
}

@media (max-width: 1024px) {
    .detail-content {
        padding: 32px 24px;
        grid-template-columns: 1fr;
    }

    .detail-content__aside {
        position: static;
    }

    .compare-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .compare-hero {
        padding: 24px;
    }

    .compare-group-nav__list {
        gap: 8px;
    }

    .compare-group-nav__list a {
        padding: 10px 14px;
    }

    .compare-product-card__media img {
        max-height: 200px;
    }

    .compare-sidebar {
        gap: 18px;
    }

    .compare-sidebar section {
        padding: 20px;
    }

    .compare-table {
        min-width: 560px;
    }
}

/* -----------------------------------------------------------
   Product detail redesign
----------------------------------------------------------- */

body.product-detail-body {
    background-color: #f4f6fb;
    font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #1f2933;
}

.product-detail-shell {

    margin: 0 auto;

}

.pd-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.pd-top__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-top__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #6b7280;
}

.pd-top__title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pd-top__meta {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.pd-top__breadcrumb ol {
    margin: 0;
    padding: 10px 18px;
    list-style: none;
    display: inline-flex;
    gap: 6px;
    background-color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    color: #6b7280;
}

.pd-top__breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-top__breadcrumb li + li::before {
    content: '›';
    color: #c4c7d0;
    font-weight: 600;
}

.pd-top__breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.pd-hero-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.pd-hero-card--comparison {
    display: grid;
    gap: 24px;
}

.pd-hero-card--comparison .compare-hero {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 18px;
}

.pd-hero-card--comparison .compare-hero__stats {
    gap: 18px;
}

.pd-hero-card--comparison .compare-hero__stats .detail-hero__stat {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.45), rgba(226, 232, 240, 0.18));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.pd-hero-card--comparison .detail-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    color: #4b5563;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr) minmax(260px, 400px);
    gap: 32px;
}

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pd-similar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.15);
}

.pd-similar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-similar__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.pd-similar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.pd-similar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-similar__item {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(237, 242, 247, 0.8));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-similar__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.pd-similar__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(148, 163, 184, 0.2);
}

.pd-similar__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pd-similar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-similar__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-similar__name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-similar__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.pd-similar__rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 600;
    font-size: 12px;
}

.pd-similar__rating-badge::before {
    content: '★';
    color: #059669;
    font-size: 12px;
}

.pd-similar__rating-count {
    color: #94a3b8;
    font-weight: 500;
}

.pd-similar__meta-text {
    color: #94a3b8;
    font-weight: 500;
}

.pd-similar__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 110px;
}

.pd-similar__price-current {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.pd-similar__price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.pd-similar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-similar__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.25);
}


.pd-gallery__frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffeef4, #f7f9ff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pd-gallery__frame img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
    mix-blend-mode: multiply;
}

.pd-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-summary__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-summary__product {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.pd-summary__subtitle {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pd-rating {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(45, 212, 191, 0.08));
    border-radius: 16px;
}

.pd-rating__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pd-rating__badge {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.pd-rating__stars {
    display: inline-flex;
    gap: 2px;
}

.pd-rating__star {
    font-size: 16px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.pd-rating__star::before {
    content: '★';
}

.pd-rating__star--active {
    color: #fbbf24;
}

.pd-rating__star--preview {
    color: #f59e0b;
}

.pd-rating__meta {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.pd-rating__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.pd-rating__fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pd-rating__legend {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pd-rating__options {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.pd-rating__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-rating__label {
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.pd-rating__label-icon {
    pointer-events: none;
}

.pd-rating__label:hover,
.pd-rating__label:focus {
    color: #f59e0b;
}

.pd-rating__label:hover ~ .pd-rating__label,
.pd-rating__label:focus ~ .pd-rating__label {
    color: #fcd34d;
}

.pd-rating__input:checked ~ .pd-rating__label,
.pd-rating__input:checked ~ .pd-rating__label ~ .pd-rating__label {
    color: #fbbf24;
}

.pd-rating__submit {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #f9fafb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-rating__submit:hover,
.pd-rating__submit:focus {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.pd-rating__submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pd-rating__feedback {
    margin: 0;
    font-size: 13px;
    color: #065f46;
}

.pd-rating__feedback--error {
    color: #b91c1c;
}

@media (min-width: 768px) {
    .pd-rating__form {
        justify-content: space-between;
    }
}

.pd-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pd-compare-button {
    padding: 10px 24px;
    font-size: 15px;
}

.pd-pricing {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-pricing__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c3aed;
}

.pd-pricing__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
}

.pd-pricing__price {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
}

.pd-pricing__mrp {
    font-size: 15px;
    color: #9ca3af;
}

.pd-pricing__mrp del {
    color: inherit;
}

.pd-pricing__discount {
    font-size: 14px;
    font-weight: 600;
    color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.pd-summary__description h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111827;
}

.pd-summary__description p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.pd-summary__specs {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.pd-summary__spec-group {
    display: grid;
    gap: 12px;
}

.pd-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.pd-highlight-card {
    background-color: #f9fafb;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.6);
}

.pd-highlight-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.pd-highlight-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

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

.pd-benefit-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(16, 185, 129, 0.12));
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-benefit-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.18);
    color: #2563eb;
    font-size: 18px;
}

.pd-benefit-card__icon--shield::before {
    content: '🛡️';
}

.pd-benefit-card__icon--refresh::before {
    content: '🔄';
}

.pd-benefit-card__icon--hand::before {
    content: '🤝';
}

.pd-benefit-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.pd-benefit-card p {
    margin: 0;
    font-size: 13px;
    color: #444f5a;
}

.pd-sidebar {
    background-color: #f9fafc;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.pd-sidebar__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-sidebar__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-sidebar__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.pd-sidebar__header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.pd-compare__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
        overflow-y: auto;
    scrollbar-width: thin;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.78) 100%);
    border: 1px solid rgba(203, 213, 225, 0.7);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.2);
}

.pd-compare__list::-webkit-scrollbar {
    width: 6px;
}

.pd-compare__list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.pd-compare__item {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-compare__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(148, 163, 184, 0.25);
}

.pd-compare__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    text-align: center;
    color: inherit;
    padding: 14px;
}

.pd-compare__thumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    position: relative;
    padding: 0 12px;
}

.pd-compare__thumb {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: center;
    margin: 0;
}

.pd-compare__thumb img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef2ff;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pd-compare__divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.pd-compare__footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.pd-compare__value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.pd-compare__extra {
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
}

.pd-sidebar__coupon {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.12), rgba(255, 228, 181, 0.5));
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pd-sidebar__coupon-text {
    font-size: 14px;
    font-weight: 600;
    color: #b45309;
}

.pd-sidebar__coupon-link {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.pd-sidebar__stock {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-sidebar__stock-status {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #dc2626;
}

.pd-sidebar__seller {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.pd-sidebar__offers h3,
.pd-sidebar__returns h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.pd-sidebar__offers ul {
    margin: 0 0 12px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
}

.pd-sidebar__offers a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.pd-sidebar__more {
    align-self: flex-start;
    background: none;
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #7c3aed;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-sidebar__more:hover {
    background-color: rgba(124, 58, 237, 0.08);
}

.pd-sidebar__returns p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.pd-sidebar__returns a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}

.pd-delivery-button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px dashed #c7c9d6;
    background-color: #ffffff;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-delivery-button:hover {
    border-color: #7c3aed;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.16);
}

.pd-sidebar__delivery-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.pd-button {
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-button--primary {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(124, 58, 237, 0.28);
}

.pd-button--accent {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(16, 185, 129, 0.28);
}

.pd-button--ghost {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.pd-button:hover {
    transform: translateY(-2px);
}

.pd-specs {
    margin-top: 32px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.pd-specs h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.pd-specs__group + .pd-specs__group {
    margin-top: 24px;
}

.pd-specs__group h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.pd-specs__table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.7);
}

.pd-specs__table th,
.pd-specs__table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
    font-size: 14px;
}

.pd-specs__table tr:last-child th,
.pd-specs__table tr:last-child td {
    border-bottom: none;
}

.pd-specs__table th {
    width: 32%;
    font-weight: 600;
    color: #6b7280;
}

.pd-specs__table td {
    color: #111827;
}

.pd-specs__empty {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

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

    .pd-sidebar {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 18px;
        align-items: stretch;
    }

    .pd-sidebar__actions {
        flex: 1;
    }
}

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

    .pd-sidebar {
        flex-direction: column;
    }

    .pd-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-top__breadcrumb ol {
        padding: 10px 14px;
    }
}

@media (max-width: 640px) {
    .product-detail-shell {
        padding: 24px 16px 60px;
    }

    .pd-hero-card {
        padding: 24px;
    }

    .pd-gallery__frame {
        border-radius: 18px;
    }

    .pd-specs {
        padding: 24px;
    }

    .pd-pricing__price {
        font-size: 26px;
    }
}

.compare-panel-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(115, 87, 249, 0.28);
    background: rgba(115, 87, 249, 0.12);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    z-index: 190;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.compare-panel-toggle:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(115, 87, 249, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.compare-panel-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.compare-panel-toggle--active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    border-color: rgba(115, 87, 249, 0.4);
}

.compare-panel-toggle__label {
    font-size: 0.95rem;
}

.compare-panel-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.85rem;
}

.compare-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100vh;
    background: var(--panel-bg);
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: -20px 0 36px rgba(15, 23, 42, 0.18);
    transform: translateX(110%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    overflow: hidden;
}

.compare-panel--open {
    transform: translateX(0);
    opacity: 1;
}

.compare-panel__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.compare-panel__overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.compare-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.compare-panel__header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compare-panel__title {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--text);
}

.compare-panel__status {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.compare-panel__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.compare-panel__close:hover {
    color: var(--danger);
    background: rgba(249, 115, 115, 0.12);
    transform: scale(1.05);
}

.compare-panel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
}

.compare-panel__search-wrapper {
    position: relative;
    overflow: visible;
}

.compare-panel__search {
    position: relative;
    display: flex;
    align-items: center;
}

.compare-panel__search::before {
    content: '';
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    background: rgba(115, 87, 249, 0.42);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 7.5-7.5 7.5 7.5 0 0 1-7.5 7.5Z' fill='%23000' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.compare-panel__search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border-radius: 14px;
    border: 1px solid rgba(115, 87, 249, 0.24);
    background: rgba(115, 87, 249, 0.08);
    font-size: 0.92rem;
    color: var(--text);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.compare-panel__search-input::placeholder {
    color: rgba(76, 90, 130, 0.6);
}

.compare-panel__search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(115, 87, 249, 0.18);
    background: #ffffff;
}

.compare-panel__search-results {
    
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    
    border: 1px solid rgba(115, 87, 249, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.2);
    padding: 10px;

    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 210;
}

.compare-panel__search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.compare-panel__search-item:hover {
    background: rgba(115, 87, 249, 0.12);
    transform: translateY(-1px);
}

.compare-panel__search-item:active {
    transform: translateY(0);
}

.compare-panel__search-item--empty {
    cursor: default;
    color: var(--text-muted);
    font-size: 0.86rem;
    justify-content: center;
    padding: 14px 10px;
}

.compare-panel__search-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(115, 87, 249, 0.12);
    display: grid;
    place-items: center;
}

.compare-panel__search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-panel__search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.compare-panel__search-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-panel__search-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.compare-panel__items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.compare-panel__items {
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
}

.compare-panel__empty {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.compare-panel__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(115, 87, 249, 0.1);
    border: 1px solid rgba(115, 87, 249, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.compare-panel__thumb {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(115, 87, 249, 0.18);
    position: relative;
    display: grid;
    place-items: center;
}

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

.compare-panel__thumb-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-panel__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.compare-panel__name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-panel__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-panel__remove {
    background: transparent;
    border: none;
    color: rgba(15, 23, 42, 0.45);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.compare-panel__remove:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.compare-panel__footer {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.compare-panel__action {
    flex: 1;
    justify-content: center;
}

.compare-panel__action[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

