/* assets/css/style.css */
:root {
    --primary-color: #f1c40f;
    /* Altınımsı altın sarısı Takıcızade rengine atıf */
    --primary-dark: #d4ac0d;
    --accent-color: #222222;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #eaeaea;
    --disabled-bg: #f4f4f4;
    --disabled-text: #adb5bd;
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    overflow-x: clip;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1001;
}

.header-top {
    background: var(--accent-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    text-align: right;
}

.header-top a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.header-main {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: var(--bg-color);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    /* Added to ensure dropdown positioning works */
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 5px 12px 20px;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.search-bar button {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0 20px 0 5px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

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

.action-btn:hover {
    color: var(--primary-color);
}

.mobile-hooks {
    display: none;
}

.cat-item-hook {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
    color: var(--accent-color);
}

.cat-item-hook i {
    font-size: 18px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-color);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Nav */
.main-nav {
    display: flex;
    position: relative;
    background: var(--card-bg);
}

#categoryMenu {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.cat-item {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    position: relative;
    cursor: pointer;
}

.cat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.cat-item:hover::after,
.cat-item.active::after {
    width: 100%;
}

.cat-item.active {
    color: var(--primary-dark);
}

.cat-item.has-dropdown>span {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 1000;
}

/* Masaüstünde hover ile aç */
@media (min-width: 769px) {
    .cat-item.has-dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }
}

/* Mobilde sadece .open sınıfı ile aç/kapat */
.cat-item.has-dropdown.open .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-item {
    padding: 10px 20px;
    display: block;
    color: var(--text-main);
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-dark);
}


/* Main Grid */
main.container {
    padding: 30px 20px;
    min-height: 60vh;
}

.page-title {
    margin-bottom: 20px;
}

.page-title h1 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.page-title p {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.badge-instock {
    background: var(--primary-color);
    color: #000;
}

.badge-outstock {
    background: #dc2626;
    color: white;
}

.option-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    z-index: 2;
}

.option-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.product-card:hover .option-badge {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--accent-color);
}

.card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 5px;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.price-retail {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
}

.price-wholesale {
    font-size: 18px;
    font-weight: 700;
    color: #0e9f6e;
    display: block;
    white-space: nowrap;
}

.stock-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
}

.stock-info span {
    color: var(--primary-dark);
}

.stock-info.out {
    color: var(--danger);
}

.add-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

/* OUT OF STOCK STYLING */
.product-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(80%);
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.product-card.out-of-stock .add-btn {
    background: var(--disabled-bg);
    color: var(--disabled-text);
    pointer-events: none;
}

.product-card.out-of-stock .card-price {
    color: var(--disabled-text);
    text-decoration: line-through;
}

/* Loadings */
.loading-menu,
.loading-products {
    width: 100%;
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 18px;
}

.loading-products.full-span {
    grid-column: 1 / -1;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.page-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #000;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Siralama ve Sayfa Limiti Kontrolleri */
.product-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-controls select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.product-controls select:focus {
    border-color: var(--primary-color);
}

.main-footer {
    background: var(--card-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--accent-color);
    cursor: pointer;
}

/* Mobile Auth Buttons Default (Hidden) */
.mobile-auth-buttons,
.footer-mobile-auth {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }

    .header-main .header-flex {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo-wrapper {
        flex-shrink: 1;
        min-width: 0;
        gap: 10px !important;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .logo {
        min-width: 0;
        overflow: hidden;
    }

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

    .search-bar {
        width: 100%;
        max-width: 100%;
        order: 3;
        margin-top: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .desktop-hooks {
        display: none !important;
    }

    .mobile-header-hooks {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .m-head-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 600;
        padding: 5px 6px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
        color: var(--accent-color);
        text-decoration: none;
        white-space: nowrap;
        background: var(--card-bg);
    }

    .m-head-btn i {
        font-size: 13px;
    }

    .m-head-btn.m-head-primary {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: #000;
    }

    .m-head-btn.m-head-danger {
        color: var(--danger);
        border-color: var(--danger);
    }



    .mobile-auth-buttons {
        display: none !important;
        /* Butonlar header alanına taşındı */
    }

    .m-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
        text-align: center;
    }

    .m-btn i {
        font-size: 16px;
    }

    .m-btn-primary {
        background: var(--primary-color);
        color: #000;
        border: 1px solid var(--primary-color);
    }

    .m-btn-outline {
        background: transparent;
        color: var(--accent-color);
        border: 1px solid var(--border-color);
    }

    .m-btn-danger {
        background: transparent;
        color: var(--danger);
        border: 1px solid var(--danger);
    }

    .main-nav {
        display: none;
        /* Hide default on mobile */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        background: var(--card-bg);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    #categoryMenu {
        flex-direction: column;
        padding: 0 0 80px 0;
        /* En alttaki kategoriye ulaşmak için ekstra alt boşluk */
        gap: 0;
    }

    .cat-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .cat-item::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-color);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-price {
        font-size: 15px;
    }

    .price-wholesale {
        font-size: 15px;
    }

    .price-retail {
        font-size: 12px;
    }

    .stock-info {
        font-size: 12px;
    }

    .card-info {
        padding: 10px;
    }

    /* Mobil Logo */
    .logo img {
        max-height: 65px !important;
        /* Logonun boyutu kullanıcı isteğiyle büyütüldü */
        max-width: 100% !important;
        object-fit: contain;
    }

    /* Mobil Footer */
    .main-footer {
        padding: 20px 0;
    }

    .footer-mobile-auth {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    .main-footer .container>div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px;
    }

    .footer-social-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px;
    }

    .footer-social-links span {
        margin-left: 0 !important;
        text-align: center;
        font-size: 0.75rem !important;
    }

    .developer-link {
        text-align: center !important;
        font-size: 0.75em !important;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: zoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 70vh;
    border-radius: 4px;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--card-bg);
    color: var(--accent-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Make product images clickable */
.card-img img {
    cursor: pointer;
}

/* Floating WhatsApp Butonu */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    background: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* Floating Yukarı Çık Butonu */
.floating-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-scroll-top:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.floating-scroll-top.visible:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .floating-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .contact-label {
        display: none;
    }

    /* Mobil Modal İyileştirmesi */
    .image-modal {
        padding: 5px;
        position: fixed;
        bottom: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.85);
        /* Daha koyu ve kesin karartma */
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        z-index: 10000;
    }

    .modal-box {
        padding: 10px;
        max-width: 98%;
        /* Ekranın %98'ini kaplasın */
        width: auto;
        margin: 0 auto;
        border-radius: 8px;
    }

    .modal-img {
        max-height: 75vh;
        width: 100%;
        object-fit: contain;
    }

    .close-modal {
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
        background: #fff;
        border: 2px solid var(--accent-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* 350px altindaki cok kucuk ekranlar icin butonlar alt alta */

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background: #f1f5f9;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* --- Enhanced Image Modal Slider --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-box {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
}

.modal-img-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Swipe için touch-action */
    touch-action: pan-y pinch-zoom;
    background: white;
    padding: 5px;
    border-radius: 8px 8px 0 0;
}

.modal-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

/* Nav Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Info and Buttons Section */
.modal-info {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 15px 20px 20px 20px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    color: var(--text-color);
}

.modal-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-info-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-price-retail {
    text-decoration: line-through;
    color: var(--text-muted);
    white-space: nowrap;
}

.modal-price-wholesale {
    color: #0e9f6e;
    /* Yeşil Toptan Fiyat */
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.modal-price-standard {
    font-weight: 700;
    font-size: 18px;
}

.modal-stock {
    font-weight: 600;
}

.modal-stock span {
    color: var(--primary-dark);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    /* Metnin alt satira kaymasini engeller */
}

.btn-whatsapp .wa-short {
    display: none;
}

.btn-whatsapp i {
    font-size: 1.5em;
    /* Ikon boyutu büyütüldü */
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.btn-action {
    flex: 1;
    background: var(--bg-color);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--border-color);
}

.close-modal {
    position: absolute;
    top: -10px;
    right: 0px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .close-modal {
        top: 10px;
        right: 15px;
        color: var(--accent-color);
        text-shadow: none;
    }
}

/* 350px altindaki cok kucuk ekranlar icin ozel ayarlar */
@media (max-width: 350px) {
    .mobile-header-hooks {
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }

    .btn-whatsapp {
        font-size: 13px;
        padding: 10px 10px;
    }

    .btn-whatsapp .wa-long {
        display: none !important;
    }

    .btn-whatsapp .wa-short {
        display: inline !important;
    }
}