/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Variables */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #7F8C8D;
    --light-gray: #BDC3C7;
    --border-radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-spinner p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* App Container */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.brand-text {
    flex: 1;
    min-width: 0;
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.search-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Search Container */
.search-container {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    padding: 0;
    position: relative;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
}

.search-container.active {
    max-height: 100px;
    padding: 15px 20px;
    opacity: 1;
    visibility: visible;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 50px;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 10;
}

.search-container.active .search-box {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-color);
    font-family: inherit;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-box i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--dark-color);
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.close-search {
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.close-search:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding-bottom: 90px;
}

/* Hero Section */
.hero-section {
    margin: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slide {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 30px;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #e55555;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    padding: 30px 20px 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Categories Section */
.categories-section {
    padding: 20px 0 40px;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
}

/* Popular Section */
.popular-section {
    padding: 20px 0 40px;
    background: white;
}

/* View All Button */
.view-all-btn {
    background: linear-gradient(135deg, var(--primary-color), #FF8E8E);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    margin: 15px auto 0;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF5252, var(--primary-color));
}

.view-all-btn:active {
    transform: translateY(0);
}

/* Categories Grid */
.categories-grid {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.product-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.product-count-badge span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.category-icon {
    font-size: 1.2rem;
}

.category-info {
    padding: 15px;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

/* Products Grid */
.products-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
    max-width: 100%;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.popular {
    background: var(--primary-color);
    color: white;
}

.badge.new {
    background: var(--accent-color);
    color: var(--dark-color);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    min-width: 60px;
}

.nav-item i {
    font-size: 1.2rem;
    color: var(--gray);
    transition: var(--transition);
}

.nav-item span {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item.active,
.nav-item:hover {
    background: rgba(255, 107, 107, 0.1);
}

.nav-item.active i,
.nav-item:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-item.active span,
.nav-item:hover span {
    color: var(--primary-color);
}

/* Menu Options */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.menu-option-btn {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.menu-option-btn:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.menu-option-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.menu-option-btn h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-option-btn p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Filter Tabs */
.filter-tabs {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 320px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#categoryFilters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-tab {
    background: #ffffff;
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Tümü button stays separate */

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.filter-tab:hover:not(.active) {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.01);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .filter-tabs {
        max-width: 280px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .filter-tab:first-child {
        grid-column: 1;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
}

.modal-body {
    padding: 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.products-grid .product-card {
    min-width: unset;
    display: flex;
    gap: 15px;
}

.products-grid .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.products-grid .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contact Info */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.social-btn i {
    font-size: 1.2rem;
}

/* Product Details */
.product-detail {
    text-align: center;
}

.product-detail-image {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-detail p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.order-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.order-btn:hover {
    background: #e55555;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.4s ease forwards;
}

/* Responsive Design */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 16px;
        min-height: 65px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .brand-text span {
        font-size: 0.75rem;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .search-container {
        padding: 0 16px;
    }
    
    .search-container.active {
        padding: 12px 16px;
        max-height: 100px;
    }
    
    .search-box {
        min-height: 50px;
        padding: 12px 16px;
    }
    
    .categories-grid {
        padding: 0 16px;
        grid-template-columns: 1fr;
    }
    
    .category-card {
        display: flex;
        align-items: center;
        height: 80px;
    }
    
    .category-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .category-info {
        padding: 15px;
        text-align: left;
    }
    
    .category-overlay {
        display: none;
    }
    
    .products-slider {
        padding: 0 16px;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        min-height: 220px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .section-header {
        padding: 25px 16px 16px;
    }
    
    .hero-section {
        margin: 16px;
    }
    
    .hero-slide {
        height: 180px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #fff;
    }
    
    .app-container {
        background: #2d2d2d;
    }
    
    .app-header {
        background: #2d2d2d;
        border-bottom-color: #404040;
    }
    
    .brand-text h1 {
        color: #fff;
    }
    
    .category-card,
    .product-card,
    .modal-content {
        background: #3d3d3d;
    }
    
    .bottom-nav {
        background: #2d2d2d;
        border-top-color: #404040;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Safe Area Support */
@supports (padding: max(0px)) {
    .app-header {
        padding-top: max(15px, env(safe-area-inset-top));
    }
    
    .bottom-nav {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Modal About Text Styles */
.modal-about-text-preview {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.modal-about-text-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.modal-about-text-preview {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.modal-about-text-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.modal-about-text-full {
    margin-bottom: 15px;
}

.modal-read-more-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff5252);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, var(--primary-color));
}

.modal-read-more-btn:active {
    transform: translateY(0);
}

.about-text-container {
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/* Hero Slider Layout Fix & Controls */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 240px; /* varsayılan yükseklik */
}

@media (max-width: 480px) {
    .hero-slider {
        height: 216px;
    }
}

/* Tüm slaytları gizle, sadece active olan görünsün */
.hero-slide {
    display: none;            /* varsayılan olarak gizli */
    align-items: center;      /* önceki flex hizası korunur */
    justify-content: flex-start;
}

.hero-slide.active {
    display: flex;            /* aktif slayt gösterilir */
}

/* Navigasyon okları */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 12px;
}

.slider-nav .nav-btn {
    pointer-events: all;  /* butonların tıklanmasına izin ver */
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav .nav-btn:hover {
    background: rgba(0,0,0,0.65);
}

/* Nokta navigasyonu */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Slider dotsı gizle */
.slider-dots {
    display: none !important;
}

/* Slider animation override */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    transition: transform 0.6s ease;
}

/* Branches Section Styles */
.branches-section {
    margin-bottom: 2rem;
}

.branches-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 2px solid #FF6B6B;
    padding-bottom: 0.5rem;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.branch-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.branch-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-badge {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.branch-detail i {
    color: #FF6B6B;
    margin-top: 0.1rem;
    min-width: 16px;
}

.branch-detail span,
.branch-detail a {
    color: #555;
    text-decoration: none;
    line-height: 1.4;
}

.branch-detail a:hover {
    color: #FF6B6B;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 2px solid #4ECDC4;
    padding-bottom: 0.5rem;
}

/* Mobile responsive for branches */
@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-card {
        padding: 1rem;
    }
    
    .branch-header h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .main-badge {
        align-self: flex-start;
    }
}

/* ------------------------------------------------------------------ */
