/* ================================================================
   HUMA PERFUMUM — LUXURY E-COMMERCE CATALOG (LIGHT MODE)
   Ultra Premium Aesthetics, Rich Typography & Fluid UI/UX
   ================================================================ */

/* --- Design Tokens -------------------------------------------- */
:root {
    --bg-body: #faf8f5;
    --bg-card: #ffffff;
    --bg-surface: #f3efe6;
    --bg-glass: rgba(250, 248, 245, 0.94);

    --gold-primary: #b8860b;
    --gold-dark: #8b6508;
    --gold-light: #dfb235;
    --gold-bg: rgba(184, 134, 11, 0.07);
    --gold-border: rgba(184, 134, 11, 0.22);
    --gold-glow: rgba(184, 134, 11, 0.15);

    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #8c857b;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 32px rgba(184, 134, 11, 0.16);
    --shadow-sheet: 0 -12px 48px rgba(0, 0, 0, 0.18);

    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.48;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Layout Containers ---------------------------------------- */
.hero-inner, .filters-inner, .catalog-inner, .footer-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 14px;
    position: relative;
}

/* --- Hero Section --------------------------------------------- */
.hero {
    position: relative;
    padding: 24px 0 16px;
    background: linear-gradient(180deg, #f2ece0 0%, var(--bg-body) 100%);
    border-bottom: 1px solid var(--gold-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--gold-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--gold-border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hero-stat { text-align: center; }
.hero-stat__num { font-family: var(--font-heading); font-weight: 800; color: var(--gold-primary); font-size: 0.95rem; }
.hero-stat__label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; margin-left: 2px; font-weight: 600; }
.hero-stat__sep { width: 1px; height: 14px; background: var(--gold-border); }

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero-title em {
    color: var(--gold-primary);
    font-style: normal;
    font-weight: 800;
}

.hero-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 520px;
    font-weight: 500;
}

/* --- Sticky Filters Bar --------------------------------------- */
.filters {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-border);
    padding: 12px 0;
}

.filters-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Search Input */
.search-field {
    position: relative;
    width: 100%;
}

.search-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 0.95rem;
}

.search-field input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px 40px 12px 40px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.search-field input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-bg), 0 4px 16px rgba(184,134,11,0.08);
}

.search-field__clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 4px;
    cursor: pointer;
}

/* Category Chips (Horizontal Scroll) */
.chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--gold-border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.chip.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(184,134,11,0.25);
}

/* Dropdowns Row */
.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.filter-select {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-select label {
    font-size: 0.65rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
}

.filter-select select {
    width: 100%;
    background: #fff;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    padding: 7px 22px 7px 8px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}

/* Active Note Badges */
.note-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-tag {
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-dark);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.badge-tag button {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 0.8rem;
    cursor: pointer;
}

/* Result Bar */
.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-bar strong { color: var(--gold-primary); font-weight: 800; }

.result-bar__reset {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 700;
}

/* --- Catalog Grid: MOBİLDE 2 SÜTUN ---------------------------- */
.catalog {
    padding: 16px 0 40px;
    flex: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* MOBİL 2-COLUMN GRID */
    gap: 12px;
}

@media (min-width: 640px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* 🛍️ LUXURY PRODUCT CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-primary);
}

.card:active {
    transform: scale(0.98);
}

/* BÜYÜK RESİM KUTUSU */
.card-image-box {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.card-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.card:hover .card-image-box img {
    transform: scale(1.08);
}

/* KOD ROZETİ */
.card-code-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid var(--gold-border);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold-dark);
    font-family: var(--font-heading);
}

.card-trend-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.card-brand {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
}

.card-notes {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    height: 2.7em;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--gold-border);
    font-size: 0.7rem;
    margin-top: auto;
}

.card-season { color: var(--text-muted); white-space: nowrap; font-weight: 600; }
.card-season i { color: var(--gold-primary); margin-right: 3px; }

.card-action {
    color: var(--gold-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
}

/* --- Loader & Empty State ------------------------------------- */
.loader, .empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}
.loader__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-surface);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Bottom Sheet Modal (Ultra Premium) ------------------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    background: #fff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 18px 18px 32px;
    box-shadow: var(--shadow-sheet);
}

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

.modal-sheet__handle {
    width: 40px;
    height: 5px;
    background: var(--bg-surface);
    border-radius: 3px;
    margin: 0 auto 14px;
}

.modal-sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.modal-hero-area {
    text-align: center;
    padding: 4px 0 14px;
}

.modal-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.modal-img-container img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.16));
}

.modal-code {
    font-size: 0.78rem;
    color: var(--gold-dark);
    letter-spacing: 0.06em;
    font-weight: 800;
    font-family: var(--font-heading);
}

.modal-brand {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    font-family: var(--font-heading);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.pill--season { background: var(--gold-bg); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.pill--gender { background: var(--bg-surface); color: var(--text-primary); border: 1px solid rgba(0,0,0,0.06); }

.pyramid {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--gold-border);
}

.pyramid__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.pyramid__layer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.pyramid__layer:last-child { margin-bottom: 0; }

.pyramid__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pyramid__label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    font-weight: 800;
    font-family: var(--font-heading);
}

.pyramid__notes {
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Footer --------------------------------------------------- */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--gold-border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
    background: #fff;
}

.footer-brand {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 800;
}

.footer-copy {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}
