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

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --success-color: #4CAF50;
    --dark-color: #2D3142;
    --light-color: #FFF8F0;
    --white: #ffffff;
    --cream: #FFF5E6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8CC 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--dark-color);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--light-color);
    padding: 0.3rem;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--dark-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--secondary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: var(--light-color);
    border: none;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.sidebar-close:focus {
    outline: none;
}

.sidebar-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 2rem 1.5rem;
    flex: 1;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-menu-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.sidebar-menu-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-menu-item i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.sidebar-lang {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

.sidebar-lang h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Home View - Category Grid */
.home-view {
    display: block;
}

.home-view.hidden {
    display: none;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.6s ease;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    height: 250px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.category-card-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-card-info {
    display: none;
}

.category-card-count {
    display: none;
}

/* Product View */
.product-view {
    display: none;
}

.product-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--light-color);
    padding: 0.3rem;
    border-radius: 10px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--dark-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.view-btn:focus {
    outline: none;
}

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

.view-btn:hover:not(.active) {
    background: rgba(255, 107, 53, 0.2);
}

.back-btn {
    background: var(--light-color);
    border: none;
    color: var(--dark-color);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-5px);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.category-tab {
    position: relative;
    flex: 0 0 auto;
    width: 180px;
    height: 120px;
    border: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    transition: var(--transition);
}

.category-tab-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1rem;
}

.category-tab.active::before {
    background: linear-gradient(to bottom, rgba(255,107,53,0.6), rgba(255,107,53,0.9));
}

.category-tab:hover:not(.active)::before {
    background: linear-gradient(to bottom, rgba(247,147,30,0.5), rgba(247,147,30,0.8));
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-grid.list-view .product-image {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-description p{
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--dark-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    outline: none;
}

.modal-close:focus {
    outline: none;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.info-content h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-content p {
    color: #666;
    line-height: 1.6;
}

.hours-list {
    margin-top: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: var(--dark-color);
}

.hours-time {
    color: #666;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.7rem;
    }

    .main-container {
        padding: 1.5rem 1rem;
    }

    .welcome-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .category-card {
        height: 180px;
    }

    .category-card-title {
        font-size: 1.3rem;
        text-align: center;
        line-height: 1.2;
    }

    .product-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-left {

        gap: 1rem;
    }

    .product-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .view-toggle {

        justify-content: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-grid.list-view .product-content{
        padding: 0 0 0 20px;
    }
    .product-grid.list-view .product-card{
        padding:10px;
    }
    .product-grid.list-view .product-card  .product-name{
        font-size: 1rem;
    }
    .product-grid.list-view  .product-name {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    .product-grid.list-view .product-image {
        width: 80px;
        height: auto;
    }
    .product-grid.list-view    .product-description p {
        font-size: 0.85rem;
        margin-bottom: .5rem;
        line-height: 1.2;
    }
    .category-tab {
        width: 150px;
        height: 100px;
    }

    .category-tab-text {
        font-size: 1rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.5rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tab {
        width: 130px;
        height: 90px;
    }
}
.modal-description p {

    font-size:1rem;
}
.modal-description p:empty {
    display: block;
    content: " "; /* Bazı tarayıcılarda görünür kılmak için */
    height: 20px;  /* İstediğiniz boşluk miktarı */
    font-size:1rem;
}



.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content:center;
}
.social-links a{
    display: flex;
    width:25px;
    height:25px;
    color:#333;
    font-size:25px;
    border-radius: 50%;
    text-decoration:none;
}