/* Hooper Cart Page - Birebir Aynı Tasarım */

/* Montserrat Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* WooCommerce default cart block'unu gizle */
.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.hp-cart-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic;
    background: #ffffff;
}

.hp-cart-page-wrapper * {
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
}

/* Progress Bar */
.hp-cart-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.hp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.hp-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(100% + 20px);
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

.hp-progress-step.hp-step-active .hp-step-number {
    background: #000;
    color: #fff;
}

.hp-progress-step.hp-step-active .hp-step-label {
    color: #000;
    font-weight: 600;
}

.hp-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.hp-step-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Cart Content */
.hp-cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 30px;
}

/* Sol Kolon */
.hp-cart-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Free Shipping Banner */
.hp-free-shipping-banner {
    background: #4caf50;
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.hp-banner-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Cart Table - Referans Site Görünümü */
.hp-cart-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.hp-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.hp-cart-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

.hp-cart-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.hp-cart-table td {
    padding: 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    background: #fff;
}

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

.hp-cart-table tbody tr:hover td {
    background: #fafafa;
}

.hp-col-product {
    width: 40%;
}

.hp-col-price,
.hp-col-sku,
.hp-col-quantity,
.hp-col-subtotal {
    width: 15%;
    text-align: center;
}

/* Cart Item Info */
.hp-cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hp-cart-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.hp-cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.hp-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 6px;
    display: block;
}

.hp-cart-item-name:hover {
    text-decoration: underline;
    color: #000;
}

.hp-cart-item-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: block;
    line-height: 1.4;
}

.hp-cart-item-remove {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
    align-self: flex-start;
}

.hp-cart-item-remove:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.hp-cart-item-price,
.hp-cart-item-sku,
.hp-cart-item-subtotal {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Quantity Controls - Birebir Referans Site */
.hp-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7d7d7 !important;
    border-radius: 2px;
    background: #ffffff !important;
    overflow: hidden;
}

.hp-qty-btn {
    width: 32px;
    height: 32px;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1;
    margin: 0;
}

.hp-qty-btn:hover {
    background: #f5f5f5 !important;
    color: #000000 !important;
}

.hp-qty-btn:active {
    background: #e0e0e0 !important;
    color: #000000 !important;
}

.hp-qty-btn:focus {
    outline: none;
    background: #ffffff !important;
    color: #000000 !important;
}

.hp-qty-input {
    width: 50px;
    height: 32px;
    border: none !important;
    border-left: 1px solid #d7d7d7 !important;
    border-right: 1px solid #d7d7d7 !important;
    text-align: center;
    font-size: 14px;
    color: #000000 !important;
    background: #ffffff !important;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
    line-height: 32px;
}

.hp-qty-input:focus {
    outline: none;
    border-left-color: #000000 !important;
    border-right-color: #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.hp-qty-input::-webkit-outer-spin-button,
.hp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tema renklerini override et */
.hp-qty-btn,
.hp-qty-input,
.hp-quantity-wrapper {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #d7d7d7 !important;
}

.hp-qty-btn:hover,
.hp-qty-btn:focus,
.hp-qty-btn:active {
    background: #f5f5f5 !important;
    color: #000000 !important;
    border-color: #d7d7d7 !important;
}

/* Cart Actions */
.hp-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.hp-coupon-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hp-coupon-input {
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    font-size: 14px;
    width: 200px;
    background: #fff;
    color: #333;
}

.hp-coupon-input:focus {
    outline: none;
    border-color: #000;
}

.hp-coupon-btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp-coupon-btn:hover {
    background: #333;
}

.hp-clear-cart-btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp-clear-cart-btn:hover {
    background: #333;
}

/* Empty Cart */
.hp-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.hp-cart-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.hp-continue-shopping-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.hp-continue-shopping-btn:hover {
    background: #333;
}

/* Sağ Kolon: Cart Totals */
.hp-cart-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.hp-cart-totals {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
}

.hp-cart-totals-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-cart-totals-content {
    margin-bottom: 24px;
}

.hp-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.hp-totals-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.hp-totals-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.hp-total-row {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #e0e0e0;
}

.hp-total-row .hp-totals-label,
.hp-total-row .hp-totals-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.hp-shipping-row {
    flex-direction: column;
    gap: 8px;
}

.hp-shipping-info {
    width: 100%;
}

.hp-shipping-method {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.hp-shipping-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

.hp-calculate-shipping {
    font-size: 12px;
    color: #000;
    text-decoration: underline;
    margin-top: 4px;
    display: inline-block;
}

.hp-calculate-shipping:hover {
    color: #333;
}

/* Cart Buttons */
.hp-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hp-btn-checkout,
.hp-btn-continue {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
}

.hp-btn-checkout {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.hp-btn-checkout:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.hp-btn-continue {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.hp-btn-continue:hover {
    background: #000;
    color: #fff;
}

/* Payment Security */
.hp-payment-security {
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.hp-security-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.hp-payment-icon {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 2px;
}

.hp-payment-logo {
    height: 42px !important;
    width: auto !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

.hp-security-note {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1200px) {
    .hp-cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hp-cart-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .hp-cart-page-wrapper {
        padding: 15px;
    }
    
    .hp-cart-progress {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .hp-progress-step:not(:last-child)::after {
        width: 20px;
        left: calc(100% + 10px);
    }
    
    .hp-cart-table {
        font-size: 12px;
    }
    
    .hp-cart-table th,
    .hp-cart-table td {
        padding: 12px 8px;
    }
    
    .hp-col-product {
        width: 50%;
    }
    
    .hp-col-price,
    .hp-col-sku,
    .hp-col-quantity,
    .hp-col-subtotal {
        width: 12.5%;
    }
    
    .hp-cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .hp-cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hp-coupon-section {
        width: 100%;
    }
    
    .hp-coupon-input {
        flex: 1;
    }
    
    .hp-clear-cart-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hp-cart-table {
        display: block;
    }
    
    .hp-cart-table thead {
        display: none;
    }
    
    .hp-cart-table tbody,
    .hp-cart-table tr,
    .hp-cart-table td {
        display: block;
        width: 100%;
    }
    
    .hp-cart-table tr {
        border: 1px solid #e0e0e0;
        margin-bottom: 15px;
        border-radius: 4px;
        padding: 15px;
    }
    
    .hp-cart-table td {
        padding: 8px 0;
        border: none;
        text-align: left !important;
    }
    
    .hp-cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 100px;
        margin-right: 10px;
    }
}

/* Tema renklerini override et - PEMBE RENKLERİ KALDIR */
.hp-qty-btn,
.hp-qty-input,
.hp-quantity-wrapper,
.hp-cart-item-remove,
.hp-coupon-btn,
.hp-clear-cart-btn,
.hp-btn-checkout,
.hp-btn-continue {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #d7d7d7 !important;
}

.hp-qty-btn:hover,
.hp-qty-btn:focus,
.hp-qty-btn:active {
    background: #f5f5f5 !important;
    color: #000000 !important;
    border-color: #d7d7d7 !important;
}

.hp-btn-checkout {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.hp-btn-checkout:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

.hp-clear-cart-btn,
.hp-coupon-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.hp-clear-cart-btn:hover,
.hp-coupon-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* WooCommerce default cart form'unu gizle (eğer varsa) */
form.woocommerce-cart-form:not(.hp-cart-update-form) {
    display: none !important;
}

