/* ================================
   Sepet / Cart  – Zentura
   Updated: 2024
   ================================ */


/* ─── 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: 1rem;
}

.sepet-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sepet-item:hover {
    border-color: var(--zentura-primary);
    box-shadow: 0 8px 24px rgba(17, 96, 98, 0.12);
    transform: translateY(-2px);
}

.sepet-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--zentura-border-radius-8);
    overflow: hidden;
    background: var(--zentura-light-gray);
    flex-shrink: 0;
    border: 1px solid var(--zentura-border);
}

.sepet-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sepet-item:hover .sepet-item-image img {
    transform: scale(1.05);
}

.sepet-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.sepet-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zentura-primary);
    margin: 0;
    line-height: 1.4;
}

.sepet-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sepet-item-name a:hover {
    color: var(--zentura-accent);
}

.sepet-item-category {
    font-size: 0.82rem;
    color: var(--zentura-gray);
    font-weight: 500;
}

.sepet-item-price {
    font-size: 1.1rem;
    font-weight: 800;
    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);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sepet-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--zentura-gray);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sepet-qty-btn:hover {
    background: var(--zentura-primary);
    color: #fff;
}

.sepet-qty-input {
    width: 50px;
    height: 40px;
    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.9rem;
    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.2) inset;
}

.sepet-qty-single {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-8);
    background: var(--zentura-light-gray);
    font-size: 0.9rem;
    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: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: var(--zentura-border-radius-8);
    border: 1px solid var(--zentura-border);
    color: var(--zentura-gray);
    background: var(--zentura-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.8rem;
}

.sepet-item-remove:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: scale(1.1);
}


/* ─── Cart Summary (Sidebar) ─── */

.sepet-summary {
    background: #ffffff;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-12);
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sepet-summary-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--zentura-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--zentura-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sepet-summary-title::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--zentura-accent);
    font-size: 1.1rem;
}

.sepet-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.sepet-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.sepet-summary-row .label {
    color: var(--zentura-gray);
    font-weight: 500;
}

.sepet-summary-row .value {
    color: var(--zentura-primary);
    font-weight: 700;
}

.sepet-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem;
    background: linear-gradient(135deg, rgba(17, 96, 98, 0.08) 0%, rgba(17, 96, 98, 0.04) 100%);
    border-radius: var(--zentura-border-radius-8);
    margin-bottom: 1.5rem;
}

.sepet-summary-total .label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zentura-primary);
}

.sepet-summary-total .value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--zentura-primary);
}

.sepet-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    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: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(17, 96, 98, 0.25);
}

.sepet-checkout-btn:hover {
    box-shadow: 0 6px 20px rgba(17, 96, 98, 0.35);
    transform: translateY(-2px);
}

.sepet-checkout-btn i {
    transition: transform 0.3s ease;
}

.sepet-checkout-btn:hover i {
    transform: scale(1.1);
}

.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.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--zentura-border);
}

.sepet-coupon input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--zentura-border);
    border-radius: var(--zentura-border-radius-8);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--zentura-primary);
    background: #fff;
    min-width: 0;
    transition: all 0.2s ease;
}

.sepet-coupon input:focus {
    outline: none;
    border-color: var(--zentura-primary);
    box-shadow: 0 0 0 3px rgba(17, 96, 98, 0.1);
}

.sepet-coupon button {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    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.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(17, 96, 98, 0.2);
}

.sepet-coupon button:hover {
    box-shadow: 0 4px 12px rgba(17, 96, 98, 0.3);
    transform: translateY(-2px);
}


/* ─── 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;
    }

    .sepet-qty-btn {
        width: 40px;
        height: 40px;
    }

    .sepet-qty-input {
        width: 42px;
        height: 40px;
    }
}


/* ─── WooCommerce Default Cart Overrides ─── */

/* Hide default cart collaterals (cart totals, cross-sells) – custom summary handles this */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cross-sells,
.woocommerce-cart .cart_totals {
    display: none !important;
}

/* Hide default WC cart table header */
.woocommerce-cart table.shop_table,
.woocommerce-cart .shop_table thead,
.woocommerce-cart .woocommerce-cart-form > .shop_table {
    display: none !important;
}

/* Override default WC cart actions row */
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .actions {
    display: none !important;
}

/* Override default Woo cart form table display */
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper + .woocommerce-cart-form + .cart-collaterals {
    display: none !important;
}

/* Ensure .woocommerce wrapper doesn't add unwanted layout */
.sepet-content-section .woocommerce {
    display: block;
}

/* Price display overrides in cart items */
.sepet-item-price del {
    color: var(--zentura-gray);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: line-through;
    display: block;
    opacity: 0.7;
}

.sepet-item-price ins {
    text-decoration: none;
    display: block;
    color: var(--zentura-primary);
    font-weight: 800;
}

.sepet-item-price .woocommerce-Price-amount {
    font-family: 'Inter', sans-serif;
}

/* Savings badge override */
.sepet-item .amount {
    font-family: 'Inter', sans-serif;
}

/* Summary price overrides */
.sepet-summary-row .value .woocommerce-Price-amount,
.sepet-summary-total .value .woocommerce-Price-amount {
    font-family: 'Inter', sans-serif;
}

.sepet-summary-total .value .includes_tax {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zentura-gray);
    margin-top: 0.15rem;
}

/* WC update cart button hidden (AJAX handles it) */
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}

/* Coupon form inside collaterals hidden */
.cart-collaterals .coupon {
    display: none !important;
}



