/* ===== RESET & ROOT ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ── Kobalt Tema: Beyaz Zemin + Kobalt Mavi ── */
    --bg: #F0F4FF;
    --bg-card: #FFFFFF;
    --bg-card2: #EEF2FF;
    --bg-hover: #E0E8FF;
    --border: rgba(37,99,235,0.12);
    --text: #0F172A;
    --muted: #64748B;
    --muted2: #475569;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-glow: rgba(37,99,235,0.18);
    --accent-dark: #1D4ED8;
    --price: #1D4ED8;
    --gold: #D97706;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(37,99,235,0.12);
    --shadow-card: 0 2px 16px rgba(37,99,235,0.08);
    --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.brand-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-info h1 {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    margin-bottom: 2px;
}

.brand-info p {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand-info h1 { font-size: 14px; }
    .action-icon { width: 32px; height: 32px; }
    .action-icon svg { width: 16px; height: 16px; }
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.action-icon:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== DISCOUNT BANNER ===== */
.discount-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
}

.discount-banner-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.discount-badge {
    background: #fff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.discount-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.discount-text strong {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.discount-text span {
    font-size: 11px;
    opacity: 0.85;
}

.discount-icon {
    font-size: 20px;
}

/* ===== SEARCH ===== */
.search-section {
    padding: 16px 0 0;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap svg {
    position: absolute;
    left: 16px;
    color: var(--accent);
    pointer-events: none;
    flex-shrink: 0;
}

.search-wrap input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== SLIDER ===== */
.slider-section {
    padding: 16px 0 0;
}

.slider-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #1e3a8a;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,30,80,0.80) 0%, rgba(10,30,80,0.15) 60%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
}

.slide-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

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

/* Slider Prev/Next */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
    opacity: 0;
}

.slider-wrap:hover .slider-prev,
.slider-wrap:hover .slider-next { opacity: 1; }

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-prev:hover,
.slider-next:hover { background: rgba(255,255,255,0.3); }

/* ===== CATEGORIES ===== */
.categories-section { padding: 20px 0 0; }

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

.section-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.category-count {
    font-size: 12px;
    color: var(--accent);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 9px 18px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--muted2);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
    position: relative;
    overflow: hidden;
}

.cat-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--accent);
}

.cat-btn:active {
    transform: scale(0.95);
}

.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--accent-glow);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== PRODUCTS ===== */
.products-section { padding: 16px 0; }

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.active-category-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.product-count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    transition: opacity 0.3s ease;
}

.products-grid.fading {
    opacity: 0.4;
    pointer-events: none;
}

.product-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(37,99,235,0.15);
}

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

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-card2);
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
}

.tag-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-campaign {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.card-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--price);
    margin-top: 8px;
    letter-spacing: -0.02em;
}

/* Empty & Loading States */
.loading-spinner {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.empty-state {
    grid-column: span 2;
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
}

.empty-state svg { margin-bottom: 12px; color: #CBD5E1; }
.empty-state p { font-size: 14px; }

/* ===== INFO / FOOTER ===== */
.info-section { padding: 8px 0 40px; }

.info-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--bg-card2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.info-value {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
}

.info-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--bg-hover);
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 24px;
}

.instagram-link:hover {
    background: var(--bg-hover);
    color: #E11D48;
    border-color: #E11D48;
}

.footer-copy {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    padding-bottom: 20px;
}

/* Image Disclaimer in footer */
.image-disclaimer {
    background: var(--bg-card2);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    margin-bottom: 20px;
}
.image-disclaimer svg {
    color: var(--muted2);
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    background: var(--bg-card);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.32,.72,0,1);
    position: relative;
    box-shadow: 0 -8px 40px rgba(37,99,235,0.15);
}

.modal-backdrop.open .modal-sheet {
    transform: translateY(0);
}

/* drag handle */
.modal-sheet::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.modal-img-wrap {
    width: 100%;
    height: 260px;
    position: relative;
    background: var(--bg-card2);
    overflow: hidden;
}

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

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    background: linear-gradient(160deg, var(--bg-card2) 0%, var(--bg-hover) 100%);
}

.modal-back {
    position: absolute;
    top: 20px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-back:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.modal-body {
    padding: 20px 20px 32px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.modal-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-tag.new { background: rgba(37,99,235,0.1); color: var(--accent); border: 1px solid rgba(37,99,235,0.2); }
.modal-tag.campaign { background: rgba(217,119,6,0.1); color: var(--gold); border: 1px solid rgba(217,119,6,0.2); }

.modal-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.modal-price-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.modal-price-label {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.modal-price {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}

.modal-desc-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--muted2);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-allergen {
    background: rgba(217,119,6,0.08);
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.modal-allergen svg { flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.modal-allergen strong { margin-right: 4px; }

/* Modal Discount Note */
.modal-discount-note {
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(37,99,235,0.1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 12px;
    color: var(--accent-dark);
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}
.modal-discount-pct {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Modal Image Note */
.modal-image-note {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 24px;
    opacity: 0.8;
}

/* ===== SCROLL ===== */
.modal-sheet::-webkit-scrollbar { width: 0; }
