/* Genel Düzenlemeler */
.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sepet Formu */
.woocommerce-cart-form {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Tablo Düzenlemeleri */
.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.shop_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shop_table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.shop_table thead th:first-child {
    border-radius: 15px 0 0 0;
    width: 50px;
    text-align: center;
}

.shop_table thead th:last-child {
    border-radius: 0 15px 0 0;
}

.shop_table thead .product-thumbnail {
    width: 100px;
}

.shop_table thead .product-name {
    width: auto;
}

.shop_table thead .product-price {
    width: 120px;
    text-align: center;
}

.shop_table thead .product-quantity {
    width: 130px;
    text-align: center;
}

.shop_table thead .product-subtotal {
    width: 150px;
    text-align: right;
}

/* Ürün Satırları */
.cart_item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: white;
}

.cart_item:hover {
    background: #fafbff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.cart_item:last-child {
    border-bottom: none;
}

.cart_item td {
    padding: 25px 15px;
    vertical-align: middle;
}

/* Silme Butonu */
.product-remove {
    text-align: center !important;
    width: 50px;
}

.product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #ffebee;
    border-radius: 8px;
    color: #ff4757;
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1;
}

.product-remove a:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Ürün Görseli */
.product-thumbnail {
    width: 100px;
}

.product-thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-thumbnail img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f5f5f5;
    transition: all 0.3s ease;
}

.product-thumbnail a:hover img {
    transform: scale(1.05);
    border-color: #667eea;
}

/* Ürün Adı ve Varyasyonlar */
.product-name {
    padding-right: 20px !important;
}

.product-name a {
    color: #2c3e50;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 12px;
}

.product-name a:hover {
    color: #667eea;
}

.variation {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variation dt,
.variation dd {
    display: inline-block;
    margin: 0;
}

.variation dt {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation dd {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 6px;
}

.variation dd p {
    margin: 0;
    display: inline;
}

/* Fiyat Düzenlemeleri */
.product-price {
    text-align: center !important;
}

.product-price .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    display: inline-block;
    background: #f0f3ff;
    padding: 8px 16px;
    border-radius: 8px;
}

.product-subtotal {
    text-align: right !important;
}

.product-subtotal .woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #667eea;
    display: inline-block;
    background: linear-gradient(135deg, #f0f3ff 0%, #faf0ff 100%);
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.woocommerce-Price-currencySymbol {
    font-size: 14px;
    margin-right: 3px;
    opacity: 0.8;
}

/* Miktar Kutusu */
.product-quantity {
    text-align: center !important;
}

.quantity {
    display: inline-block;
}

.quantity input.qty {
    width: 70px;
    padding: 10px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #2c3e50;
}

.quantity input.qty:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.quantity input.qty:hover {
    border-color: #667eea;
    background: white;
}

/* Kupon ve Güncelle Bölümü */
.actions {
    padding: 25px !important;
    background: linear-gradient(to bottom, #fafbfc 0%, #f5f7fa 100%);
    border-top: 2px solid #e8ecf1;
}

.coupon {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.coupon label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.coupon input[type="text"] {
    padding: 12px 18px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 14px;
    min-width: 220px;
    background: white;
    transition: all 0.3s ease;
}

.coupon input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Sepet Toplamları */
.cart_totals {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart_totals h2 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 3px solid #667eea;
    font-weight: 800;
}

.cart_totals .shop_table {
    border: none;
}

.cart_totals .shop_table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cart_totals .shop_table tr:last-child {
    border-bottom: none;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 18px 10px;
}

.cart_totals .shop_table th {
    font-weight: 700;
    color: #555;
    font-size: 15px;
    text-align: left;
}

.cart_totals .shop_table td {
    text-align: right;
    font-size: 16px;
}

/* Ara Toplam */
.cart-subtotal .woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Toplam */
.order-total {
    background: linear-gradient(135deg, #f0f3ff 0%, #faf0ff 100%);
    border-radius: 10px;
    margin-top: 10px;
}

.order-total th {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 800;
}

.order-total .woocommerce-Price-amount {
    font-size: 32px;
    font-weight: 900;
    color: #667eea;
}

.order-total .includes_tax {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-weight: 400;
}

/* Gönderim Bölümü */
.woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shipping-methods li {
    padding: 12px 0;
}

.woocommerce-shipping-methods label {
    color: #2ecc71;
    font-weight: 700;
    font-size: 15px;
}

.woocommerce-shipping-destination {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Ödeme Butonu */
.wc-proceed-to-checkout {
    margin-top: 25px;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.5);
}

.checkout-button:active {
    transform: translateY(-1px);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .woocommerce {
        padding: 10px;
    }

    .woocommerce-cart-form {
        border-radius: 12px;
    }

    /* Masaüstü tabloyu gizle */
    .shop_table thead {
        display: none;
    }

    .shop_table,
    .shop_table tbody,
    .shop_table tr,
    .shop_table td {
        display: block;
        width: 100%;
    }

    .cart_item {
        border: 2px solid #f0f0f0;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 20px;
        position: relative;
        background: white;
    }

    .cart_item:hover {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    }

    .cart_item td {
        padding: 12px 0;
        border: none;
        text-align: left !important;
    }

    .cart_item td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #666;
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Silme butonu mobilde sağ üstte */
    .product-remove {
        position: absolute !important;
        top: 15px;
        right: 15px;
        padding: 0 !important;
        text-align: center !important;
    }

    .product-remove::before {
        content: none !important;
    }

    .product-remove a {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* Ürün görseli mobilde */
    .product-thumbnail {
        width: 100% !important;
        text-align: center;
        padding-right: 50px !important;
    }

    .product-thumbnail::before {
        content: none !important;
    }

    .product-thumbnail img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    /* Ürün adı */
    .product-name {
        padding-right: 0 !important;
    }

    .product-name a {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Varyasyonlar mobilde */
    .variation {
        flex-direction: column;
        gap: 8px;
    }

    .variation dt {
        display: block;
        margin-bottom: 4px;
    }

    .variation dd {
        display: block;
        margin-left: 0 !important;
    }

    /* Fiyatlar mobilde */
    .product-price .woocommerce-Price-amount,
    .product-subtotal .woocommerce-Price-amount {
        font-size: 20px;
        display: inline-block;
    }

    /* Miktar mobilde */
    .product-quantity {
        text-align: left !important;
    }

    .quantity input.qty {
        width: 80px;
    }

    /* Actions mobilde */
    .actions {
        display: block !important;
        padding: 20px !important;
    }

    .coupon {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 15px;
    }

    .coupon input[type="text"] {
        width: 100%;
        min-width: auto;
    }

    .coupon .button {
        width: 100%;
    }

    .actions .button {
        width: 100%;
        margin-top: 10px;
    }

    /* Sepet toplamları mobilde */
    .cart_totals {
        padding: 25px;
        border-radius: 12px;
    }

    .cart_totals h2 {
        font-size: 22px;
    }

    .order-total .woocommerce-Price-amount {
        font-size: 26px;
    }

    .checkout-button {
        font-size: 16px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .product-name a {
        font-size: 15px;
    }

    .product-thumbnail img {
        width: 100px;
        height: 100px;
    }

    .product-price .woocommerce-Price-amount,
    .product-subtotal .woocommerce-Price-amount {
        font-size: 18px;
        padding: 6px 12px;
    }

    .cart_totals h2 {
        font-size: 20px;
    }

    .order-total .woocommerce-Price-amount {
        font-size: 24px;
    }

    .checkout-button {
        font-size: 15px;
        padding: 16px;
    }
}