/* ═══════════════════════════════════════════════════════════════
   GEZGİNLER v1.1 — Yalı tarzı · Renk düzeltmeli
   ═══════════════════════════════════════════════════════════════ */

/* Tema paleti — dış değişkenlerden bağımsız, sabit kontrast */
body.gezginler-v1-theme {
    --gz-font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --gz-font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
    --gz-font-script: 'Dancing Script', 'Great Vibes', cursive;

    --gz-ink: #111111;
    --gz-ink-soft: #3d3d3d;
    --gz-muted: #6b6b6b;
    --gz-white: #ffffff;
    --gz-cream: #faf9f7;
    --gz-sand: #f3f0eb;

    --gz-gold: #b8953f;
    --gz-gold-rich: #a07c2e;
    --gz-gold-light: #d4bc7a;
    --gz-gold-pale: #f5edd8;
    --gz-overlay: rgba(139, 105, 45, 0.78);
    --gz-overlay-deep: rgba(90, 65, 28, 0.55);

    --gz-border: #e6e0d6;
    --gz-border-gold: rgba(184, 149, 63, 0.45);
    --gz-shadow: 0 4px 18px rgba(17, 17, 17, 0.08);
    --gz-shadow-lg: 0 10px 32px rgba(17, 17, 17, 0.12);

    --gz-shell: 480px;
    --gz-radius: 16px;
    --gz-gap: 16px;
    --gz-touch: 48px;
    --gz-nav-h: calc(72px + env(safe-area-inset-bottom, 0px));

    /* Dış tema motoru değişkenlerini geçersiz kıl */
    --bg-primary: var(--gz-white);
    --bg-secondary: var(--gz-cream);
    --text-primary: var(--gz-ink);
    --text-secondary: var(--gz-muted);
    --border-color: var(--gz-border);
    --card-bg: var(--gz-white);
    --gold: var(--gz-gold);
    --gold-light: var(--gz-gold-light);
    --theme: var(--gz-ink);
    --theme-dark: #000000;

    margin: 0;
    font-family: var(--gz-font-ui);
    font-size: 15px;
    line-height: 1.5;
    color: var(--gz-ink);
    background: var(--gz-sand);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.gezginler-v1-theme *,
body.gezginler-v1-theme *::before,
body.gezginler-v1-theme *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Bootstrap çakışma sıfırlama */
body.gezginler-v1-theme a:not(.gz-info-bar):not(.gz-header-icon):not(.gz-contact-item) {
    color: inherit;
    text-decoration: none;
}

body.gezginler-v1-theme button {
    font-family: inherit;
    color: inherit;
}

body.gezginler-v1-theme input,
body.gezginler-v1-theme textarea,
body.gezginler-v1-theme select {
    font-family: inherit;
    color: var(--gz-ink);
    background: var(--gz-white);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

.gz-shell {
    max-width: var(--gz-shell);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--gz-white);
    position: relative;
    box-shadow: var(--gz-shadow-lg);
}

/* ─── Üst bilgi bandı ─── */
.gz-info-bar {
    display: block;
    width: 100%;
    background: #000000;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.gz-info-bar:hover,
.gz-info-bar:active,
.gz-info-bar:focus {
    background: #1a1a1a;
    color: #ffffff !important;
}

/* ─── Header ─── */
.gz-header {
    background: var(--gz-white);
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--gz-border);
}

.gz-header-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin-bottom: 4px;
}

.gz-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gz-ink) !important;
    font-size: 1.5rem;
    text-decoration: none !important;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
}

.gz-header-icon:hover {
    color: var(--gz-gold-rich) !important;
}

.gz-header-icon:active {
    transform: scale(0.94);
}

.gz-header-icon--ghost {
    visibility: hidden;
    pointer-events: none;
}

.gz-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2px;
}

.gz-logo-ring {
    position: relative;
    width: 156px;
    height: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gz-gold);
    border-radius: 50%;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 40%, rgba(245, 237, 216, 0.35) 0%, transparent 70%);
}

.gz-logo-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184, 149, 63, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.gz-logo-leaf {
    position: absolute;
    color: var(--gz-gold);
    font-size: 0.9rem;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.gz-logo-leaf.left { top: 12px; left: 30px; transform: rotate(-28deg); }
.gz-logo-leaf.right { top: 14px; right: 28px; transform: rotate(28deg) scaleX(-1); }

.gz-logo-img {
    max-width: 96px;
    max-height: 68px;
    object-fit: contain;
    filter: none;
}

.gz-logo-name {
    font-family: var(--gz-font-script);
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 600;
    color: var(--gz-gold-rich);
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 0 12px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ─── Ana içerik ─── */
.gz-main {
    padding: 8px 16px calc(var(--gz-nav-h) + 20px);
    background: var(--gz-white);
}

.gz-page {
    display: none;
}

.gz-page.gz-page-active {
    display: block;
}

/* ─── Kategori kartları ─── */
.gz-cat-list {
    display: flex;
    flex-direction: column;
    gap: var(--gz-gap);
}

.gz-cat-card {
    display: block;
    width: 100%;
    position: relative;
    border: none;
    padding: 0;
    border-radius: var(--gz-radius);
    overflow: hidden;
    cursor: pointer;
    height: clamp(152px, 44vw, 216px);
    background: var(--gz-sand);
    box-shadow: var(--gz-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gz-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        rgba(0, 0, 0, 0.28) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.gz-cat-card:active {
    transform: scale(0.985);
    box-shadow: 0 2px 10px rgba(17, 17, 17, 0.1);
}

.gz-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.gz-cat-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 15px 18px;
    background: var(--gz-overlay);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    text-align: center;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.gz-cat-name {
    font-family: var(--gz-font-serif);
    font-weight: 700;
    font-size: clamp(1.05rem, 4.2vw, 1.4rem);
    color: #ffffff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ─── Ürün sayfası ─── */
.gz-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 16px;
    border-bottom: 1px solid var(--gz-border);
    margin-bottom: 16px;
}

.gz-back-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--gz-gold);
    border-radius: 50%;
    background: var(--gz-white);
    color: var(--gz-gold-rich);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.gz-back-btn:hover {
    background: var(--gz-gold-pale);
}

.gz-back-btn:active {
    background: var(--gz-gold-pale);
}

.gz-page-title {
    font-family: var(--gz-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    color: var(--gz-ink);
}

.gz-search {
    position: relative;
    margin-bottom: 16px;
}

.gz-search input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--gz-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--gz-cream);
    color: var(--gz-ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gz-search input::placeholder {
    color: #9a9a9a;
}

.gz-search input:focus {
    border-color: var(--gz-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 63, 0.15);
    background: var(--gz-white);
}

.gz-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gz-muted);
}

.gz-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gz-product-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--gz-white);
    border: 1px solid var(--gz-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.gz-product-card:hover {
    border-color: var(--gz-border-gold);
}

.gz-product-card:active {
    box-shadow: var(--gz-shadow);
    background: var(--gz-cream);
}

.gz-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gz-sand);
    border: 1px solid var(--gz-border);
}

.gz-product-thumb.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gz-gold);
    font-size: 1.4rem;
    background: var(--gz-gold-pale);
}

.gz-product-info {
    flex: 1;
    min-width: 0;
}

.gz-product-name {
    font-family: var(--gz-font-serif);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 4px;
    color: var(--gz-ink);
}

.gz-product-desc {
    font-size: 0.78rem;
    color: var(--gz-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gz-product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gz-gold-rich);
    white-space: nowrap;
}

.gz-product-price-old {
    text-decoration: line-through;
    color: #a8a8a8;
    font-size: 0.78rem;
    margin-right: 4px;
    font-weight: 500;
}

/* ─── Alt kategori ─── */
.gz-subcat-list {
    display: flex;
    flex-direction: column;
    gap: var(--gz-gap);
}

.gz-subcat-card {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    border-radius: var(--gz-radius);
    overflow: hidden;
    cursor: pointer;
    height: 128px;
    position: relative;
    box-shadow: var(--gz-shadow);
    background: var(--gz-sand);
}

.gz-subcat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.gz-subcat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gz-all-products-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    border: 1.5px solid var(--gz-gold);
    border-radius: 12px;
    background: var(--gz-gold-pale);
    color: var(--gz-gold-rich);
    font-family: var(--gz-font-serif);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.gz-all-products-btn:active {
    background: #ebe3cf;
}

/* ─── Durum ─── */
.gz-loading,
.gz-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--gz-muted);
}

.gz-loading i {
    font-size: 2rem;
    color: var(--gz-gold);
    margin-bottom: 12px;
    display: block;
}

.gz-empty i {
    font-size: 2rem;
    color: var(--gz-gold-light);
    margin-bottom: 10px;
    display: block;
}

/* ─── Alt navigasyon ─── */
.gz-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--gz-shell);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gz-border);
    z-index: 100;
    box-shadow: 0 -6px 24px rgba(17, 17, 17, 0.06);
}

.gz-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 10px;
    min-width: 52px;
    transition: color 0.2s;
}

.gz-nav-btn i {
    font-size: 1.2rem;
    color: inherit;
}

.gz-nav-btn.active {
    color: var(--gz-gold-rich);
}

.gz-nav-btn:hover:not(.gz-nav-fab) {
    color: var(--gz-gold);
}

.gz-nav-fab {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff !important;
    border: 2px solid var(--gz-gold);
    margin-top: -20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    min-width: 54px;
    padding: 0;
    justify-content: center;
}

.gz-nav-fab i {
    font-size: 1.3rem !important;
    color: #ffffff !important;
}

.gz-nav-fab span {
    display: none;
}

.gz-cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: var(--gz-gold-rich);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--gz-white);
}

.gz-nav-btn-wrap {
    position: relative;
}

/* ─── Modallar ─── */
.gz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
}

.gz-modal-overlay.show {
    display: flex;
}

.gz-modal {
    width: 100%;
    max-width: var(--gz-shell);
    max-height: 92vh;
    background: var(--gz-white);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: gzSlideUp 0.3s ease;
    color: var(--gz-ink);
}

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

.gz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gz-border);
    background: var(--gz-cream);
}

.gz-modal-header h3 {
    font-family: var(--gz-font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: var(--gz-ink);
}

.gz-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gz-border);
    background: var(--gz-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gz-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gz-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: var(--gz-ink);
}

.gz-detail-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
    background: var(--gz-sand);
    border: 1px solid var(--gz-border);
}

.gz-detail-name {
    font-family: var(--gz-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gz-ink);
}

.gz-detail-desc {
    color: var(--gz-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.gz-detail-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gz-gold-rich);
    margin-bottom: 20px;
}

.gz-btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #000000;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.gz-btn-primary:hover,
.gz-btn-primary:active {
    opacity: 0.88;
    color: #ffffff !important;
}

.gz-waiter-opt {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--gz-border);
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: var(--gz-ink);
    background: var(--gz-white);
}

.gz-waiter-opt:hover,
.gz-waiter-opt:active {
    background: var(--gz-cream);
    border-color: var(--gz-border-gold);
}

.gz-waiter-opt strong {
    color: var(--gz-ink);
    display: block;
}

.gz-waiter-opt small {
    color: var(--gz-muted);
}

.gz-waiter-opt i {
    font-size: 1.45rem;
    color: var(--gz-gold-rich);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.gz-wifi-box {
    background: var(--gz-cream);
    border: 1px solid var(--gz-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.gz-wifi-label {
    font-size: 0.72rem;
    color: var(--gz-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.gz-wifi-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gz-ink);
    word-break: break-all;
}

.gz-cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gz-border);
    color: var(--gz-ink);
}

.gz-cart-item strong {
    color: var(--gz-ink);
}

.gz-cart-item small {
    color: var(--gz-muted);
}

.gz-cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gz-cart-qty button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gz-border);
    border-radius: 8px;
    background: var(--gz-white);
    color: var(--gz-ink);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.gz-cart-qty span {
    color: var(--gz-ink);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.gz-cart-footer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gz-border);
    background: var(--gz-cream);
}

.gz-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--gz-ink);
}

.gz-cart-total span:last-child {
    color: var(--gz-gold-rich);
}

.gz-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gz-border);
    text-decoration: none !important;
    color: var(--gz-ink) !important;
}

.gz-contact-item:hover {
    color: var(--gz-gold-rich) !important;
}

.gz-contact-item i {
    color: var(--gz-gold-rich);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.gz-contact-item span {
    color: inherit;
}

.gz-table-badge {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 48px);
    right: max(12px, calc(50% - var(--gz-shell) / 2 + 12px));
    z-index: 90;
    background: var(--gz-gold-rich);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    box-shadow: var(--gz-shadow);
}

/* SweetAlert uyumu */
body.gezginler-v1-theme .swal2-popup {
    font-family: var(--gz-font-ui) !important;
    color: var(--gz-ink) !important;
}

body.gezginler-v1-theme .swal2-title {
    color: var(--gz-ink) !important;
}

@media (min-width: 520px) {
    body.gezginler-v1-theme {
        background: #ece8e1;
    }
}
