@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === Nora Food Bakery Design System === */

:root {
    /* Core brand colors - Mint green theme */
    --background: hsl(120, 20%, 98%);
    --foreground: hsl(150, 30%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(150, 30%, 15%);

    /* Primary: Mint green */
    --primary: hsl(145, 45%, 42%);
    --primary-foreground: hsl(0, 0%, 100%);

    /* Secondary: Warm cream */
    --secondary: hsl(35, 40%, 95%);
    --secondary-foreground: hsl(150, 30%, 20%);

    --muted: hsl(120, 15%, 94%);
    --muted-foreground: hsl(150, 10%, 45%);

    /* Accent: Soft pink for pastry vibes */
    --accent: hsl(350, 60%, 92%);
    --accent-foreground: hsl(350, 40%, 35%);

    --border: hsl(145, 20%, 88%);
    --destructive: hsl(0, 84%, 60%);

    /* Custom brand tokens */
    --brand-mint: hsl(145, 45%, 42%);
    --brand-mint-light: hsl(145, 35%, 92%);
    --brand-cream: hsl(40, 35%, 96%);
    --brand-pink: hsl(350, 60%, 92%);
    --brand-dark: hsl(150, 30%, 15%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(145, 45%, 42%, 0.12);
    --shadow-card: 0 8px 30px -8px hsla(150, 30%, 15%, 0.1);
    --shadow-elevated: 0 20px 50px -15px hsla(150, 30%, 15%, 0.15);

    --radius: 0.75rem;
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Animations === */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.animate-fade-in {
    -webkit-animation: fadeInUp 0.5s ease-out both;
    animation: fadeInUp 0.5s ease-out both;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* === Hero Section (New Design) === */
.hero-section {
    position: relative;
    height: 35vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(254, 254, 254, 0.2) 60%, var(--background) 100%);
    pointer-events: none;
}

.brand-header {
    position: relative;
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    z-index: 10;
}

.brand-header.with-hero {
    margin-top: -65px;
    /* Logo hizalamasÄ± iÃ§in hafif yukarÄ± */
}

.brand-header.no-hero {
    margin-top: 1.5rem;
}

.brand-logo-container {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 4px solid white;
    overflow: hidden;
}

.brand-logo-img {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-title {
    font-size: 2.25rem;
    /* Boyut kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.8rem;
    /* Boyut kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    /* Boyut kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    max-width: 500px;
    margin: 0 auto 1.75rem;
    opacity: 0.85;
    line-height: 1.5;
}

.info-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

/* === Social Links === */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.25rem 0 1.75rem;
}

.social-btn {
    width: 2.85rem;
    /* Boyut kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    height: 2.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #718096;
    /* Daha yumuÅŸak bir gri */
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn i {
    font-size: 1.1rem;
    /* Ä°kon kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ - gÃ¶z yormaz */
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === Branch Cards (Accordion Style) === */
.branch-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branch-item {
    background-color: white;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.branch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.branch-card-header:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.branch-main-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.branch-icon-box {
    width: 3.25rem;
    height: 3.25rem;
    background-color: var(--brand-mint-light);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.branch-text h3 {
    font-size: 1.05rem;
    /* Biraz daha kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.15rem;
}

.branch-action-arrow {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.branch-item.active .branch-action-arrow {
    transform: rotate(180deg);
}

/* Expanded Content */
.branch-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 1.5rem;
    background-color: #fafafa;
}

.branch-item.active .branch-card-content {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid #f3f3f3;
}

.branch-item.disabled {
    opacity: 0.7;
    cursor: default;
    filter: grayscale(0.2);
    background-color: #f9fafb;
}

.branch-item.disabled .branch-icon-box {
    background-color: #e2e8f0;
    color: #94a3b8;
}

.branch-item.disabled .branch-card-header {
    cursor: default;
    pointer-events: none;
}

.branch-badge-coming-soon {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.25rem;
}

.branch-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.branch-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.branch-action-btn i {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.8;
}

.branch-action-btn:hover {
    background-color: var(--brand-mint-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.location-btn {
    flex-direction: row;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.85rem;
}

.branch-map-container {
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid #edf2f7;
}

.branch-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .branch-actions-grid {
        grid-template-columns: 1fr;
    }

    .branch-action-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.85rem 1.25rem;
        gap: 1rem;
    }
}

/* === Gallery Section (Instagram Style) === */
.gallery-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    padding: 2rem 1.5rem 5rem;
    max-width: 600px;
    margin: 0 auto;
    /* Override animation to ensure visibility on all devices */
    -webkit-animation: none !important;
    animation: none !important;
}

.instagram-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    /* Instagram gibi Ã§ok az boÅŸluk */
    border-radius: 1rem;
    overflow: hidden;
}

.insta-item {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
    /* aspect-ratio with fallback for older iOS */
    aspect-ratio: 1 / 1;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .insta-item {
        padding-top: 100%;
    }

    .insta-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.insta-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .instagram-grid {
        gap: 2px;
    }
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.75rem;
    height: 3.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-home-btn:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    font-weight: 700;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Branch Dropdown */
.branch-dropdown-container {
    position: relative;
}

.branch-dropdown-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.branch-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.branch-dropdown-trigger:hover .branch-name {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.branch-name i {
    color: var(--primary);
    font-size: 0.9rem;
}

.switcher-icon {
    font-size: 0.75rem !important;
    opacity: 0.3;
    margin-left: 0.15rem;
    transition: transform 0.3s ease;
}

.branch-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.branch-dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 510;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #fdfdfd;
    color: var(--primary);
    padding-left: 1.25rem;
}

.dropdown-item.active {
    background: hsla(145, 45%, 42%, 0.05);
    color: var(--primary);
    font-weight: 600;
}

.active-check {
    margin-left: auto;
    font-size: 0.8rem;
}

.whatsapp-btn.icon-only {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn.icon-only:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    .menu-logo {
        height: 28px;
    }

    .branch-name {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }

    .back-home-btn {
        width: 2rem;
        height: 2rem;
    }
}

.whatsapp-btn svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

/* === Category Navigation & Search === */
.menu-controls-wrapper {
    position: sticky;
    top: 4.5rem;
    /* Header height + adjustment */
    z-index: 30;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-container {
    padding: 0.75rem 1rem 0.25rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsla(145, 45%, 42%, 0.1);
}

.category-nav {
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .menu-controls-wrapper {
        top: 4rem;
        /* Match header height on mobile */
    }
}

.category-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.category-scroll::-webkit-scrollbar {
    height: 0.375rem;
}

.category-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.category-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 1rem;
}

.category-btn {
    flex-shrink: 0;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.category-btn:hover {
    background-color: hsla(120, 15%, 94%, 0.8);
}

.category-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px -4px var(--primary);
}

.category-btn:active {
    transform: scale(0.95);
}

/* === Products === */
.products-container {
    padding: 1rem;
}

.category-section {
    margin-bottom: 2rem;
    scroll-margin-top: 7rem;
}

.category-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-count {
    color: var(--muted-foreground);
    font-weight: 400;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease-out backwards;
}

.product-item:hover {
    border-color: hsla(145, 45%, 42%, 0.3);
    box-shadow: var(--shadow-card);
}

.product-item:active {
    transform: scale(0.98);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.product-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: hsla(145, 45%, 42%, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    letter-spacing: 0.02em;
}

.product-image {
    width: 6rem;
    height: 6rem;
    border-radius: calc(var(--radius) - 0.25rem);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--muted);
}

.product-placeholder {
    width: 6rem;
    height: 6rem;
    border-radius: calc(var(--radius) - 0.25rem);
    background-color: var(--brand-mint-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: hsla(145, 45%, 42%, 0.3);
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

/* === Footer === */
.site-footer {
    margin-top: auto;
    padding: 2rem 1rem;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-brand {
    color: var(--primary);
    font-weight: 600;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Loading Spinner === */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .header-info {
        display: none;
    }

    .category-nav {
        top: 4rem;
    }

    .category-section {
        scroll-margin-top: 9rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 0 6rem;
    }

    .branch-list {
        padding: 3rem 1rem;
    }
}

/* === Branch Details === */
.branch-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    /* Dikey boÅŸluk 0.35, Yatay boÅŸluk 1.25 */
    margin-top: 0.35rem;
}

.branch-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.branch-detail-item i {
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
}

.branch-icon-box i {
    font-size: 1.5rem;
}

.branch-action-arrow i {
    font-size: 1rem;
}

/* === Product Detail Modal (Dynamic: Bottom Sheet on Mobile, Centered on Desktop) === */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Default: Bottom sheet */
    transition: visibility 0s 0.3s;
}

.product-modal.show {
    visibility: visible;
    transition: visibility 0s 0s;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.show .product-modal-overlay {
    opacity: 1;
}

.product-modal-content {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: white;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    padding: 1.5rem 1.5rem 2.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.1);
}

.product-modal.show .product-modal-content {
    transform: translateY(0);
}

/* Desktop Styles for Modal */
@media (min-width: 768px) {
    .product-modal {
        align-items: center;
        /* Center on desktop */
    }

    .product-modal-content {
        border-radius: 1.5rem;
        transform: translateY(30px) scale(0.95);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        max-height: 90vh;
    }

    .product-modal.show .product-modal-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .product-modal-drag-handle {
        display: none;
    }
}

.product-modal-drag-handle {
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: -0.5rem auto 1.25rem;
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brand-dark);
    z-index: 100;
    transition: all 0.2s ease;
}

.product-modal-close:hover {
    transform: rotate(90deg);
    color: var(--destructive);
}

/* Multi-Image Gallery in Modal */
.modal-gallery-wrapper {
    position: relative;
    width: 100%;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--brand-dark);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-gallery-nav.nav-prev {
    left: 0.75rem;
}

.modal-gallery-nav.nav-next {
    right: 0.75rem;
}

.modal-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}

.modal-gallery::-webkit-scrollbar {
    display: none;
}

.modal-image-wrapper {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-image-wrapper {
        aspect-ratio: 1 / 1;
    }
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--primary);
}

.modal-title {
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--brand-dark);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 750;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.product-item {
    cursor: pointer;
}

/* === Mobile Fixes & Catering === */

/* Ensure gallery is visible on all devices including iOS Safari */
@media (max-width: 768px) {
    .instagram-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }

    .branch-dropdown-container {
        display: none !important;
    }
}

/* Prevent phone numbers from changing color on mobile */
a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
}

.branch-detail-item span {
    color: inherit;
}

/* Catering Styles */
.catering-promo {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
}

.logo-tag-refined {
    font-size: 0.6rem;
    background: var(--primary);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 2px;
    display: inline-block;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px hsla(145, 45%, 42%, 0.2);
}

.contact-pill:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px hsla(145, 45%, 42%, 0.3);
    -webkit-filter: brightness(1.1);
    filter: brightness(1.1);
}

.contact-pill i {
    font-size: 0.9rem;
}

.contact-pill span {
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .catering-detail i {
        display: none !important;
    }

    .gallery-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-animation: none !important;
        animation: none !important;
        padding: 1.5rem 1rem 4rem !important;
    }

    .insta-item {
        display: block !important;
        visibility: visible !important;
        width: 100%;
        min-height: 0;
    }

    .insta-item img {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* === Print & Menu List Styles === */
@media print {
    @page {
        margin: 1cm;
        size: auto;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 10pt;
        display: block !important;
    }

    /* Prevent flex-box reordering in print */
    .min-h-screen,
    div.flex-col {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
    }

    .site-header,
    .menu-controls-wrapper,
    .site-footer,
    .back-home-btn,
    .branch-dropdown-container,
    .whatsapp-btn,
    .search-container,
    .category-nav,
    .print-btn-container,
    #productModal,
    .footer-brand,
    .social-links,
    .info-badges,
    .hero-section {
        display: none !important;
    }

    .products-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .category-section {
        page-break-inside: avoid;
        margin-bottom: 6px !important;
        display: block !important;
    }

    .category-header {
        font-family: 'Playfair Display', serif !important;
        font-size: 10pt !important;
        border-bottom: 1px solid #1a1a1a !important;
        margin-bottom: 4px !important;
        padding-bottom: 1px !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        text-align: left;
        /* Changed from center to left */
        text-transform: uppercase;
    }

    .products-list {
        display: block !important;
        columns: 4;
        column-gap: 12px;
        orphans: 3;
        widows: 3;
    }

    .product-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        /* Increased vertical padding */
        border: none !important;
        /* Reset all borders first */
        border-bottom: 1px dotted #ccc !important;
        /* Apply only bottom border */
        border-radius: 0 !important;
        /* Remove rounded corners */
        break-inside: avoid-column;
        page-break-inside: avoid;
        background: none !important;
        box-shadow: none !important;
        line-height: normal !important;
        gap: 8px !important;
    }

    .product-image,
    .product-placeholder {
        display: block !important;
        /* Ensure image is block-level */
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        /* Prevent shrinking */
        border-radius: 4px !important;
        object-fit: cover !important;
        margin-right: 0 !important;
        /* Margin handled by gap */
    }

    .product-placeholder i {
        display: none !important;
    }

    .product-info {
        display: flex !important;
        flex-direction: row !important;
        /* Force row direction */
        justify-content: space-between !important;
        align-items: center !important;
        /* Align vertically center */
        flex: 1 !important;
        width: auto !important;
        gap: 8px !important;
        border: none !important;
        padding: 0 !important;
    }

    .product-name {
        font-family: 'Inter', sans-serif !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #1a1a1a !important;
        text-align: left !important;
        flex-grow: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: auto !important;
    }

    .product-price {
        font-family: 'Inter', sans-serif !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        color: #000 !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .product-description {
        display: none !important;
    }

    /* Removed print-header styles */
    .site-footer p.footer-text {
        display: none !important;
    }
}

/* Removed print-header hidden rule */
.print-btn-container {
    padding: 2rem 1.5rem;
    text-align: center;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    filter: brightness(1.1);
}

.print-btn i {
    font-size: 1rem;
}