/* =====================================================
   SEPET (CART) STÜLLERI - MODERNLEŞTIRILMIŞ
   ===================================================== */

/* SEPET SAYFASI */
.cart-page-main {
    padding: 40px 0;
    padding-top: 40px;
}

.cart-header-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
    border-bottom: 3px solid #ff6a00;
    padding-bottom: 25px;
    padding-top: 20px;
}

.cart-header-section h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ff6a00;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.breadcrumb {
    color: #999;
    font-size: 0.85em;
    font-weight: 500;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* BOŞ SEPET */
.empty-cart-section {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    padding: 50px;
    border-radius: 12px;
    border: 2px dashed #ddd;
    transition: all 0.3s;
}

.empty-cart-box:hover {
    border-color: #0066cc;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
}

.empty-cart-icon {
    font-size: 4em;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

.empty-cart-box h2 {
    font-size: 1.9em;
    margin-bottom: 12px;
    color: #333;
    font-weight: 800;
}

.empty-cart-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1em;
}

.btn-continue-shopping {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-continue-shopping:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    text-decoration: none;
}

/* SEPETİÇERİĞİ KONTEYNER */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 45px;
    margin-bottom: 50px;
}

/* SEPET İTEMLERİ BÖLÜMÜ */
.cart-items-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.15);
    border: 2px solid #ffe8d6;
}

.cart-items-header {
    background: linear-gradient(135deg, #fff8f3 0%, #ffe8d6 100%);
    padding: 25px;
    border-bottom: 2px solid #ff6a00;
}

.cart-items-header h2 {
    margin: 0;
    color: #ff6a00;
    font-size: 1.3em;
    font-weight: 800;
}

.items-count {
    color: #ff6a00;
    font-weight: 700;
}

/* SEPET ÜRÜN KARTLARI */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 100px 1fr 130px 120px 60px;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: all 0.3s;
    animation: slideInUp 0.5s ease-out;
}

.cart-item-card:hover {
    background: #fafafa;
}

.cart-item-card:last-child {
    border-bottom: none;
}

/* ÜRÜN GÖRSEL */
.cart-item-image {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    background: white;
}

.cart-item-image-link:hover {
    background: #f9f9f9;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    transition: transform 0.3s;
    background: white;
}

.cart-item-image-link:hover img {
    transform: scale(1.08);
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

/* ÜRÜN DETAYLARı */
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-brand {
    font-weight: 800;
    color: #ff6a00;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-name {
    margin: 0;
    font-size: 1em;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.item-code {
    margin: 0;
    color: #999;
    font-size: 0.75em;
    margin-top: 2px;
}

.item-specs {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.item-specs small {
    color: #666;
    font-size: 0.75em;
    margin-top: 2px;
}

/* KONTROLLER */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quantity-section label {
    font-size: 0.75em;
    color: #666;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #ff6a00;
    border-radius: 6px;
    width: fit-content;
    overflow: hidden;
    transition: border-color 0.3s;
}

.quantity-control:focus-within {
    border-color: #ff8c26;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.qty-btn:hover {
    background: #fff8f3;
    color: #ff6a00;
}

.qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    color: #333;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* FİYAT */
.cart-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-total {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-label {
    font-size: 0.75em;
    color: #666;
    font-weight: 600;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.4em;
    color: #333;
    font-weight: 800;
}

.price-kdv {
    font-size: 0.7em;
    color: #ff6a00;
    font-weight: 600;
    margin-top: 2px;
}

/* SİL BUTONU */
.cart-item-actions {
    display: flex;
    justify-content: center;
}

.btn-remove {
    background: #fff5f5;
    color: #d32f2f;
    border: 2px solid #ffcccc;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #ffcccc;
    border-color: #d32f2f;
    transform: scale(1.1);
}

.btn-remove:active {
    transform: scale(0.95);
}

/* ÖZET KUTSU */
.cart-summary-section {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-box {
    background: white;
    border: 2px solid #ffe8d6;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.15);
    transition: all 0.3s;
}

.summary-box:hover {
    border-color: #ff6a00;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.summary-box h2 {
    font-size: 1.4em;
    margin-bottom: 25px;
    color: #ff6a00;
    font-weight: 800;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9em;
    color: #333;
}

.summary-line strong {
    font-weight: 700;
}

.tax-line {
    color: #ff6a00;
    font-weight: 600;
    font-size: 0.9em;
}

.tax-amount {
    color: #ff6a00 !important;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
    margin: 5px 0;
}

.grand-total-line {
    padding: 15px 0;
    font-size: 1.2em;
    color: #333;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

.grand-total {
    font-size: 1.4em;
    font-weight: 800;
    color: #ff6a00;
}

/* BUTONLAR */
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-continue,
.btn-checkout {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.9em;
}

.btn-continue {
    background: #fff8f3;
    color: #ff6a00;
    border: 2px solid #ff6a00;
}

.btn-continue:hover {
    background: #ff6a00;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-checkout {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c26 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #ff8c26 0%, #ffaa4f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.4);
    text-decoration: none;
}

.btn-clear-cart {
    width: 100%;
    padding: 10px;
    background: #fff8f3;
    color: #ff6a00;
    border: 2px solid #ff6a00;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 0.85em;
}

.btn-clear-cart:hover {
    background: #ff6a00;
    color: white;
    transform: translateY(-1px);
}

/* ANİMASYONLAR */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* MOBİL DUYARLı */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .summary-box {
        position: static;
        top: auto;
    }

    .cart-page-main {
        padding: 30px 0;
    }

    .cart-header-section h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .cart-page-main {
        padding-top: 50px;
    }

    .cart-header-section {
        margin-bottom: 30px;
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .cart-header-section h1 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
        align-items: stretch;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
        grid-column: auto;
        grid-row: auto;
    }

    .cart-item-details {
        grid-column: auto;
        grid-row: auto;
        order: 2;
    }

    .item-name {
        font-size: 0.95em;
    }

    .item-brand {
        font-size: 0.8em;
    }

    .item-specs {
        gap: 10px;
        font-size: 0.75em;
    }

    .cart-item-controls {
        grid-column: auto;
        grid-row: auto;
        order: 3;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .quantity-section {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .quantity-section label {
        font-size: 0.75em;
        white-space: nowrap;
    }

    .cart-item-price {
        grid-column: auto;
        grid-row: auto;
        order: 4;
        text-align: left;
    }

    .price-value {
        font-size: 1.1em;
    }

    .cart-item-actions {
        grid-column: auto;
        grid-row: auto;
        order: 5;
        justify-content: flex-start;
    }

    .btn-remove {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .summary-box {
        position: static;
        padding: 20px;
    }

    .summary-box h2 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .summary-line {
        font-size: 0.9em;
        padding: 8px 0;
    }

    .grand-total-line {
        padding: 10px 0;
        font-size: 1em;
    }

    .grand-total {
        font-size: 1.1em;
    }

    .btn-continue,
    .btn-checkout {
        font-size: 0.85em;
        padding: 12px;
    }

    .btn-clear-cart {
        font-size: 0.85em;
        padding: 10px;
        margin-top: 15px;
    }

    .cart-items-header {
        padding: 15px;
    }

    .cart-items-header h2 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .cart-container {
        gap: 15px;
    }

    .cart-page-main {
        padding: 15px 0;
    }

    .cart-header-section {
        margin-bottom: 20px;
    }

    .cart-header-section h1 {
        font-size: 1.3em;
    }

    .breadcrumb {
        font-size: 0.8em;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .cart-item-image {
        width: 100%;
        height: 120px;
    }

    .item-name {
        font-size: 0.9em;
    }

    .item-brand {
        font-size: 0.75em;
    }

    .item-code {
        display: none;
    }

    .item-specs {
        display: none;
    }

    .quantity-control {
        width: auto;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }

    .qty-input {
        width: 40px;
        height: 32px;
    }

    .price-value {
        font-size: 1em;
    }

    .price-kdv {
        display: none;
    }

    .summary-box {
        padding: 15px;
    }

    .summary-box h2 {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .summary-line {
        font-size: 0.85em;
        padding: 6px 0;
    }

    .grand-total-line {
        padding: 8px 0;
        font-size: 0.95em;
    }

    .grand-total {
        font-size: 1em;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-continue,
    .btn-checkout {
        font-size: 0.8em;
        padding: 10px;
    }

    .empty-cart-box {
        padding: 30px 15px;
    }

    .empty-cart-icon {
        font-size: 3em;
    }

    .empty-cart-box h2 {
        font-size: 1.3em;
    }

    .empty-cart-box p {
        font-size: 0.9em;
    }
}


/* HEADER MİNİ SEPET */
.cart-header-mini {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
    border: 2px solid #f0f0f0;
}

.cart-link:hover {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    text-decoration: none;
    transform: translateY(-2px);
}

.cart-icon {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.cart-link:hover .cart-icon {
    transform: scale(1.15) rotate(10deg);
}

.cart-text {
    font-weight: 700;
    font-size: 0.95em;
    color: #333;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
}

.cart-info small {
    font-size: 0.7em;
    color: #999;
    font-weight: 500;
}

.cart-info strong {
    font-size: 1em;
    color: #0066cc;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-link {
        padding: 8px 12px;
    }

    .cart-icon {
        font-size: 1.3em;
    }

    .cart-text {
        font-size: 0.85em;
    }

    .cart-info {
        display: none;
    }

    .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 0.7em;
    }
}

/* MOBİL DUYARLı */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 0.9em;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 8px;
    }

    .product-info {
        flex-direction: column;
    }

    .product-image-cart {
        width: 60px;
        height: 60px;
    }

    .cart-summary-section {
        position: static;
    }
}
