/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Astra Child Theme with Premium Trendyol-Like Design System (Baklava)
Author:       Castor Coffee
Author URI:   https://castorcoffee.com.tr/
Template:     astra
Version:      1.0.3
Text Domain:  astra-child
*/

/* ──────────────────────────────────────────────────────────
   1. GLOBAL & FONTS OVERRIDES
   ────────────────────────────────────────────────────────── */
body, button, input, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

:root {
    --trendyol-orange: #f27a1a;
    --trendyol-orange-hover: #d9650d;
    --trendyol-orange-light: #fff8f3;
    --castor-espresso: #1a1a1a;
    --text-main: #333333;
    --text-grey: #666666;
    --border-light: #e6e6e6;
    --border-hover: #c4c4c4;
    --shadow-soft: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-dropdown: 0 10px 45px rgba(0,0,0,0.09);
    --shadow-glow: 0 0 12px rgba(242, 122, 26, 0.18);
}

/* Hide default theme header content gracefully to prevent duplicate loading */
.ast-main-header-wrap, .site-header, #ast-mobile-header {
    display: none !important;
}

/* ──────────────────────────────────────────────────────────
   2. CASTOR HEADER — Compact Modern E-commerce (ch-*)
   White base, orange accent, centered, fully responsive.
   ────────────────────────────────────────────────────────── */
.ch-header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04);
}
.ch-container, .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Top bar ── */
.ch-topbar {
    background: #fcfcfc;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}
.ch-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}
.ch-topbar-left { display: flex; align-items: center; gap: 22px; }
.ch-topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.ch-topbar-item svg { color: var(--trendyol-orange); flex-shrink: 0; }
.ch-topbar-right { display: flex; align-items: center; gap: 18px; }
.ch-topbar-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-grey) !important; text-decoration: none !important;
    font-weight: 600; transition: color 0.2s ease;
}
.ch-topbar-link svg { color: var(--trendyol-orange); }
.ch-topbar-link:hover { color: var(--trendyol-orange) !important; }
.ch-topbar-switch { color: var(--trendyol-orange) !important; }
.ch-topbar-switch:hover { color: var(--trendyol-orange-hover) !important; }

/* ── Main bar ── */
.ch-main { padding: 16px 0; }
.ch-main-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}
/* Logo */
.ch-logo {
    display: flex; flex-direction: column; line-height: 1.05;
    text-decoration: none !important; flex-shrink: 0;
}
.ch-logo-main {
    font-size: 25px; font-weight: 900; letter-spacing: 2px;
    color: var(--castor-espresso); transition: color 0.2s ease;
}
.ch-logo-sub {
    font-size: 9.5px; font-weight: 700; letter-spacing: 4px;
    color: var(--trendyol-orange); text-align: center; margin-top: 1px;
}
.ch-logo:hover .ch-logo-main { color: var(--trendyol-orange); }
.ch-orange { color: var(--trendyol-orange); }

/* Search */
.ch-search { flex: 1; position: relative; max-width: 640px; margin: 0 auto; }
.ch-search-input {
    width: 100% !important;
    height: 46px !important;
    padding: 12px 52px 12px 18px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: #f7f7f8 !important;
    color: var(--text-main) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}
.ch-search-input::placeholder { color: #9a9a9a; }
.ch-search-input:focus {
    border-color: var(--trendyol-orange) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(242,122,26,0.12) !important;
}
.ch-search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    height: 38px; width: 42px;
    /* İkon background olarak gömülü: child SVG bu sitede 0 genişliğe düşüyordu. */
    background: var(--trendyol-orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 21l-5.2-5.2M17 10a7 7 0 11-14 0 7 7 0 0114 0z'/></svg>") no-repeat center / 20px 20px !important;
    border: none !important; border-radius: 8px !important;
    color: #fff !important; cursor: pointer !important;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease !important;
}
.ch-search-btn:hover { background-color: var(--trendyol-orange-hover) !important; }

/* Actions */
.ch-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ch-action { position: relative; }
.ch-action-link, a.ch-action {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none !important; color: var(--text-main) !important;
    padding: 8px 12px; border-radius: 10px;
    transition: background 0.2s ease;
}
.ch-action-link:hover, a.ch-action:hover { background: var(--trendyol-orange-light); }
.ch-action-ico { position: relative; display: flex; align-items: center; color: var(--castor-espresso); transition: color 0.2s ease; }
.ch-action-link:hover .ch-action-ico, a.ch-action:hover .ch-action-ico { color: var(--trendyol-orange); }
.ch-action-text { display: flex; flex-direction: column; }
.ch-action-top { font-size: 10.5px; color: var(--text-grey); font-weight: 500; line-height: 1.15; }
.ch-action-bottom { font-size: 13px; color: var(--castor-espresso); font-weight: 700; line-height: 1.2; white-space: nowrap; }

/* Cart badge */
.ch-cart-ico { position: relative; }
.cart-count-badge {
    position: absolute; top: -7px; right: -8px;
    background: var(--trendyol-orange); color: #fff !important;
    font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(242,122,26,0.35);
}

/* ── Account / auth dropdown ── */
.ch-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    width: 240px; background: #fff;
    border: 1px solid #f0f0f0; border-radius: 12px;
    box-shadow: var(--shadow-dropdown);
    padding: 14px; box-sizing: border-box; z-index: 99999;
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.97);
    transform-origin: top right; pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
}
.ch-account-parent:hover .ch-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.ch-dropdown::before { content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; }
.ch-dropdown-arrow { position: absolute; top: -6px; right: 26px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-top: 1px solid #f0f0f0; border-left: 1px solid #f0f0f0; }
.ch-dropdown-user { padding-bottom: 11px; border-bottom: 1px solid #f2f2f2; margin-bottom: 9px; }
.ch-dd-greet { display: block; font-size: 13px; font-weight: 700; color: var(--castor-espresso); }
.ch-dd-email { display: block; font-size: 11px; color: var(--text-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-dropdown-links { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 2px; }
.ch-dropdown-links li a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--text-main); text-decoration: none !important; font-size: 13px; font-weight: 500; transition: all 0.18s ease; }
.ch-dropdown-links li a:hover { background: var(--trendyol-orange-light); color: var(--trendyol-orange) !important; padding-left: 15px; }
.ch-dd-sep { height: 1px; background: #f2f2f2; margin: 6px 0; }
.ch-dd-logout { color: #d90429 !important; }
.ch-dd-logout:hover { background: #fff0f1 !important; color: #d90429 !important; }
.ch-dropdown-auth { display: flex; flex-direction: column; gap: 9px; }
.ch-btn-primary { background: var(--trendyol-orange) !important; color: #fff !important; text-align: center; padding: 11px !important; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background 0.2s ease; }
.ch-btn-primary:hover { background: var(--trendyol-orange-hover) !important; }
.ch-btn-ghost { background: #fff !important; color: var(--text-main) !important; text-align: center; padding: 10px !important; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none !important; border: 1.5px solid var(--border-light); transition: all 0.2s ease; }
.ch-btn-ghost:hover { border-color: var(--trendyol-orange); color: var(--trendyol-orange) !important; background: var(--trendyol-orange-light) !important; }

/* ── Category nav ── */
.ch-nav { border-top: 1px solid var(--border-light); background: #fff; }
.ch-nav-wrap { display: flex; justify-content: center; }
.ch-nav-list {
    display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap;
    gap: 4px; list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.ch-nav-item { position: relative; display: flex; align-items: center; }
.ch-nav-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13.5px; font-weight: 600; color: var(--text-main);
    text-decoration: none !important; letter-spacing: 0.2px;
    padding: 14px 14px; height: 100%; box-sizing: border-box;
    border-bottom: 2.5px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.ch-nav-item:hover > .ch-nav-link { color: var(--trendyol-orange); border-bottom-color: var(--trendyol-orange); }
.ch-nav-link svg { color: var(--text-grey); transition: transform 0.2s ease, color 0.2s ease; }
.ch-nav-item:hover > .ch-nav-link svg { color: var(--trendyol-orange); }
.ch-nav-item.has-children:hover > .ch-nav-link svg { transform: rotate(180deg); }

/* Blog nav link — distinct orange pill */
.ch-nav-blog .ch-nav-link {
    color: var(--trendyol-orange); font-weight: 700;
    border-bottom: 2.5px solid transparent;
}
.ch-nav-blog .ch-nav-link svg { color: var(--trendyol-orange); }
.ch-nav-blog:hover .ch-nav-link { color: var(--trendyol-orange-hover); border-bottom-color: var(--trendyol-orange); }
.ch-nav-blog:hover .ch-nav-link svg { transform: translate(2px,-2px); }

/* Simplified mega menu */
.ch-mega {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.98);
    background: #fff; border: 1px solid #eee; border-radius: 14px;
    box-shadow: var(--shadow-dropdown); padding: 16px;
    min-width: 300px; max-width: 340px; z-index: 99999;
    opacity: 0; visibility: hidden; transform-origin: top center; pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
}
.ch-nav-item.has-children:hover .ch-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px) scale(1); pointer-events: auto; }
.ch-mega::before { content: ''; position: absolute; top: -12px; left: 0; width: 100%; height: 12px; }
.ch-mega-wide { min-width: 300px; max-width: 340px; }
.ch-mega-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 12px 12px; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0;
}
.ch-mega-title { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.ch-mega-all {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: var(--trendyol-orange) !important; text-decoration: none !important;
}
.ch-mega-all:hover { color: var(--trendyol-orange-hover) !important; }
.ch-mega-inner { display: flex; flex-direction: column; gap: 2px; }
.ch-mega-wide .ch-mega-inner { grid-template-columns: repeat(3, 1fr); }
.ch-mega-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 9px; color: var(--text-main); text-decoration: none !important;
    font-size: 13px; font-weight: 500; transition: all 0.18s ease;
}
.ch-mega-ico {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--trendyol-orange-light); color: var(--trendyol-orange); overflow: hidden;
}
.ch-mega-ico img { width: 100%; height: 100%; object-fit: cover; }
.ch-mega-name { flex: 1; min-width: 0; white-space: normal; line-height: 1.3; }
.ch-mega-link:hover { background: var(--trendyol-orange-light); color: var(--trendyol-orange) !important; }
.ch-mega-link:hover .ch-mega-ico { background: #fff; }
.ch-mega-count { font-size: 11px; font-weight: 700; color: var(--text-grey); background: #f2f2f2; border-radius: 20px; padding: 2px 8px; min-width: 22px; text-align: center; }
.ch-mega-link:hover .ch-mega-count { background: #fff; color: var(--trendyol-orange); }

/* ── Hamburger (hidden on desktop) ── */
.ch-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 9px; background: none; border: 1.5px solid var(--border-light); border-radius: 10px; cursor: pointer; flex-shrink: 0; }
.ch-burger span { display: block; height: 2px; width: 100%; background: var(--castor-espresso); border-radius: 2px; transition: all 0.2s ease; }
.ch-burger:hover { border-color: var(--trendyol-orange); }
.ch-burger:hover span { background: var(--trendyol-orange); }

/* ── Mobile drawer (hidden until opened) ── */
.ch-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.ch-drawer.is-open { visibility: visible; pointer-events: auto; }
.ch-drawer-overlay { position: absolute; inset: 0; background: rgba(20,16,14,0.5); opacity: 0; transition: opacity 0.3s ease; }
.ch-drawer.is-open .ch-drawer-overlay { opacity: 1; }
.ch-drawer-panel {
    position: absolute; top: 0; left: 0; height: 100%; width: 320px; max-width: 86vw;
    background: #fff; box-shadow: 0 0 40px rgba(0,0,0,0.25);
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; padding: 18px; box-sizing: border-box; overflow-y: auto;
}
.ch-drawer.is-open .ch-drawer-panel { transform: translateX(0); }
.ch-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 16px; }
.ch-drawer-head .ch-logo-main { font-size: 20px; font-weight: 900; letter-spacing: 1.5px; color: var(--castor-espresso); }
.ch-drawer-close { background: none; border: none; color: var(--castor-espresso); cursor: pointer; padding: 4px; display: flex; }
.ch-drawer-close:hover { color: var(--trendyol-orange); }
.ch-drawer-search { position: relative; margin-bottom: 20px; }
.ch-drawer-search input { width: 100%; height: 44px; padding: 0 48px 0 14px; border: 1.5px solid var(--border-light); border-radius: 10px; font-size: 14px; outline: none; background: #f7f7f8; box-sizing: border-box; }
.ch-drawer-search input:focus { border-color: var(--trendyol-orange); background: #fff; }
.ch-drawer-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 36px; width: 40px; background: var(--trendyol-orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 21l-5.2-5.2M17 10a7 7 0 11-14 0 7 7 0 0114 0z'/></svg>") no-repeat center / 18px 18px; border: none; border-radius: 8px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ch-drawer-title { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-grey); margin: 18px 0 8px; }
.ch-drawer-nav ul { list-style: none !important; margin: 0 0 4px !important; padding: 0 !important; }
.ch-drawer-nav li a { display: flex; align-items: center; gap: 7px; padding: 12px 12px; border-radius: 10px; color: var(--castor-espresso); text-decoration: none !important; font-size: 14.5px; font-weight: 600; transition: all 0.18s ease; }
.ch-drawer-nav li a:hover { background: var(--trendyol-orange-light); color: var(--trendyol-orange) !important; padding-left: 16px; }
.ch-drawer-nav li a svg { color: var(--trendyol-orange); }

/* ──────────────────────────────────────────────────────────
   2b. HEADER RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ch-nav-link { padding: 13px 10px; font-size: 13px; }
    .ch-nav-list { gap: 0; }
}
@media (max-width: 992px) {
    /* Switch to mobile header: hamburger + logo + actions; search drops to its own row */
    .ch-topbar { display: none; }
    .ch-nav { display: none; }
    .ch-burger { display: flex; }
    .ch-main { padding: 12px 0; }
    .ch-main-inner { flex-wrap: wrap; gap: 14px; }
    .ch-logo { margin-right: auto; }
    .ch-search { order: 3; flex-basis: 100%; max-width: 100%; margin: 2px 0 0; }
    .ch-action-text { display: none; }            /* icon-only actions on tablet/mobile */
    .ch-actions { gap: 4px; }
    .ch-action-link, a.ch-action { padding: 8px; }
}
@media (max-width: 480px) {
    .ch-container { padding: 0 14px; }
    .ch-logo-main { font-size: 21px; }
    .ch-logo-sub { font-size: 8.5px; letter-spacing: 3px; }
    .ch-search-input { height: 44px !important; font-size: 13.5px !important; }
    .ch-burger { width: 40px; height: 40px; }
}

/* ──────────────────────────────────────────────────────────
   7. WOOCOMMERCE PRODUCT GRID & LOOP STYLE (Trendyol-like Shop)
   ────────────────────────────────────────────────────────── */

/* Remove standard styling borders and shadows from Astra products */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    background: #ffffff !important;
    border: 1.5px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

/* Hover elevation effect */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: #e2e2e2 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07) !important;
}

/* Image container styling */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    overflow: hidden !important;
    position: relative !important;
    border-radius: 12px 12px 0 0 !important;
    display: block !important;
    background: #ffffff !important;
}

/* Smooth zoom on hover */
.woocommerce ul.products li.product img {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 1/1 !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.06) !important;
}

/* Custom Brand Label Prepend */
.woocommerce ul.products li.product::before {
    content: "CASTOR COFFEE";
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--trendyol-orange);
    margin: 15px 15px 0 15px;
    line-height: 1;
}

/* Product Info Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .ast-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    margin: 10px 15px 6px 15px !important;
    line-height: 1.4 !important;
    height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Rating stars */
.woocommerce ul.products li.product .star-rating {
    margin: 0 15px 8px 15px !important;
    font-size: 11px !important;
    color: #f39c12 !important;
}

/* Price styling */
.woocommerce ul.products li.product .price {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: var(--castor-espresso) !important;
    margin: 0 15px 15px 15px !important;
    display: block !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .price del {
    font-size: 12px !important;
    color: var(--text-grey) !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
}

.woocommerce ul.products li.product .price ins {
    background: none !important;
    text-decoration: none !important;
    color: var(--trendyol-orange) !important;
}

/* Modern Add to Cart Button inside loops */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.product_type_simple {
    background: var(--castor-espresso) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 15px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    margin: auto 15px 15px 15px !important;
    text-align: center !important;
    display: block !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button:hover,
.woocommerce ul.products li.product .button.product_type_simple:hover {
    background: var(--trendyol-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(242,122,26,0.25) !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button.loading::after {
    color: #ffffff !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button.added::after {
    content: " ✓" !important;
    margin-left: 6px !important;
    color: #2ec4b6 !important;
}

/* ──────────────────────────────────────────────────────────
   8. CATEGORY / SHOP ARCHIVE HEADER STYLING
   ────────────────────────────────────────────────────────── */
.woocommerce-products-header {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 14px !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
    box-shadow: var(--shadow-soft) !important;
}

.woocommerce-products-header__title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: var(--castor-espresso) !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px !important;
    text-transform: uppercase !important;
}

.term-description p {
    font-size: 13.5px !important;
    color: var(--text-grey) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ──────────────────────────────────────────────────────────
   9. WOOCOMMERCE BREADCRUMBS
   ────────────────────────────────────────────────────────── */
.woocommerce-breadcrumb {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-grey) !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
}

.woocommerce-breadcrumb a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.woocommerce-breadcrumb a:hover {
    color: var(--trendyol-orange) !important;
}

/* ──────────────────────────────────────────────────────────
   10. RESULT COUNT & ORDERING SELECT BOX
   ────────────────────────────────────────────────────────── */
.woocommerce-ordering select {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    outline: none !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.woocommerce-ordering select:focus {
    border-color: var(--trendyol-orange) !important;
    box-shadow: var(--shadow-glow) !important;
}

.woocommerce-result-count {
    font-size: 13.5px !important;
    color: var(--text-grey) !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

/* ──────────────────────────────────────────────────────────
   11. PREMIUM ON-SALE GLOWING BADGES
   ────────────────────────────────────────────────────────── */
.woocommerce span.onsale,
.woocommerce-page span.onsale {
    background: var(--trendyol-orange) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    box-shadow: 0 3px 8px rgba(242,122,26,0.3) !important;
}

/* ──────────────────────────────────────────────────────────
   12. SINGLE PRODUCT PAGE STYLING (Trendyol Details Page)
   ────────────────────────────────────────────────────────── */

/* Content spacing & alignment */
.single-product .site-content {
    padding-top: 30px !important;
    background: #fafafa !important;
}

.single-product .ast-container {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid #f0f0f0 !important;
}

/* Gallery image container */
.woocommerce-product-gallery__wrapper {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1.5px solid var(--border-light) !important;
    background: #ffffff !important;
}

.woocommerce-product-gallery__image img {
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

/* Hover thumbnail zoom */
.woocommerce-product-gallery__image:hover img {
    transform: scale(1.03) !important;
}

/* Product Info Summary Column (Right) */
.single-product .summary.entry-summary {
    padding-left: 20px !important;
}

/* Brand label */
.single-product .summary.entry-summary::before {
    content: "CASTOR COFFEE BRAND";
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--trendyol-orange);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    background: var(--trendyol-orange-light);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Product title */
.single-product .product_title {
    font-family: 'Inter', sans-serif !important;
    font-size: 26px !important;
    font-weight: 850 !important;
    color: var(--castor-espresso) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 12px !important;
}

/* Reviews star rating */
.single-product .woocommerce-product-rating {
    margin-bottom: 20px !important;
    border-bottom: 1.5px solid #f2f2f2 !important;
    padding-bottom: 15px !important;
}

.single-product .woocommerce-product-rating .star-rating {
    color: #f39c12 !important;
    font-size: 13px !important;
}

.single-product .woocommerce-review-link {
    font-size: 12.5px !important;
    color: var(--text-grey) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-left: 10px !important;
    transition: color 0.2s ease !important;
}

.single-product .woocommerce-review-link:hover {
    color: var(--trendyol-orange) !important;
}

/* Single product Price section */
.single-product .summary .price {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--trendyol-orange) !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.single-product .summary .price del {
    font-size: 18px !important;
    color: var(--text-grey) !important;
    font-weight: 400 !important;
    margin-right: 12px !important;
}

.single-product .summary .price ins {
    text-decoration: none !important;
    background: none !important;
    color: var(--trendyol-orange) !important;
}

/* Stock status indicator */
.single-product .stock.in-stock {
    color: #2ec4b6 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    background: #eefdfa !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    width: fit-content !important;
    margin-bottom: 25px !important;
}

/* Quantity and Cart Box Layout */
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
    margin-bottom: 35px !important;
    border-bottom: 1.5px solid #f2f2f2 !important;
    padding-bottom: 25px !important;
}
/* variable urun: varyasyon tablosu + fiyat/buton bloklari tam satir */
.single-product form.cart table.variations,
.single-product form.cart .single_variation_wrap { flex: 1 0 100% !important; margin: 0 !important; }
.single-product .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 15px !important; }
.single-product .single_variation { margin-bottom: 14px !important; width: 100% !important; }

/* Quantity input box */
.single-product .quantity {
    margin: 0 !important;
}

.single-product .quantity input.qty {
    height: 48px !important;
    width: 65px !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    text-align: center !important;
    outline: none !important;
    background: #fcfcfc !important;
    transition: all 0.2s ease !important;
}

.single-product .quantity input.qty:focus {
    border-color: var(--trendyol-orange) !important;
    background: #ffffff !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Add to cart primary button */
.single-product .single_add_to_cart_button {
    height: 48px !important;
    background: var(--trendyol-orange) !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 0 45px !important;
    cursor: pointer !important;
    flex-grow: 1 !important;
    max-width: 320px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(242, 122, 26, 0.15) !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--trendyol-orange-hover) !important;
    box-shadow: 0 6px 20px rgba(242,122,26,0.3) !important;
    transform: translateY(-2px) !important;
}

/* Description metadata info list */
.single-product .product_meta {
    font-size: 12px !important;
    color: var(--text-grey) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border-bottom: 1.5px solid #f2f2f2 !important;
    padding-bottom: 25px !important;
    margin-bottom: 30px !important;
}

.single-product .product_meta span {
    font-weight: 500 !important;
}

.single-product .product_meta a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
}

.single-product .product_meta a:hover {
    color: var(--trendyol-orange) !important;
}

/* ──────────────────────────────────────────────────────────
   13. ACCORDION STYLE TABS FOR PRODUCT DETAILS (Baklava Tabs)
   ────────────────────────────────────────────────────────── */
.single-product .woocommerce-tabs {
    margin-top: 40px !important;
    border-top: 1.5px solid #f2f2f2 !important;
    padding-top: 30px !important;
}

/* Tab menu */
.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 25px !important;
    border-bottom: 2.5px solid #f2f2f2 !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 0 12px 0 !important;
    position: relative !important;
    border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--text-grey) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--trendyol-orange) !important;
}

/* Active tab state */
.single-product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid var(--trendyol-orange) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--trendyol-orange) !important;
}

/* Tab panels (content boxes) */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 10px 0 !important;
    font-size: 13.5px !important;
    color: var(--text-main) !important;
    line-height: 1.7 !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--castor-espresso) !important;
    margin-bottom: 15px !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin-bottom: 12px !important;
}

/* ──────────────────────────────────────────────────────────
   14. MOBILE RESPONSIVENESS OVERRIDES
   ────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Header responsiveness is handled in section 2b (ch-* classes). */

    .woocommerce-products-header {
        padding: 20px !important;
    }

    .single-product .ast-container {
        padding: 20px !important;
    }

    .single-product .summary.entry-summary {
        padding-left: 0 !important;
        margin-top: 30px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   15. HOMEPAGE (front-page.php) — Castor Coffee
   ══════════════════════════════════════════════════════════════ */

/* Let homepage sections break out of Astra's constrained container */
.home #content .ast-container,
.page-template-front-page #content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.home #content,
.home .site-content {
    padding-top: 0 !important;
    background: #ffffff !important;
}
.home #primary,
.home .ast-container > #primary {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
/* Hide the default page title / article header on the homepage */
.home .entry-header,
.home .ast-archive-description,
.home .page-title {
    display: none !important;
}

.castor-home {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.castor-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Shared buttons ── */
.castor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 14px 28px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}
.castor-btn svg { transition: transform 0.25s ease; }
.castor-btn-primary {
    background: var(--trendyol-orange);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(242, 122, 26, 0.28);
}
.castor-btn-primary:hover {
    background: var(--trendyol-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(242, 122, 26, 0.38);
}
.castor-btn-primary:hover svg { transform: translateX(4px); }
.castor-btn-ghost {
    background: transparent;
    color: var(--text-main) !important;
    border-color: var(--border-light);
}
.castor-btn-ghost:hover {
    background: #f5f5f5;
    border-color: var(--border-hover);
    color: var(--castor-espresso) !important;
}
.castor-btn-outline {
    background: #fff;
    color: var(--castor-espresso) !important;
    border-color: var(--border-light);
}
.castor-btn-outline:hover {
    border-color: var(--trendyol-orange);
    color: var(--trendyol-orange) !important;
    background: var(--trendyol-orange-light);
}
.castor-btn-outline:hover svg { transform: translateX(4px); }
.text-orange { color: var(--trendyol-orange); }

/* ── Section heading ── */
.castor-section { padding: 70px 0; }
.castor-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 45px;
}
.castor-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--trendyol-orange);
    margin-bottom: 12px;
}
.castor-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--castor-espresso);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
}
.castor-section-desc {
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.6;
    margin: 0;
}

/* ── 1. HERO ── */
.castor-hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fcf8f4 60%, #fff8f0 100%);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.castor-hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-bean {
    position: absolute;
    border-radius: 50% 50% 48% 52% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 35% 30%, rgba(242,122,26,0.08), transparent 70%);
    filter: blur(8px);
}
.hero-bean-1 { width: 340px; height: 340px; top: -80px; right: 8%; opacity: 0.5; }
.hero-bean-2 { width: 240px; height: 240px; bottom: -60px; left: 4%; opacity: 0.35; background: radial-gradient(circle at 35% 30%, rgba(242,122,26,0.12), transparent 70%); }
.hero-bean-3 { width: 160px; height: 160px; top: 40%; right: 38%; opacity: 0.25; }

.castor-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding-top: 70px;
    padding-bottom: 70px;
    position: relative;
    z-index: 2;
}
.castor-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 122, 26, 0.08);
    border: 1px solid rgba(242, 122, 26, 0.25);
    color: var(--trendyol-orange);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.castor-hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--castor-espresso);
    margin: 0 0 20px;
}
.castor-hero-subtitle {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-grey);
    max-width: 520px;
    margin: 0 0 32px;
}
.castor-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.castor-hero-stats { display: flex; align-items: center; gap: 28px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num { font-size: 30px; font-weight: 900; color: var(--trendyol-orange); line-height: 1; }
.hero-stat-label { font-size: 12.5px; color: var(--text-grey); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border-light); }

/* Hero visual cup card */
.castor-hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-cup-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    position: relative;
}
.hero-cup-icon { position: relative; color: var(--trendyol-orange); display: inline-block; margin-bottom: 18px; }
.hero-cup-label { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: var(--castor-espresso); }
.hero-cup-sub { font-size: 12.5px; color: var(--text-grey); margin-top: 6px; }
.hero-steam {
    position: absolute;
    top: -14px;
    width: 5px; height: 26px;
    background: linear-gradient(to top, rgba(242,122,26,0.35), transparent);
    border-radius: 4px;
    animation: castorSteam 2.6s ease-in-out infinite;
}
.hero-steam-1 { left: 38%; animation-delay: 0s; }
.hero-steam-2 { left: 50%; animation-delay: 0.5s; }
.hero-steam-3 { left: 62%; animation-delay: 1s; }
@keyframes castorSteam {
    0%   { opacity: 0; transform: translateY(6px) scaleY(0.7); }
    40%  { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-16px) scaleY(1.3); }
}

/* ── 2. FEATURES STRIP ── */
.castor-features {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}
.castor-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
}
.castor-feature-item { display: flex; align-items: center; gap: 14px; }
.castor-feature-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--trendyol-orange-light);
    color: var(--trendyol-orange);
    display: flex; align-items: center; justify-content: center;
}
.castor-feature-text { display: flex; flex-direction: column; gap: 3px; }
.castor-feature-title { font-size: 14.5px; font-weight: 800; color: var(--castor-espresso); }
.castor-feature-desc { font-size: 12.5px; color: var(--text-grey); }

/* ── 3. CATEGORIES ── */
.castor-categories { background: #fafafa; }
.castor-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.castor-category-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 16px;
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.3s ease;
}
.castor-category-card::after {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(242,122,26,0.25), transparent 70%);
    border-radius: 50%;
}
.castor-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.cat-card-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    color: #f9b27a;
    position: relative; z-index: 1;
}
.cat-card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; position: relative; z-index: 1; }
.cat-card-name { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.cat-card-count { font-size: 12.5px; color: rgba(255,255,255,0.65); font-weight: 500; }
.cat-card-arrow {
    color: #fff; opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: relative; z-index: 1;
}
.castor-category-card:hover .cat-card-arrow { opacity: 1; transform: translateX(4px); }

/* ── 4. FEATURED PRODUCTS ── */
.castor-products-section { background: #ffffff; }
/* Reuse existing .woocommerce ul.products card styling; just lay it out here */
.castor-products-section .woocommerce { margin: 0; }
.castor-products-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.castor-products-section ul.products::before,
.castor-products-section ul.products::after { content: none !important; display: none !important; }
.castor-products-section ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}
.castor-section-cta { text-align: center; margin-top: 45px; }

/* ── 5. BRAND STORY ── */
.castor-story { background: #fafafa; padding: 80px 0; }
.castor-story-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.castor-story-visual { display: flex; justify-content: center; }
.story-badge-stack {
    position: relative;
    width: 280px; height: 280px;
    background: linear-gradient(135deg, var(--castor-espresso) 0%, #2c2c2c 100%);
    border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 24px 50px rgba(0,0,0,0.2);
}
.story-bean-icon { color: rgba(242,122,26,0.85); }
.story-badge {
    position: absolute;
    bottom: -24px; right: -24px;
    background: var(--trendyol-orange);
    color: #fff;
    border-radius: 18px;
    padding: 18px 22px;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 14px 30px rgba(242,122,26,0.4);
}
.story-badge-num { font-size: 26px; font-weight: 900; line-height: 1; }
.story-badge-text { font-size: 11px; font-weight: 600; line-height: 1.3; opacity: 0.9; }
.castor-story-content .castor-section-title { text-align: left; margin-bottom: 18px; }
.castor-story-content .castor-section-eyebrow { display: block; text-align: left; }
.castor-story-content > p {
    font-size: 15.5px; line-height: 1.8; color: var(--text-grey); margin: 0 0 22px;
}
.castor-story-list { list-style: none !important; margin: 0 0 30px !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.castor-story-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 600; color: var(--castor-espresso);
}
.castor-story-list li svg { color: #2ec4b6; flex-shrink: 0; }

/* ── 6. CTA BAND ── */
.castor-cta-band {
    background: linear-gradient(135deg, var(--trendyol-orange) 0%, var(--trendyol-orange-hover) 100%);
    padding: 56px 0;
}
.castor-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.castor-cta-text { flex: 1; min-width: 280px; }
.castor-cta-text h2 { font-size: 26px; font-weight: 900; color: #fff; margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.4px; }
.castor-cta-text p { font-size: 14.5px; color: rgba(255,255,255,0.9); margin: 0; line-height: 1.5; }
.castor-cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.castor-cta-form input[type="email"] {
    height: 52px; width: 280px;
    border: none !important; border-radius: 10px !important;
    padding: 0 18px !important; font-size: 14px !important;
    background: #fff !important; color: var(--text-main) !important;
    outline: none !important;
}
.castor-cta-form .castor-btn-primary { background: var(--castor-espresso); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.castor-cta-form .castor-btn-primary:hover { background: #000; }

/* ══════════════════════════════════════════════════════════════
   16. CUSTOM FOOTER — Castor Coffee (replaces Astra footer)
   ══════════════════════════════════════════════════════════════ */
.castor-footer { font-family: 'Inter', sans-serif; }
.castor-footer-main {
    background: #ffffff;
    color: var(--text-grey);
    padding: 56px 0 40px;
    border-top: 1px solid var(--border-light);
}
.castor-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
}
.footer-logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none !important; margin-bottom: 18px; }
.footer-logo-main { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: var(--castor-espresso); }
.footer-logo-sub { font-size: 9px; font-weight: 600; letter-spacing: 4px; color: var(--trendyol-orange); text-align: center; margin-top: -1px; }
.footer-about { font-size: 13.5px; line-height: 1.7; color: var(--text-grey); max-width: 320px; margin: 0 0 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 38px; height: 38px; border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-grey) !important;
    transition: all 0.2s ease;
}
.footer-socials a:hover { background: var(--trendyol-orange); color: #fff !important; border-color: var(--trendyol-orange); transform: translateY(-2px); }

.footer-col-title { font-size: 14px; font-weight: 800; color: var(--castor-espresso); margin: 0 0 18px; letter-spacing: 0.3px; }
.footer-links, .footer-contact { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
    font-size: 13.5px; color: var(--text-grey) !important; text-decoration: none !important; transition: all 0.2s ease;
    display: inline-block;
}
.footer-links a:hover { color: var(--trendyol-orange) !important; padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-grey); }
.footer-contact li svg { color: var(--trendyol-orange); flex-shrink: 0; }
.footer-contact a { color: var(--text-grey) !important; text-decoration: none !important; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--trendyol-orange) !important; }
.footer-payments { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pay-chip {
    font-size: 10.5px; font-weight: 700; color: var(--text-grey);
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    padding: 6px 11px; border-radius: 6px;
}

.castor-footer-bottom { background: #f8f9fa; padding: 18px 0; border-top: 1px solid var(--border-light); }
.castor-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copyright { font-size: 12.5px; color: var(--text-grey); }
.footer-tagline { font-size: 12px; color: #999999; }

/* ══════════════════════════════════════════════════════════════
   17. HOMEPAGE + FOOTER RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .castor-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .castor-hero-visual { order: -1; }
    .castor-hero-title { font-size: 40px; }
    .castor-features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .castor-category-grid { grid-template-columns: repeat(2, 1fr); }
    .castor-products-section ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .castor-story-inner { grid-template-columns: 1fr; gap: 50px; }
    .castor-story-visual { order: -1; }
    .castor-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .castor-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .castor-hero-title { font-size: 32px; letter-spacing: -1px; }
    .castor-hero-subtitle { font-size: 15px; }
    .castor-hero-stats { gap: 18px; }
    .hero-stat-num { font-size: 24px; }
    .castor-section-title { font-size: 26px; }
    .castor-section { padding: 50px 0; }
    .castor-features-grid { grid-template-columns: 1fr; }
    .castor-category-grid { grid-template-columns: 1fr; }
    .castor-products-section ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .castor-story { padding: 50px 0; }
    .castor-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .castor-cta-form { flex-direction: column; }
    .castor-cta-form input[type="email"] { width: 100%; }
    .castor-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .castor-footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .castor-hero-actions .castor-btn { flex: 1; }
}


/* ══════════════════════════════════════════════════════════════
   15b. HOMEPAGE FULL-WIDTH HARD RESET
   Neutralises every Astra container constraint on the front page so
   the colored section bands span edge-to-edge and inner content
   (.castor-section-inner) centers correctly. Higher specificity +
   !important guarantees this wins over Astra's .ast-container rules.
   ══════════════════════════════════════════════════════════════ */
.home #page,
.home #content,
.home #content.site-content,
.home #content > .ast-container,
.home #content .ast-container,
.home .castor-home {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Drop Astra's flex column layout on the homepage container so the
   single child block (.castor-home) simply fills the width. */
.home #content > .ast-container,
.home #content .ast-container {
    display: block !important;
}
/* Clip the decorative corner glow inside category cards. */
.castor-category-card { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   18. GLOBAL RESPONSIVE POLISH (shop, single product, buttons, fonts)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Shop archive header */
    .woocommerce-products-header__title { font-size: 21px !important; }
    .term-description p { font-size: 13px !important; }

    /* Single product: full-width primary add-to-cart, wrap qty nicely */
    .single-product form.cart {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .single-product .quantity { flex: 0 0 auto !important; }
    .single-product .single_add_to_cart_button {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: auto !important;
        padding: 0 24px !important;
    }
    .single-product .product_title { font-size: 22px !important; }
    .single-product .summary .price { font-size: 24px !important; }
    .single-product .summary .price del { font-size: 15px !important; }
    .single-product .woocommerce-tabs ul.tabs { gap: 16px !important; flex-wrap: wrap !important; }
    .single-product .woocommerce-tabs ul.tabs li a { font-size: 13.5px !important; }
}

@media (max-width: 480px) {
    /* Product cards: tighter text on small phones (cards stay 2-up) */
    .woocommerce ul.products li.product::before { font-size: 8.5px !important; margin: 12px 12px 0 12px !important; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .ast-loop-product__title {
        font-size: 12.5px !important; margin: 8px 12px 4px 12px !important; height: 34px !important;
    }
    .woocommerce ul.products li.product .price { font-size: 14px !important; margin: 0 12px 12px 12px !important; }
    .woocommerce ul.products li.product .button.add_to_cart_button,
    .woocommerce ul.products li.product .button.product_type_simple {
        font-size: 10.5px !important; padding: 9px 10px !important; margin: auto 12px 12px 12px !important; width: calc(100% - 24px) !important;
    }
    .woocommerce ul.products li.product .star-rating { margin: 0 12px 6px 12px !important; }

    /* Single product fine-tuning */
    .single-product .ast-container { padding: 16px !important; }
    .single-product .product_title { font-size: 20px !important; }
    .single-product .summary .price { font-size: 22px !important; }
    .single-product .single_add_to_cart_button { height: 50px !important; font-size: 14px !important; }
    .single-product .quantity input.qty { height: 50px !important; }

    /* Cart / checkout / account tables become scrollable instead of squished */
    .woocommerce table.shop_table { font-size: 12.5px !important; }
    .woocommerce-cart .wc-proceed-to-checkout .checkout-button { font-size: 14px !important; }
}

/* ══════════════════════════════════════════════════════════════
   19. SEARCH RESULTS PAGE (search.php) — Castor Coffee
   ══════════════════════════════════════════════════════════════ */
.castor-search { padding: 40px 0 70px; font-family: 'Inter', sans-serif; }
.castor-search-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Results header */
.castor-search-head { text-align: center; padding: 30px 0 36px; border-bottom: 1px solid var(--border-light); margin-bottom: 36px; }
.castor-search-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--trendyol-orange); margin-bottom: 12px; }
.castor-search-title { font-size: 30px; font-weight: 900; color: var(--castor-espresso); line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 8px; }
.castor-search-count { font-size: 14px; color: var(--text-grey); margin: 0 0 24px; }
.castor-search-box { position: relative; max-width: 520px; margin: 0 auto; }
.castor-search-box input[type="search"] {
    width: 100%; height: 50px; padding: 0 56px 0 20px;
    border: 1.5px solid var(--border-light); border-radius: 12px;
    font-size: 15px; background: #f7f7f8; outline: none; box-sizing: border-box;
    transition: all 0.2s ease;
}
.castor-search-box input[type="search"]:focus { border-color: var(--trendyol-orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,122,26,0.12); }
.castor-search-box button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    height: 40px; width: 46px; background: var(--trendyol-orange); border: none;
    border-radius: 9px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.castor-search-box button:hover { background: var(--trendyol-orange-hover); }

/* Section subtitle */
.castor-search-section { margin-bottom: 44px; }
.castor-search-subtitle { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--castor-espresso); margin: 0 0 22px; }
.castor-search-badge { font-size: 12px; font-weight: 800; color: #fff; background: var(--trendyol-orange); border-radius: 20px; padding: 3px 10px; min-width: 22px; text-align: center; }

/* Product grid (reuse styled cards; force responsive grid) */
.castor-search-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important; margin: 0 !important; padding: 0 !important;
}
.castor-search-grid ul.products::before,
.castor-search-grid ul.products::after { content: none !important; display: none !important; }
.castor-search-grid ul.products li.product { width: 100% !important; margin: 0 !important; float: none !important; }

/* Pages / posts list */
.castor-search-pages { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.castor-search-pages li a {
    display: block; padding: 16px 20px; background: #fafafa; border: 1px solid var(--border-light);
    border-radius: 12px; text-decoration: none !important; transition: all 0.2s ease;
}
.castor-search-pages li a:hover { border-color: var(--trendyol-orange); background: var(--trendyol-orange-light); transform: translateY(-2px); }
.csp-title { display: block; font-size: 15px; font-weight: 700; color: var(--castor-espresso); }
.csp-excerpt { display: block; font-size: 13px; color: var(--text-grey); margin-top: 4px; line-height: 1.5; }

/* Empty state */
.castor-search-empty { text-align: center; padding: 60px 20px; }
.castor-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 50%; background: var(--trendyol-orange-light); color: var(--trendyol-orange); margin-bottom: 24px; }
.castor-search-empty h2 { font-size: 22px; font-weight: 800; color: var(--castor-espresso); margin: 0 0 10px; }
.castor-search-empty p { font-size: 15px; color: var(--text-grey); margin: 0 0 26px; }

@media (max-width: 991px) {
    .castor-search-grid ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .castor-search-title { font-size: 24px; }
}
@media (max-width: 600px) {
    .castor-search-grid ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .castor-search-title { font-size: 20px; }
    .castor-search-head { padding: 16px 0 26px; margin-bottom: 26px; }
}

/* ══════════════════════════════════════════════════════════════
   20. CUSTOM WISHLIST (Favoriler) — heart buttons, counter, toast
   ══════════════════════════════════════════════════════════════ */
/* Ensure product cards anchor the heart button */
.woocommerce ul.products li.product { position: relative; }

/* Fix: Astra injects a redundant on-image hover "add to cart" icon
   (.ast-on-card-button) that collides with our heart button at top-right.
   The custom full-width "SEPETE EKLE" button at the card bottom is the
   primary CTA, so hide Astra's on-card icon to remove the overlap. */
.woocommerce ul.products li.product .ast-on-card-button,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button {
    display: none !important;
}

/* Heart button on product cards */
.castor-wish-btn {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    width: 38px; height: 38px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
    border: 1px solid var(--border-light); border-radius: 50%;
    cursor: pointer; color: var(--text-grey);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.castor-wish-btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.castor-wish-btn:hover { color: var(--trendyol-orange); border-color: var(--trendyol-orange); transform: scale(1.1); }
.castor-wish-btn.is-active { color: var(--trendyol-orange); border-color: var(--trendyol-orange); background: var(--trendyol-orange-light); }
.castor-wish-btn.is-active svg path { fill: var(--trendyol-orange); stroke: var(--trendyol-orange); }
.castor-wish-btn.is-pulse { animation: castorWishPulse 0.3s ease; }
@keyframes castorWishPulse { 0%{transform:scale(1);} 50%{transform:scale(1.3);} 100%{transform:scale(1);} }

/* Header wishlist counter badge (reuses header icon positioning) */
.ch-wishlist-ico { position: relative; }
.castor-wl-count {
    position: absolute; top: -7px; right: -8px;
    background: var(--trendyol-orange); color: #fff !important;
    font-size: 10px; font-weight: 800; line-height: 1;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(242,122,26,0.35);
}
/* In the mobile drawer the counter sits inline next to the label */
.ch-drawer-nav .castor-wl-count {
    position: static; border: none; box-shadow: none;
    margin-left: 8px; transform: none;
}

/* Wishlist page states */
.castor-wl-loading { text-align: center; color: var(--text-grey); font-size: 14px; padding: 50px 0; }
.castor-wishlist-page .castor-search-head { margin-bottom: 30px; }

/* Toast */
.castor-wl-toast {
    position: fixed; left: 50%; bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: var(--castor-espresso); color: #fff;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    padding: 13px 22px; border-radius: 12px; z-index: 100001;
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.castor-wl-toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
    .castor-wish-btn { width: 34px; height: 34px; top: 8px; right: 8px; }
    .castor-wl-toast { bottom: 18px; font-size: 13px; padding: 11px 18px; width: max-content; max-width: 90vw; }
}

/* ═══════════ Story Rail (Trendyol/Instagram tarzı) ═══════════ */
.castor-stories { padding: 22px 0 6px; background: #fff; }
.castor-stories-rail {
    display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.castor-stories-rail::-webkit-scrollbar { display: none; }
.castor-story-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 0 auto; width: 86px; text-decoration: none !important;
}
.story-ring {
    display: flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; border-radius: 50%;
    background: conic-gradient(from 210deg, #f27a1a, #ffb25e, #e11d48, #f27a1a);
    padding: 3px; transition: transform 0.2s ease;
}
.castor-story-item:hover .story-ring { transform: scale(1.07); }
.story-circle {
    width: 100%; height: 100%; border-radius: 50%;
    border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden;
}
.story-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story-label {
    font-size: 12px; font-weight: 600; color: var(--text-main);
    text-align: center; line-height: 1.25; max-width: 86px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.castor-story-item:hover .story-label { color: var(--trendyol-orange); }

/* ═══════════ Kampanya Bannerları ═══════════ */
.castor-banners { padding: 10px 0 8px; background: #fff; }
.castor-banners-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px;
}
.castor-banner {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    gap: 8px; min-height: 170px; border-radius: 16px; padding: 26px 28px;
    color: #fff !important; text-decoration: none !important; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.castor-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.banner-tag {
    align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; background: rgba(255,255,255,0.16); border-radius: 20px; padding: 4px 12px;
}
.banner-title { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.castor-banner-lg .banner-title { font-size: 30px; }
.banner-desc { font-size: 14px; opacity: 0.85; }
.banner-cta { font-size: 13.5px; font-weight: 700; opacity: 0.95; margin-top: 2px; }

/* ═══════════ Popüler Ürünler Paneli (Trendyol gri konteyner) ═══════════ */
.castor-products-panel {
    background: #f5f5f7; border-radius: 18px; padding: 26px 26px 30px;
}
.castor-panel-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.castor-panel-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.castor-panel-more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; font-weight: 700; color: var(--trendyol-orange) !important;
    text-decoration: none !important;
}
.castor-panel-more:hover { color: var(--trendyol-orange-hover) !important; }

@media (max-width: 900px) {
    .castor-banners-grid { grid-template-columns: 1fr 1fr; }
    .castor-banner-lg { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .castor-banners-grid { grid-template-columns: 1fr; }
    .castor-banner { min-height: 120px; padding: 20px 22px; }
    .castor-banner-lg .banner-title { font-size: 24px; }
    .story-ring { width: 66px; height: 66px; }
    .castor-story-item { width: 74px; }
    .castor-products-panel { padding: 18px 14px 22px; border-radius: 14px; }
}

/* ═══════════ Trendyol cila turu: font, menşe şeridi, ürün kartları ═══════════ */

/* Başlık fontu: Plus Jakarta Sans */
.castor-home h1, .castor-home h2, .castor-panel-title, .banner-title,
.castor-section-title, .cfg-panel__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* Menşe şeridi */
.castor-origins { padding: 4px 0 10px; background: #fff; }
.castor-origins-rail {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px;
    scrollbar-width: none;
}
.castor-origins-rail::-webkit-scrollbar { display: none; }
.castor-origin-chip {
    display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
    padding: 8px 16px; border: 1.5px solid var(--border-light); border-radius: 24px;
    font-size: 13px; font-weight: 600; color: var(--text-main) !important;
    text-decoration: none !important; background: #fff;
    transition: all 0.18s ease;
}
.castor-origin-chip:hover {
    border-color: var(--trendyol-orange); color: var(--trendyol-orange) !important;
    background: var(--trendyol-orange-light); transform: translateY(-1px);
}
.origin-flag { font-size: 15px; }

/* Ürün kartları: Trendyol havası */
.castor-home ul.products li.product {
    background: #fff; border: 1px solid #ededed; border-radius: 12px;
    overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative; padding-bottom: 12px !important;
}
.castor-home ul.products li.product:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.10); transform: translateY(-3px);
}
.castor-home ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important; font-weight: 600; line-height: 1.35;
    padding: 0 12px !important; min-height: 37px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.castor-home ul.products li.product .price {
    color: var(--trendyol-orange) !important; font-weight: 800 !important;
    font-size: 15px !important; padding: 0 12px;
}
.castor-home ul.products li.product .price del {
    color: var(--text-grey) !important; font-weight: 500 !important; font-size: 12.5px !important;
}
.castor-home ul.products li.product .button {
    margin: 8px 12px 0 !important; border-radius: 8px !important;
    background: #fff !important; color: var(--trendyol-orange) !important;
    border: 1.5px solid var(--trendyol-orange) !important;
    font-weight: 700 !important; font-size: 13px !important;
    transition: all 0.18s ease !important;
}
.castor-home ul.products li.product .button:hover {
    background: var(--trendyol-orange) !important; color: #fff !important;
}

/* İndirim rozeti: kırmızı çip */
.castor-sale-pct, .castor-home span.onsale {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: #e11d48 !important; color: #fff !important;
    font-size: 12px !important; font-weight: 800 !important;
    border-radius: 8px !important; padding: 3px 9px !important;
    min-width: 0 !important; min-height: 0 !important; line-height: 1.5 !important;
    margin: 0 !important;
}

/* Popüler panelde ilk ürüne EN ÇOK SATAN rozeti (popülerliğe göre sıralı) */
.castor-products-panel ul.products li.product:first-child::before {
    content: 'EN ÇOK SATAN';
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: var(--trendyol-orange); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
    border-radius: 20px; padding: 4px 10px;
}

/* Hikaye rayı: taşma yoksa ortala (safe: mobilde sol kenar kırpılmaz) */
.castor-stories-rail { justify-content: safe center; }


/* ════════════════════════════════════════════════════════
   WooCommerce Gelişmiş Kenar Çubuğu (Sidebar) Tasarımı
   ════════════════════════════════════════════════════════ */
@media (min-width: 922px) {
    .ast-left-sidebar #content .ast-container {
        display: flex !important;
        gap: 30px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding-top: 40px !important;
        padding-bottom: 50px !important;
    }
    .ast-left-sidebar #primary {
        width: 76% !important;
        flex: 1 !important;
        padding: 0 !important;
    }
    .ast-left-sidebar #secondary {
        width: 24% !important;
        min-width: 260px !important;
        max-width: 280px !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Grid layout layout alignment override */
    .ast-left-sidebar ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 20px !important;
    }
    .ast-left-sidebar ul.products li.product {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
}

.widget-area .ast-woo-sidebar-widget {
    background: #ffffff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 12px !important;
    padding: 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015) !important;
    box-sizing: border-box !important;
}

.widget-area .ast-woo-sidebar-widget .widget-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--castor-espresso) !important;
    border-bottom: 1.5px solid var(--border-light) !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

/* Kategori Listesi */
.widget-area .widget_product_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.widget-area .widget_product_categories ul li {
    padding: 9px 0 !important;
    border-bottom: 1px dashed #f1f3f5 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.widget-area .widget_product_categories ul li a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}
.widget-area .widget_product_categories ul li a:hover {
    color: var(--trendyol-orange) !important;
}
.widget-area .widget_product_categories ul li:last-child {
    border-bottom: none !important;
}

/* Fiyat Filtresi */
.widget_price_filter .price_slider_wrapper {
    padding-top: 5px !important;
}
.widget_price_filter .ui-slider {
    background: #eef1f5 !important;
    height: 5px !important;
    border-radius: 4px !important;
    border: none !important;
    margin-bottom: 22px !important;
}
.widget_price_filter .ui-slider .ui-slider-range {
    background: var(--trendyol-orange) !important;
}
.widget_price_filter .ui-slider .ui-slider-handle {
    background: #ffffff !important;
    border: 2px solid var(--trendyol-orange) !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    top: -6px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
    outline: none !important;
    transition: transform 0.1s ease !important;
}
.widget_price_filter .ui-slider .ui-slider-handle:hover {
    transform: scale(1.15) !important;
}
.widget_price_filter .price_slider_amount {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.widget_price_filter .price_slider_amount .price_label {
    font-size: 12px !important;
    color: var(--text-grey) !important;
    font-weight: 600 !important;
}
.widget_price_filter .price_slider_amount button.button {
    background: var(--trendyol-orange) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 15px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.18s ease !important;
}
.widget_price_filter .price_slider_amount button.button:hover {
    background: var(--trendyol-orange-hover) !important;
}

/* Popüler Ürünler Listesi */
.widget_products ul.product_list_widget {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
.widget_products ul.product_list_widget li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid #f6f8fa !important;
    margin: 0 !important;
}
.widget_products ul.product_list_widget li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.widget_products ul.product_list_widget li img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid #f0f2f4 !important;
}
.widget_products ul.product_list_widget li .product-details-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}
.widget_products ul.product_list_widget li a {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    display: block !important;
}
.widget_products ul.product_list_widget li a:hover {
    color: var(--trendyol-orange) !important;
}
.widget_products ul.product_list_widget li .amount {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--castor-espresso) !important;
}

/* Aktif Filtreler */
.widget_layered_nav_filters ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.widget_layered_nav_filters ul li a {
    background: #fff5f5 !important;
    color: #e11d48 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: 1px solid #fee2e2 !important;
    padding: 4px 9px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.widget_layered_nav_filters ul li a:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
}

/* Nitelik Filtreleri */
.widget_layered_nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.widget_layered_nav ul li {
    padding: 8px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    border-bottom: 1px dashed #f1f3f5 !important;
}
.widget_layered_nav ul li:last-child {
    border-bottom: none !important;
}
.widget_layered_nav ul li a {
    color: var(--text-main) !important;
    text-decoration: none !important;
}
.widget_layered_nav ul li a:hover {
    color: var(--trendyol-orange) !important;
}
.widget_layered_nav ul li .count {
    color: var(--text-grey) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Mobil / Tablet Sidebar Optimizasyonu */
@media (max-width: 921px) {
    .ast-left-sidebar #secondary {
        width: 100% !important;
        margin-top: 30px !important;
    }
}


/* ════════════════════════════════════════════════════════
   WooCommerce Varyasyon Seçim Paneli (Variations) Tasarımı
   ════════════════════════════════════════════════════════ */
.single-product table.variations {
    width: 100% !important;
    margin-bottom: 20px !important;
    border: none !important;
    background: transparent !important;
}
.single-product table.variations td {
    padding: 10px 0 !important;
    border: none !important;
    vertical-align: middle !important;
}
.single-product table.variations td.label {
    width: 120px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--castor-espresso) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}
.single-product table.variations td.value select {
    width: 100% !important;
    max-width: 320px !important;
    height: 44px !important;
    padding: 0 15px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    background: #fdfdfd !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.single-product table.variations td.value select:focus {
    border-color: var(--trendyol-orange) !important;
    background: #ffffff !important;
    box-shadow: var(--shadow-glow) !important;
}
.single-product a.reset_variations {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #e11d48 !important;
    text-decoration: none !important;
    margin-left: 15px !important;
    display: inline-block !important;
    transition: color 0.15s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.single-product a.reset_variations:hover {
    color: #b91c1c !important;
}

/* ══════════════════════════════════════════════════════════
   BAĞLAMSAL KATEGORİ PANELİ (Trendyol tarzı) — 2026-07-04
   ══════════════════════════════════════════════════════════ */
.castor-catnav-title {
    font-size: 13.5px; font-weight: 800; color: var(--castor-espresso);
    text-transform: uppercase; letter-spacing: 0.6px;
    padding-bottom: 12px; margin-bottom: 6px;
    border-bottom: 1.5px solid var(--border-light);
}
.castor-catnav-list { list-style: none; margin: 0; padding: 0; }
.castor-catnav-item { margin: 2px 0; }
.castor-catnav-item > a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    color: var(--text-main); text-decoration: none;
    font-size: 13px; font-weight: 600; line-height: 1.3;
    transition: background 0.16s ease, color 0.16s ease;
}
.castor-catnav-name { min-width: 0; }
.castor-catnav-item > a:hover { background: var(--trendyol-orange-light); color: var(--trendyol-orange); }
.castor-catnav-count {
    flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-grey);
    background: #f2f3f5; border-radius: 20px; padding: 2px 9px; min-width: 24px; text-align: center;
}
.castor-catnav-item.is-active > a { background: var(--trendyol-orange); color: #fff; }
.castor-catnav-item.is-active .castor-catnav-count { background: rgba(255,255,255,0.28); color: #fff; }
.castor-catnav-all > a { font-weight: 700; }
.castor-catnav-all { border-bottom: 1px dashed #eef0f2; padding-bottom: 2px; margin-bottom: 4px; }

/* ── Kategori/mağaza başlığını sadeleştir (kutu yerine ince alt çizgi + turuncu aksan) ── */
.woocommerce-products-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 18px 0 !important;
    margin-bottom: 22px !important;
    border-bottom: 1px solid var(--border-light) !important;
}
.woocommerce-products-header__title {
    position: relative !important;
    padding-left: 15px !important;
    font-size: 24px !important;
}
.woocommerce-products-header__title::before {
    content: "" !important; position: absolute !important; left: 0 !important; top: 3px !important; bottom: 3px !important;
    width: 5px !important; border-radius: 4px !important; background: var(--trendyol-orange) !important;
}

/* ══════════════════════════════════════════════════════════
   ÇİĞ KAHVELER — USD/canlı-kur fiyat tablosu (2026-07-04)
   ══════════════════════════════════════════════════════════ */
.cig-table-wrap { margin: 4px 0 30px; }
.cig-fx-note {
    background: var(--trendyol-orange-light); color: var(--castor-espresso);
    border: 1px solid #ffe0c7; border-radius: 10px;
    padding: 11px 16px; font-size: 12.5px; font-weight: 600; margin: 0 0 20px;
}
.cig-fx-note strong { color: var(--trendyol-orange); }
.cig-region {
    background: var(--castor-espresso); color: #fff;
    font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 11px 16px; border-radius: 9px 9px 0 0; margin-top: 18px;
}
.cig-scroll { overflow-x: auto; border: 1px solid #eef0f2; border-top: none; border-radius: 0 0 10px 10px; }
.cig-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; min-width: 720px; }
.cig-table thead th {
    text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-grey); background: #fafbfc; padding: 10px 14px; border-bottom: 1.5px solid var(--border-light);
}
.cig-table tbody td { padding: 12px 14px; border-bottom: 1px solid #f2f4f6; vertical-align: middle; color: var(--text-main); }
.cig-table tbody tr:last-child td { border-bottom: none; }
.cig-table tbody tr:hover { background: #fffaf5; }
.cig-origin { font-weight: 800; color: var(--castor-espresso); white-space: nowrap; }
.cig-desc { font-weight: 500; min-width: 200px; }
.cig-total { font-weight: 800; color: var(--trendyol-orange); white-space: nowrap; }
.cig-stok {
    display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px;
    color: #15803d; background: #dcfce7; border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.cig-stok.cig-depo { color: #b45309; background: #fef3c7; }
a.cig-buy {
    display: inline-block; background: var(--trendyol-orange) !important; color: #fff !important;
    font-size: 12.5px !important; font-weight: 700 !important; text-decoration: none !important;
    padding: 9px 20px !important; border-radius: 8px !important; white-space: nowrap; border: none !important;
    transition: background 0.18s ease, transform 0.18s ease;
}
a.cig-buy:hover { background: var(--trendyol-orange-hover) !important; transform: translateY(-1px); }
a.cig-buy.added { opacity: 0.7; }
a.cig-buy.loading { opacity: 0.6; pointer-events: none; }
@media (max-width: 600px) {
    .cig-fx-note { font-size: 11.5px; padding: 10px 12px; }
    .cig-region { font-size: 12.5px; padding: 10px 12px; }
}

/* Çiğ tablo — USD gösterim */
.cig-usd { font-weight: 700; color: var(--castor-espresso); white-space: nowrap; }
.cig-total { display: flex; flex-direction: column; line-height: 1.25; }
.cig-tl { font-size: 10.5px; font-weight: 600; color: var(--text-grey); margin-top: 1px; }
