/* ══════════════════════════════════════════════════════════════
   ÖZDEMIR NATURAL — global.css
   Tüm sayfalarda ortak kullanılan stiller
══════════════════════════════════════════════════════════════ */

/* ── GENEL ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: Arial; text-align: center; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── SÜREKLİ STICKY NAVBAR (header'sız sayfalar için) ── */
body.has-permanent-sticky-nav { padding-top: 106px; }
body.has-permanent-sticky-nav .navbar-container.is-sticky { animation: none; }
.has-permanent-sticky-nav .header-icons-sticky .header-search { height: 66px; margin-right: 0; }
.has-permanent-sticky-nav .header-icons-sticky .search-input { width: 170px; font-size: 15px; }


/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 30px 0;
}

.header-search {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 999px;
    padding: 0 19px;
    height: 66px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    margin-right: 6px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 18px;
    width: 220px;
    color: #333;
    height: 100%;
}

.header-right {
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 4px;
    color: #333;
}

.header-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #21dd3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgb(37, 248, 255);
    position: relative;
}
.header-icon-btn:hover {
    background: rgb(37, 248, 255);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(58,123,213,0.4);
}

.header-icon-label {
    font-size: 12px;
    color: #444;
    font-weight: 500;
    transition: color 0.2s;
}
.header-icon-link:hover .header-icon-label { color: #2563b0; }

.logo { width: 100px; }
.site-title { margin-left: 30px; font-size: 2rem; margin-top: 0; margin-bottom: 0; }


/* ══════════════════════════════════════
   YATAY ÇİZGİ
══════════════════════════════════════ */
hr {
    height: 4px;
    width: 700px;
    border: none;
    background: black;
    margin: 15px auto 0;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}


/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 999;
    margin-top: 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    box-sizing: border-box;
}

.navbar-container.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    animation: navbarSlideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 30px 0;
}

@keyframes navbarSlideDown {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    position: relative;
}
.navbar a {
    text-decoration: none;
    color: black;
    padding: 10px 20px;
    font-size: 22px;
}
.navbar a:hover { background: #eee; }


/* ══════════════════════════════════════
   KOMPAKT MARKA (sticky navbar sol)
══════════════════════════════════════ */
.brand-compact {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translate(-12px, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-decoration: none;
}
.navbar-container.is-sticky .brand-compact {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}
.brand-compact-logo { width: 46px; height: 46px; object-fit: contain; display: block; }
.brand-compact-text { font-size: 1.3rem; font-weight: 600; color: #1a1a1a; line-height: 1; white-space: nowrap; }


/* ══════════════════════════════════════
   STICKY MODDAKİ SAĞ İKONLAR
══════════════════════════════════════ */
.header-icons-sticky {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translate(12px, -50%);
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.navbar-container.is-sticky .header-icons-sticky {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

body.nav-sticky .logo,
body.nav-sticky .site-title {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.logo, .site-title { transition: opacity 0.3s ease; }


/* ══════════════════════════════════════
   MEGA MENU
══════════════════════════════════════ */
.dropdown.mega { position: relative; }
.dropdown.mega:hover > .menu-link { background: #eee; }

.navbar-container.is-sticky .dropdown.mega {
    margin: -30px 0;
    padding: 30px 0;
    display: flex;
    align-items: center;
}
.navbar-container.is-sticky .dropdown.mega:hover { background: #eee; }
.navbar-container.is-sticky .dropdown.mega:hover > .menu-link { background: transparent; }

.mega-menu-wrapper {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.25s ease-in-out;
    z-index: 9999;
    padding-top: 14px;
    pointer-events: none;
}
.dropdown.mega:hover .mega-menu-wrapper,
.mega-menu-wrapper:hover {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s 0s, opacity 0.25s ease-in-out;
    pointer-events: auto;
}

.mega-menu {
    width: 100%;
    height: 320px;
    display: flex;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    background: white;
    transition: background 0.3s ease;
}

.menu-left {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f7f7f7;
    padding: 20px 14px;
    gap: 4px;
    border-right: 1px solid #e8e8e8;
}

.menu-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 16px;
    border-radius: 8px;
    margin: 1px 0;
    color: #222;
    user-select: none;
}
.menu-item:hover { background: rgba(0,0,0,0.07); }
.menu-item.active { background: rgba(0,0,0,0.11); font-weight: 600; }

.menu-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.mega-menu.bg-zeytinler { background: linear-gradient(135deg, #f5f5f5, #e0f2e9); }
.mega-menu.bg-zeytinler .menu-content { background: transparent; }
.mega-menu.bg-yag       { background: linear-gradient(135deg, #fdf6e3, #f5e1a4); }
.mega-menu.bg-yag       .menu-content { background: transparent; }
.mega-menu.bg-recel     { background: linear-gradient(135deg, #ffe5ec, #ffb3c6); }
.mega-menu.bg-recel     .menu-content { background: transparent; }
.mega-menu.bg-salca     { background: linear-gradient(135deg, #ffe0cc, #ff9966); }
.mega-menu.bg-salca     .menu-content { background: transparent; }
.mega-menu.bg-sabun     { background: linear-gradient(135deg, #e6f7ff, #b3e0ff); }
.mega-menu.bg-sabun     .menu-content { background: transparent; }

.mega-menu.bg-zeytinler .menu-left,
.mega-menu.bg-yag       .menu-left,
.mega-menu.bg-recel     .menu-left,
.mega-menu.bg-salca     .menu-left,
.mega-menu.bg-sabun     .menu-left { background: rgba(255,255,255,0.55); }

.content {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-evenly;
    padding: 30px 40px;
    gap: 30px;
    flex-direction: row;
    box-sizing: border-box;
}
.content.active { display: flex; }
.content.reversed.active { flex-direction: row-reverse; }
.default-content.active { display: flex; background: white; }

.content p { width: 45%; font-size: 17px; line-height: 1.6; text-align: left; margin: 0; color: #333; }
.content img { width: 200px; height: 175px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.13); flex-shrink: 0; }

.right_box_button_shadow { padding: 10px 20px; }
.right_box_button_shadow:hover { border-radius: 15px; background-color: rgba(255,255,255,0.2); }


/* ══════════════════════════════════════
   FOOTER ANA
══════════════════════════════════════ */
.footer_main {
    background-color: #fada9e77;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    height: 300px;
    width: 100%;
}
.footer_main_col1 { grid-column: 2; align-self: center; }
.footer_main_logo { width: 250px; grid-column: 1; }
.footer_main_logo_brand { font-size: 20px; }
.footer_main_side_text { font-size: 20px; margin: auto; padding: 25px; grid-column: 3 / 4; }
.footer_main2 { margin: auto; display: block; grid-column: 4 / 7; }
.footer_main2 i { font-size: 30px; padding: 5px; }
.footer_main2 a { color: #000; }
.footer_main2_text:hover { scale: 1.1; }
.footer_main2_text { text-align: left; font-size: 17px; margin: 15px; }

.map_box {
    margin: auto;
    grid-column: 7 / 10;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}
.map_box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map_link { position: absolute; inset: 0; z-index: 10; }

.footer2 { display: grid; grid-template-columns: repeat(10, 1fr); width: 100%; }
.footer2_left { grid-column: 4; display: flex; flex-direction: column; gap: 10px; }
.footer2_right { grid-column: 7; display: flex; flex-direction: column; gap: 10px; }
.footer2_text { color: black; text-decoration: none; }
.footer2_text:hover { transform: scale(1.1); }

.signature { background-color: rgb(37, 248, 255); padding: 4px; display: flex; justify-content: space-between; overflow: auto; }
#copyright { padding-left: 10px; }
#owler { padding-right: 10px; }


/* ══════════════════════════════════════
   SEPET SİSTEMİ (kayan panel)
══════════════════════════════════════ */
.cart-item-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 19px;
    height: 19px;
    background: #e35f26;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 2;
    line-height: 1;
    border: 1.5px solid #fff;
    transition: transform 0.2s;
}
.cart-item-count.bump { transform: scale(1.35); }

.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.14);
    padding: 70px 20px 110px;
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.cart.active { right: 0; }

.cart-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #222; }

.cart-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }

.cart-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid #e8e8e8; }

.cart-detail { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; text-align: left; }

.cart-product-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: #222; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cart-price { font-weight: 700; font-size: 14px; color: #21dd3a; }

.cart-quantity { display: flex; align-items: center; width: 88px; border: 1.5px solid #ddd; border-radius: 8px; overflow: hidden; }
.cart-quantity button { background: transparent; width: 28px; height: 28px; border: none; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.cart-quantity button:hover { background: #f0f0f0; }
.decrement-btn { color: #aaa; }
.cart-quantity .number { flex: 1; text-align: center; font-size: 13px; font-weight: 600; border-left: 1.5px solid #ddd; border-right: 1.5px solid #ddd; cursor: default; line-height: 28px; }

.cart-remove { font-size: 20px; cursor: pointer; color: #bbb; flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.cart-remove:hover { color: #e35f26; transform: scale(1.15); }

.total { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #222; margin-top: 20px; padding-top: 14px; }
.total-title { font-size: 16px; font-weight: 600; color: #222; }
.total-price { font-size: 18px; font-weight: 700; color: #21dd3a; }

.btn-buy {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #21dd3a;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-top: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: Arial, sans-serif;
    box-shadow: 0 3px 10px rgba(33, 221, 58, 0.35);
}
.btn-buy:hover { background: #17c432; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(33, 221, 58, 0.45); }

#cart-close { position: absolute; top: 18px; right: 14px; font-size: 30px; cursor: pointer; color: #666; transition: color 0.2s, transform 0.2s; line-height: 1; }
#cart-close:hover { color: #222; transform: scale(1.12); }

.add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 7px 10px;
    background: #21dd3a;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(33, 221, 58, 0.28);
}
.add-cart-btn:hover { background: #17c432; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(33, 221, 58, 0.4); }
.add-cart-btn i { font-size: 13px; }


/* ══════════════════════════════════════
   MOBİL
══════════════════════════════════════ */
@media (max-width: 900px) {
    .mega-menu-wrapper { width: 95vw; }
    .mega-menu { height: auto; min-height: 280px; flex-direction: column; }
    .menu-left { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 15px; border-right: none; border-bottom: 1px solid #e8e8e8; }
    .menu-item { padding: 8px 12px; font-size: 14px; }
    .content,
    .content.reversed.active { flex-direction: column; text-align: center; padding: 20px; }
    .content p { width: 100%; text-align: center; }
    .navbar { flex-wrap: wrap; gap: 15px; }
    .section-line { width: 90%; }
    .header-search { position: static; margin-bottom: 10px; }
    .header-row { flex-direction: column; padding-top: 10px; }
    .header-right { position: static; margin-bottom: 10px; }
    .cart { width: 100%; }
}
