/* Genel Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #4CAF50;
    color: white;
    text-transform: uppercase;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: 60px;
    background-color: #4CAF50;
    margin: 0 auto;
}

/* Header Stil */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    border-bottom: 1px solid #eee;
    position: relative;
    height: 100px;
}

.social-icons {
    position: absolute;
    left: 5%;
    z-index: 10;
}

.social-icons a {
    color: #555;
    margin-right: 15px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4CAF50;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    max-width: 150px;
    height: auto;
}

.user-menu {
    position: absolute;
    right: 5%;
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    position: relative;
    margin-right: 10px;
}

.search-container form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    width: 180px;
    transition: width 0.3s;
}

.search-input:focus {
    width: 220px;
    outline: none;
    border-color: #4CAF50;
}

.search-button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #388E3C;
}

.menu-item {
    color: #555;
    margin-left: 15px;
    font-size: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #4CAF50;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    background-color: #4CAF50;
    padding: 0 5%;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    padding: 0;
    position: relative;
}

.main-nav li a {
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block;
    padding: 12px 25px;
}

.main-nav li a:hover {
    background-color: #388E3C;
    color: white;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #4CAF50;
    padding-left: 20px;
}

.dropdown i {
    font-size: 12px;
    margin-left: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner Slider */
.banner-slider {
    width: 100%;
    position: relative;
    margin-bottom: 60px;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 550px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 10%;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 15px;
}

.slide-content h3 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 30px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 5;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #4CAF50;
}

/* Çok Satanlar */
.bestsellers {
    padding: 60px 5%;
    background-color: white;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
    color: #333;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .overlay-icon {
    transform: translateY(0);
    opacity: 1;
}

.overlay-icon:nth-child(1) {
    transition-delay: 0.1s;
}

.overlay-icon:nth-child(2) {
    transition-delay: 0.2s;
}

.overlay-icon:nth-child(3) {
    transition-delay: 0.3s;
}

.overlay-icon:hover {
    background-color: #4CAF50;
    color: white;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.product-rating {
    color: #FFC107;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-weight: bold;
    font-size: 20px;
    color: #4CAF50;
}

.add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: #388E3C;
}

/* Kategori Daireleri */
.category-circles {
    display: flex;
    justify-content: space-around;
    padding: 50px 5%;
    background-color: #fff;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-circle {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-circle:hover {
    transform: translateY(-10px);
}

.circle-icon {
    width: 120px;
    height: 120px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid #4CAF50;
    transition: all 0.3s ease;
}

.circle-icon i {
    font-size: 40px;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.category-circle:hover .circle-icon {
    background-color: #4CAF50;
}

.category-circle:hover .circle-icon i {
    color: white;
}

.category-circle p {
    font-weight: 500;
    font-size: 18px;
    color: #333;
}

/* Kullanım Alanlarına Göre */
.usage-areas {
    padding: 60px 5%;
    background-color: white;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.usage-categories {
    display: flex;
    gap: 30px;
}

.usage-category {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.usage-category:hover {
    transform: translateY(-5px);
}

.usage-category h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.usage-category p {
    color: #666;
    margin-bottom: 20px;
}

.category-products {
    display: flex;
    gap: 20px;
}

.category-product {
    flex: 1;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.category-product:hover {
    transform: translateY(-5px);
}

.category-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-product h4 {
    margin: 15px 0 5px;
    font-size: 16px;
    color: #333;
}

.category-price {
    display: block;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Ürün Özellikleri */
.product-features {
    padding: 60px 5%;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.features-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-list {
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
}

.feature-list li i {
    font-size: 20px;
    color: #4CAF50;
    margin-right: 15px;
}

.feature-list li p {
    font-size: 18px;
    color: #333;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hizmetler */
.services {
    display: flex;
    justify-content: space-between;
    padding: 60px 5%;
    background-color: white;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item {
    text-align: center;
    flex: 1;
    padding: 0 15px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 30px;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: #4CAF50;
    color: white;
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 14px;
}

/* Sertifikalar */
.certificates {
    padding: 60px 5%;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin: 0 5% 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.certificate-list {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.certificate-item {
    max-width: 150px;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-10px);
}

.certificate-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.certificate-item p {
    color: #666;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 60px 5% 20px;
    border-radius: 10px 10px 0 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #4CAF50;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.social-media {
    margin-bottom: 20px;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: #4CAF50;
    transform: translateY(-5px);
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-categories {
        flex-direction: column;
    }
    
    .features-content {
        flex-direction: column;
    }
    
    .slider {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 5%;
        top: 15px;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slide-content h3 {
        font-size: 28px;
    }
    
    .category-circles {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .services {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .service-item {
        flex: 0 0 45%;
    }
    
    .certificate-list {
        flex-wrap: wrap;
    }
    
    .footer-container {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .category-products {
        flex-direction: column;
    }
    
    .service-item {
        flex: 0 0 100%;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content {
        text-align: center;
        width: 100%;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
}

/* Mobil Uyumluluk İyileştirmeleri */
@media (max-width: 767px) {
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 15px 5%;
    }
    
    .social-icons, .logo, .user-menu {
        position: static;
        transform: none;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .logo {
        text-align: center;
        margin: 15px 0;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .user-menu {
        display: flex;
        justify-content: space-between;
        padding: 0;
    }
    
    .search-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .search-input {
        width: calc(100% - 40px);
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        flex: 0 0 50%;
        text-align: center;
    }
    
    .bestsellers, .category-circles, .services {
        padding: 0 10px;
    }
    
    .category-circles {
        flex-wrap: wrap;
    }
    
    .category-circle {
        flex: 0 0 48%;
        margin-bottom: 15px;
    }
    
    .service-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-card {
        height: auto;
    }
    
    .product-image {
        height: 180px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Tablet Uyumluluk */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .service-item {
        flex: 0 0 48%;
        margin-bottom: 15px;
    }
    
    .category-circle {
        flex: 0 0 23%;
    }
}

/* Dokunmatik Ekran İyileştirmeleri */
@media (pointer: coarse) {
    .add-to-cart, .wishlist-button, .product-link, .menu-item, .search-button {
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
    }
    
    button, a {
        cursor: default;
    }
    
    .wishlist-button {
        width: 44px;
        height: 44px;
    }
    
    input[type="text"], input[type="search"], input[type="email"], input[type="password"],
    select, textarea, .sort-select, .filter-button {
        font-size: 16px; /* iOS otomatik zoom'u önler */
        height: 44px;
    }
}

/* Yüksek DPI Ekranlar için İyileştirmeler */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Kullanıcı Erişilebilirlik İyileştirmeleri */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobil Safari Düzeltmeleri */
@supports (-webkit-touch-callout: none) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    input, textarea, select, button {
        -webkit-appearance: none;
        border-radius: 0;
    }
}

/* PWA İyileştirmeleri */
@media (display-mode: standalone) {
    .top-bar {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* PWA Yükleme Düğmesi */
.install-app-button {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
}

.install-app {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    max-width: 90%;
    position: relative;
}

.install-app p {
    margin: 0 15px 0 0;
    color: #333;
    font-size: 14px;
}

.install-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.close-button {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Çevrimdışı Durum Göstergesi */
body.offline::before {
    content: "Çevrimdışı mod";
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

body.offline .offline-dependent {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobil Cihazlarda Yükleme Düğmesi */
@media (max-width: 767px) {
    .install-app {
        padding: 12px 15px;
    }
    
    .install-app p {
        font-size: 13px;
        margin-right: 10px;
    }
    
    .install-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}