﻿/* ================================
   Sepet / Cart  – Zentura
   ================================ */


/* ─── Breadcrumb ─── */

.proje-breadcrumb-nav {
    margin-bottom: 0.85rem;
}

.proje-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--zentura-gray);
    font-size: 0.88rem;
}

.proje-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.proje-breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: rgba(0, 0, 0, 0.28);
}

.proje-breadcrumb-list a {
    color: inherit;
    text-decoration: none;
}

.proje-breadcrumb-list .active {
    color: var(--zentura-primary);
    font-weight: 600;
}


/* ─── Hero Section ─── */

.sepet-hero-section {
    position: relative;
    padding: calc(var(--zentura-header-offset) + 2rem) 1.5rem 1.6rem;
    background: var(--zentura-secondary);
    border-top: 1px solid var(--zentura-border);
    overflow: hidden;
}

.sepet-hero-section .zentura-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sepet-hero-section .zentura-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
}

.sepet-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--zentura-max-width);
    margin: 0 auto;
    display: grid;
    gap: 0.7rem;
}

.sepet-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: rgba(17, 96, 98, 0.08);
    border: 1px solid rgba(17, 96, 98, 0.18);
    border-radius: 999px;
    color: var(--zentura-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.sepet-eyebrow i {
    font-size: 0.72rem;
}

.sepet-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--zentura-primary);
    line-height: 1.08;
    margin: 0;
}

.sepet-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--zentura-gray);
    margin: 0;
    max-width: 60ch;
}


/* Steps */
.sepet-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.6rem;
}

.sepet-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--zentura-gray);
    font-size: 0.88rem;
    font-weight: 600;
}

.sepet-step.active {
    color: var(--zentura-accent);
}

.sepet-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--zentura-border);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sepet-step.active .sepet-step-num {
    background: var(--zentura-accent);
    border-color: var(--zentura-accent);
    color: #fff;
}

.sepet-step-label {
    display: inline;
}

.sepet-step-line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--zentura-border);
    margin: 0 0.5rem;
    border-radius: 2px;
}


/* ─── Content Section ─── */

.sepet-content-section {
    padding: 2rem 1.5rem 5rem;
    background: var(--zentura-light-gray);
    min-height: calc(100vh - 260px);
}

.sepet-container {
    max-width: var(--zentura-max-width);
    margin: 0 auto;
}


/* ─── Layout ─── */

.sepet-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}


/* ─── Cart Items ─── */

.sepet-items-area {
    min-width: 0;
}

.sepet-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sepet-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sepet-item:hover {
    border-color: rgba(17, 96, 98, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sepet-item-image {
    width: 72px;
    height: 72px;
    border-radius: var(--zentura-border-radius-8);
    overflow: hidden;
    background: var(--zentura-light-gray);
    flex-shrink: 0;
}

.sepet-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sepet-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sepet-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--zentura-primary);
    margin: 0;
    line-height: 1.35;
}

.sepet-item-name a {
    color: inherit;
    text-decoration: none;
}

.sepet-item-category {
    font-size: 0.78rem;
    color: var(--zentura-gray);
}

.sepet-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--zentura-primary);
    white-space: nowrap;
}

/* ─── Quantity Controls ─── */

.sepet-item-qty {
    display: flex;
    align-items: center;
}

.sepet-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-8);
    overflow: hidden;
    background: var(--zentura-light-gray);
}

.sepet-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--zentura-gray);
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sepet-qty-btn:hover {
    background: var(--zentura-primary);
    color: #fff;
}

.sepet-qty-input {
    width: 38px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--zentura-border);
    border-right: 1px solid var(--zentura-border);
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--zentura-primary);
    -moz-appearance: textfield;
    appearance: textfield;
}

.sepet-qty-input::-webkit-inner-spin-button,
.sepet-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sepet-qty-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 96, 98, 0.15) inset;
}

.sepet-qty-single {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-8);
    background: var(--zentura-light-gray);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--zentura-primary);
}

.sepet-qty-control.loading {
    opacity: 0.5;
    pointer-events: none;
}


.sepet-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 34px;
    height: 34px;
    border-radius: var(--zentura-border-radius-50);
    border: 1px solid var(--zentura-border);
    color: var(--zentura-gray);
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.75rem;
}

.sepet-item-remove:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}


/* ─── Cart Summary (Sidebar) ─── */

.sepet-summary {
    background: #ffffff;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sepet-summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0 0 1.15rem 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--zentura-border);
}

.sepet-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.sepet-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.sepet-summary-row .label {
    color: var(--zentura-gray);
}

.sepet-summary-row .value {
    color: var(--zentura-primary);
    font-weight: 600;
}

.sepet-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 2px solid var(--zentura-primary);
    margin-bottom: 1.25rem;
}

.sepet-summary-total .label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
}

.sepet-summary-total .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--zentura-primary);
}

.sepet-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--zentura-primary);
    color: var(--zentura-secondary);
    border: none;
    border-radius: var(--zentura-border-radius-8);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.sepet-checkout-btn:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sepet-continue {
    display: block;
    text-align: center;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--zentura-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sepet-continue:hover {
    color: var(--zentura-primary);
}


/* ─── Coupon ─── */

.sepet-coupon {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--zentura-border);
}

.sepet-coupon input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-8);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--zentura-primary);
    background: #fff;
    min-width: 0;
}

.sepet-coupon input:focus {
    outline: none;
    border-color: var(--zentura-accent);
    box-shadow: 0 0 0 3px rgba(17, 96, 98, 0.10);
}

.sepet-coupon button {
    padding: 0.6rem 1rem;
    background: var(--zentura-primary);
    color: var(--zentura-secondary);
    border: none;
    border-radius: var(--zentura-border-radius-8);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sepet-coupon button:hover {
    opacity: 0.88;
}


/* ─── Empty Cart ─── */

.sepet-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sepet-empty-icon {
    font-size: 3rem;
    color: var(--zentura-gray);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.sepet-empty h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0 0 0.4rem 0;
}

.sepet-empty p {
    color: var(--zentura-gray);
    margin: 0 0 1.25rem 0;
    font-size: 0.92rem;
}


/* ─── WC Notices ─── */

.sepet-content-section .woocommerce-notices-wrapper {
    margin-bottom: 1rem;
}

.sepet-content-section .woocommerce-notices-wrapper .woocommerce-message,
.sepet-content-section .woocommerce-notices-wrapper .woocommerce-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid rgba(17, 96, 98, 0.15);
    border-radius: var(--zentura-border-radius-8);
    font-size: 0.9rem;
    color: var(--zentura-primary);
    list-style: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sepet-content-section .woocommerce-notices-wrapper .woocommerce-error {
    padding: 0.85rem 1rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: var(--zentura-border-radius-8);
    font-size: 0.9rem;
    color: #991b1b;
    list-style: none;
}


/* ─── Responsive ─── */

@media (max-width: 992px) {
    .sepet-layout {
        grid-template-columns: 1fr;
    }

    .sepet-summary {
        position: static;
    }

    .sepet-steps {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .sepet-hero-section {
        padding: calc(var(--zentura-header-offset) + 1.5rem) 1rem 1.6rem;
    }

    .sepet-content-section {
        padding: 1.5rem 1rem 3rem;
    }

    .sepet-title {
        font-size: 1.75rem;
    }

    .sepet-step-label {
        display: none;
    }

    .sepet-item {
        grid-template-columns: 60px 1fr auto;
        gap: 0.65rem;
    }

    .sepet-item-image {
        width: 60px;
        height: 60px;
    }

    .sepet-item-qty {
        grid-column: 2;
        grid-row: 2;
    }

    .sepet-item-price {
        grid-column: 2;
        grid-row: 3;
    }

    .sepet-item-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .sepet-item-name {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .sepet-content-section {
        padding: 1rem 0.75rem 2.5rem;
    }

    .sepet-title {
        font-size: 1.5rem;
    }

    .sepet-subtitle {
        font-size: 0.88rem;
    }

    .sepet-item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.5rem;
        padding: 0.85rem;
    }

    .sepet-item-image {
        width: 50px;
        height: 50px;
    }

    .sepet-item-qty {
        grid-column: 2;
        grid-row: 2;
    }

    .sepet-item-price {
        grid-column: 2;
        grid-row: 3;
    }

    .sepet-item-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .sepet-summary {
        padding: 1.15rem;
    }

    .sepet-coupon {
        flex-wrap: wrap;
    }

    .sepet-coupon input,
    .sepet-coupon button {
        width: 100%;
    }

    .sepet-empty {
        padding: 2.5rem 1.5rem;
    }
}







