.card-surface {
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pink-400);
}

.page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
}

.page-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 36rem;
}

.products-toolbar {
    position: relative;
    z-index: 120;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    overflow: visible;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.85rem;
    height: 2.75rem;
    min-height: 2.75rem;
    max-height: 2.75rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(244, 168, 200, 0.35);
    flex: 1 1 220px;
    min-width: 0;
    box-sizing: border-box;
}

.filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 168, 200, 0.45);
    background: linear-gradient(135deg, rgba(255, 248, 252, 0.98), rgba(255, 248, 230, 0.95));
    color: var(--pink-500);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212, 93, 148, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.filters-toggle:hover,
.filters-toggle[aria-expanded="true"] {
    border-color: var(--gold-300);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.18);
    transform: translateY(-1px);
}

.filters-toggle-icon {
    font-size: 0.82rem;
    opacity: 0.85;
}

.filters-toggle-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.filters-toggle[aria-expanded="true"] .filters-toggle-chevron {
    transform: rotate(180deg);
}

.filters-active-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--gold-400));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-active-badge.is-hidden {
    display: none;
}

.filters-panel {
    overflow: hidden;
    max-height: 520px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.filters-panel.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.filters-panel:not(.is-collapsed) {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(244, 168, 200, 0.35);
}

.search-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.search-input {
    width: 100%;
    flex: 1;
    min-width: 0;
    height: 1.5rem;
    min-height: 0;
    border: none;
    outline: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    background: transparent;
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.color-filter {
    position: relative;
    z-index: 130;
    flex: 0 1 220px;
    min-width: 11rem;
}

.color-filter-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.72rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(244, 168, 200, 0.45);
    background: linear-gradient(135deg, rgba(255, 252, 254, 0.98), rgba(255, 248, 252, 0.96));
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212, 93, 148, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.color-filter.is-active .color-filter-trigger,
.color-filter-trigger:hover,
.color-filter-trigger[aria-expanded="true"] {
    border-color: var(--gold-300);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.16);
    transform: translateY(-1px);
}

.color-filter-swatch,
.color-filter-option-swatch {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--swatch-color, transparent);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.color-filter-swatch--all,
.color-filter-option-swatch.color-filter-swatch--all {
    background: conic-gradient(
        #e53935 0deg 45deg,
        #fb8c00 45deg 90deg,
        #fdd835 90deg 135deg,
        #43a047 135deg 180deg,
        #2196f3 180deg 225deg,
        #8e24aa 225deg 270deg,
        #f48fb1 270deg 315deg,
        #795548 315deg 360deg
    );
}

.color-filter-option-swatch--light {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.color-filter-label {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-filter-chevron {
    font-size: 0.75rem;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.color-filter-trigger[aria-expanded="true"] .color-filter-chevron {
    transform: rotate(180deg);
}

.color-filter-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    z-index: 200;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(244, 168, 200, 0.4);
    box-shadow: 0 14px 36px rgba(80, 40, 60, 0.14);
    overflow: hidden;
}

.color-filter-panel.is-hidden {
    display: none;
}

.color-filter-search-wrap {
    padding: 0.65rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(244, 168, 200, 0.2);
}

.color-filter-search {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 168, 200, 0.35);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.color-filter-search:focus {
    border-color: var(--pink-400);
}

.color-filter-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 16rem;
    overflow-y: auto;
}

.color-filter-list li.is-hidden {
    display: none;
}

.color-filter-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s ease;
}

.color-filter-option:hover,
.color-filter-option.is-selected {
    background: rgba(255, 248, 252, 0.95);
}

.color-filter-option.is-selected .color-filter-option-name {
    color: var(--pink-500);
    font-weight: 700;
}

.color-filter-option-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-filter-option-count {
    flex-shrink: 0;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(244, 168, 200, 0.18);
    color: var(--pink-500);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-field select {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 168, 200, 0.4);
    background: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.toolbar-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(244, 168, 200, 0.2);
}

.result-count {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pink-500);
}

.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.55rem 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 168, 200, 0.35);
    background: linear-gradient(135deg, rgba(255, 252, 254, 0.98), rgba(255, 248, 252, 0.95));
    box-shadow: 0 4px 14px rgba(212, 93, 148, 0.08);
}

.view-switcher-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.view-switcher-options {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(244, 168, 200, 0.22);
}

.view-switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.view-switcher-btn:hover {
    color: var(--pink-500);
    background: rgba(255, 248, 252, 0.95);
}

.view-switcher-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--gold-400));
    box-shadow: 0 4px 12px rgba(212, 93, 148, 0.28);
    transform: translateY(-1px);
}

.view-switcher-icon {
    display: grid;
    gap: 2px;
    width: 1rem;
    height: 0.82rem;
    align-items: stretch;
}

.view-switcher-icon--1 {
    grid-template-columns: 1fr;
}

.view-switcher-icon--2 {
    grid-template-columns: repeat(2, 1fr);
}

.view-switcher-icon--3 {
    grid-template-columns: repeat(3, 1fr);
}

.view-switcher-icon span {
    display: block;
    border-radius: 1px;
    background: currentColor;
    min-height: 100%;
}

.products-page,
.profile-page,
.tryon-room-page {
    width: 100%;
}

.products-page .container {
    width: min(1200px, calc(100% - 2rem));
}

.products-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    align-items: stretch;
    align-content: start;
    transition: gap 0.25s ease;
}

.products-grid--cols-1 {
    grid-template-columns: 1fr;
}

.products-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.products-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.products-grid--cols-1 .product-badges--overlay {
    display: flex;
}

.products-grid--cols-1 .product-card-features {
    display: none;
}

.products-grid--cols-2 .product-badges--overlay,
.products-grid--cols-3 .product-badges--overlay {
    display: none;
}

.products-grid--cols-2 .product-card-features,
.products-grid--cols-3 .product-card-features {
    display: flex;
}

.products-grid--cols-2 .product-card-title {
    font-size: 0.88rem;
    line-height: 1.45;
}

.products-grid--cols-3 .product-card-title {
    font-size: 0.74rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid--cols-2 .product-card-meta {
    font-size: 0.7rem;
}

.products-grid--cols-3 .product-card-meta {
    font-size: 0.62rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid--cols-2 .product-card-body {
    padding: 0.75rem 0.8rem 0.5rem;
    gap: 0.3rem;
}

.products-grid--cols-3 .product-card-body {
    padding: 0.5rem 0.45rem 0.4rem;
    gap: 0.2rem;
}

.products-grid--cols-2 .product-card-price {
    font-size: 0.78rem;
}

.products-grid--cols-3 .product-card-price {
    font-size: 0.68rem;
    gap: 0;
}

.products-grid--cols-2 .price-special,
.products-grid--cols-2 .price-main {
    font-size: 0.82rem;
}

.products-grid--cols-3 .price-special,
.products-grid--cols-3 .price-main {
    font-size: 0.7rem;
    line-height: 1.35;
}

.products-grid--cols-3 .price-special small,
.products-grid--cols-3 .price-main small {
    font-size: 0.58rem;
    font-weight: 500;
}

.products-grid--cols-3 .price-normal {
    font-size: 0.58rem;
}

.products-grid--cols-2 .color-swatch {
    width: 14px;
    height: 14px;
}

.products-grid--cols-3 .color-swatch {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
}

.products-grid--cols-2 .product-card-footer {
    padding: 0.45rem 0.65rem 0.6rem;
}

.products-grid--cols-3 .product-card-footer {
    padding: 0.35rem 0.4rem 0.45rem;
}

.products-grid--cols-2 .product-card-cart-label,
.products-grid--cols-3 .product-card-cart-label {
    display: none;
}

.products-grid--cols-2 .product-card-cart-btn,
.products-grid--cols-3 .product-card-cart-btn {
    padding: 0;
}

.products-grid--cols-2 .color-swatch::after,
.products-grid--cols-3 .color-swatch::after {
    display: none;
}

.products-grid--cols-2 .color-swatch:hover,
.products-grid--cols-3 .color-swatch:hover,
.products-grid--cols-2 .color-swatch.is-active,
.products-grid--cols-3 .color-swatch.is-active {
    transform: scale(1.08);
}

.products-grid.is-hidden {
    display: none;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    color: inherit;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 36px rgba(212, 93, 148, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(212, 93, 148, 0.16);
}

.product-card-favorite-btn {
    position: static;
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    border: 1px solid rgba(244, 168, 200, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(212, 93, 148, 0.12);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-card-favorite-btn:hover,
.product-card-favorite-btn.is-active {
    background: linear-gradient(135deg, var(--pink-100), var(--gold-100));
    transform: scale(1.08);
}

.product-card-favorite-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card.is-hidden {
    display: none;
}

.product-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--pink-100), #fff);
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    opacity: 0.45;
}

.product-badges {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    z-index: 2;
    pointer-events: none;
}

.product-badge {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--pink-500);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.3;
}

.product-badge--sale {
    background: var(--pink-500);
}

.product-badge--gold {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    color: #4a2c3d;
}

.product-badge--magic {
    background: linear-gradient(135deg, #e87aab, #d4af37);
    color: #fff;
}

.product-card-body {
    padding: 0.85rem 0.9rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.product-card-features {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.product-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 6px;
    font-size: 0.62rem;
    line-height: 1;
    background: rgba(255, 252, 254, 0.98);
    border: 1px solid rgba(244, 168, 200, 0.28);
}

.product-card-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.product-card-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.product-card-meta span::before {
    content: "• ";
    opacity: 0.5;
}

.product-card-meta span:first-child::before {
    content: "";
}

.product-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-special,
.price-main {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--pink-500);
    line-height: 1.35;
}

.price-special small,
.price-main small {
    font-size: 0.68rem;
    font-weight: 500;
}

.price-normal {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem 0.65rem;
    border-top: 1px solid rgba(244, 168, 200, 0.15);
    background: rgba(255, 252, 254, 0.65);
}

.product-card-colors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.product-card-colors--empty {
    min-height: 0;
    padding: 0;
}

.product-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.color-swatch {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: var(--swatch-color, #ccc);
    box-shadow: 0 1px 4px rgba(74, 44, 61, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.color-swatch--light {
    border-color: rgba(74, 44, 61, 0.2);
}

.color-swatch:hover,
.color-swatch.is-active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--pink-300), 0 3px 8px rgba(212, 93, 148, 0.28);
    z-index: 2;
}

.color-swatch::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(74, 44, 61, 0.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.color-swatch:hover::after {
    opacity: 1;
}

.color-more {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
}

.products-grid--cols-1 .product-card-body {
    padding: 0.9rem 1rem 0.55rem;
}

.products-grid--cols-1 .product-card-title {
    font-size: 0.98rem;
}

.products-grid--cols-1 .product-card-footer {
    padding: 0.55rem 0.85rem 0.7rem;
}

.products-grid--cols-1 .product-card-favorite-btn {
    width: 2rem;
    height: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px dashed rgba(244, 168, 200, 0.45);
}

.empty-state.is-hidden {
    display: none;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    color: var(--pink-500);
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
}

/* Detail page */
.product-detail-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.product-detail-page .container {
    width: min(1200px, calc(100% - 2rem));
    max-width: 100%;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--pink-500);
    text-decoration: none;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.detail-section {
    width: 100%;
    min-width: 0;
}

.detail-section--gallery {
    padding-bottom: 0.15rem;
}

.detail-section--head.card-surface-inner,
.detail-section--specs.card-surface-inner,
.detail-section--tryons.card-surface-inner,
.detail-section--inquiry.card-surface-inner {
    margin-bottom: 0;
}

.detail-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}

.gallery-color-picker {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding: 0.15rem 0.1rem 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-color-picker::-webkit-scrollbar {
    display: none;
}

.gallery-color-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 72px;
    max-width: 88px;
    padding: 0.45rem 0.4rem 0.5rem;
    border: 2px solid rgba(244, 168, 200, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-color-chip.is-active {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.gallery-color-chip-media {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--pink-100), #fff);
}

.gallery-color-chip-media--all {
    font-size: 1.1rem;
    color: var(--pink-500);
    background: linear-gradient(135deg, var(--pink-100), var(--gold-100));
}

.gallery-color-chip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-color-swatch {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.gallery-color-swatch.is-light {
    box-shadow: inset 0 0 0 1px rgba(74, 44, 61, 0.12);
}

.gallery-color-chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.detail-info {
    width: 100%;
    min-width: 0;
}

@media (min-width: 960px) {
    .detail-layout {
        padding: 1.5rem 2rem;
        gap: 1.25rem;
    }

    .detail-gallery {
        max-width: 720px;
        margin-inline: auto;
    }

    .gallery-color-picker {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.gallery-main {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.gallery-main-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(160deg, var(--pink-100), #fff);
    cursor: zoom-in;
}

.gallery-main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pink-500);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gallery-nav--prev { right: 0.65rem; }
.gallery-nav--next { left: 0.65rem; }

.gallery-counter {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(74, 44, 61, 0.65);
    color: #fff;
    font-size: 0.78rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    padding: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.gallery-thumb.is-active {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-gold);
}

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

.gallery-empty {
    aspect-ratio: 4 / 5;
    display: grid;
    place-content: center;
    gap: 0.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--pink-100), var(--gold-100));
    color: var(--text-muted);
}

.gallery-empty span {
    font-size: 2.5rem;
}

.detail-code {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.detail-code code {
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: var(--pink-100);
    font-size: 0.8rem;
}

.detail-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    line-height: 1.4;
}

.detail-price-box {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 232, 241, 0.9), rgba(255, 248, 230, 0.95));
    border: 1px solid rgba(244, 168, 200, 0.35);
    margin-bottom: 0.85rem;
}

.detail-price-special {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pink-500);
}

.detail-price-special small {
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-price-normal {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.detail-price-contact {
    margin: 0;
    font-weight: 600;
    color: var(--text-muted);
}

.detail-competitive {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: var(--gold-400);
    font-weight: 600;
}

.detail-specs h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pink-500);
}

.detail-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.detail-specs li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(244, 168, 200, 0.2);
    font-size: 0.9rem;
}

.detail-specs span {
    color: var(--text-muted);
}

.detail-actions {
    margin-top: 1.5rem;
}

.detail-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.detail-nav-link {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pink-500);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(244, 168, 200, 0.4);
}

.detail-nav-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 860px) {
    .header-inner {
        justify-content: center;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .product-detail-page .container {
        width: 100%;
        padding-inline: 0.75rem;
    }

    .detail-layout {
        padding: 0.85rem;
        gap: 1rem;
    }

    .toolbar-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .view-switcher {
        align-self: center;
    }

    .page-header-top {
        flex-direction: column;
    }

    .toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        flex: none;
        width: 100%;
        height: 2.65rem;
        min-height: 2.65rem;
        max-height: 2.65rem;
    }

    .color-filter-trigger,
    .filters-toggle {
        min-height: 2.65rem;
    }

    .color-filter {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .color-filter-panel {
        left: 0;
        right: 0;
    }

    .filters-toggle {
        width: 100%;
        justify-content: center;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .gallery-nav--prev {
        right: 0.4rem;
    }

    .gallery-nav--next {
        left: 0.4rem;
    }

    .gallery-color-chip {
        min-width: 64px;
        max-width: 76px;
    }

    .gallery-color-chip-media {
        width: 46px;
        height: 46px;
    }

    .products-page .container {
        width: 100%;
        padding-inline: 0.75rem;
    }

    .products-toolbar {
        padding: 1rem;
    }

    .products-grid--cols-3 {
        gap: 0.45rem;
    }

    .products-grid--cols-3 .product-feature-icon {
        width: 1.05rem;
        height: 1.05rem;
        font-size: 0.55rem;
        border-radius: 5px;
    }

    .products-grid--cols-3 .product-card-cart-btn,
    .products-grid--cols-3 .product-card-favorite-btn {
        width: 1.65rem;
        height: 1.65rem;
        min-width: 1.65rem;
        padding: 0;
        font-size: 0.78rem;
    }

    .products-grid--cols-3 .product-card-actions {
        gap: 0.2rem;
    }
}
