:root {
    /* Color Palette - Modern Traditional (Striking Red & Crisp White) */
    --brand-primary: #D32F2F;
    /* Vibrant, traditional striking Red */
    --brand-primary-dark: #B71C1C;
    /* Deeper red for hovers */
    --brand-primary-light: #FFEBEE;
    /* Light red tint */

    --brand-accent: #E53935;
    /* Brighter red accent */
    --brand-secondary: #212121;
    /* Sharp dark contrast */

    --bg-main: #FFFFFF;
    /* Crisp modern White background */
    --bg-surface: #FFFFFF;
    --bg-surface-glass: rgba(255, 255, 255, 0.95);

    --text-primary: #1A1A1A;
    /* Strong black for modern contrast */
    --text-secondary: #616161;
    /* Crisp dark gray */
    --text-inverse: #FFFFFF;

    --border-color: #EEEEEE;
    /* Very light modern border */
    --success: #388E3C;
    /* Crisp green */
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Layout Variables */
    --nav-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(230, 46, 61, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);

    /* Geleneksel Kilim Yıldızı Motifi (Daha Seyrek ve Zarif Parallax) */
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d32f2f' fill-opacity='0.1' transform='translate(30, 30)'%3E%3Crect x='25' y='25' width='10' height='10' transform='rotate(45 30 30)'/%3E%3Cpolygon points='30,5 35,15 30,25 25,15'/%3E%3Cpolygon points='30,35 35,45 30,55 25,45'/%3E%3Cpolygon points='5,30 15,25 25,30 15,35'/%3E%3Cpolygon points='35,30 45,25 55,30 45,35'/%3E%3Crect x='15' y='15' width='4' height='4' transform='rotate(45 17 17)'/%3E%3Crect x='41' y='15' width='4' height='4' transform='rotate(45 43 17)'/%3E%3Crect x='15' y='41' width='4' height='4' transform='rotate(45 17 43)'/%3E%3Crect x='41' y='41' width='4' height='4' transform='rotate(45 43 43)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
    background-repeat: repeat;

    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Base Elements */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.glass-effect {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect-top {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--brand-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    /* max-width kaldırıldı → header artık tam ekran genişliğinde */
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1px;
}

.logo .subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--brand-primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
    transform: scale(0);
    transition: transform var(--transition-bounce);
}

.badge.active {
    transform: scale(1);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--nav-height) + 40px) 5% 60px;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    /* Modern red tint */
    border-radius: 50%;
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--brand-secondary);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.primary-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(230, 46, 61, 0.25);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 46, 61, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 46, 61, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 46, 61, 0);
    }
}

/* Contact and Reviews Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@keyframes pulseWa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Category Navigation */
.nav-wrapper {
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    background: var(--bg-main);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.categories-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.category-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 5px;
    /* for scrollbar spacing */
    scrollbar-width: none;
    /* Firefox */
}

.category-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.category-item {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    user-select: none;
}

.category-item:hover {
    border-color: var(--brand-primary-light);
    color: var(--brand-primary);
}

.category-item.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* Products Section */
.products-section {
    padding: 20px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

/* Product Card */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.5s ease backwards;
    border: 1px solid var(--border-color);
    /* Clean modern border */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f1f5f9;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tag {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(4px);
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}

.tag.popular {
    background: var(--brand-primary);
    color: white;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-bounce);
}

.add-to-cart-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--brand-primary-light);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* About Section */
.about-section {
    padding: 20px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    padding: 50px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    margin-top: 15px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--brand-secondary);
    color: white;
    padding: 60px 5% 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* -------------------------------------
   Cart Offcanvas 
-------------------------------------- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    font-size: 1.25rem;
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h2 i {
    color: var(--brand-primary);
}

.cart-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty Cart State */
.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    display: none;
    /* hidden by default, shown via JS */
}

.empty-cart-msg.active {
    display: block;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.empty-cart-msg h3 {
    margin-bottom: 10px;
    color: var(--brand-secondary);
}

.empty-cart-msg p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.outline-btn {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: var(--transition-normal);
}

.outline-btn:hover {
    background: var(--brand-primary);
    color: white;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    background: var(--bg-surface);
    padding: 12px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: slideInRight 0.3s ease-out backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--brand-secondary);
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.item-subtotal {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.9rem;
    margin-left: auto;
}

/* Cart Total Row */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--brand-primary-light);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-secondary);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.cart-total-amount {
    font-size: 1.2rem;
    color: var(--brand-primary);
    font-weight: 800;
}

/* Price unit label (e.g. /kg, /adet) */
.price-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Modal price badge */
.modal-price-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.25);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary-light);
}

.item-qty {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ef4444;
    font-size: 1.1rem;
    background: transparent;
    padding: 5px;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    background: var(--bg-surface);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
    padding-bottom: calc(20px + var(--safe-area-bottom));
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-row.total-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

.price-amount {
    color: var(--brand-primary);
}

/* Order Form */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

textarea.form-input+.input-icon,
.input-group textarea~.input-icon {
    top: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: #f9fafb;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.whatsapp-btn {
    width: 100%;
    padding: 16px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover:not(:disabled) {
    background: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:disabled {
    background: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-subtext {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Product Modal Layer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: var(--bg-surface);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--brand-primary);
    transform: scale(1.1);
}

.modal-content-area {
    overflow-y: auto;
}

.modal-img-container {
    width: 100%;
    height: 250px;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 24px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.add-to-cart-large {
    width: 100%;
    background: var(--brand-primary);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.add-to-cart-large:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: calc(20px + var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    color: var(--success);
    font-size: 1.5rem;
}

.toast-content .toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-secondary);
}

.toast-content .toast-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        flex-direction: row;
        height: 120px;
    }

    .product-img-wrapper {
        width: 120px;
        height: 100%;
        padding-top: 0;
    }

    .product-info {
        justify-content: center;
        padding: 10px 15px;
    }

    .product-desc {
        display: none;
        /* Hide desc on small phones in list view */
    }

    .product-tags {
        display: none;
    }
}

/* About Gallery Improvements */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-text-content {
    max-width: 800px;
}

.about-text-content p {
    margin-bottom: 20px;
    text-align: left;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .about-content-wrapper {
        flex-direction: row;
        text-align: left;
    }

    .about-text-content {
        flex: 1;
    }

    .about-gallery {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-img-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    padding-top: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.gallery-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Desktop & Mobile Navigation CSS Additions */
.desktop-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--brand-secondary);
    transition: var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--brand-primary);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.mobile-menu-btn {
    display: flex;
}

@media (min-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
        padding: 0 40px;
        /* Kenarlardan ferah boşluk */
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        margin: 0;
        flex-grow: 1;
        justify-content: flex-end;
        /* Sağ tarafa yasla */
    }

    .header-actions {
        display: none !important;
        /* Masaüstünde hamburger menüye gerek yok */
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 1000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--brand-secondary);
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-secondary);
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--brand-primary);
    background: var(--bg-main);
}

/* Interactive Map Enhancements */
.map-container iframe {
    filter: grayscale(20%);
    transition: var(--transition-normal);
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Ensure the map container maintains its aspect ratio down to mobile screens */
@media (max-width: 480px) {
    .contact-section {
        padding: 40px 15px !important;
    }
}

/* Floating WhatsApp Button (Now on top of Cart) */
.floating-wa {
    position: fixed;
    bottom: 110px;
    /* Sits above the cart button */
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-bounce);
    /* Sadece küçük süzülme animasyonu, çok bağırmasın */
    animation: floatWa 3s ease-in-out infinite;
}

.floating-wa:hover {
    background-color: var(--whatsapp-green-dark);
    transform: scale(1.1) translateY(-5px);
    color: white;
}

@keyframes floatWa {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

/* Floating Cart Button (List) - Now at the bottom and attention grabbing */
.floating-cart {
    position: fixed;
    bottom: 30px;
    /* At the bottom corner */
    right: 30px;
    background-color: var(--brand-primary);
    /* Bright red for attention */
    color: white;
    width: 64px;
    /* A bit larger */
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
    z-index: 1000;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: 3px solid white;
    animation: floatCart 2.5s ease-in-out infinite, pulseCart 1.5s infinite;
}

.floating-cart:hover {
    background-color: #b71c1c;
    /* Darken on hover */
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.7);
    animation: none;
    /* Stop pulsing on hover so they can focus on clicking */
}

@keyframes floatCart {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseCart {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.floating-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFB300;
    /* Attention grabbing yellow badge */
    color: #000;
    font-size: 0.95rem;
    font-weight: 800;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    animation: bounceBadge 2s infinite;
    /* Gentle bounce */
}

@keyframes bounceBadge {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        border-width: 2px;
    }

    .floating-badge {
        font-size: 0.8rem;
        min-width: 24px;
        height: 24px;
        top: -6px;
        right: -6px;
    }
}

/* Warning Modal Specifics */
.warning-modal {
    max-width: 450px !important;
    text-align: center;
}

.warning-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.warning-modal p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .warning-modal {
        width: 90% !important;
        max-width: none !important;
    }
}