:root {
    --page-bg: #f4f4f4;
    --header-h: 70px;
    --cat-bar-h: 56px;
    --content-max: 1100px;
}

/* ========== GENEL ========== */
body {
    font-family: sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
}

/* ========== ÜST BAR ========== */
.topbar {
    height: var(--header-h);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(0,0,0,.03);
}
.topbar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
}
.topbar-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
}
.topbar-texts {
    flex: 1;
}
.topbar-title {
    font-weight: 700;
    font-size: 1rem;
}
.topbar-subtitle {
    font-size: .75rem;
    color: #8a8a8a;
}
.topbar-info {
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: .35rem .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
}

/* ========== KATEGORİ BAR ========== */
.cat-bar {
    background: #fff;
    position: sticky;
    top: calc(var(--header-h) - 2px);
    z-index: 55;
    border-bottom: 1px solid rgba(0,0,0,.03);
}
.cat-bar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: .5rem 1rem .65rem;
    scrollbar-width: thin;
}
.cat-bar-inner::-webkit-scrollbar {
    height: 4px;
}
.cat-bar-inner::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}
.cat-pill {
    background: #f1f1f1;
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
    border: 2px solid transparent;
}
.cat-pill.active {
    background: #101010;
    border-color: #101010;
    color: #fff;
}

/* ========== SAYFA / İÇERİK ========== */
.page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
}
.category-block {
    margin-bottom: 1.5rem;
}
.cat-title {
    max-width: 980px;
    margin: 1rem auto .5rem;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #777;
    font-weight: 600;
}
.product-list {
    max-width: 980px;
    margin: 0 auto;
}

/* ========== ÜRÜN KARTI ========== */
.product-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.02);
    box-shadow: 0 5px 20px rgba(0,0,0,.015);
    cursor: pointer;
}
.product-line:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.product-left {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.product-thumb-inline {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f3f3f3;
    object-fit: cover;
    flex: 0 0 60px;
}
.product-name {
    font-weight: 600;
    font-size: .9rem;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-desc-inline {
    font-size: .7rem;
    color: #666;
    margin-top: .25rem;
}
.product-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: .9rem;
    color: #000;
    align-self: center;
    padding-right: .25rem;
}
.empty-line {
    background: #fff;
    border-radius: 12px;
    padding: .5rem .75rem;
    font-size: .7rem;
    color: #777;
}

/* ========== PAYLAŞ FAB ========== */
.share-fab {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1200;
}
.share-panel {
    position: fixed;
    bottom: 1.25rem;
    right: 4.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: .5rem;
    display: none;
    flex-direction: column;
    gap: .35rem;
    z-index: 1199;
    min-width: 160px;
}
.share-panel.open {
    display: flex;
}
.share-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .5rem;
    font-size: .75rem;
    border-radius: .5rem;
    color: #000;
}
.share-item:hover {
    background: #f3f3f3;
}

/* ========== BİLGİ PANELİ (DRAWER) ========== */
.info-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.08);
    z-index: 100;
    transition: .2s;
    display: flex;
    flex-direction: column;
}
.info-drawer.open {
    right: 0;
}
.info-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
    font-weight: 600;
}
.info-drawer__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}
.info-drawer__body {
    padding: 1rem;
    overflow-y: auto;
}
.info-drawer__actions {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.info-btn {
    background: #f4f4f4;
    border-radius: .75rem;
    padding: .4rem .7rem;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    color: #000;
}
.info-card {
    background: #f7f7f7;
    border-radius: .75rem;
    padding: .6rem .6rem .1rem;
}
.info-card__title {
    font-weight: 600;
    font-size: .78rem;
    margin-bottom: .5rem;
}
.info-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .45rem;
}
.info-label {
    font-size: .7rem;
    font-weight: 500;
}
.info-value {
    font-size: .7rem;
    background: #fff;
    border-radius: .4rem;
    padding: .1rem .4rem;
}
.copy-btn {
    font-size: .65rem;
    background: #000;
    color: #fff;
    border-radius: .4rem;
    padding: .2rem .5rem;
    margin-left: auto;
    cursor: pointer;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 200;
}
.modal-box {
    background: #fff;
    border-radius: 1.25rem;
    max-width: 460px;
    width: 100%;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
}
.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: 1.4rem;
    cursor: pointer;
}
.modal-img-wrap {
    width: 100%;
    border-radius: .75rem;
    overflow: hidden;
    background: #f3f3f3;
}
.modal-img-wrap img {
    width: 100%;
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .topbar-inner,
    .cat-bar-inner,
    .page {
        max-width: 100%;
    }
    .product-list,
    .cat-title {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .product-line {
        border-radius: 0;
    }
    .share-panel {
        right: 1.25rem;
        bottom: 4.7rem;
    }
    .info-drawer {
        width: 90%;
    }
}

/* drawer varsayılan */
.info-drawer {
    position: fixed;
    top: 0;
    right: -320px; /* masaüstü için bu kalsın */
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.08);
    z-index: 100;
    transition: right .2s;
    display: flex;
    flex-direction: column;
}

/* açık hali */
.info-drawer.open {
    right: 0;
}

/* mobilde tamamen gizle */
@media (max-width: 640px) {
    .info-drawer {
        width: 90%;
        right: -100%;   /* 320 değil, tamamını dışarı at */
    }
    .info-drawer.open {
        right: 0;
    }
}


.cat-pill {
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.cat-pill:active {
    transform: scale(.97);
}

.product-line {
    transition: box-shadow .18s ease, transform .18s ease;
}
.product-line:hover {
    transform: translateY(-2px);
}


.info-drawer {
    transition: right .22s cubic-bezier(.4,0,.2,1);
}

/* overlay açıldığında */
.modal-overlay {
    animation: modalFade .18s ease;
}
@keyframes modalFade {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,.35); }
}

/* kutu */
.modal-box {
    animation: modalPop .18s ease;
}
@keyframes modalPop {
    from {
        transform: translateY(6px) scale(.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


.menu-section {
    animation: fadeIn .12s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* share fab animasyon */
.share-fab {
    transition: transform .15s ease, box-shadow .15s ease;
}
.share-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
}
.share-fab:active {
    transform: scale(.94);
}

/* panel içindeki item’lara animasyon */
.share-item {
    transition: background .12s ease, transform .12s ease;
}
.share-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}


/* arka plan blur sınıfı */
.body-blur {
    filter: blur(2px);
    pointer-events: none; /* alt taraf tıklanmasın istersen bunu bırak */
}

/* blur'un sadece ana içeriğe uygulanması daha iyi */
.main-shell-blur {
    filter: blur(2px);
}

.main-shell-blur {
    filter: blur(2.5px);
    transition: filter .15s ease;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 99;
}


.topbar {
    height: 70px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(0,0,0,.03);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* sol grup + sağ buton */
    gap: 1rem;
    padding: 0 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.logo-box img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 12px; /* logo kenarlıyı da destekler */
}

.topbar-texts {
    line-height: 1.05;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.topbar-subtitle {
    font-size: .7rem;
    color: #6b7280;
    margin-top: .15rem;
}

/* bilgi butonu */
.topbar-info--soft {
    background: #e5e7eb;
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 500;
    transition: background .12s ease, transform .12s ease;
}
.topbar-info--soft:hover {
    background: #d1d5db;
}
.topbar-info--soft:active {
    transform: translateY(1px);
}


/* ========== ÜST BAR ORTALI TASARIM ========== */
.topbar {
    height: var(--header-h);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* LOGO + BAŞLIK ORTA */
    gap: 12px;
    width: 100%;
    max-width: var(--content-max);
    padding: 0 1rem;
}

/* LOGO KUTUSU */
.logo-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.logo-box img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 12px;
}

/* METİN KISMI */
.topbar-texts {
    text-align: left;
}
.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}
.topbar-subtitle {
    font-size: .7rem;
    color: #6b7280;
    margin-top: .15rem;
}

/* BİLGİ BUTONU SAĞDA KALSIN */
.topbar-info--soft {
    position: absolute;
    right: 1rem;
    background: #e5e7eb;
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 500;
    transition: background .12s ease, transform .12s ease;
}
.topbar-info--soft:hover {
    background: #d1d5db;
}
.topbar-info--soft:active {
    transform: translateY(1px);
}

/* 1) Site başlığına daha şık serif font hissi verelim */
.topbar-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* alt başlık biraz daha ince olsun */
.topbar-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: capitalize;
}

/* 2) kategori butonlarını daha estetik yapalım */
.cat-pill {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 9999px;
    padding: .5rem 1.4rem;
}

/* aktif olan biraz daha belirgin olsun */
.cat-pill.active {
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* 3) kategori başlıkları (sayfa içindeki "Nargile" gibi) */
.cat-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #000;
}


/* kategori barını biraz daha ayrı göster */
.cat-bar {
    border-bottom: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 2px 8px rgba(0,0,0,.015);
}

/* alt başlık başlığa yaklaşsın */
.topbar-subtitle {
    margin-top: .05rem;
}


.topbar-title {
    color: #101010;
}


.menu-section {
    display: none;
}

.menu-section.is-active {
    display: block;
    animation: catFade .15s ease;
}

@keyframes catFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* cam efektli kategori bar */
.cat-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 55;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

/* iç ray */
.cat-bar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: .6rem 1rem .7rem;
    scrollbar-width: none; /* firefox */
}
.cat-bar-inner::-webkit-scrollbar {
    display: none; /* chrome */
}

/* butonlar */
.cat-pill {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 9999px;
    padding: .5rem 1.6rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: none;
    color: rgba(15, 23, 42, 0.7);
    transition: .12s ease;
    backdrop-filter: blur(2px);
}
.cat-pill:hover {
    border-color: rgba(15, 23, 42, 0.22);
    color: rgba(15, 23, 42, 1);
}
.cat-pill.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.22);
}

/* sağdaki gradient – mobilde kaydığın yeri belli ediyor */
.cat-bar {
    position: sticky;
}
.cat-bar-fade {
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(to left, rgba(244, 244, 244, 1), rgba(244, 244, 244, 0));
    display: none;
}
@media (max-width: 768px) {
    .cat-bar { position: sticky; }
    .cat-bar-fade { display: block; }
}


/* KATEGORİ BAR */
.cat-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 55;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

/* iç ray */
.cat-bar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    gap: .75rem;
    overflow-x: auto;       /* kaydırmayı açık bırak */
    white-space: nowrap;
    padding: .6rem 1rem .7rem;
    scrollbar-width: thin;  /* firefox’ta ince scrollbar göster */
}

/* sadece mobilde gizle */
@media (max-width: 768px) {
    .cat-bar-inner::-webkit-scrollbar {
        display: none;
    }
}

#productViewImage:empty,
#productViewImage[src=""] {
    display: none;
}


.product-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-left.no-thumb {
    /* görsel olmadığında yazı tam ortalı ve simetrik dursun */
    padding-left: 10px;      /* kutunun solundan biraz boşluk */
}

.product-left.no-thumb .product-name,
.product-left.no-thumb .product-desc-inline {
    /* yazılar üst üste düzgün dursun */
    line-height: 1.2;
} 


/* ===========================
   ETHNIC COFFEE TEMA OVERRIDE
   =========================== */

/* Kahve paleti */
:root {
    --page-bg: #f5eee6;          /* daha bej, sıcak arka plan */
    --coffee-primary: #4b2c20;   /* koyu kahve */
    --coffee-accent:  #c58b48;   /* karamel ton */
    --coffee-soft:    #e4d2bf;   /* yumuşak krem */
}

/* Sayfa zemini */
body {
    background: var(--page-bg);
}

/* Üst bar – hafif kahve çizgi */
.topbar {
    background: #fff;
    border-bottom: 1px solid rgba(75, 44, 32, 0.08);
}

/* Başlık ve alt başlık tonları */
.topbar-title {
    color: var(--coffee-primary);
}

.topbar-subtitle {
    color: rgba(75, 44, 32, 0.65);
}

/* Bilgi butonu kahve tonda */
.topbar-info,
.topbar-info--soft {
    background: var(--coffee-primary);
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
}

.topbar-info--soft:hover,
.topbar-info:hover {
    background: #3c2218;
}

/* Kategori barı – hafif bej cam efekti */
.cat-bar {
    background: rgba(245, 238, 230, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(75, 44, 32, 0.06);
}

/* Kategori butonları */
.cat-pill {
    background: rgba(245, 238, 230, 0.9);
    border: 1px solid rgba(75, 44, 32, 0.18);
    color: rgba(75, 44, 32, 0.8);
    font-weight: 600;
    border-radius: 9999px;
    padding: .45rem 1.4rem;
}

.cat-pill:hover {
    border-color: rgba(75, 44, 32, 0.35);
    color: rgba(75, 44, 32, 1);
}

.cat-pill.active {
    background: var(--coffee-primary);
    border-color: var(--coffee-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(75, 44, 32, 0.35);
}

/* Kategori başlıkları */
.cat-title {
    color: #8b5e3c;
    letter-spacing: .12em;
}

/* Ürün kartı – bej arka plan, kahve outline */
.product-line {
    background: #fffdf9;
    border: 1px solid rgba(75, 44, 32, 0.04);
    box-shadow: 0 6px 24px rgba(75, 44, 32, 0.06);
}

.product-line:hover {
    box-shadow: 0 10px 32px rgba(75, 44, 32, 0.12);
}

/* Küçük görsel kartları için bej */
.product-thumb-inline {
    background: var(--coffee-soft);
}

/* Ürün adı ve fiyat kahve rengi */
.product-name {
    color: #2b1710;
}

.product-price {
    color: var(--coffee-primary);
}

/* Info kartları / butonları kahveye uyduralım */
.info-btn {
    background: #f0e2cf;
    color: var(--coffee-primary);
}

.info-btn:hover {
    background: #e2cdae;
}

.info-card {
    background: #f4e6d4;
}

/* Paylaş butonu (FAB) kahve rengi */
.share-fab {
    background: var(--coffee-primary);
    color: #fff;
}

.share-fab:hover {
    box-shadow: 0 14px 30px rgba(75, 44, 32, 0.28);
}

/* Modal başlık ve fiyatı da kahverengi dursun istersen: */
#productViewName {
    color: var(--coffee-primary) !important;
}

#productViewPrice {
    color: var(--coffee-accent) !important;
}

@media (max-width: 480px) {
    .topbar-info--soft {
        right: 4px !important;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .topbar-inner {
        padding-right: 50px; /* butona yer aç */
    }
}
