@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Base Styles */
body {
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #6a6a6a;
    font-size: 14px;
    background-color: snow !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section - With Background Image */
.hero {
    border-radius: 30px;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../../HomePagePhoto/HP.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-cta {
    display: inline-block;
    color: #ffffff;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: clamp(12px, 3vw, 16px) clamp(25px, 6vw, 40px);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.btn-cta:hover {
    background-color: #ffffff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Campaign Slider */
.campaign-slider {
    padding: clamp(40px, 8vw, 80px) 0;
    background: snow;
    text-align: center;
}

.campaign-slider h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: clamp(30px, 6vw, 50px);
    font-weight: 700;
    color: #2f2f2f;
    position: relative;
}

.campaign-slider h2::after {
    content: '';
    width: clamp(60px, 15vw, 100px);
    height: 4px;
    background: #28C840;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 -15px;
}

.slider {
    display: flex;
    gap: clamp(15px, 4vw, 30px);
    animation: smoothSlide 25s infinite linear;
    cursor: grab;
    padding: 0 15px;
}

.slider:active {
    cursor: grabbing;
}

@keyframes smoothSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 180px)); }
}

.slide {
    flex: 0 0 auto;
    min-width: clamp(250px, 70vw, 350px);
    padding: clamp(20px, 5vw, 30px);
    background: linear-gradient(135deg, #28C840, #20A030, #1E8E3E);
    color: white;
    border-radius: 15px;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1.6;
    touch-action: pan-y;
}

.slide:nth-child(2) { background: linear-gradient(135deg, #667eea, #764ba2); }
.slide:nth-child(3) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.slide:nth-child(4) { background: linear-gradient(135deg, #4facfe, #00f2fe); }

.slide .emoji {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 15px;
    display: block;
}

/* Products Section */
.untree_co-section {
    padding: clamp(40px, 8vw, 60px) 0;
    background: snow;
}

.products h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: clamp(40px, 8vw, 60px);
    font-weight: 700;
    text-align: center;
    color: #2f2f2f;
    position: relative;
}

.products h2::after {
    content: '';
    width: clamp(60px, 15vw, 100px);
    height: 4px;
    background: #28C840;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(15px, 4vw, 30px);
    margin-top: clamp(30px, 8vw, 60px);
}

.product-item-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background-color: snow;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-thumbnail {
    width: 100%;
    height: clamp(180px, 40vw, 250px);
    object-fit: cover;
    object-position: center;
    border-radius: 15px 15px 0 0;
}

.product-content {
    padding: clamp(15px, 4vw, 20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-title {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: #2f2f2f;
    margin: clamp(10px, 3vw, 15px) 0;
    line-height: 1.3;
    text-align: center;
}

.product-subtitle {
    display: block;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: #4a4a4a;
    margin-top: 5px;
}

.product-price-container {
    margin: clamp(12px, 4vw, 18px) 0;
    text-align: center;
}

.price-label {
    font-size: clamp(16px, 4vw, 18px);
    color: #333;
    margin: 10px 0;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: clamp(14px, 3vw, 18px);
    display: block;
    margin-bottom: 5px;
}

.discounted-price {
    color: #d00;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 800;
    display: block;
}

.add-to-cart-form {
    padding: 0 clamp(15px, 4vw, 20px) clamp(15px, 4vw, 20px);
    margin-top: auto;
    text-align: center;
}

.btn {
    font-weight: 600;
    padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 24px);
    border-radius: 30px;
    color: white;
    background: #28C840;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
    font-size: clamp(14px, 3.5vw, 16px);
    cursor: pointer;
    touch-action: manipulation;
}

.btn:hover, .btn:active {
    background-color: #314d43 !important;
    transform: translateY(-2px);
}

.product-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Testimonials */
.testimonials {
    padding: clamp(40px, 8vw, 80px) 0;
    background: snow;
}

.testimonials h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: clamp(40px, 8vw, 60px);
    font-weight: 700;
    text-align: center;
    color: #2f2f2f;
    position: relative;
}

.testimonials h2::after {
    content: '';
    width: clamp(60px, 15vw, 100px);
    height: 4px;
    background: #28C840;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: clamp(200px, 40vw, 250px);
}
.testimonial {
    position: absolute; /* bunu koruyabilirsin slider için */
    top: 0;
    left: 0;
    width: 100%;
    max-height: 350px; /* sınır koy */
    overflow-y: auto; /* uzun yazılarda scroll bar */
    background: snow;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: clamp(20px, 6vw, 40px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
}

.testimonial::-webkit-scrollbar {
    width: 6px;
}
.testimonial::-webkit-scrollbar-thumb {
    background: #28C840;
    border-radius: 3px;
}
.testimonial.active {
    opacity: 1;
    transform: translateX(0);
}

.stars {
    color: #ffc107;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 20px;
}
.comment {
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.7;
    word-wrap: break-word;  
    overflow-wrap: break-word;
    text-align: justify;     
}

.author {
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #2f2f2f;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: clamp(10px, 3vw, 12px);
    height: clamp(10px, 3vw, 12px);
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.dot.active {
    background: #28C840;
    transform: scale(1.3);
}

/* Trust Bar */
.trust-bar {
    padding: clamp(40px, 8vw, 60px) 0;
    background: snow;
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(15px, 4vw, 20px);
}

.trust-item {
    background: snow;
    border: 2px solid #eee;
    padding: clamp(15px, 5vw, 25px) clamp(10px, 4vw, 20px);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    color: #2f2f2f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trust-item:hover, .trust-item:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #28C840;
}

.trust-icon {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 10px;
    display: block;
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        height: 80vh;
        min-height: 400px;
    }

    .campaign-slider {
        padding: 30px 0;
    }

    .slider-container {
        margin: 0 -10px;
    }

    .slider {
        padding: 0 10px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: 15px;
    }

    .testimonial-container {
        min-height: 180px;
    }

    .trust-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .hero {
        height: 70vh;
        min-height: 350px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .slider {
        gap: 10px;
    }

    .slide {
        min-width: 85vw;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .product-item-wrapper:hover,
    .trust-item:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .product-item-wrapper:active {
        transform: scale(0.98);
    }

    .trust-item:active {
        transform: scale(0.98);
    }
}



/* Rating */
.rating {
    display: flex;
    justify-content: center;  /* ortalama */
    align-items: center;
    gap: 4px; /* yıldızlar arası boşluk */
    font-size: 24px; /* biraz daha büyük */
    color: gold;
    margin-top: 8px;
}

.star {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* gölge ile daha belirgin */
    font-size: 26px; /* her bir yıldız biraz daha büyük */
    transition: transform 0.2s ease;
}

.star.full {
    color: gold;
}

.star.empty {
    color: #ccc; /* boş yıldız daha gri */
}

.star.half {
    position: relative;
    display: inline-block;
    color: #ccc;
}
.star.half::before {
    content: '★';
    color: gold;
    position: absolute;
    width: 50%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.star:hover {
    transform: scale(1.2); /* hover’da biraz büyüsün */
}