﻿/* FLYING CART */
.fly-to-cart {
    position: fixed;
    width: 40px;
    height: 40px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    pointer-events: none;
    display: none;
}

/* FLOATING CART ICON */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .floating-cart:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .cart-sidebar.open {
        right: 0;
    }

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h5 {
        margin: 0;
        font-weight: 600;
    }

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

    .close-cart:hover {
        color: #333;
    }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

    .cart-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 15px;
    }

.item-details {
    flex: 1;
}

    .item-details h6 {
        margin: 0 0 5px 0;
        font-size: 14px;
        line-height: 1.3;
    }

    .item-details small {
        color: #666;
        font-size: 11px;
    }

.item-meta {
    margin-top: 5px;
    font-size: 13px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-totals {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

    .total-row:last-child {
        font-weight: bold;
        font-size: 16px;
        color: #28a745;
    }

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* PRODUCT BLOCK STYLES */
.product-block {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-block:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.image-container {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-block:hover .image-container img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-block:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .action-btn:hover {
        background: #ff6b35;
        color: white;
        transform: scale(1.1);
    }

.product-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.login-price-link {
    color: #ff6b35;
    font-style: italic;
    font-size: 12px;
    text-decoration: none;
}

    .login-price-link:hover {
        text-decoration: underline;
        color: #e55a2b;
    }

.add-to-cart-btn-main {
    font-size: 12px;
    padding: 6px 12px;
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .add-to-cart-btn-main:hover {
        background-color: #e55a2b;
        border-color: #e55a2b;
        transform: translateY(-2px);
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/* PAGINATION STYLES */
.pagination-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination {
    margin-bottom: 20px;
}

.page-link {
    color: #333;
    border: 1px solid #ddd;
    margin: 0 3px;
    border-radius: 4px !important;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

    .page-link:hover {
        background-color: #ff6b35;
        color: white;
        border-color: #ff6b35;
    }

.page-item.active .page-link {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* Sayfa numaraları için responsive */
@media (max-width: 768px) {
    .page-link {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

/* SIDEBAR PRODUCT IMAGES */
.sidebar-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.best-seller-item, .new-arrival-item {
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s ease;
}

    .best-seller-item:hover, .new-arrival-item:hover {
        background-color: #f9f9f9;
    }

/* BADGES */
.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.new-arrival-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

/* QUANTITY CONTROLS */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .quantity-btn:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }

/* CART ITEM PRICE */
.item-price {
    margin-top: 5px;
    font-size: 13px;
}

    .item-price strong {
        color: #28a745;
        font-size: 14px;
        margin-left: 10px;
    }