/* assets/css/style.css - Glows Waffle Müşteri Menüsü Stilleri */

:root {
    --primary: #d97706; /* Glow Amber */
    --primary-hover: #b45309;
    --primary-light: #fef3c7;
    --dark: #2c1810; /* Zengin Çikolata Kahvesi */
    --dark-muted: #6b584d;
    --bg-page: #faf7f2; /* Sıcak krem tonu */
    --bg-card: #ffffff;
    --border-color: #ede5da;
    --text-main: #1f1610;
    --text-muted: #786c64;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.05);
    --shadow-md: 0 6px 20px rgba(44, 24, 16, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 24, 16, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Cormorant', Georgia, serif;
    --font-brand: 'Oswald', sans-serif;
    --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 70px;
}

/* Header & Banner */
.app-header {
    background: linear-gradient(135deg, #2c1810 0%, #3e2215 100%);
    color: #fff;
    padding: 24px 20px 20px;
    position: relative;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.brand-logo-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.brand-title {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-title span {
    color: #fbbf24;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    color: #d1c5bc;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Language Toggle Pill */
.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: #e5ddd7;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn.active {
    background: #fbbf24;
    color: #2c1810;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Search Bar */
.search-wrapper {
    position: relative;
    margin-top: 6px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 18px 13px 44px;
    font-size: 14px;
    color: var(--dark);
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-muted);
    font-size: 16px;
    pointer-events: none;
}

/* Category Sticky Bar */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(237, 229, 218, 0.8);
}

.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.cat-pill {
    font-family: var(--font-brand);
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--dark-muted);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
    border-color: #d1c5bc;
}

.cat-pill.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    box-shadow: 0 3px 12px rgba(44, 24, 16, 0.25);
}

.cat-pill.active .cat-icon {
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 30px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-count {
    font-size: 12px;
    color: var(--text-muted);
    background: #e9ded4;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:active,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #dfd4c7;
}

.product-card.unavailable {
    opacity: 0.65;
    filter: grayscale(0.5);
}

.card-img-wrap {
    width: 110px;
    min-width: 110px;
    height: 120px;
    position: relative;
    background: #f1eae2;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    margin-bottom: 8px;
}

.badge-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

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

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
}

.product-price small {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-right: 2px;
}

.stock-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-red);
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Modal Popup for Product Detail */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: 0;
}

.modal-overlay.active {
    display: flex;
}

@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease-out;
}

@media (min-width: 600px) {
    .modal-content {
        border-radius: var(--radius-lg);
        animation: popIn 0.25s ease-out;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes popIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    min-height: 250px;
    max-height: 310px;
    position: relative;
    background: #f1eae2;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

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

.modal-info-box {
    background: #fdf8f4;
    border: 1px dashed #e7d8ce;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.footer-brand {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.owner-login-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #a89f97;
    text-decoration: none;
    transition: color 0.2s;
}

.owner-login-link:hover {
    color: var(--dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
