/* ============================================================
   Lara — style.css v1
   Feminine Elegant Blush / Champagne Gold Palette
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:       #6f4e37;
    --primary-dk:    #5a3d2b;
    --primary-lt:    #8a6f63;
    --primary-faint: #fdf4f1;
    --champagne:     #b48a64;
    --champagne-lt:  #d4a882;
    --blush:         #d7a2af;
    --blush-lt:      #f0d0d8;
    --blush-faint:   #fff0f3;
    --rose:          #c0697a;

    --text:          #4b3c36;
    --text-muted:    #8a6f63;
    --text-light:    #b09a8e;
    --bg:            #fffaf8;
    --card:          #ffffff;
    --border:        #ead8c8;
    --border-lt:     #f5e8df;

    --shadow-sm:     0 2px 8px rgba(111,78,55,0.08);
    --shadow-md:     0 8px 24px rgba(111,78,55,0.12);
    --shadow-lg:     0 20px 50px rgba(111,78,55,0.14);

    --r-sm:          10px;
    --r-md:          16px;
    --r-lg:          22px;
    --r-xl:          28px;

    --header-h:      60px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 80% 10%, rgba(215,162,175,0.12) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(180,138,100,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #fff8f5 0%, #fffaf8 60%);
    background-attachment: fixed;
}
button { cursor: pointer; border: none; background: none; font: inherit; touch-action: manipulation; }
input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

/* ── Touch fix ──────────────────────────────────────────────── */
.house-row, .cat-card, .list-item, .gallery-item, .toggle-btn,
.hdr-btn, .fav-btn, .filter-chip, .pack-tab, .move-house-btn,
.move-cat-btn, .home-cat-card {
    touch-action: manipulation;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,250,248,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234,216,200,0.6);
    box-shadow: 0 2px 16px rgba(111,78,55,0.07);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: var(--header-h);
}
.header-title { flex: 1; min-width: 0; }
.header-title h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.hdr-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: var(--primary);
    background: rgba(180,138,100,0.1);
    transition: background 0.2s;
    flex-shrink: 0;
}
.hdr-btn:active { background: rgba(180,138,100,0.22); }

/* ── Main ───────────────────────────────────────────────────── */
.main-content { padding-bottom: 40px; }
.view { display: none; }
.view.active { display: block; }

/* ── Home Hero ──────────────────────────────────────────────── */
.home-hero {
    text-align: center;
    padding: 28px 20px 20px;
}
.hero-brand-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 10px;
    object-fit: contain;
}
.hero-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 10px;
}
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 8px;
}
.hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* ── Pack CTA ───────────────────────────────────────────────── */
.pack-cta-wrap { padding: 0 18px 14px; }
.pack-cta-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #b48a64 0%, #d7a2af 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(180,138,100,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pack-cta-btn:active { transform: scale(0.98); box-shadow: 0 4px 12px rgba(180,138,100,0.3); }

/* ── Home Search Bar ────────────────────────────────────────── */
.home-search-wrap { padding: 0 18px 16px; }
.home-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 12px 18px;
    box-shadow: var(--shadow-sm);
}
.home-search-icon { color: var(--champagne); font-size: 15px; flex-shrink: 0; }
#homeSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}
#homeSearchInput::placeholder { color: var(--text-light); }

/* ── Section Label ──────────────────────────────────────────── */
.home-section-label {
    padding: 0 20px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--champagne);
}

/* ── House List ─────────────────────────────────────────────── */
.house-list { padding: 0 18px; margin-bottom: 6px; }
.house-list-primary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.house-list-utility { display: flex; flex-direction: column; gap: 10px; }
.house-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border: 1.5px solid rgba(215,162,175,0.35);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: left;
}
.house-row:active { transform: scale(0.98); box-shadow: none; }
.house-row-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    background: linear-gradient(135deg, #e8c5cd, #d4a882);
    color: #fff;
    flex-shrink: 0;
}
.house-row-body { flex: 1; min-width: 0; }
.house-row-name { display: block; font-size: 15px; font-weight: 700; color: var(--primary); }
.house-row-count { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.house-row-arrow { color: var(--champagne); font-size: 13px; flex-shrink: 0; }

/* Glencove – green tint */
.house-row-glencove {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: rgba(134,239,172,0.4);
}
.house-row-glencove .house-row-icon {
    background: linear-gradient(135deg, #4ade80, #15803d);
}

/* All Closets */
.house-row-all {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border-color: rgba(253,230,138,0.5);
}
.house-row-all .house-row-all-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
}

/* All Favorites */
.house-row-favs {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: rgba(254,202,202,0.5);
}
.house-row-favs .house-row-favs-icon {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    color: #fff;
}

/* Desktop: side by side */
@media (min-width: 700px) {
    .house-list-primary { flex-direction: row; }
    .house-list-utility { flex-direction: row; }
    .house-row { flex: 1; }
}

/* ── Home Category Grid ─────────────────────────────────────── */
.home-categories-section {
    margin: 16px 18px 0;
    padding: 18px 16px 18px;
    border: 1px solid rgba(180,138,100,0.18);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(253,244,241,0.98));
    box-shadow: var(--shadow-sm);
}
.home-categories-section .home-section-label {
    padding: 0 0 12px;
}
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 520px) { .home-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .home-cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .home-cat-grid { grid-template-columns: repeat(5, 1fr); } }

.home-cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    background: linear-gradient(160deg, #ffffff 0%, #fff7f5 100%);
    border: 1px solid rgba(215,162,175,0.25);
    border-radius: var(--r-md);
    box-shadow: 0 4px 14px rgba(145,106,83,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: left;
    gap: 8px;
    min-height: 120px;
}
.home-cat-card:active { transform: scale(0.97); box-shadow: none; }
.home-cat-card .cat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5d0d8, #e8c5b0);
    color: #7a4f3a;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.home-cat-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    flex: 1;
}
.home-cat-card .cat-count {
    font-size: 11px;
    color: var(--champagne);
    font-weight: 600;
    margin-top: auto;
}
.home-cat-card .sub-badge {
    font-size: 10px;
    color: var(--blush);
    font-weight: 600;
}

/* ── Category Grid View ─────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}
@media (min-width: 520px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 14px;
    background: linear-gradient(160deg, #ffffff 0%, #fff7f5 100%);
    border: 1.5px solid rgba(215,162,175,0.3);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    gap: 8px;
}
.cat-card:active { transform: scale(0.97); box-shadow: none; }
.cat-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5d0d8, #e8c5b0);
    color: #7a4f3a;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
}
.cat-card h3 { font-size: 13px; font-weight: 700; color: var(--primary); }
.cat-card .sub-badge {
    font-size: 10px;
    color: var(--blush);
    font-weight: 600;
}
.cat-count { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* House-specific cat icon colours */
main[data-house="Main House"] .cat-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}
main[data-house="Glencove"] .cat-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
main[data-house="All Closets"] .cat-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--border-lt);
    background: rgba(255,250,248,0.9);
    position: sticky;
    top: var(--header-h);
    z-index: 50;
}
.filter-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 9px 14px;
    box-shadow: var(--shadow-sm);
}
.filter-search-icon { color: var(--champagne); font-size: 13px; flex-shrink: 0; }
#filterInput {
    flex: 1; border: none; outline: none;
    font-size: 14px; color: var(--text); background: transparent;
}
#filterInput::placeholder { color: var(--text-light); }
.filter-clear-btn { color: var(--text-light); font-size: 15px; background: none; border: none; }

.filter-bar-row2 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}
.fav-filter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose);
    border: 1.5px solid rgba(192,105,122,0.3);
    background: rgba(192,105,122,0.06);
    transition: all 0.15s;
}
.fav-filter-btn.active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}
.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-chip.active {
    background: var(--champagne);
    color: #fff;
    border-color: var(--champagne);
}
.color-dot { font-size: 9px; }

/* ── View Toggle ────────────────────────────────────────────── */
.view-toggle {
    display: flex;
    gap: 8px;
    padding: 10px 16px 6px;
}
.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--card);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all 0.15s;
}
.toggle-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Items List ─────────────────────────────────────────────── */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px;
}
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    background: var(--card);
    border-radius: var(--r-md);
    border: 1px solid var(--border-lt);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    width: 100%;
    transition: transform 0.12s;
}
.list-item:active { transform: scale(0.99); }
.list-thumb {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.list-ph {
    width: 56px; height: 56px;
    border-radius: 10px;
    background: var(--primary-faint);
    display: flex; align-items: center; justify-content: center;
    color: var(--champagne);
    font-size: 20px;
    flex-shrink: 0;
}
.list-body { flex: 1; min-width: 0; }
.list-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}
.list-meta i { font-size: 10px; }
.list-notes {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-arrow { color: var(--text-light); font-size: 12px; flex-shrink: 0; }
mark { background: rgba(180,138,100,0.25); border-radius: 3px; padding: 0 2px; }

/* ── Fav Button ─────────────────────────────────────────────── */
.fav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--text-light);
    background: none;
    border: none;
    flex-shrink: 0;
    transition: color 0.15s;
}
.fav-btn.fav-active { color: var(--rose); }
.fav-btn:active { transform: scale(1.15); }

/* ── Gallery ────────────────────────────────────────────────── */
.items-gallery {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 14px;
}
@media (min-width: 520px) { .items-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .items-gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    position: relative;
    border-radius: var(--r-md);
    background: var(--card);
    border: 1px solid var(--border-lt);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: left;
    width: 100%;
    transition: transform 0.12s;
}
.gallery-item:active { transform: scale(0.98); }
.gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.gallery-ph {
    width: 100%;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-faint);
    font-size: 36px;
    color: var(--champagne);
}
.gallery-info {
    padding: 8px 10px 10px;
}
.gallery-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.gallery-info p {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-btn-gallery {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

/* ── House badge ─────────────────────────────────────────────── */
.house-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 50px;
}
.house-badge-mainhouse { background: #dbeafe; color: #1e3a8a; }
.house-badge-glencove  { background: #d1fae5; color: #065f46; }

/* ── Category chip ──────────────────────────────────────────── */
.category-chip-sm {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50px;
    background: var(--primary-faint);
    color: var(--primary-lt);
    font-weight: 600;
    margin-top: 2px;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* ── Loading ─────────────────────────────────────────────────── */
.loading {
    text-align: center;
    padding: 60px 24px;
    color: var(--champagne);
}
.loading i { font-size: 32px; display: block; margin-bottom: 12px; }
.loading p { font-size: 14px; color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 22px;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, #b48a64, #d7a2af);
    color: #fff;
    box-shadow: 0 6px 18px rgba(180,138,100,0.35);
}
.btn-secondary {
    background: var(--primary-faint);
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-danger { background: #fee2e2; color: #dc2626; border: 1.5px solid #fca5a5; }

/* ── Photo Buttons ───────────────────────────────────────────── */
.photo-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-gallery, .btn-cam {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-faint);
    border: 1.5px solid var(--border);
    cursor: pointer;
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(60,30,20,0.45);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.modal.open { display: flex; }
.modal-sheet {
    background: var(--card);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 22px 20px 40px;
    box-shadow: 0 -10px 50px rgba(60,30,20,0.2);
    animation: slideUp 0.28s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.modal-hdr h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-muted);
    background: var(--primary-faint);
    display: flex; align-items: center; justify-content: center;
}

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    background: #fffaf8;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--champagne);
    box-shadow: 0 0 0 3px rgba(180,138,100,0.15);
}
.form-group small {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}
.form-ctx {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--primary-faint);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
}
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; }

/* ── Photo Preview ───────────────────────────────────────────── */
.photo-preview { margin-top: 10px; }
.photo-preview img {
    max-height: 180px;
    border-radius: var(--r-md);
    object-fit: cover;
    border: 1.5px solid var(--border);
}

/* ── Camera ─────────────────────────────────────────────────── */
.camera-sheet { max-height: 95dvh; }
.camera-view {
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 14px;
}
#cameraVideo { width: 100%; max-height: 60dvh; object-fit: cover; display: block; }
.camera-controls { display: flex; gap: 10px; }
.camera-controls .btn { flex: 1; }

/* ── View Item Modal ─────────────────────────────────────────── */
.detail-photo {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--r-md);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lt);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.detail-value { font-size: 14px; color: var(--text); font-weight: 600; text-align: right; max-width: 60%; }
.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-lt);
}
.detail-act-btn { flex: 1; padding: 11px 8px; font-size: 13px; }
#detailFavBtn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--rose);
    background: rgba(192,105,122,0.08);
    border: 1.5px solid rgba(192,105,122,0.25);
    margin-bottom: 14px;
    transition: all 0.15s;
}
#detailFavBtn.fav-active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

/* ── Move Modal ─────────────────────────────────────────────── */
.move-step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.move-house-list { display: flex; flex-direction: column; gap: 10px; }
.move-house-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--primary-faint);
    border: 1.5px solid var(--border);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}
.move-house-btn:active { background: var(--border); }
.move-cat-list { display: flex; flex-direction: column; gap: 8px; max-height: 60dvh; overflow-y: auto; }
.move-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: var(--card);
    border: 1px solid var(--border-lt);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background 0.12s;
}
.move-cat-btn:active { background: var(--primary-faint); }

/* ── Search Results ─────────────────────────────────────────── */
.search-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
}
.search-result-count { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.search-clear-link {
    font-size: 13px;
    color: var(--champagne);
    font-weight: 700;
    display: flex; align-items: center; gap: 5px;
}
.search-results-list { padding: 0 14px; }
.search-empty {
    text-align: center;
    padding: 50px 24px;
    color: var(--text-muted);
}
.search-empty i { font-size: 44px; color: var(--border); margin-bottom: 14px; display: block; }

/* ── Pack Modal ─────────────────────────────────────────────── */
.pack-modal-sheet { max-height: 94dvh; }
.pack-closet-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b48a64' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.pack-loading-wrap {
    text-align: center;
    padding: 40px 20px;
}
.pack-loading-wrap p { color: var(--text-muted); margin: 16px 0; font-size: 14px; }
.pack-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-lt);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 16px;
}
.pack-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #b48a64, #d7a2af);
    border-radius: 50px;
    width: 0%;
    transition: width 0.4s ease;
}
.pack-weather-banner {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 1px solid #fde68a;
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 14px;
    display: none;
}
.pack-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-lt);
    margin-bottom: 14px;
}
.pack-tab {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.pack-tab.active {
    color: var(--champagne);
    border-bottom-color: var(--champagne);
    background: rgba(180,138,100,0.06);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.pack-section {
    margin-bottom: 16px;
}
.pack-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pack-item-list { display: flex; flex-direction: column; gap: 4px; }
.pack-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    background: var(--primary-faint);
    font-size: 13px;
    color: var(--text);
}
.pack-item i { color: var(--champagne); font-size: 12px; margin-top: 1px; flex-shrink: 0; }
.pack-shopping-note {
    font-size: 12px;
    color: var(--rose);
    font-style: italic;
    background: rgba(192,105,122,0.07);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    margin-top: 8px;
}
.outfit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.outfit-card-hdr {
    padding: 12px 14px 10px;
    background: linear-gradient(135deg, var(--primary-faint), #ffffff);
    border-bottom: 1px solid var(--border-lt);
}
.outfit-card-hdr h4 { font-size: 14px; font-weight: 700; color: var(--primary); }
.outfit-card-hdr p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.outfit-pieces {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px 14px;
}
.outfit-piece-item {
    background: var(--primary-faint);
    border-radius: var(--r-sm);
    padding: 8px 10px;
}
.outfit-piece-role { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.outfit-piece-name { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.outfit-tip {
    margin: 0 14px 12px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: #fefce8;
    border-top: 2px solid #fde68a;
    font-size: 11px;
    color: #7c6f3b;
    font-style: italic;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    z-index: 999;
    transition: transform 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    .modal-sheet { border-radius: var(--r-xl); margin: auto; max-height: 88vh; }
    .modal { align-items: center; padding: 20px; }
}
