/* Reset and Base Styles */
/*
 * Z-INDEX MAP
 * -----------
 * .page                    10
 * .global-top-nav           99
 * .bottom-nav             6000
 * .sheet-backdrop         7000
 * .bottom-sheet           7001
 * .unsave-toast           7000
 * .activity-page          8600
 * .closet-detail-page     8500
 * .look-detail-page       9000
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #1d1d1d;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #1d1d1d;
    outline-offset: 2px;
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* All headers use Ember Modern Display */
h1, h2, h3, h4, h5, h6 {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
}

/* App Container */
.app-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #fff;
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.welcome-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 50%, #d4cfc8 100%);
}

.welcome-gradient {
    width: 100%;
    height: 100%;
}

.welcome-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.welcome-text {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1d1d1d;
    line-height: 1;
}

/* ===== Pages ===== */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #fff;
    z-index: 10;
    display: none;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* Page Scroll Content */
.page-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-scroll-content::-webkit-scrollbar {
    display: none;
}

/* ===== Top Navigation (same as original) ===== */
.global-top-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top));
    z-index: 99;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    height: fit-content;
}

.global-top-nav > * {
    pointer-events: auto;
}

/* Closet page top nav - search button only, aligned right */
.closet-page .global-top-nav {
    justify-content: flex-end;
}

.nav-left {
    display: flex;
    gap: 12px;
}

.nav-right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.nav-btn:active {
    background: rgba(0, 0, 0, 0.4);
}

.nav-btn img,
.nav-btn svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Dark variant for light backgrounds */
.nav-btn.nav-btn-dark {
    background: rgba(0, 0, 0, 0.3);
}

.nav-btn.nav-btn-dark:active {
    background: rgba(0, 0, 0, 0.4);
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 500px;
    cursor: pointer;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease-out;
    background: #f0eeeb;
    z-index: 0;
}

.hero-slide.active {
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.slide-left {
    transform: translateX(-100%);
    z-index: 0;
}

.hero-slide.slide-right {
    transform: translateX(100%);
    z-index: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay (per-slide, color-matched) */
.hero-slide .hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.45s ease-out;
}

/* Hero Floating Action Buttons */
.hero-actions {
    position: absolute;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
}

.hero-action-btn {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-action-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Save button heart toggle */
.hero-action-btn.saved img {
    filter: none;
}

/* Bounce animation on save */
@keyframes heartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.hero-action-btn.bounce {
    animation: heartBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Carousel Pagination (same as original index.html) */
.carousel-pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 20;
}

.pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    width: 22px;
    background: #fff;
}

/* ===== Widgets Container ===== */
.closet-content-area {
    padding: 0;
    position: relative;
}

/* Gradient overlay that can crossfade */
.closet-content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease-out;
}

.closet-content-area > * {
    position: relative;
    z-index: 1;
}

.widget {
    padding: 0 20px;
}

/* ===== Your Looks Section ===== */
.your-looks-section {
    padding-top: 24px;
    padding-bottom: 24px;
    cursor: pointer;
}

.your-looks-section .section-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff;
}

.section-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: #1d1d1d;
}

.looks-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.looks-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.looks-track::-webkit-scrollbar {
    display: none;
}

.your-looks-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.look-card {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #f0eeeb;
}

.look-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.looks-arrow {
    flex: 0 0 auto;
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ===== In Your Closet Section ===== */
.closet-section {
    padding-top: 20px;
    padding-bottom: 4px;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px 4px;
    margin-bottom: 12px;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pills .pill:last-child {
    margin-right: 20px;
}

.pill {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 5px;
    border: none;
    background: #f4f4f4;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill.active {
    background: #1d1d1d;
    color: #fff;
}

/* Fade from grey to white — hidden, handled by products area */
.closet-fade-to-white {
    display: none;
}

/* Product area with gradient fade */
.closet-products-area {
    padding: 0 0 36px;
    background-color: #fff;
    position: relative;
}

/* ===== Closet Rail ===== */

/* Horizontal scroll track */
.closet-rail {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 20px;
    gap: 0;
    position: relative;
}

.closet-rail::-webkit-scrollbar {
    display: none;
}

/* Spacers to allow first/last item to center */
.rail-spacer {
    flex: 0 0 28vw;
}

/* Individual rail item */
.rail-item {
    flex: 0 0 auto;
    width: 52vw;
    max-width: 220px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 -10px; /* overlap neighbors */
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
    transform-origin: top center;
    z-index: 1;
    cursor: pointer;
}

/* Center-focused scaling via JS class */
.rail-item.active {
    z-index: 3;
}

.rail-item:not(.active) {
    display: flex;
    cursor: pointer;
}

.rail-item.active .rail-card {
    transform: scale(1.08);
    transform-origin: top center;
}

.rail-item:not(.active) .rail-card {
    transform: scale(0.88);
    transform-origin: top center;
    background: #f9f9f9;
}

.rail-item:not(.active) .rail-card img {
    opacity: 0.35;
}

/* Card */
.rail-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f2f2;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: top center;
}

.rail-item.active .rail-card {
    box-shadow: none;
}

.rail-card > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: opacity 0.45s ease;
    mix-blend-mode: multiply;
    padding: 15%;
}

/* Info — only visible on active item */
.rail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 36px;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.rail-item.active .rail-info {
    opacity: 1;
    transform: translateX(-4%) translateY(0);
}

.rail-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.3px;
}

.rail-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
}

/* Shared menu-dots button component — top right of cards */
.menu-dots-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-dots-btn img {
    width: 13px;
    height: 3px;
}

/* Rail-specific overrides */
.rail-dots {
    z-index: 15;
    touch-action: manipulation;
}

.rail-dots img {
    transform: translateY(-1px);
}

/* Menu overlay — covers the card */
.rail-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.7);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 6px;
}

.rail-menu-overlay.active {
    display: flex;
}

.rail-menu-overlay .product-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.rail-menu-overlay .product-menu-btn {
    width: fit-content;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.rail-menu-overlay .product-menu-btn.primary {
    background: #000;
    color: white;
}

/* Filtered out */
.rail-item.filtered-out {
    width: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.5);
    flex: 0 0 0;
    pointer-events: none;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Placeholder Pages ===== */
.page-placeholder {
    padding: 80px 20px 20px;
}

.placeholder-text {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 6000;
    max-width: 430px;
    width: calc(100% - 40px);
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide bottom nav when scrolling down */
.bottom-nav.scroll-hidden {
    transform: translate(-50%, calc(100% + 40px));
}

/* Hide bottom nav when modal is open */
.bottom-nav.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bottom-nav-pill {
    display: flex;
    align-items: center;
    background: #1d1d1d;
    border-radius: 40px;
    padding: 3px;
    flex: 1;
    height: 52px;
    position: relative;
}

/* Sliding indicator */
.bottom-nav-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(33.333% - 2px);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 37px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.bottom-nav-indicator[data-pos="0"] {
    transform: translateX(0);
}

.bottom-nav-indicator[data-pos="1"] {
    transform: translateX(100%);
}

.bottom-nav-indicator[data-pos="2"] {
    transform: translateX(200%);
}

.bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    text-decoration: none;
    border-radius: 37px;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

.bottom-nav-tab.active {
    color: #fff;
}

.bottom-nav-tab span {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #fff;
    opacity: 0.4;
    line-height: 16px;
    text-align: center;
    transition: opacity 0.2s ease;
}

.bottom-nav-tab.active span {
    opacity: 1;
}

.bottom-nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.bottom-nav-tab.active .bottom-nav-icon,
.bottom-nav-tab:hover .bottom-nav-icon {
    opacity: 1;
}

/* Profile icon SVG is visually heavier, scale it down — handled in saved page section */

.add-btn {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1d1d1d;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.add-btn svg {
    stroke: #fff;
    opacity: 1;
}

/* ===== Add to Closet Bottom Sheet ===== */
.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 7000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    touch-action: none;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 24px 48px;
    z-index: 7001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                top 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                padding 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    font-weight: 400;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 20px;
}

.sheet-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1d1d1d;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sheet-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: #f4f4f4;
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1d;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: center;
}

.sheet-btn:active {
    background: #e8e8e8;
}

.sheet-btn.primary {
    background: #1d1d1d;
    color: #fff;
}

.sheet-btn.primary:active {
    background: #333;
}

/* Sheet sub-views */
.sheet-view {
    display: none;
    opacity: 0;
}

.sheet-view.active {
    display: block;
    animation: sheetViewFadeIn 0.25s ease forwards;
}

.sheet-view-full.active {
    display: flex;
    animation: sheetViewFadeIn 0.25s ease 0.15s forwards;
}

/* Skip animation on the menu view when sheet first opens */
#sheetMenuView.active {
    opacity: 1;
    animation: none;
}

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

.bottom-sheet.sheet-full {
    top: env(safe-area-inset-top, 0px);
    border-radius: 20px 20px 0 0;
    padding: 12px 0 40px;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.sheet-full .sheet-view-full.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.bottom-sheet.sheet-full .sheet-handle {
    display: none;
}

.bottom-sheet.sheet-full #sheetSearchView .sheet-header {
    padding-top: 8px;
}

.bottom-sheet.sheet-full #sheetVerifyView .sheet-header {
    padding-top: 8px;
    justify-content: flex-end;
}

.bottom-sheet.sheet-full .sheet-header {
    padding: 0 24px;
}

.bottom-sheet.sheet-full .sheet-search-content {
    padding-left: 24px;
    padding-right: 24px;
}

.bottom-sheet.sheet-full .sheet-verify-content {
    padding-left: 24px;
    padding-right: 24px;
}

.bottom-sheet.sheet-full .sheet-verify-actions {
    padding: 8px 24px 0;
}

.sheet-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sheet-back-btn:active {
    background: #e0e0e0;
}

.sheet-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sheet-close-btn:active {
    background: #e0e0e0;
}

.sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sheet-header-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: -0.3px;
}

.sheet-header-centered {
    position: relative;
    justify-content: flex-start;
}

.sheet-header-title-center {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: -0.3px;
    pointer-events: none;
}

.sheet-header-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.sheet-header-input-wrap .sheet-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sheet-header-input-wrap .sheet-input {
    width: 100%;
    padding: 8px 14px 8px 40px;
    height: 36px;
    box-sizing: border-box;
}

.sheet-input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.sheet-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sheet-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 16px;
    color: #1d1d1d;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.sheet-input:focus {
    border-color: #999;
}

.sheet-input::placeholder {
    color: #999;
}

.sheet-submit-btn {
    margin-top: 4px;
}

.sheet-submit-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Upload area — reserved for native implementation */

/* Verify view */
.sheet-verify-content {
    flex: 1;
    padding-top: 20px;
}

.sheet-verify-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1d1d1d;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.sheet-verify-image {
    background: #f2f2f2;
    border-radius: 4px;
    max-height: 40vh;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin: 0 auto 24px;
}

.sheet-verify-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 15%;
}

.sheet-verify-details {
    margin-bottom: 24px;
}

.sheet-verify-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.sheet-verify-row:active {
    background: #f4f4f4;
}

.sheet-verify-row + .sheet-verify-row {
    border-top: none;
}

.sheet-verify-label {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    color: #1d1d1d;
    pointer-events: none;
}

.sheet-verify-value {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1d;
}

.sheet-verify-input {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #8e8e93;
    text-align: right;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    min-width: 0;
    max-width: 50%;
    caret-color: #007aff;
    transition: color 0.15s ease;
}

.sheet-verify-input:focus {
    color: #007aff;
}

.sheet-verify-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    margin-top: auto;
}

.sheet-verify-actions .sheet-btn {
    flex: 1;
}

/* Search view */
.sheet-search-content {
    flex: 1;
    padding-top: 12px;
    overflow-y: auto;
}

.sheet-search-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 24px 4px;
    margin-bottom: 16px;
}

.sheet-search-pills::-webkit-scrollbar {
    display: none;
}

.sheet-search-pills .pill:last-child {
    margin-right: 24px;
}

.sheet-search-section {
    margin-bottom: 24px;
}

.sheet-search-heading {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1d;
    margin-bottom: 12px;
}

.sheet-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    color: #1d1d1d;
}

.sheet-recently-viewed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sheet-viewed-card {
    display: flex;
    flex-direction: column;
}

.sheet-viewed-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sheet-viewed-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 15%;
}

.sheet-viewed-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sheet-viewed-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.sheet-viewed-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.sheet-viewed-price {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 2px;
}

/* ===== Activity Page ===== */
.activity-page {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 8600;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.activity-page.active {
    transform: translateX(0);
}

/* ===== Overlay Top Nav (reusable for slide-in pages) ===== */
.overlay-top-nav {
    position: absolute;
    top: calc(env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 20px;
    height: fit-content;
    pointer-events: none;
}

.overlay-top-nav > * {
    pointer-events: auto;
}

.overlay-top-nav .nav-left {
    display: flex;
    gap: 12px;
}

.overlay-top-nav .nav-right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.overlay-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.overlay-back-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.activity-scroll-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.activity-scroll-content::-webkit-scrollbar {
    display: none;
}

.activity-gradient {
    height: 180px;
    background: linear-gradient(180deg, #E2E0DE 0%, #ffffff 100%);
}

.activity-content {
    padding: 0 20px 80px;
    margin-top: -60px;
}

.activity-page-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.activity-page-subtitle {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 20px;
}

.activity-page-subtitle.shimmer-text {
    animation: subtitlePulse 1.8s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Activity Cards */
.activity-card {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    margin-bottom: 12px;
    align-items: center;
    position: relative;
}

.activity-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 90px;
    border-radius: 0;
    overflow: visible;
    background: #f4f4f4;
    position: relative;
}

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

.activity-thumb .activity-img.faded {
    opacity: 0.35;
}

.activity-card-arrow {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity Sections */
.activity-section {
    margin-bottom: 0;
}

/* Activity spinner */
.activity-spinner {
    margin-left: auto;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #000;
    border-radius: 50%;
    animation: activitySpin 0.8s linear infinite;
}

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

/* Unread dot for completed activity cards */
.activity-unread-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #e00;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Bell notification dot */
.bell-btn {
    position: relative;
}

.bell-notify-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: #e00;
    border-radius: 16px;
    border: none;
    z-index: 2;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 14px;
}

/* Bell generating spinner */
.bell-btn.generating::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.bell-btn.generating::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: bellSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
}

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

/* ===== Look Detail Page ===== */
.look-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.look-detail-page.active {
    transform: translateX(0);
}

.look-detail-counter {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    pointer-events: none;
}

/* Carousel */
.look-detail-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.look-detail-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
}

.look-detail-slide.active {
    transform: translateX(0);
}

.look-detail-slide.slide-left {
    transform: translateX(-100%);
}

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

/* Footer */
.look-detail-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 0 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* Top nav scrim for look detail */
.look-detail-top-nav {
    top: 0;
    padding-top: calc(env(safe-area-inset-top) + 20px);
    padding-bottom: 40px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 100%);
}

.look-detail-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.look-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.look-dot.active {
    width: 22px;
    background: #fff;
}

.look-detail-actions {
    display: flex;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 430px;
    height: 52px;
}

.look-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.look-action-btn img {
    width: 18px;
    height: 18px;
}

.look-edit-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.look-edit-btn img {
    filter: brightness(0);
}

.look-save-btn {
    background: #000;
    color: #fff;
}

.look-save-btn img {
    filter: brightness(0) invert(1);
}

.look-save-btn.saved {
    background: #000;
    color: #fff;
}

.look-save-btn.saved img {
    filter: brightness(0) invert(1);
}

/* ===== Closet Item Detail Page ===== */
.closet-detail-page {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 8500;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.closet-detail-page.active {
    transform: translateX(0);
}

.closet-detail-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.closet-detail-scroll::-webkit-scrollbar {
    display: none;
}

.closet-detail-gradient {
    height: 180px;
    background: linear-gradient(180deg, #E2E0DE 0%, #ffffff 100%);
}

.closet-detail-content {
    padding: 0 20px 80px;
    margin-top: -95px;
}

.closet-detail-image {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.closet-detail-image img {
    width: 100%;
    height: 55vh;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    padding: 10%;
}

.closet-detail-info {
    margin-bottom: 16px;
}

.closet-detail-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.closet-detail-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.closet-detail-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
}

.closet-detail-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
}

.closet-detail-chip {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 100px;
    background: #f4f4f4;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-top: 4px;
}

.closet-detail-price {
    display: none;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
    white-space: nowrap;
    margin-top: 2px;
}

/* Heart + Cart icon buttons */
.closet-detail-info-actions {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding-top: 2px;
}

.closet-detail-heart,
.closet-detail-cart {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closet-detail-heart:active svg,
.closet-detail-cart:active svg {
    opacity: 0.5;
}

/* Saved state for heart */
.closet-detail-heart.saved svg {
    fill: #1d1d1d;
}

/* Not-owned state */
.closet-detail-content[data-owned="false"] .closet-detail-chip {
    display: none;
}

.closet-detail-content[data-owned="false"] .closet-detail-price {
    display: block;
}

.closet-detail-content[data-owned="false"] .closet-detail-info-actions {
    display: flex;
}

.closet-detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.closet-detail-btn {
    flex: 1;
    padding: 14px;
    border-radius: 0;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
}

.closet-detail-btn.outline {
    background: #fff;
    color: #1d1d1d;
    border: 1px solid #1d1d1d;
}

.closet-detail-btn.filled {
    background: #1d1d1d;
    color: #fff;
    border: 1px solid #1d1d1d;
}

.closet-detail-similar {
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.closet-detail-similar-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1d1d1d;
    margin-bottom: 12px;
}

.closet-detail-similar-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: 20px;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -20px;
    padding: 0 20px;
}

.closet-detail-similar-grid::-webkit-scrollbar {
    display: none;
}

.similar-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 42vw;
    max-width: 180px;
    scroll-snap-align: start;
}

.similar-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    margin-bottom: 8px;
    border-radius: 8px;
}

.similar-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 15%;
}

/* similar-card-dots: uses shared .menu-dots-btn */

.similar-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.similar-card-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.similar-card-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.similar-card-price {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 2px;
}

.closet-detail-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 430px;
    width: calc(100% - 40px);
    z-index: 5;
    pointer-events: none;
}

.closet-detail-remove {
    width: 100%;
    height: 52px;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    background: #fff;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1d;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
    pointer-events: auto;
}

.closet-detail-remove:active {
    background: #f4f4f4;
}


/* ===== Saved Page ===== */
.saved-page {
    display: none;
    flex-direction: column;
}

.saved-page.active {
    display: flex;
    flex-direction: column;
}

/* Saved page top nav — toggle left, buttons right */
.saved-page .global-top-nav {
    justify-content: space-between;
}

.saved-toggle {
    display: flex;
    background: #f4f4f4;
    border-radius: 40px;
    padding: 3px;
    position: relative;
    width: 180px;
    height: 36px;
}

.saved-toggle-btn {
    flex: 1;
    padding: 0;
    border: none;
    background: none;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
    text-align: center;
    border-radius: 40px;
    line-height: 30px;
}

.saved-toggle-btn.active {
    color: #1d1d1d;
    font-weight: 500;
}

.saved-toggle-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: #fff;
    border-radius: 37px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Tab Content */
.saved-tab-content {
    display: none;
    flex: 1;
    position: relative;
    min-height: 0;
}

.saved-tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.saved-tab-content .page-scroll-content {
    position: relative;
    flex: 1;
    padding-bottom: 100px;
}

.saved-looks-content {
    padding: 0;
}

.saved-looks-gradient {
    height: 180px;
    background: linear-gradient(180deg, #E2E0DE 0%, #ffffff 100%);
}

.saved-looks-inner {
    padding: 0;
    margin-top: -60px;
}

/* Collections Header */
.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 20px;
    margin-bottom: 4px;
}

.collections-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: -0.5px;
}

/* New Collection card */
.collection-new-cover {
    background: #f5f3f0;
    border: 2px dashed #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-new-cover svg {
    opacity: 0.5;
}

.collection-album-new:active .collection-new-cover {
    background: #eae8e5;
}

/* Collections Album Grid */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 40px;
}

.collection-album {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.collection-album:active .collection-album-cover {
    transform: scale(0.97);
}

.collection-album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f3f0;
    transition: transform 0.2s ease;
}

.collection-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-album-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

.collection-album-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 2px;
}

.collection-album-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: -0.1px;
    line-height: 1.3;
}

.collection-album-count {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #86868b;
    line-height: 1.3;
}

/* Collection Detail View — full-screen TikTok-style */
.collection-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 8700;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.collection-detail.active {
    transform: translateX(0);
}

/* Nav bar — floats over content */
.collection-detail-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    padding-top: calc(env(safe-area-inset-top) + 20px);
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 100%);
    padding-bottom: 40px;
}

.collection-detail-nav > * {
    pointer-events: auto;
}

.collection-detail-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

.collection-detail-counter {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top) + 52px);
    text-align: center;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 10;
}

.collection-detail-bell {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.collection-detail-bell img {
    filter: brightness(0) invert(1);
}

/* Vertical snap scroll container */
.collection-vsnap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #000;
}

.collection-vsnap::-webkit-scrollbar {
    display: none;
}

/* Each vertical item = one look, full viewport height */
.collection-vsnap-item {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.collection-vsnap-item.moving-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Swipe hint — smooth peek */
@keyframes peekSlide {
    0% { transform: translateX(0); }
    40% { transform: translateX(-50px); }
    100% { transform: translateX(0); }
}

.peek-hint-active {
    animation: peekSlide 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.peek-hint-behind {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.peek-hint-behind img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
}

/* Horizontal carousel inside each look (alternates) */
.collection-hcarousel {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.collection-hcarousel::-webkit-scrollbar {
    display: none;
}

.collection-hslide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

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

/* Bottom footer area */
.collection-detail-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
    padding: 16px 0 0;
}

.collection-detail-footer.move-open {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.collection-detail-footer > * {
    pointer-events: auto;
}

/* Default footer content (dots + scrubber) */
.collection-footer-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0 20px 14px;
}

/* Action buttons — aligned to bottom nav position */
.collection-detail-actions {
    display: flex;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 430px;
    height: 52px;
    margin-bottom: 24px;
    overflow: hidden;
}

.collection-detail-actions .look-action-btn {
    border-radius: 0;
    height: 100%;
    padding: 0;
}

/* Alternate dots (horizontal variants) */
.collection-alt-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 8px;
}

.collection-alt-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.collection-alt-dot.active {
    width: 20px;
    background: #fff;
}

/* Thumbnail scrubber */
.collection-scrubber-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0;
    scroll-snap-type: x proximity;
}

.collection-scrubber-track::-webkit-scrollbar {
    display: none;
}

.collection-scrubber-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    opacity: 0.45;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
}

.collection-scrubber-thumb.active {
    border-color: #fff;
    opacity: 1;
}

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

/* Move button styles */
.collection-move-btn {
    background: #000;
    color: #fff;
    transition: box-shadow 0.2s ease;
}

.collection-move-btn svg {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* Active/open state */
.collection-detail-footer.move-open .collection-move-btn {
    box-shadow: none;
}

/* Move panel — expands up from buttons, covers scrubber/dots */
.collection-move-panel {
    display: none;
    flex-direction: column;
    background: #000;
    padding: 20px 16px 12px;
    width: calc(100% - 40px);
    max-width: 430px;
    border-radius: 20px 20px 0 0;
}

.collection-detail-footer.move-open .collection-move-panel {
    display: flex;
}

.collection-detail-footer.move-open .collection-footer-default {
    display: none;
}

.collection-move-panel-header {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 0 12px;
}

.collection-move-list {
    display: flex;
    flex-direction: column;
}

.collection-move-option {
    padding: 11px 0;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.collection-move-option:active {
    color: #fff;
}

.collection-move-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.collection-move-new {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.collection-move-remove {
    color: #ff453a;
    font-weight: 500;
}

/* All Looks Section */
.all-looks-section {
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}

.all-looks-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.all-looks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.all-looks-card {
    display: flex;
    flex-direction: column;
}

.all-looks-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f3f0;
    border-radius: 4px;
}

.all-looks-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* all-looks-dots: uses shared .menu-dots-btn */

.all-looks-heart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-looks-heart svg {
    width: 16px;
    height: 16px;
}

/* Profile icon SVG is visually heavier, scale it down */
.bottom-nav-tab[data-page="profile"] .bottom-nav-icon {
    width: 16px;
    height: 16px;
}

/* Card removing animation */
.all-looks-card.removing {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.all-looks-card.removed {
    display: none;
}

/* Heart unfilled state */
.all-looks-heart.unfilled svg {
    fill: none;
}

/* ===== Grid reflow animation ===== */
.all-looks-card.flip-animate {
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.all-looks-card.drag-placeholder {
    display: none;
}

/* ===== Wishlist Tab ===== */
.wishlist-content {
    padding: 0;
}

.wishlist-inner {
    padding: 0 20px;
    margin-top: -60px;
}

.wishlist-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wishlist-card {
    display: flex;
    flex-direction: column;
}

.wishlist-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wishlist-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 15%;
}

.wishlist-heart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-heart svg {
    width: 16px;
    height: 16px;
}

.wishlist-heart.unfilled svg {
    fill: none;
}

.wishlist-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wishlist-card-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.wishlist-card-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.wishlist-card-price {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 2px;
}

/* Removing / removed animations — shared with all-looks */
.wishlist-card.removing {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wishlist-card.removed {
    display: none;
}

.wishlist-card.flip-animate {
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

/* ===== Profile Page ===== */
.profile-page {
    display: none;
    flex-direction: column;
}

.profile-page.active {
    display: flex;
    flex-direction: column;
}

.profile-gradient {
    height: 180px;
    background: linear-gradient(180deg, #E2E0DE 0%, #ffffff 100%);
}

.profile-page .page-scroll-content {
    overflow-y: hidden;
    overflow: hidden;
}

.profile-content {
    padding: 0 20px;
    margin-top: -60px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
    box-sizing: border-box;
    padding-bottom: 80px;
}

.profile-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

/* Current Avatar */
.avatar-current {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.avatar-current img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

/* Avatar Actions */
.avatar-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.avatar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    background: transparent;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1d1d1d;
    cursor: pointer;
    transition: background 0.15s ease;
}

.avatar-action-btn:active {
    background: #f4f4f4;
}

/* Avatar Gallery */
.avatar-gallery-section {
    width: 100%;
    flex-shrink: 0;
}

.avatar-gallery-title {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1d1d1d;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.avatar-gallery {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: 20px;
    scrollbar-width: none;
    gap: 8px;
    margin: 0 -20px;
    padding: 0 20px;
}

.avatar-gallery::-webkit-scrollbar {
    display: none;
}

.avatar-card {
    position: relative;
    height: 14vh;
    width: 24vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.avatar-card.active {
    border-color: #1d1d1d;
}

.avatar-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.avatar-card-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d1d1d;
    display: none;
    align-items: center;
    justify-content: center;
}

.avatar-card.active .avatar-card-check {
    display: flex;
}

.avatar-card-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.avatar-card:hover .avatar-card-remove,
.avatar-card .avatar-card-remove {
    display: flex;
}

/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    flex-direction: column;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 12px;
    background: #fff;
    flex-shrink: 0;
}

.search-overlay .overlay-top-nav {
    z-index: 10;
}

.search-overlay-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.search-overlay-scroll::-webkit-scrollbar {
    display: none;
}

.search-overlay-content {
    padding: 0 20px 100px;
}

.search-overlay-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-overlay-input-wrap .sheet-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-overlay-input-wrap .sheet-input {
    width: 100%;
    padding: 8px 14px 8px 40px;
    height: 36px;
    box-sizing: border-box;
}

.search-overlay-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: linear-gradient(0deg, #fff 70%, transparent);
    flex-shrink: 0;
}

.search-segmented-control {
    display: flex;
    position: relative;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid #ebebeb;
}

.search-segment-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(25% - 1.5px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.search-segment-indicator[data-pos="0"] {
    transform: translateX(0);
}

.search-segment-indicator[data-pos="1"] {
    transform: translateX(100%);
}

.search-segment-indicator[data-pos="2"] {
    transform: translateX(200%);
}

.search-segment-indicator[data-pos="3"] {
    transform: translateX(300%);
}

.search-segment {
    flex: 1;
    padding: 9px 0;
    border: none;
    background: none;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
    text-align: center;
    border-radius: 8px;
}

.search-segment.active {
    color: #1d1d1d;
}

.search-results-label {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-bottom: 12px;
}

.search-generate-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #1d1d1d;
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.15s ease;
}

.search-generate-btn:active {
    background: #333;
}

.search-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.search-result-card {
    display: flex;
    flex-direction: column;
}

.search-result-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 4px;
    margin-bottom: 8px;
}

.search-result-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 15%;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-result-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.search-result-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
}

.search-result-price {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 2px;
}

.search-result-closet-chip {
    display: inline-block;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 100px;
    background: #f4f4f4;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #1d1d1d;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-top: 4px;
}

/* Search result card removing/removed animations */
.search-result-card.removing {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-result-card.removed {
    display: none;
}

.search-result-card.flip-animate {
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

/* ===== Generate Toast ===== */
/* Bell bounce on generate */
@keyframes bellBounce {
    0% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

.bell-btn.bell-bounce {
    animation: bellBounce 0.6s ease;
}

/* Generate button loading state */
.search-generate-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== Action Toast (reusable) ===== */
.action-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1d1d1d;
    color: #fff;
    border-radius: 40px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    white-space: nowrap;
    max-width: 430px;
    width: calc(100% - 40px);
}

.action-toast.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.action-toast-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-toast-icon {
    flex-shrink: 0;
    display: none;
}

.action-toast-spinner {
    flex-shrink: 0;
    display: none;
    animation: bellSpin 1s linear infinite;
}

.action-toast.has-spinner .action-toast-spinner {
    display: block;
}

.action-toast-icon.heart-icon {
    fill: none;
}

.action-toast-icon.closet-icon {
    opacity: 1;
}

.action-toast-icon.closet-icon .closet-filled {
    display: none;
}

.action-toast-icon.closet-icon.filled .closet-outline {
    display: none;
}

.action-toast-icon.closet-icon.filled .closet-filled {
    display: block;
}

.action-toast.has-icon .action-toast-icon.active {
    display: block;
}

.action-toast.has-icon .action-toast-icon.heart-icon.filled {
    fill: #fff;
}

.action-toast.has-icon .action-toast-icon.closet-icon.filled {
    opacity: 1;
}

.action-toast-icon.bell-icon {
    fill: none;
}


.action-toast-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-toast-undo {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: none;
    transition: background 0.15s ease;
}

.action-toast-undo:active {
    background: rgba(255, 255, 255, 0.25);
}

.action-toast.has-undo .action-toast-undo {
    display: inline;
}

.action-toast-link {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: none;
    transition: background 0.15s ease;
}

.action-toast-link:active {
    background: rgba(255, 255, 255, 0.25);
}

.action-toast.has-link .action-toast-link {
    display: inline;
}

/* Collection picker toggle button */
.action-toast-collection-toggle {
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    color: #fff;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.action-toast-collection-toggle:active {
    background: rgba(255, 255, 255, 0.25);
}

.action-toast-collection-toggle svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.action-toast.picker-open .action-toast-collection-toggle svg {
    transform: rotate(180deg);
}

.action-toast.has-collection-picker .action-toast-collection-toggle {
    display: flex;
}

/* Collection picker dropdown */
.action-toast-collection-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: #2a2a2a;
    border-radius: 14px;
    padding: 6px 0;
    min-width: 200px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    scrollbar-width: none;
}

.action-toast-collection-picker::-webkit-scrollbar {
    display: none;
}

.action-toast.picker-open .action-toast-collection-picker {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.collection-picker-option {
    padding: 10px 16px;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collection-picker-option:active {
    background: rgba(255, 255, 255, 0.1);
}

.collection-picker-option.active {
    color: #fff;
    font-weight: 500;
}

.collection-picker-option.active::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.collection-picker-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 16px;
}

.collection-picker-new {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ===== Look Drawer Bottom Sheet ===== */
.look-drawer-sheet {
    top: env(safe-area-inset-top, 0px);
    display: flex;
    flex-direction: column;
    padding: 12px 0 0;
    border-radius: 20px 20px 0 0;
}

.look-drawer-sheet .sheet-handle {
    display: none;
}

.look-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 24px 12px;
}

.look-drawer-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 24px 90px;
}

.look-drawer-scroll::-webkit-scrollbar {
    display: none;
}

.look-drawer-subtitle {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1d;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.look-drawer-image {
    position: relative;
    width: 60%;
    margin: 0 auto 16px;
    aspect-ratio: 3 / 4;
    background: #f5f3f0;
    border-radius: 4px;
    overflow: hidden;
}

.look-drawer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.look-drawer-heart {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.look-drawer-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.look-drawer-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e8e8e8;
}

.look-drawer-product:last-child {
    border-bottom: 1px solid #e8e8e8;
}

.look-drawer-product-img {
    width: 72px;
    height: 90px;
    flex-shrink: 0;
    background: #f2f2f2;
    border-radius: 4px;
    overflow: hidden;
}

.look-drawer-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 10%;
}

.look-drawer-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.look-drawer-product-brand {
    font-family: "Amazon Ember Modern Display", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
}

.look-drawer-product-name {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
}

.look-drawer-product-price {
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 2px;
}

.look-drawer-product-chip {
    display: inline-block;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 100px;
    background: #f4f4f4;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #1d1d1d;
    margin-top: 4px;
}

.look-drawer-product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.look-drawer-product-actions button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.look-drawer-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 430px;
    width: calc(100% - 48px);
    z-index: 5;
    pointer-events: none;
}

.look-drawer-edit-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    background: #fff;
    font-family: "Amazon Ember Modern Text", "Amazon Ember", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1d;
    cursor: pointer;
    transition: background 0.15s ease;
    pointer-events: auto;
}

.look-drawer-edit-btn:active {
    background: #f4f4f4;
}
