/* ------------------------------------------------------------------
       1. MARKA ÖZEL RENKLER & ANİMASYON
       ------------------------------------------------------------------ */
.bg-solune-dark {
    background-color: #0d2a3a;
}
.bg-solune-cream {
    background-color: #efead8;
}
.text-solune-dark {
    color: #0d2a3a;
}
.text-solune-cream {
    color: #efead8;
}
.border-solune-cream {
    border-color: #efead8;
}

@keyframes brandFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.animated-hero {
    background: linear-gradient(-45deg, #0d2a3a, #163b50, #0b2230, #1a4963);
    background-size: 400% 400%;
    animation: brandFlow 15s ease infinite;
}

/* ------------------------------------------------------------------
       2. MENÜ ÖZEL STİLLERİ (Alt çizgi + dropdown)
       ------------------------------------------------------------------ */
/* Tüm nav-link'ler için alt çizgi animasyonu */
.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    text-decoration: none;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #efead8;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown alt menü öğeleri için de aynı çizgi */
.dropdown-link {
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    text-decoration: none;
}
.dropdown-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #efead8;
    transition: width 0.3s ease;
}
.dropdown-link:hover::after {
    width: 100%;
}

/* Dropdown menü */
.dropdown-group:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Mobil menü */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}
#mobile-menu.hidden {
    display: none;
}
#mobile-menu-btn.active svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Mobil dropdown butonu */
.mobile-dropdown-btn .dropdown-arrow {
    transition: transform 0.3s ease;
}
.mobile-dropdown-btn .dropdown-arrow.rotate {
    transform: rotate(180deg);
}
.mobile-dropdown-content {
    transition: all 0.3s ease;
}
.mobile-dropdown-content.hidden {
    display: none;
}

/* ------------------------------------------------------------------
       3. HERO SLIDER (tüm stiller)
       ------------------------------------------------------------------ */
/* ------------------------------------------------------------------
   3. HERO SLIDER - YATAY KAYMA ANİMASYONU
   ------------------------------------------------------------------ */

.hero-slider {
    position: relative;
    display: grid;
    width: 100%;
    overflow: hidden;
    background: #f4f1e7;
}

/*
 * Bütün slaytlar aynı alanda üst üste durur.
 * JavaScript transform ile sağa/sola hareket ettirir.
 */
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateX(100%);
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

/* Aktif slayt ekranda */
.hero-slide.active {
    transform: translateX(0);
    z-index: 2;
}

/* Animasyon sırasında yardımcı sınıflar */
.hero-slide.slide-from-left {
    transform: translateX(-100%);
}

.hero-slide.slide-from-right {
    transform: translateX(100%);
}

.hero-slide.slide-to-left {
    transform: translateX(-100%);
}

.hero-slide.slide-to-right {
    transform: translateX(100%);
}

/* HERO resmi */
.hero-slide-img,
.hero-slide img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    min-height: 0;
    object-fit: contain;
}

/* ---------------------------------------------------------------
   HERO OKLARI
   --------------------------------------------------------------- */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: 1px solid rgba(49, 86, 75, 0.25);

    background: rgba(255, 255, 255, 0.65);
    color: #31564b;

    cursor: pointer;
    font-size: 22px;

    backdrop-filter: blur(8px);

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-arrow:hover {
    background: #31564b;
    color: white;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

/* ---------------------------------------------------------------
   HERO NOKTALARI
   --------------------------------------------------------------- */

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 9px;

    z-index: 20;
}

.hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.5);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background-color 0.3s ease;
}

.hero-dot.active {
    width: 20px;
    border-radius: 10px;
    background-color: #ffffff;
}

/* ---------------------------------------------------------------
   HERO İÇERİK
   --------------------------------------------------------------- */

.hero-content {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
}

.hero-content-inner {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
    padding: 60px 32px;
}

.hero-text {
    width: 48%;
    max-width: 620px;
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
    line-height: 1.08;

    color: #153d32;
    font-weight: 500;

    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.7;

    color: #31564b;

    max-width: 570px;
    margin-bottom: 28px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #31564b;
    font-size: 14px;
}

.hero-benefit-icon {
    width: 46px;
    height: 46px;

    border: 1px solid #8c9d72;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;

    background: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------
   TABLET
   --------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero-content-inner {
        padding: 40px 28px;
    }

    .hero-text {
        width: 55%;
    }

    .hero-title {
        font-size: clamp(2.1rem, 5vw, 3.5rem);
    }
}

/* ---------------------------------------------------------------
   MOBİL
   --------------------------------------------------------------- */

@media (max-width: 640px) {
    .hero-content-inner {
        padding: 70px 24px 90px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.45rem;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 430px;
    }

    .hero-benefits {
        gap: 12px;
        flex-direction: column;
    }

    .hero-benefit {
        font-size: 13px;
    }

    .hero-benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 18px;
    }
}

/* ------------------------------------------------------------------
       4. FLIP CARD
       ------------------------------------------------------------------ */
.custom-flip-card {
    position: relative;
    width: 100%;
    min-height: 440px;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}
.custom-card-front,
.custom-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        visibility 0.4s ease;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}
.custom-card-front {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
    z-index: 2;
}
.custom-card-back {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
    z-index: 1;
}
.custom-flip-card.is-flipped .custom-card-front {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(-180deg);
    z-index: 1;
}
.custom-flip-card.is-flipped .custom-card-back {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
    z-index: 10;
}

/* ------------------------------------------------------------------
       5. SCROLL REVEAL
       ------------------------------------------------------------------ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}
.scroll-reveal.opacity-100 {
    opacity: 1;
    transform: translateY(0);
}
.nav-link.active {
    color: #efead8;
}
.nav-link.active::after {
    width: 100%;
}
.dropdown-link.active {
    color: #efead8;
}
.dropdown-link.active::after {
    width: 100%;
}
/* ===== MOBİLDE ÜRÜN RESİMLERİ KÜÇÜLSÜN ===== */
/* ===== ÜRÜN GÖRSELLERİ MOBİLDE KÜÇÜLSÜN ===== */
@media (max-width: 640px) {
    .relative.group img {
        width: 60% !important;
        max-width: 240px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Tab butonları mobilde daha küçük */
@media (max-width: 640px) {
    #product-tab-1,
    #product-tab-2 {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

/* Tablo mobilde küçülsün */
@media (max-width: 640px) {
    .bg-white table {
        font-size: 11px !important;
    }
    .bg-white table td,
    .bg-white table th {
        padding: 6px 10px !important;
    }
}
/* ===== SİPARİŞ BUTONLARI (MOBİL RESPONSIVE) ===== */

/* Mobilde butonlar 3'lü sıra ve küçük */
@media (max-width: 640px) {
    .siparis-butonlari {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .siparis-butonlari .siparis-buton {
        padding: 6px 4px !important;
        font-size: 10px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        min-width: 0 !important;
    }
    .siparis-butonlari .siparis-buton img {
        height: 20px !important;
        width: auto !important;
    }
    .siparis-butonlari .siparis-buton span {
        font-size: 12px !important;
    }
}

/* Tablet (641-1024) için */
@media (min-width: 641px) and (max-width: 1024px) {
    .siparis-butonlari {
        gap: 8px !important;
    }
    .siparis-butonlari .siparis-buton {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    .siparis-butonlari .siparis-buton img {
        height: 20px !important;
    }
}
