/* Yesil Ferah */
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

body[data-theme="yesil"] {
    --primary: #2f8f5b;
    --primary-dark: #1f6b42;
    --accent: #6bcf7f;
    --secondary: #123c2a;
    --secondary-light: #1f5f41;
    --surface-muted: #ecf8f0;
    --border-color: #c8e7d2;
}

body[data-theme="yesil"] .global-header {
    background: linear-gradient(180deg, #ffffff 0%, #effaf3 100%) !important;
    border-bottom: 2px solid #2f8f5b !important;
}
body[data-theme="yesil"] .global-nav__link {
    color: #204232 !important;
}
body[data-theme="yesil"] .global-nav__link:hover,
body[data-theme="yesil"] .global-nav__link.is-active {
    background: #2f8f5b !important;
    color: #ffffff !important;
}
body[data-theme="yesil"] .btn--primary,
body[data-theme="yesil"] .product-card__cta {
    background: linear-gradient(135deg, #2f8f5b 0%, #6bcf7f 100%) !important;
    border-color: #2f8f5b !important;
    color: #ffffff !important;
}
body[data-theme="yesil"] .badge--new {
    background: linear-gradient(135deg, #3ea86e 0%, #2f8f5b 100%) !important;
}
body[data-theme="yesil"] .global-footer {
    background: linear-gradient(180deg, #163c2d 0%, #24714a 70%, #163c2d 100%) !important;
    border-top-color: #6bcf7f !important;
}
body[data-theme="yesil"] a:hover {
    color: #2f8f5b;
}

/*
 * Acik header arka plani (ustte) ile menu_colors / header_enhancements
 * icindeki koyu-navbar beyaz yazilari cakisiyordu — marka, arama, ikonlar okunur olsun.
 */
body[data-theme="yesil"] .global-brand,
body[data-theme="yesil"] .global-brand:link,
body[data-theme="yesil"] .global-brand:visited {
    color: #204232 !important;
}

body[data-theme="yesil"] .global-brand__name {
    color: #204232 !important;
}

body[data-theme="yesil"] .global-brand__name strong,
body[data-theme="yesil"] .global-brand__name b {
    color: #163c2d !important;
}

body[data-theme="yesil"] .global-brand__name small {
    color: rgba(32, 66, 50, 0.78) !important;
}

body[data-theme="yesil"] .global-brand__logo--text {
    background: var(--primary) !important;
    color: #ffffff !important;
}

body[data-theme="yesil"] .global-search {
    border-color: rgba(32, 66, 50, 0.32) !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

body[data-theme="yesil"] .global-search__input {
    color: #204232 !important;
}

body[data-theme="yesil"] .global-search__input::placeholder {
    color: rgba(32, 66, 50, 0.48) !important;
}

body[data-theme="yesil"] .header-social-inline__link {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(47, 143, 91, 0.4) !important;
    color: #204232 !important;
}

body[data-theme="yesil"] .header-social-inline__link:hover {
    background: #ecf8f0 !important;
}

body[data-theme="yesil"] .header-social-inline__link[href*="wa.me"] {
    color: #128c7e !important;
}

body[data-theme="yesil"] .header-social-inline__link[href*="instagram"] {
    color: #be185d !important;
}

body[data-theme="yesil"] .header-social-inline__link[href*="facebook"] {
    color: #2563eb !important;
}

body[data-theme="yesil"] .btn.btn--outline {
    color: #204232 !important;
    border-color: rgba(32, 66, 50, 0.42) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

body[data-theme="yesil"] .btn.btn--outline:hover {
    color: #163c2d !important;
    background: #ecf8f0 !important;
}

body[data-theme="yesil"] .global-header__mobile-toggle {
    color: #204232 !important;
    border: 1px solid rgba(32, 66, 50, 0.35) !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

/* ----- Vitrin slider: yesil tema (ortali baslik, parlama, resim overlay yok PHP ile) ----- */
@keyframes hero-yesil-glow {
    0%,
    100% {
        text-shadow:
            0 0 2px rgba(0, 0, 0, 0.35),
            0 0 18px rgba(255, 255, 255, 0.95),
            0 0 36px rgba(107, 207, 127, 0.78),
            0 0 58px rgba(47, 143, 91, 0.52),
            0 3px 18px rgba(0, 0, 0, 0.55);
    }
    50% {
        text-shadow:
            0 0 2px rgba(0, 0, 0, 0.4),
            0 0 28px rgba(255, 255, 255, 1),
            0 0 52px rgba(107, 207, 127, 0.98),
            0 0 82px rgba(47, 143, 91, 0.68),
            0 3px 22px rgba(0, 0, 0, 0.58);
    }
}

body[data-theme="yesil"] .hero {
    box-shadow: 0 12px 40px rgba(18, 60, 45, 0.2);
}

body[data-theme="yesil"] .hero::before {
    display: none !important;
}

body[data-theme="yesil"] .hero--yesil .hero__slides {
    position: relative;
    justify-content: center;
}

/* Alt dalga: her slayt katmaninda fotograf uzerinde, metin ustte */
body[data-theme="yesil"] .hero--yesil .hero__slide::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(96px, 18vw, 168px);
    z-index: 1;
    pointer-events: none;
    background: url('../wave-yesil.svg') no-repeat center bottom;
    background-size: 100% 100%;
}

/* Dalga uzeri dekor ikonlar (metnin altinda kalmamasi icin 2, metin 3) */
body[data-theme="yesil"] .hero--yesil .hero__yesil-deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic {
    position: absolute;
    opacity: 0.95;
    font-size: clamp(0.78rem, 1.85vw, 1.15rem);
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.22);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--1 {
    left: 6%;
    bottom: 10%;
    transform: rotate(-18deg);
    color: #ea580c;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--2 {
    left: 18%;
    bottom: 14%;
    transform: rotate(8deg);
    color: #2563eb;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--3 {
    left: 32%;
    bottom: 8%;
    transform: rotate(-6deg);
    color: #7c3aed;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--4 {
    right: 28%;
    bottom: 11%;
    transform: rotate(22deg);
    color: #0d9488;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--5 {
    right: 14%;
    bottom: 9%;
    transform: rotate(-10deg);
    color: #db2777;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--6 {
    right: 5%;
    bottom: 13%;
    transform: rotate(14deg);
    color: #0891b2;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--7 {
    left: 44%;
    bottom: 6%;
    transform: rotate(-14deg);
    color: #ca8a04;
}

body[data-theme="yesil"] .hero--yesil .hero__yesil-deco__ic--8 {
    left: 52%;
    bottom: 15%;
    transform: rotate(16deg);
    color: #16a34a;
}

body[data-theme="yesil"] .hero--yesil .hero__slide-content {
    position: relative;
    z-index: 3;
}

/* Nokta seridi + duz yesil bar kaldirildi; slayt JS degismeden calisir */
body[data-theme="yesil"] .hero--yesil .hero__dots {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* position: absolute + inset:0 (style.css) korunmali — relative slayti kucultur, resim fill olmaz */
body[data-theme="yesil"] .hero__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem clamp(2.5rem, 7vw, 4.25rem);
}

/* Hero ile TUM URUNLER arasindaki bosluk */
body[data-theme="yesil"] .hero.hero--yesil {
    margin-bottom: 0 !important;
}

body[data-theme="yesil"] main.site-main.storefront .products-section--homepage-catalog {
    margin-top: 0.15rem;
}

body[data-theme="yesil"] main.site-main.storefront .products-section--homepage-catalog .section-header {
    margin-top: 0;
    padding-top: 0;
}

body[data-theme="yesil"] .hero__slide-content {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* style.css .hero__title !important kurallarini ezer */
body[data-theme="yesil"] .hero--yesil .hero__title {
    font-family: 'Monotype Corsiva', 'Allura', 'Segoe Script', 'Apple Chancery', 'Brush Script MT', cursive;
    font-weight: 400;
    font-size: clamp(2.65rem, 6.2vw, 4.35rem) !important;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: none;
    max-width: 100%;
    margin: 0 0 0.85rem;
    color: #ffffff;
    animation: hero-yesil-glow 3.4s ease-in-out infinite;
    -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    body[data-theme="yesil"] .hero--yesil .hero__title {
        animation: none;
        text-shadow:
            0 0 2px rgba(0, 0, 0, 0.35),
            0 0 18px rgba(255, 255, 255, 0.95),
            0 0 38px rgba(107, 207, 127, 0.82),
            0 0 58px rgba(47, 143, 91, 0.55),
            0 3px 18px rgba(0, 0, 0, 0.55);
    }
}

@media (max-width: 900px) {
    body[data-theme="yesil"] .hero--yesil .hero__title {
        font-size: clamp(2.15rem, 5.5vw, 3.35rem) !important;
    }
}

@media (max-width: 600px) {
    body[data-theme="yesil"] .hero--yesil .hero__title {
        font-size: clamp(1.85rem, 5vw, 2.75rem) !important;
    }
}

body[data-theme="yesil"] .hero__desc {
    max-width: 40rem;
    margin: 0 auto 1.2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
    text-shadow:
        0 1px 10px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(0, 0, 0, 0.38);
}

body[data-theme="yesil"] .hero .btn--secondary {
    margin-top: 0.15rem;
}

