.expo-main-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    padding: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0.5rem;
}

.expo-product-card {
    height: 100%;
    width: 100%;
    min-width: 250px;
    position: relative;
}

.product-card-inner {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

    .product-card-inner:hover {
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

    .product-image:hover {
        transform: translate(-50%, -50%) scale(1.05);
    }


 .product-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-inner:hover .product-gif {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-inner:hover .product-gif {
    transform: translate(-50%, -50%) scale(1.05);
} 

/* Tedarikçi Adı Barı */
.supplier-name-bar {
    width: 100%;
    background: rgba(243, 244, 246, 0.9);
    padding: 0.3rem 1rem;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

    .supplier-name-bar a {
        color: #482875;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
    }

.supplier-login-prompt {
    color: #482875;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
}

.supplier-login-prompt strong {
    cursor: pointer;
}

.product-no-approved-name {
    color: #482875;
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
}

.üye-ol {
    cursor: pointer;
    text-decoration: underline;
}

    .üye-ol:hover {
        color: #ff8006;
    }

/* Web Siteme Ekle Butonu */
.add-to-site-wrapper {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.add-to-site-icon {
    width: 40px;
    height: 40px;
    background-color: #F6861F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

    .add-to-site-icon .fa-globe {
        font-size: 1.2rem;
    }

    .add-to-site-icon .fa-plus {
        position: absolute;
        font-size: 0.6rem;
        padding: 2px;
        border-radius: 50%;
        background-color: #482875;
        bottom: 0;
        right: 0;
        border: 1px solid white;
    }

.add-to-site-text {
    background-color: #F6861F;
    color: white;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border-radius: 15px 0 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: -10px;
    max-width: 0;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
}

.add-to-site-wrapper:hover .add-to-site-text {
    max-width: 200px;
    opacity: 1;
    transform: translateX(0);
}

.product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0.5rem 0;
}

    .product-name-link:hover .product-name {
        color: #ff8006;
    }

.product-code {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em; /* Yaklaşık 2 satır */
}

.product-specs {
    margin: 0.75rem 0;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-add-to-cart {
    background-color: #4d3171;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

    .btn-add-to-cart:hover {
        background-color: #F6861F;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .btn-add-to-cart .btn-text-hover {
        opacity: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }

    .btn-add-to-cart .btn-text-default {
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .btn-add-to-cart:hover .btn-text-default {
        opacity: 0;
    }

    .btn-add-to-cart:hover .btn-text-hover {
        opacity: 1;
    }

.product-status-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Miktar Seçici Dropdown */
.cart-button-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 150px;
}

.quantity-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 140px;
    margin-bottom: 8px;
}

.quantity-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.cart-button-wrapper:hover .quantity-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4d3171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.qty-btn:hover {
    background: #4d3171;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-decrease:hover {
    background: #dc3545;
    color: white;
}

.qty-increase:hover {
    background: #28a745;
    color: white;
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3436;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    border-color: #4d3171;
    box-shadow: 0 0 0 2px rgba(77, 49, 113, 0.1);
}

/* Mobil için dropdown-active class ile toggle */
.cart-button-wrapper.dropdown-active .quantity-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cart-button-wrapper.dropdown-active .btn-add-to-cart {
    background-color: #F6861F;
}

/* Medya Sorguları */
@media (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .expo-main-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 1158px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .expo-product-card {
        min-width: 200px;
    }

    .expo-main-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .product-card-inner:hover .product-image {
        transform: translate(-50%, -50%);
    }

    .btn-add-to-cart {
        user-select:none;
    }
}

@media (max-width: 1024px) {
    .expo-main-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    .expo-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid,
    .expo-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.15rem;
    }

    .product-card-inner {
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.04);
        padding: 0.5rem 0.3rem;
    }

    .product-content {
        padding: 0.5rem 0.3rem;
    }

    .product-name {
        font-size: 0.85rem;
        height: 3em;
    }

    .product-code {
        font-size: 0.7rem;
    }

    .supplier-name-bar a,
    .add-to-site-text {
        font-size: 0.8rem;
    }

    .btn-add-to-cart {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        max-width: 120px;
    }

        .btn-add-to-cart .btn-text-hover,
        .btn-add-to-cart .btn-text-default {
            font-size: 0.85rem;
        }

        .btn-add-to-cart:hover {
            background-color: #F6861F;
        }

    .supplier-name-bar {
        padding: 0.2rem 0.3rem;
        line-height: 1em;
    }

    .supplier-login-prompt {
        font-size: 0.6rem;
    }

    .expo-product-card {
        min-width: 125px;
    }

    /* Web Siteme Ekle Butonu */
    .add-to-site-wrapper {
        top: 0.15rem;
        right: 0.15rem;
    }

    .add-to-site-icon {
        width: 30px;
        height: 30px;
    }

        .add-to-site-icon .fa-globe {
            font-size: 1rem;
        }

        .add-to-site-icon .fa-plus {
            font-size: 0.4rem;
        }

    .add-to-site-text {
        padding: 0.2rem 0.7rem 0.2rem 1.2rem;
        font-size: 0.7rem;
        margin-right: -8px;
        transform: translateX(8px);
    }

    .add-to-site-wrapper:hover .add-to-site-text {
        max-width: 200px;
        opacity: 1;
        transform: translateX(0);
    }

    /* Miktar Seçici Dropdown - Mobil */
    .cart-button-wrapper {
        max-width: 120px;
    }

    /* Mobilde hover'ı devre dışı bırak, sadece tıklama ile çalışsın */
    .cart-button-wrapper:hover .quantity-dropdown {
        opacity: 0;
        visibility: hidden;
    }

    /* Sadece dropdown-active class ile açılsın */
    .cart-button-wrapper.dropdown-active .quantity-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .quantity-dropdown {
        min-width: 120px;
        padding: 0.5rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .qty-input {
        width: 40px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Mobilde buton text değişimi için */
    .cart-button-wrapper.dropdown-active .btn-add-to-cart .btn-text-default {
        opacity: 0;
    }
    
    .cart-button-wrapper.dropdown-active .btn-add-to-cart .btn-text-hover {
        opacity: 1;
    }
}

/* Styles for customizing clickable area */
.clickable-area-button-only a,
.clickable-area-button-only .add-to-site-wrapper,
.clickable-area-button-only .supplier-login-prompt {
    pointer-events: none;
    cursor: grab !important;
}