/* =====================================================
   FindMeLook — Main Stylesheet
   Design: Soft luxury, cream & rose palette
   ===================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream:        #ffffff;
    --cream-dark:   #f7f7f7;
    --rose:         #3b6866;
    --rose-deep:    #2a4a49;
    --rose-pale:    #eff5f5;
    --charcoal:     #000000;
    --text:         #2b2b2b;
    --text-muted:   #8a8a8a;
    --white:        #ffffff;
    --border:       #e5e5e5;
    --radius:       8px;
    --radius-sm:    4px;
    --shadow-sm:    0 2px 4px rgba(0,0,0,.04);
    --shadow-md:    0 6px 16px rgba(0,0,0,.08);
    --shadow-lg:    0 12px 32px rgba(0,0,0,.12);
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--charcoal);
    color: var(--white);
    border-color: transparent;
    box-shadow: none;
    border-radius: 6px;
}
.btn--primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn--ghost {
    background: transparent;
    border-color: var(--charcoal);
    color: var(--charcoal);
    border-radius: 6px;
}
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }
.btn--sm { padding: 7px 16px; font-size: 0.82rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn-add-item {
    width: 100%;
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.02);
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add-item:hover {
    background: rgba(0,0,0,0.06);
    color: var(--charcoal);
}
.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
    border-radius: 6px;
}
.btn--outline:hover { background: var(--cream-dark); }
.btn--follow {
    background: var(--rose);
    color: var(--white);
    border-color: transparent;
    border-radius: 6px;
}
.btn--follow:hover { opacity: 0.9; transform: translateY(-1px); }
.btn--danger { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.btn--danger:hover { background: #dc2626; color: white; }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    color: var(--charcoal);
    transition: opacity var(--transition);
    text-decoration: none;
}
.logo__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.header__logo:hover { opacity: 0.8; }
.logo__text strong { 
    font-weight: 700;
    font-style: italic;
    color: #c96b7a; 
}

.header__search {
    flex: 1;
    max-width: 380px;
    position: relative;
}
.search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}
.search__input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--cream-dark);
    border: 1px solid transparent;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}
.search__input:focus {
    background: var(--white);
    border-color: var(--border);
    box-shadow: 0 0 0 4px rgba(0,0,0,.03);
}
.header__mobile-actions { display: none; }
.mobile-search-bar { display: none; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.nav__link svg { width: 22px; height: 22px; }
.nav__link:hover, .nav__link.active { color: var(--rose-deep); }
.nav__link--create {
    background: linear-gradient(135deg, var(--rose-deep), #d4748a);
    color: white !important;
    border-radius: 50px;
    padding: 8px 16px;
    flex-direction: row;
    gap: 6px;
    font-size: 0.85rem;
}
.nav__link--create:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,107,122,.4); }
.nav__link--create svg { width: 18px; height: 18px; }
.nav__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.user-menu:hover .user-dropdown,
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 100;
}
.user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
    transition: background 0.2s;
}
.user-dropdown a:hover {
    background: var(--cream-dark);
    color: var(--rose-deep);
}
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 20px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, #fdf0f0 0%, #faf5ff 50%, #f0f8ff 100%);
    padding: 45px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,160,160,.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(rgba(10, 10, 15, 0.4), rgba(10, 10, 15, 0.4)),
        url('../images/welcome.jpg') center/cover no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: var(--rose-deep);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero__title em {
    font-style: italic;
    color: #fda4af; /* a lighter pink that pops on dark bg */
}
.hero__sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}
.hero .btn--ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ---------- BRANDS TICKER ---------- */
.brands-ticker {
    background: transparent;
    padding: 15px 0;
    margin-top: 45px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.brands-ticker__track {
    display: flex;
    align-items: center;
    animation: scrollTicker 200s linear infinite;
}
.brands-ticker__track:hover {
    animation-play-state: paused;
}
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brands-ticker__logo {
    height: 35px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin-right: 60px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1) opacity(0.85);
}
.brands-ticker__logo:hover {
    transform: scale(1.15);
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 2px 8px rgba(255,255,255,0.3));
}
.brands-ticker__text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-display);
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 60px;
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
    line-height: 35px;
}
.brands-ticker__text:hover {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.15);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* ---------- FILTERS ---------- */
.filters {
    padding: 14px 0 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.filters__row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.filters__tabs {
    display: flex;
    max-width: 100%;
}
.filters__tabs-inner {
    display: flex;
    gap: 32px;
    padding: 0;
    border-bottom: none;
    flex-shrink: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.filters__tabs-inner::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.filters__tab {
    padding: 8px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.filters__tab:hover {
    color: var(--charcoal);
    background: rgba(0,0,0,0.04);
}
.filters__tab.active {
    color: var(--charcoal);
    border-bottom-color: var(--rose);
    background: rgba(0,0,0,0.05);
}
.filters--has-sub {
    margin-bottom: 0 !important;
}
.filters--sub {
    border-bottom: none;
    padding-top: 0;
}
.filters__tab--sub {
    padding: 6px 14px;
    font-size: 0.95rem;
    border-bottom: none;
    border-top: 3px solid transparent;
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
    margin-top: -1px;
}
.filters__tab--sub.active {
    border-bottom-color: transparent;
    border-top-color: var(--rose);
}
.filters__cats {
    display: flex;
}
.filters__type {
    display: flex;
}
.filters__sort {
    display: flex;
}
.filter-chip {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
}
.filter-chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.filter-chip.active {
    background: var(--rose-deep);
    border-color: var(--rose-deep);
    color: white;
}
.custom-dropdown {
    position: relative;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.custom-dropdown__selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}
.custom-dropdown:hover .custom-dropdown__selected {
    border-color: var(--rose-deep);
}
.custom-dropdown.open .custom-dropdown__selected {
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 3px rgba(232,160,160,0.2);
}
.custom-dropdown__selected svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.custom-dropdown.open .custom-dropdown__selected svg {
    transform: rotate(180deg);
}
.custom-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-width: 160px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    padding: 8px;
}
.custom-dropdown.open .custom-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.custom-dropdown__item {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    color: var(--text);
    text-align: center;
}
.custom-dropdown__item:hover {
    background: var(--cream);
    color: var(--rose-deep);
}
.custom-dropdown__item.active {
    background: var(--rose-deep);
    color: var(--white);
}

/* Custom scrollbar for dropdown */
.custom-dropdown__menu::-webkit-scrollbar {
    width: 6px;
}
.custom-dropdown__menu::-webkit-scrollbar-track {
    background: transparent;
}
.custom-dropdown__menu::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
.custom-dropdown__menu::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ---------- ITEMS GRID (Products tab) ---------- */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 0 20px;
}

.item-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.item-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.item-card:hover .item-card__img-wrap img {
    transform: scale(1.03);
}

.item-card__placeholder {
    font-size: 2.5rem;
    opacity: 0.4;
}

.item-card__overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.item-card__info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.item-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card__brand {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rose-deep);
    margin-top: 2px;
}

.item-card__look-name {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- LOOKS GRID ---------- */
.looks-section { padding: 0 0 60px; }
.filters { margin-bottom: 20px; }

.looks-grid {
    column-count: 4;
    column-gap: 20px;
}

.look-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    break-inside: avoid;
    margin-bottom: 20px;
}
.look-card:hover {
    transform: translateY(-4px);
}
.look-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cream-dark);
    border-radius: 12px;
}
.look-card__img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.look-card:hover .look-card__img-wrap img { transform: scale(1.05); }
.look-card__overlay {
    display: none;
}
.look-card__info {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.look-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--charcoal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.look-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.look-card__stat {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Status badge on look cards (owner only) */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.9);
    color: var(--charcoal);
}
.status--active {
    background: #d1fae5;
    color: #065f46;
}
.status--pending {
    background: #fef3c7;
    color: #92400e;
}
.status--rejected {
    background: #fee2e2;
    color: #991b1b;
}
.status--hidden {
    background: #f3f4f6;
    color: #374151;
}

.look-card__footer {
    padding: 10px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.look-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    flex: 1;
    min-width: 0;
    transition: color var(--transition);
}
.look-card__author:hover { color: var(--rose-deep); }
.look-card__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--rose);
}
.look-card__author span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.look-card__cat {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--rose-pale);
    color: var(--rose-deep);
    border-radius: 50px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}
.empty-state__icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- INFINITE SCROLL ---------- */
.scroll-trigger { display: flex; justify-content: center; padding: 40px; }
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--rose-deep);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FORMS ---------- */
.form-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdf0f0 0%, var(--cream) 100%);
}
.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.form-card__logo { text-align: center; margin-bottom: 28px; }
.form-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 6px;
    color: var(--charcoal);
}
.form-card__sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--charcoal);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream-dark);
    transition: all var(--transition);
    outline: none;
}
.form-control:focus { 
    background: var(--white); 
    border-color: var(--border); 
    box-shadow: 0 0 0 4px rgba(0,0,0,.03); 
}
.form-control.error { border-color: #dc2626; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: #dc2626; margin-top: 5px; }
.form-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 1rem; border: none; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.form-footer a { color: var(--charcoal); font-weight: 600; text-decoration: underline; }
.form-footer a:hover { text-decoration: underline; }
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 500;
}
.alert--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert--success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }

/* ---------- LOOK PAGE ---------- */
.look-page { padding: 20px 0 80px; }
.look-page__inner {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 60px;
    align-items: start;
}
/* ── Look Gallery (vertical thumbs + main) ─── */
.look-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.look-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 96px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.look-gallery__thumbs::-webkit-scrollbar { display: none; }

.look-gallery__thumb {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.18s ease, transform 0.18s ease;
    position: relative;
    flex-shrink: 0;
    background: var(--cream-dark);
}
.look-gallery__thumb img,
.look-gallery__thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.look-gallery__thumb:hover {
    border-color: var(--rose);
    transform: scale(1.03);
}
.look-gallery__thumb.active {
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 2px var(--rose-pale);
}
.look-gallery__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
    color: #fff;
    font-size: 22px;
    pointer-events: none;
}

.look-gallery__main {
    flex: 1;
    position: relative;
}
.look-gallery__slide {
    display: none;
    background: transparent;
}
.look-gallery__slide.active {
    display: block;
    background: transparent;
}
.look-gallery__slide img,
.look-gallery__slide video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.look-gallery__slide,
.look-gallery__slide.active {
    border-radius: 12px;
    background: #f0f0f0;
    overflow: hidden;
}

/* Legacy fallback */
.look-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--cream-dark);
    position: relative;
}
.look-media img, .look-media video {
    width: 100%;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}
.look-sidebar {}
.look-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.look-author-card img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.look-author-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--charcoal);
}
.look-author-card__meta { font-size: 0.82rem; color: var(--text-muted); }
.look-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.action-btn:hover { border-color: var(--rose); color: var(--rose-deep); }
.action-btn.liked { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.action-btn.saved { background: var(--rose-pale); border-color: var(--rose); color: var(--rose-deep); }
.look-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}
.look-category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}
.look-category-tag:hover {
    background: var(--rose-pale);
    border-color: var(--rose);
    color: var(--rose-deep);
}
.look-items-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--charcoal);
}
.look-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all var(--transition);
}
.look-item-card:hover { border-color: var(--rose); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.look-item-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--cream-dark);
}
.look-item-card__info { flex: 1; min-width: 0; }
.look-item-card__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.look-item-card__brand { font-size: 0.78rem; color: var(--text-muted); }
.look-item-card__price { font-size: 0.88rem; font-weight: 700; color: var(--rose-deep); margin-top: 3px; }
.look-item-card__btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--rose-deep), #d4748a);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition);
}
.look-item-card__btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(201,107,122,.4); }

/* ---------- PROFILE PAGE ---------- */
.profile-hero {
    background: linear-gradient(135deg, var(--cream), var(--rose-pale));
    padding: 12px 20px 0;
    border-bottom: 1px solid var(--border);
}
.profile-hero__inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}
.avatar-upload-label {
    display: block;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}
.avatar-upload-label:hover .avatar-upload-overlay {
    opacity: 1;
}
.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 50%;
    pointer-events: none;
}
.avatar-upload-input {
    display: none;
}
.profile-info { flex: 1; }
.profile-username {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--charcoal);
}
.profile-header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}
.profile-stats-compact {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.profile-stats-compact span {
    white-space: nowrap;
}
.profile-bio { color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; font-size: 0.95rem; }
.profile-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}
.profile-stat { text-align: left; }
.profile-stat__num { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); display: inline-block; margin-right: 4px; }
.profile-stat__label { font-size: 0.8rem; color: var(--text-muted); display: inline-block; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-looks { padding: 12px 0 80px; }
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}
.profile-tab {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.profile-tab.active { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }

/* ---------- CREATE PAGE ---------- */
.create-page { padding: 40px 0 80px; }
.create-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}
.create-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}
.create-card__sub { color: var(--text-muted); margin-bottom: 32px; }
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--cream);
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--rose);
    background: var(--rose-pale);
}
.upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-zone__icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone__text { font-weight: 600; color: var(--charcoal); }
.upload-zone__sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.upload-preview { margin-top: 16px; }
.upload-preview img {
    max-height: 300px;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.items-builder { margin-top: 32px; }
.items-builder__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.items-builder__title { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); }
.item-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--cream);
    padding: 20px;
    padding-right: 52px; /* Space for absolute close btn */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.item-row__img-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--border);
}
.item-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.item-remove:hover { background: #dc2626; color: white; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: #f5f8f8;
    color: var(--text-muted);
    padding: 60px 0 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer__brand .header__logo { margin-bottom: 12px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col h4 {
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.footer__col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 9px;
    transition: color var(--transition);
}
.footer__col a:hover { color: var(--rose-deep); }
.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    .footer__bottom .copyright {
        flex: 1;
        text-align: left;
    }
    .footer-lang-switch {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .footer__bottom::after {
        content: "";
        flex: 1; /* Balances the flex layout so the center item is perfectly centered */
    }
}

/* Footer Language Switcher Specifics */
.footer-lang-switch .custom-dropdown__selected {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
    padding: 10px 20px;
    box-shadow: var(--shadow-sm);
}
.footer-lang-switch .custom-dropdown__selected svg {
    stroke: var(--white);
}
.footer-lang-switch.custom-dropdown:hover .custom-dropdown__selected {
    background: #000;
    border-color: #000;
}
.footer-lang-switch .custom-dropdown__menu {
    top: auto;
    bottom: calc(100% + 8px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform-origin: bottom center;
}
.footer__social { display: flex; gap: 16px; font-size: 1.2rem; }
.footer__social a { color: var(--text-muted); transition: color var(--transition); }
.footer__social a:hover { color: var(--rose-deep); opacity: 1; }

/* ---------- NEWSLETTER BLOCK ---------- */
.newsletter-block {
    background: linear-gradient(135deg, var(--rose-pale), #fef6f8);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    grid-column: 1 / -1;
    border: 1px solid rgba(232,160,160,.3);
}
.newsletter-block__inner {
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-block__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}
.newsletter-block__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.newsletter-block__form {
    display: flex;
    gap: 12px;
}
.newsletter-block__form .form-control {
    background: var(--white);
    flex: 1;
}

/* ---------- MOBILE NAVIGATION ---------- */
.mobile-bottom-nav { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .looks-grid { column-count: 3; }
    .look-page__inner { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    
    .hide-on-mobile { display: none !important; }
}

@media (min-width: 1025px) {
    .hide-on-desktop { display: none !important; }
}
@media (max-width: 768px) {
    .container { width: 100%; padding: 0 16px; }
    .header__inner { height: 60px; }
    
    .filters__tabs-inner {
        gap: 16px;
    }
    .filters__tab {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
    .header__logo { font-size: 1.5rem; }
    .header__search { display: none; }
    .header__nav { display: none; }
    .header__mobile-actions { display: flex; align-items: center; }
    .mobile-search-bar { display: block; }
    
    button.btn--outline[onclick*="toggleFollow"] {
        font-size: 0 !important;
        padding: 0 !important;
        width: 32px;
        height: 32px;
        min-width: 32px;
        position: relative;
    }
    button.btn--outline[onclick*="toggleFollow"]::after {
        content: "✓";
        font-size: 0.9rem;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    body {
        padding-bottom: 60px; /* Space for bottom nav */
    }
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--white);
        border-top: 1px solid var(--border);
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.2s;
    }
    .mobile-nav__link.active {
        color: var(--charcoal);
    }
    .mobile-nav__link svg {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }
    .mobile-nav__link--create {
        color: var(--rose-deep);
    }
    .mobile-nav__link--create svg {
        width: 28px;
        height: 28px;
    }
    
    .header__burger { display: flex; }
    .looks-grid { column-count: 2; column-gap: 12px; }
    .look-card { margin-bottom: 12px; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .filters { margin-bottom: 12px; }
    .filters__row { flex-wrap: wrap; gap: 10px; }
    .hero { padding: 48px 20px; }
    .form-page { min-height: auto; padding: 20px 16px; }
    .form-card { padding: 32px 24px; }
    .create-card { padding: 24px 20px; }
    .profile-hero__inner { flex-direction: column; align-items: flex-start; }
    .footer__links { grid-template-columns: repeat(2, 1fr); }
    .newsletter-block__form { flex-direction: column; }
}
@media (max-width: 480px) {
    .create-mode-toggle .btn {
        padding: 8px;
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
    }
    .looks-grid { column-count: 2; column-gap: 8px; }
    .look-card { margin-bottom: 8px; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .filters { margin-bottom: 8px; }
    .look-card__footer { padding: 6px; }
    .profile-hero { padding-left: 0; padding-right: 0; }
    .profile-header-main {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    .profile-info-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-info-top > div:first-child {
        justify-content: flex-start !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-bottom: 2px !important;
    }
    .profile-settings-btn {
        display: none !important;
    }
    .profile-stats-compact {
        justify-content: flex-start;
        gap: 8px;
        font-size: 0.85rem;
        flex-wrap: wrap;
        margin-top: 4px;
    }
    .profile-bio-container {
        text-align: left;
    }
    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    .profile-username {
        font-size: 1.3rem !important;
    }
}

/* ── Category Chips (multi-select) ─────────────────── */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-chip {
    cursor: pointer;
    user-select: none;
}
.cat-chip input[type="checkbox"] {
    display: none;
}
.cat-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.18s ease;
    line-height: 1;
    white-space: nowrap;
}
.cat-chip span::before {
    content: '';
    display: none;
}
.cat-chip:hover span {
    border-color: var(--rose-deep);
    color: var(--rose-deep);
    background: var(--rose-pale);
}
.cat-chip input[type="checkbox"]:checked + span {
    background: var(--rose-deep);
    border-color: var(--rose-deep);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(201, 107, 122, 0.35);
    padding-left: 14px;
}
.cat-chip input[type="checkbox"]:checked + span::before {
    content: '✓';
    display: inline;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- ITEM PAGE (Single Product) ---------- */
.item-page {
    padding: 40px 0 80px;
}

.item-page__inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.item-page__image-wrap {
    flex: 1;
    max-width: 600px;
    position: sticky;
    top: 100px;
}

/* Author block above product image */

.item-page__image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.item-page__image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--cream-dark);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.item-page__sidebar {
    flex: 0 0 380px;
    position: sticky;
    top: 100px;
}

.item-page__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.3;
}

.item-page__brand {
    font-size: 1.1rem;
    color: var(--rose-deep);
    font-weight: 600;
    margin-bottom: 8px;
}

.item-page__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.item-page__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.item-page__price-btn {
    font-size: 1.1rem;
    padding: 16px 24px;
    text-align: center;
}

.item-page__look-link {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-page__look-link a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: var(--charcoal);
    text-decoration: none;
    transition: opacity var(--transition);
}

.item-page__look-link a:hover {
    opacity: 0.7;
}

.item-page__look-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

/* Mobile: stacked layout */
@media (max-width: 768px) {
    .item-page {
        padding: 20px 0 60px;
    }

    .item-page__inner {
        flex-direction: column;
        gap: 24px;
    }

    .item-page__image-wrap {
        max-width: 100%;
        position: static;
    }

    .item-page__sidebar {
        flex: 1;
        position: static;
    }

    .item-page__title {
        font-size: 1.4rem;
    }

    .item-page__price {
        font-size: 1.3rem;
    }
}

/* Hide follow button in author header on mobile grid cards to save space */
@media (max-width: 480px) {
    .look-card__header button {
        display: none !important;
    }
}
