:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --bg-light: #f5f6f8;
    --white: #ffffff;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 5px;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-bar-right a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 28px;
}

.logo a {
    text-decoration: none;
}

.search-box {
    padding: 0 20px;
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 12px 20px;
    font-size: 15px;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    font-weight: 500;
}

.search-box .btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.header-right {
    text-align: right;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
    border: 2px solid transparent;
}

.cart-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-btn i {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 15px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Main Navigation */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: absolute;
    left: 0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 24px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

/* Hero Banner (Sabit, Filtre Yok) */
.hero-banner-container {
    width: 100%;
    overflow: hidden;
    background: var(--white);
}

.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Eski Hero Slider - Yedek */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--white);
}

.hero-slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content .btn {
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 25px;
    font-weight: 600;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 100%; /* 1:1 Aspect Ratio - Square */
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Resim tam görünsün - kesilmesin */
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--success);
}

.badge-sale {
    background: var(--danger);
}

.badge-featured {
    background: var(--warning);
}

.product-body,
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-category a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.product-category a:hover {
    color: var(--accent-color);
}

.product-title,
.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 45px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a,
.product-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover,
.product-name a:hover {
    color: var(--accent-color);
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price .old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price .current-price {
    font-size: 22px;
    color: var(--danger);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.btn-add-cart:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-view {
    padding: 12px 20px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
}

/* Categories Section */
.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    text-decoration: none;
    display: block;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.category-card i {
    font-size: 52px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.category-card:hover i {
    color: var(--accent-color);
}

.category-card h4 {
    margin: 0;
    font-weight: bold;
    font-size: 18px;
}

/* Features Section */
.features-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-section i {
    font-size: 52px;
    color: var(--primary-color);
}

.features-section h5 {
    font-weight: bold;
    margin-top: 15px;
    color: var(--primary-color);
}

.features-section p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.copyright {
    margin: 30px 0 0;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cards */
.card-custom {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: var(--white);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .hero-slider,
    .hero-slide {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .product-image {
        height: 0;
        padding-top: 100%;
    }

    .category-card {
        padding: 20px;
    }

    .category-card i {
        font-size: 42px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Top Bar - Mobile */
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar-left span {
        margin-right: 10px;
        font-size: 11px;
    }

    .top-bar-right a {
        margin-left: 10px;
        font-size: 11px;
    }

    /* Header - Mobile */
    .main-header {
        padding: 15px 0;
    }

    .logo h2 {
        font-size: 22px;
    }

    .search-box {
        padding: 10px 0;
        margin-top: 10px;
    }

    .search-box .form-control {
        font-size: 14px;
        padding: 10px 15px;
    }

    .search-box .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cart-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .cart-btn i {
        font-size: 20px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Navigation - Mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        text-align: left;
    }

    .nav-menu a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    /* Hero Slider - Mobile */
    .hero-slider,
    .hero-slide {
        height: 300px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-content .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Section Titles - Mobile */
    .section-title {
        margin: 40px 0 25px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title h2::after {
        width: 60px;
        height: 3px;
    }

    /* Product Cards - Mobile */
    .product-card {
        margin-bottom: 20px;
    }

    .product-image {
        height: 0;
        padding-top: 100%;
        position: relative;
    }

    .product-image img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .product-body,
    .product-info {
        padding: 15px;
    }

    .product-title,
    .product-name {
        font-size: 14px;
        min-height: 42px;
    }

    .product-price {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .product-price .old-price {
        font-size: 14px;
    }

    .product-price .current-price {
        font-size: 18px;
    }

    .btn-add-cart {
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-view {
        padding: 10px 15px;
    }

    /* Category Cards - Mobile */
    .category-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .category-card i {
        font-size: 38px;
    }

    .category-card h4 {
        font-size: 16px;
    }

    /* Features Section - Mobile */
    .features-section {
        padding: 40px 0;
    }

    .features-section i {
        font-size: 38px;
    }

    .features-section h5 {
        font-size: 16px;
    }

    .features-section p {
        font-size: 14px;
    }

    /* Footer - Mobile */
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 14px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Buttons - Mobile */
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Cards - Mobile */
    .card-custom {
        border-radius: 10px;
    }

    .card-custom .card-header {
        padding: 15px;
        font-size: 16px;
    }

    .card-custom .card-body {
        padding: 15px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .logo h2 {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .product-image {
        height: 0;
        padding-top: 100%;
        position: relative;
    }

    .product-image img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .product-title,
    .product-name {
        font-size: 13px;
        min-height: 38px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price .old-price {
        font-size: 12px;
    }

    .product-price .current-price {
        font-size: 16px;
    }

    .btn-add-cart {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Büyütülmüş dokunma alanları */
    .btn-add-cart,
    .btn-view,
    .cart-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        min-height: 44px;
    }

    /* Hover efektlerini kaldır */
    .product-card:hover {
        transform: none;
    }

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

    .btn-add-cart:hover {
        transform: none;
    }

    .btn-add-cart:active {
        transform: scale(0.95);
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider,
    .hero-slide {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* iOS Safe Area */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Utility Classes */
.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .mt-50 {
        margin-top: 30px;
    }

    .mb-50 {
        margin-bottom: 30px;
    }
}

/* Price Styles */
.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.85em;
    margin-right: 10px;
}

.current-price {
    color: var(--danger);
    font-weight: bold;
}

.discount-badge {
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 10px;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

.badge-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

/* Product Detail Page Styles */
.product-detail-section .product-price {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-detail-section .product-price .old-price {
    font-size: 24px;
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 15px;
    display: inline-block;
}

.product-detail-section .product-price .current-price {
    font-size: 36px;
    color: var(--danger);
    font-weight: bold;
    display: inline-block;
}

.product-detail-section .product-price .discount-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
    vertical-align: middle;
}

.product-detail-info {
    padding: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
}

.main-image {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    padding: 10px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    padding: 5px;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.breadcrumb-section {
    background: var(--white);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.product-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.product-category a:hover {
    color: var(--accent-color);
}

.quantity-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-selector input {
    max-width: 80px;
}

.product-description {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-description h3 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .product-detail-section .product-price {
        font-size: 24px;
    }

    .product-detail-section .product-price .old-price {
        font-size: 18px;
    }

    .product-detail-section .product-price .current-price {
        font-size: 28px;
    }

    .product-title {
        font-size: 22px;
    }
}
