:root {
    --hive-green: #214f37;
    --hive-green-dark: #163a28;
    --hive-honey: #f2ae24;
    --hive-gold: #d98912;
    --hive-cream: #fbf6e9;
    --hive-paper: #fffdf8;
    --hive-ink: #183526;
}

/* Masaüstü header düzeltmeleri: üstte artık şerit bırakma ve aksiyonları sıkıştırma. */
@media (min-width: 1200px) {
    .rbt-header > .dynamic-sticky-top,
    .rbt-header .dynamic-sticky-top--mobile-initial {
        display: none !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
    }

    .rbt-header .rbt-header-wrapper {
        margin-top: 0 !important;
        border-top: 0 !important;
    }

    .rbt-header .mainbar-row {
        min-height: 76px;
        align-items: center !important;
    }

    .rbt-header .header-right > .rbt-quick-access {
        align-items: center;
        column-gap: 14px !important;
    }

    .rbt-header .header-right [data-cart-open] {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: max-content;
    }

    .rbt-header .header-right [data-cart-open] .rbt-round-btn {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }

    .rbt-header .header-right [data-cart-open] .content {
        display: block;
        min-width: 76px;
        margin-left: 0 !important;
        white-space: nowrap;
    }

    .rbt-header .header-right [data-cart-open] .access-box-count {
        z-index: 5;
        top: -5px;
        right: -5px;
    }
}

/* Hafif, görselsiz arıcılık dokusu */
.product-page,
.rbt-products-area-box {
    --color-primary: var(--hive-green);
}

.product-page {
    position: relative;
    font-family: "DM Sans", sans-serif;
}

.product-page::before {
    position: absolute;
    z-index: 0;
    top: -28px;
    right: 0;
    width: min(34vw, 470px);
    height: 250px;
    background: radial-gradient(circle at 50% 50%, rgba(242,174,36,.12) 0 28%, transparent 29%),
        radial-gradient(circle at 20% 20%, rgba(33,79,55,.06) 0 15%, transparent 16%);
    content: "";
    pointer-events: none;
}

.product-page > * { position: relative; z-index: 1; }

.product-page .title,
.product-page h1,
.product-page h2 {
    color: var(--hive-ink);
    font-family: "Playfair Display", serif;
}

.product-page .rbt-product-details-content,
.product-page .rbt-single-product-content {
    border-radius: 18px;
}

.product-page .rbt-product-details-content {
    padding: clamp(18px, 2.5vw, 34px);
    border: 1px solid rgba(33,79,55,.12);
    background: var(--hive-paper);
    box-shadow: 0 18px 50px rgba(31,65,45,.08);
}

.product-page .rbt-product-gallery,
.product-page .rbt-product-details-img,
.product-page .rbt-product-main-image {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, var(--hive-cream));
}

.product-page .pricing-part .price-text:not(del),
.product-page .rbt-product-price,
.product-page [data-product-price] {
    color: var(--hive-gold);
    font-weight: 700;
}

.product-page .storefront-product-option-value__visual,
.product-page .rbt-qty-area {
    border-color: rgba(33,79,55,.18);
    background: #fff;
}

.product-page .storefront-product-option-value input:checked + .storefront-product-option-value__visual {
    border-color: var(--hive-honey);
    box-shadow: 0 0 0 2px rgba(242,174,36,.18);
}

.product-page .rbt-btn:not(.storefront-whatsapp-button),
.rbt-product-card .rbt-btn {
    border-color: var(--hive-green) !important;
    background: var(--hive-green) !important;
    color: #fff !important;
}

.rbt-product-card .rbt-btn span,
.rbt-product-card .rbt-btn i,
.rbt-product-card .rbt-btn .btn-text,
.product-page .rbt-btn:not(.storefront-whatsapp-button) span,
.product-page .rbt-btn:not(.storefront-whatsapp-button) i {
    color: #fff !important;
}

.product-page .rbt-btn:not(.storefront-whatsapp-button):hover,
.rbt-product-card .rbt-btn:hover {
    border-color: var(--hive-honey) !important;
    background: var(--hive-honey) !important;
    color: var(--hive-green-dark) !important;
}

.rbt-product-card .rbt-btn:hover span,
.rbt-product-card .rbt-btn:hover i,
.product-page .rbt-btn:not(.storefront-whatsapp-button):hover span,
.product-page .rbt-btn:not(.storefront-whatsapp-button):hover i {
    color: var(--hive-green-dark) !important;
}

.rbt-product-card {
    overflow: hidden;
    border: 1px solid rgba(33,79,55,.1);
    border-radius: 16px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rbt-product-card:hover {
    border-color: rgba(242,174,36,.55);
    box-shadow: 0 16px 36px rgba(29,62,43,.11);
    transform: translateY(-4px);
}

.rbt-product-card .rbt-card-title a:hover,
.rbt-product-card .rbt-card-catagories-text:hover { color: var(--hive-gold); }

/* Product photos arrive in many aspect ratios. Keep every storefront card on
   one visual grid without stretching or cutting off the actual product. */
.theme-home-layout-instance [data-home-popular-products] .rbt-product-card .rbt-card-img,
.theme-home-layout-instance [data-home-featured-products] .rbt-product-card .rbt-card-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px !important;
    padding: 14px;
    overflow: hidden;
    background: #fff !important;
}

.theme-home-layout-instance [data-home-popular-products] .rbt-card-img > a,
.theme-home-layout-instance [data-home-featured-products] .rbt-card-img > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.theme-home-layout-instance [data-home-popular-products] .rbt-card-img img,
.theme-home-layout-instance [data-home-featured-products] .rbt-card-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.theme-home-layout-instance [data-home-popular-products] .rbt-card-title,
.theme-home-layout-instance [data-home-featured-products] .rbt-card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.theme-home-layout-instance [data-home-popular-products] .theme-home-product-promo-column .rbt-product-banner,
.theme-home-layout-instance [data-home-popular-products] .theme-home-product-promo-column .rbt-product-banner > a {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
    border-radius: 14px;
}

.theme-home-layout-instance [data-home-popular-products] .theme-home-product-promo-column img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Sepete ekleme: CSS ile çizilmiş arı. Yeni resim veya JS kütüphanesi yüklemez. */
.apiary-cart-flight {
    position: fixed;
    display: block !important;
    z-index: 100000;
    top: var(--bee-start-y);
    left: var(--bee-start-x);
    width: 52px;
    height: 36px;
    opacity: 0;
    pointer-events: none;
    animation: apiary-bee-flight 1350ms cubic-bezier(.18,.68,.2,1) forwards;
}

.apiary-cart-flight__bee {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 34px;
    height: 21px;
    border: 2px solid #442f13;
    border-radius: 55% 48% 48% 55%;
    background: repeating-linear-gradient(90deg, var(--hive-honey) 0 7px, #493315 7px 11px);
    box-shadow: 0 3px 9px rgba(58,39,10,.32), 0 0 0 3px rgba(255,255,255,.72);
}

.apiary-cart-flight__bee::before,
.apiary-cart-flight__bee::after {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 11px;
    border: 1px solid rgba(33,79,55,.25);
    border-radius: 70% 30% 70% 30%;
    background: rgba(255,255,255,.88);
    content: "";
    transform-origin: bottom center;
    animation: apiary-wing .09s linear infinite alternate;
}

.apiary-cart-flight__bee::before { left: 3px; transform: rotate(-18deg); }
.apiary-cart-flight__bee::after { right: 2px; transform: scaleX(-1) rotate(-18deg); }

.apiary-cart-flight__trail {
    position: absolute;
    top: 16px;
    right: 30px;
    width: 30px;
    border-top: 2px dotted rgba(217,137,18,.65);
}

.apiary-cart-pulse { animation: apiary-cart-pulse .55s ease; }

@keyframes apiary-bee-flight {
    0% { opacity: 0; transform: translate(0,0) rotate(-8deg) scale(.75); }
    8% { opacity: 1; transform: translate(5px,-12px) rotate(-14deg) scale(.9); }
    28% { transform: translate(var(--bee-lift-x),var(--bee-lift-y)) rotate(10deg) scale(1.08); }
    62% { opacity: 1; transform: translate(var(--bee-mid-x),var(--bee-mid-y)) rotate(-4deg) scale(1); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--bee-x),var(--bee-y)) rotate(-6deg) scale(.42); }
}

@keyframes apiary-wing { to { transform: rotate(20deg) scaleY(.72); } }
@keyframes apiary-cart-pulse { 50% { transform: scale(1.18); color: var(--hive-honey); } }

@media (prefers-reduced-motion: reduce) {
    .apiary-cart-flight { display: none; }
    .rbt-product-card { transition: none; }
}

@media (max-width: 767px) {
    .theme-home-layout-instance [data-home-popular-products] .rbt-product-card .rbt-card-img,
    .theme-home-layout-instance [data-home-featured-products] .rbt-product-card .rbt-card-img {
        height: 220px !important;
        padding: 10px;
    }
}
