/* Sepet Sayfası Genel Stiller */
.cart-page {
    padding: 40px 0;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

/* Boş Sepet */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-cart-content i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart-content p {
    color: #666;
    margin-bottom: 30px;
}

.btn-shop {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sepet Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Ürün Listesi */
.cart-items {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.item-image {
    width: 120px;
    height: 120px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.min-quantity {
    color: #666;
}

.stock-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-status.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.item-price {
    margin-top: 5px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.unit {
    font-size: 14px;
    color: #666;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-selector button:hover {
    background: #eee;
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.remove-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #d32f2f;
}

.item-total {
    text-align: right;
}

.total-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Sepet Özeti */
.cart-summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.coupon-section {
    margin-bottom: 20px;
}

.btn-coupon {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-coupon:hover {
    background: #eee;
}

.coupon-form {
    margin-top: 10px;
    display: none;
}

.coupon-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.btn-apply {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply:hover {
    background: var(--secondary-color);
}

.summary-totals {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 20px;
    font-weight: 600;
}

.summary-row.shipping-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px !important;
    margin: 15px 0;
    border: none !important;
}

.shipping-info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.shipping-info-text i {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.shipping-info-text small {
    color: #888;
    font-size: 12px;
    display: block;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .item-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }

    .item-image img {
        width: 100%;
        height: auto;
    }

    .item-details {
        text-align: center;
    }

    .item-controls {
        justify-content: center;
    }

    .quantity-selector {
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-total {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 8px;
    }
    
    .product-image {
        padding-top: 70%;
    }
    
    .product-title {
        font-size: 13px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 20px 0;
    }
    
    .cart-header h1 {
        font-size: 24px;
    }
    
    .item-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .remove-item {
        width: 100%;
        justify-content: center;
    }
} 

/* Seçili Ürünler Bölümü */
.selected-products {
    padding: 40px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #000;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    padding-bottom: 100%;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.product-image .secondary-image {
    opacity: 0;
}

.product-card:hover .product-image .primary-image {
    opacity: 0;
}

.product-card:hover .product-image .secondary-image {
    opacity: 1;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.min-quantity {
    background-color: #ff4b4b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.product-price {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.bulk-discount {
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    background: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    white-space: nowrap;
    justify-content: center;
    font-weight: 500;
}

.bulk-discount i {
    font-size: 14px;
    color: #ff7675;
}

.product-button {
    background: #00b894;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.product-button:hover {
    background: #00a884;
}

.no-products {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Cart Sayfası Stilleri */

/* Sepet Tablosu */
.woocommerce-cart table.cart {
    border: none;
    margin-bottom: 30px;
}

.woocommerce-cart table.cart td {
    border: none;
    padding: 15px;
    text-transform: none !important;
}

.woocommerce-cart table.cart th {
    border: none;
    background: var(--background-color);
    padding: 15px;
    text-transform: none;
}

/* Sepet Özeti */
.cart_totals {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart_totals h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: none;
}

.woocommerce .cart-collaterals .cart_totals, 
.woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
}

/* Sepet Butonları */
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    padding: 15px 25px;
    font-weight: 500;
    text-transform: none;
    border-radius: 5px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    font-size: 16px;
    text-transform: none;
}

/* Kupon Kodu Alanı */
.coupon {
    display: flex;
    gap: 10px;
}

#coupon_code {
    min-width: 150px;
    text-transform: none;
}

/* Min-Quantity Gizleme */
.quantity input[type=number]::-webkit-inner-spin-button,
.quantity input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity input[type=number] {
    -moz-appearance: textfield;
}

/* Mobil Görünüm */
@media (max-width: 768px) {
    /* Sepet ve Özet Sıralaması */
    .woocommerce-cart .woocommerce {
        display: flex;
        flex-direction: column;
    }

    /* Sepet Tablosu Üstte */
    .woocommerce-cart-form {
        order: 1;
        margin-bottom: 20px;
    }

    /* Sepet Özeti Altta */
    .cart-collaterals {
        order: 2;
    }

    /* Quantity Input */
    .woocommerce .quantity .qty {
        width: 70px;
        height: 40px;
        padding: 0 5px;
        text-align: center;
    }

    /* Sepet Tablosu */
    .woocommerce-cart-form__contents {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .woocommerce table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        text-align: right !important;
        background: white;
        border-bottom: 1px solid #f5f5f5;
    }

    .woocommerce table.shop_table_responsive tr td::before {
        content: attr(data-title);
        font-weight: 600;
        float: left;
        text-transform: none;
    }

    /* Ürün Başlığı ve Fiyat */
    .woocommerce table.shop_table_responsive tr td.product-name {
        font-size: 14px;
        font-weight: 500;
    }

    .woocommerce table.shop_table_responsive tr td.product-price,
    .woocommerce table.shop_table_responsive tr td.product-subtotal {
        font-size: 16px;
        font-weight: 600;
    }

    /* Ürün Resmi */
    .woocommerce-cart table.cart img {
        width: 80px;
        height: auto;
    }

    /* Kupon Alanı */
    .woocommerce-cart table.cart td.actions .coupon {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .woocommerce-cart table.cart td.actions .coupon .input-text {
        width: 100% !important;
        margin: 0 !important;
        height: 45px;
        border-radius: 5px;
    }

    .woocommerce-cart table.cart td.actions .button {
        width: 100% !important;
        margin: 5px 0 !important;
        height: 45px;
    }

    /* Sepet Özeti */
    .cart_totals {
        margin-top: 20px;
    }

    .woocommerce-cart .wc-proceed-to-checkout {
        padding: 10px 0 0;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        margin-bottom: 0;
        font-size: 16px;
        padding: 15px;
    }
}

/* Küçük Mobil Ekranlar */
@media (max-width: 480px) {
    .woocommerce table.shop_table_responsive tr td.product-name {
        font-size: 13px;
    }

    .woocommerce table.shop_table_responsive tr td.product-price,
    .woocommerce table.shop_table_responsive tr td.product-subtotal {
        font-size: 14px;
    }

    .woocommerce-cart table.cart img {
        width: 60px;
    }

    .woocommerce-cart table.cart td.actions .coupon .input-text,
    .woocommerce-cart table.cart td.actions .button {
        height: 40px;
    }
}