/**
 * Alanya Kahve Atölyesi - WooCommerce Genel Stilleri
 */

/* WooCommerce Genel Stil Düzenlemeleri - Site Temasına Uygun */
.woocommerce {
    --primary-color: #8B4513; /* Kahverengi - tema ana rengi */
    --primary-hover: #6d4522; /* Koyu kahverengi */
    --secondary-color: #D2B48C; /* Açık kahve */
    --secondary-hover: #c3a17c; /* Koyu açık kahve */
    --accent-color: #4E342E; /* Koyu kahve accent */
    --light-bg: #F5F5F5;
    --dark-bg: #212121;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
}

/* Butonlar */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Ürün Listesi */
.woocommerce ul.products li.product {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    padding: 0 15px;
    margin: 15px 0 10px;
    color: #333;
}

.woocommerce ul.products li.product .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

/* Ürün Kategorileri */
.woocommerce ul.products li.product .woocommerce-loop-category__title {
    font-family: 'Playfair Display', serif;
    background-color: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 10px;
}

/* Satış Fiyatı */
.woocommerce ul.products li.product .price ins {
    font-weight: 700;
    color: #E57373;
    text-decoration: none;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    margin-right: 5px;
}

/* SALE Belirteci */
.woocommerce span.onsale {
    background-color: #E57373;
    min-height: 3.236em;
    min-width: 3.236em;
    font-weight: 700;
    border-radius: 100%;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border-right: none;
    margin: 0 5px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 10px 15px;
    border-radius: 4px;
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--primary-color);
    color: white;
}

/* Star Ratings */
.woocommerce .star-rating {
    color: var(--secondary-color);
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #777;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--primary-color);
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .woocommerce ul.products[class*=columns-] li.product, 
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 48%;
        margin: 0 0 2.992em 0;
        padding-bottom: 15px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products[class*=columns-] li.product, 
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100%;
    }
}

/* ============================================
   SEPET SAYFASI ÖZEL STİLLERİ (page-sepet.php)
   ============================================ */

/* Sepet Tablosu Temel Stilleri */
.woocommerce table.cart {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0 0 2rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.woocommerce table.cart thead th {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

.woocommerce table.cart tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    background: white;
    transition: background-color 0.3s ease;
}

.woocommerce table.cart tbody tr:hover td {
    background: #fefefe;
}

.woocommerce table.cart tbody tr:last-child td {
    border-bottom: none;
}

/* Ürün Görsel ve Başlık */
.woocommerce table.cart .product-thumbnail {
    width: 100px;
    text-align: center;
}

.woocommerce table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.woocommerce table.cart .product-thumbnail img:hover {
    transform: scale(1.05);
}

.woocommerce table.cart .product-name {
    font-weight: 600;
    color: #1f2937;
}

.woocommerce table.cart .product-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce table.cart .product-name a:hover {
    color: #f59e0b;
}

/* Fiyat Stilleri */
.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.125rem;
}

/* Miktar Kontrolleri */
.woocommerce table.cart .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce table.cart .quantity input[type="number"] {
    width: 80px;
    height: 45px;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
    appearance: textfield;
    -moz-appearance: textfield;
}

.woocommerce table.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce table.cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce table.cart .quantity input[type="number"]:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Kaldırma Butonu */
.woocommerce table.cart .product-remove {
    text-align: center;
    width: 60px;
}

.woocommerce table.cart .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.woocommerce table.cart .product-remove a.remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Sepet Aksiyonları */
.woocommerce .actions {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.woocommerce .actions .coupon {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.woocommerce .actions .coupon input[type="text"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.woocommerce .actions .coupon input[type="text"]:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.woocommerce .actions .coupon button {
    white-space: nowrap;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce .actions .coupon button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
}

.woocommerce .actions input[name="update_cart"] {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.woocommerce .actions input[name="update_cart"]:hover {
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Sepet Toplamları */
.woocommerce .cart-collaterals {
    margin-top: 3rem;
}

.woocommerce .cart-collaterals .cart_totals {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f59e0b;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
    border: none;
    margin: 0;
}

.woocommerce .cart-collaterals .cart_totals th,
.woocommerce .cart-collaterals .cart_totals td {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.woocommerce .cart-collaterals .cart_totals th {
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    width: 50%;
}

.woocommerce .cart-collaterals .cart_totals td {
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #f59e0b;
    padding: 1.5rem 0;
}

.woocommerce .cart-collaterals .cart_totals .order-total td {
    color: var(--primary-color);
}

/* Ödeme Butonu - Site Teması Uyumlu */
.woocommerce .wc-proceed-to-checkout {
    margin-top: 2rem;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--success-color) 0%, #16a34a 100%);
    color: white;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* WooCommerce Mesajları */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce-message {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.woocommerce-message::before {
    content: "✓";
    font-weight: bold;
    color: #10b981;
}

.woocommerce-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-info::before {
    content: "ℹ";
    font-weight: bold;
    color: #3b82f6;
}

.woocommerce-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.woocommerce-error::before {
    content: "✕";
    font-weight: bold;
    color: #ef4444;
}

/* Responsive Tasarım - Sepet */
@media (max-width: 1024px) {
    .woocommerce .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .woocommerce .actions .coupon {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce table.cart {
        font-size: 0.875rem;
    }
    
    .woocommerce table.cart thead {
        display: none;
    }
    
    .woocommerce table.cart tbody tr {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
    }
    
    .woocommerce table.cart tbody td {
        display: block;
        text-align: left;
        border: none;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 110px;
    }
    
    .woocommerce table.cart tbody td::before {
        content: attr(data-title);
        position: absolute;
        left: 0;
        top: 0.5rem;
        font-weight: 600;
        color: #6b7280;
        width: 100px;
    }
    
    .woocommerce table.cart .product-thumbnail {
        width: 100%;
        text-align: center;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .woocommerce table.cart .product-thumbnail::before {
        display: none;
    }
    
    .woocommerce table.cart .product-remove {
        text-align: right;
        padding-left: 0;
    }
    
    .woocommerce table.cart .product-remove::before {
        display: none;
    }
    
    .woocommerce .actions .coupon {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .woocommerce .cart-collaterals .cart_totals {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .woocommerce table.cart tbody td {
        padding-left: 90px;
        font-size: 0.875rem;
    }
    
    .woocommerce table.cart tbody td::before {
        width: 80px;
        font-size: 0.75rem;
    }
    
    .woocommerce .cart-collaterals .cart_totals {
        padding: 1rem;
    }
    
    .woocommerce .cart-collaterals .cart_totals h2 {
        font-size: 1.5rem;
    }
}
