/**
 * Mağaza sepet / ödeme / kart — kurumsal vitrin
 */
:root {
    --ova-bg: #f6f7fb;
    --ova-surface: #ffffff;
    --ova-text: #0f172a;
    --ova-muted: #64748b;
    --ova-border: #e8ecf4;
    --ova-primary: #6d28d9;
    --ova-primary-hover: #5b21b6;
    --ova-primary-soft: rgba(109, 40, 217, 0.08);
    --ova-radius: 12px;
    --ova-radius-pill: 999px;
    --ova-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ova-flow-wrap {
    background: var(--ova-bg);
    min-height: 60vh;
    padding-bottom: 4rem;
}

.ova-flow-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Stepper */
.ova-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.25rem 0 2rem;
    padding: 0.65rem 1.25rem;
    background: #eef1f7;
    border-radius: var(--ova-radius-pill);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.ova-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ova-muted);
}

.ova-step i {
    font-size: 1.1rem;
}

.ova-step.active {
    color: var(--ova-text);
}

.ova-step.done {
    color: var(--ova-muted);
}

.ova-step.muted {
    color: #94a3b8;
}

.ova-step-line {
    width: 2rem;
    height: 2px;
    background: #cbd5e1;
    margin: 0 0.75rem;
    flex-shrink: 0;
}

/* Typography */
.ova-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ova-text);
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.ova-page-sub {
    font-size: 0.95rem;
    color: var(--ova-muted);
    margin: 0 0 1.75rem;
}

/* Cards */
.ova-card {
    background: var(--ova-surface);
    border: 1px solid var(--ova-border);
    border-radius: var(--ova-radius);
    box-shadow: var(--ova-shadow);
    padding: 1.5rem 1.5rem;
}

.ova-card + .ova-card {
    margin-top: 1.25rem;
}

.ova-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ova-section-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ova-text);
    margin: 0;
}

.ova-link-muted {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ova-primary);
}

.ova-link-muted:hover {
    text-decoration: underline;
    color: var(--ova-primary-hover);
}

/* Forms */
.ova-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ova-muted);
    margin-bottom: 0.35rem;
}

.ova-input,
.ova-textarea {
    width: 100%;
    border: 1px solid var(--ova-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9375rem;
    color: var(--ova-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ova-input:focus,
.ova-textarea:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: none;
}

.store-ecomus-checkout .ova-input:focus,
.store-ecomus-checkout .ova-textarea:focus,
.store-ecomus-checkout select.ova-input:focus {
    outline: none !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
}

.ova-textarea {
    min-height: 88px;
    resize: vertical;
}

.ova-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 575px) {
    .ova-form-row {
        grid-template-columns: 1fr;
    }
}

.ova-phone-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.75rem;
    align-items: end;
}

@media (max-width: 575px) {
    .ova-phone-row {
        grid-template-columns: 1fr;
    }
}

.ova-select-wrap select.ova-input {
    appearance: auto;
    cursor: pointer;
}

/* Primary button */
.ova-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(180deg, #7c3aed 0%, var(--ova-primary) 100%);
    border: none;
    border-radius: var(--ova-radius-pill);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.ova-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
    color: #fff !important;
}

.ova-btn-primary:active {
    transform: scale(0.99);
}

/* Summary sidebar */
.ova-sum-card {
    position: sticky;
    top: 96px;
}

.ova-sum-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ova-text);
    margin: 0 0 0.25rem;
}

.ova-sum-store {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ova-text);
    margin-bottom: 0.75rem;
}

.ova-sum-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--ova-muted);
    cursor: pointer;
    border-bottom: 1px solid var(--ova-border);
    margin-bottom: 0.75rem;
}

.ova-sum-toggle strong {
    color: var(--ova-text);
    font-weight: 600;
}

.ova-sum-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ova-sum-lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    font-size: 0.875rem;
    color: var(--ova-muted);
}

.ova-sum-lines li span:first-child {
    flex: 1;
}

.ova-sum-lines li strong {
    font-weight: 600;
    color: var(--ova-text);
}

.ova-sum-lines li.ova-total {
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--ova-border);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ova-text);
}

.ova-sum-lines li.ova-total strong {
    font-size: 1.2rem;
}

.ova-sum-lines li.ova-disc span:first-child,
.ova-sum-lines li.disc span:first-child {
    color: var(--ova-muted);
}

.ova-sum-lines li.ova-disc strong,
.ova-sum-lines li.disc strong {
    color: #059669;
}

/* Product lines in summary */
.ova-sum-products {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.ova-sum-products.is-open {
    max-height: 480px;
    margin-bottom: 0.75rem;
}

.ova-mini-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ova-mini-line:last-child {
    border-bottom: none;
}

.ova-mini-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.ova-mini-meta {
    flex: 1;
    min-width: 0;
}

.ova-mini-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ova-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ova-mini-prices {
    font-size: 0.8125rem;
    margin-top: 0.2rem;
}

.ova-mini-prices .now {
    font-weight: 800;
    color: var(--ova-text);
}

.ova-mini-prices .old {
    text-decoration: line-through;
    color: #94a3b8;
    margin-left: 0.35rem;
}

.ova-mini-qty {
    font-size: 0.75rem;
    color: var(--ova-muted);
    margin-top: 0.15rem;
}

/* Store mini card under summary */
.ova-store-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: var(--ova-radius);
}

.ova-store-mini-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--ova-border);
    flex-shrink: 0;
}

.ova-store-mini-logo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    color: #64748b;
    font-size: 1.25rem;
    background: #fff;
    border: 1px solid var(--ova-border);
}

.ova-store-mini-text {
    flex: 1;
    min-width: 0;
}

.ova-store-mini-text .name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ova-text);
}

.ova-store-mini-text a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ova-text);
}

.ova-store-mini-text a:hover {
    color: #000;
}

/* Basket page */
.ova-basket-shell {
    background: var(--ova-surface);
    border: 1px solid var(--ova-border);
    border-radius: var(--ova-radius);
    box-shadow: var(--ova-shadow);
    overflow: hidden;
}

.ova-basket-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: 280px;
}

@media (max-width: 991px) {
    .ova-basket-grid {
        grid-template-columns: 1fr;
    }
}

.ova-basket-lines {
    padding: 1.5rem;
    border-right: 1px solid var(--ova-border);
}

@media (max-width: 991px) {
    .ova-basket-lines {
        border-right: none;
        border-bottom: 1px solid var(--ova-border);
    }
}

.ova-basket-side {
    padding: 1.5rem;
    background: #fafbfc;
}

.ova-basket-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "thumb title price"
        "thumb actions price";
    gap: 0.5rem 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
}

.ova-basket-item:last-child {
    border-bottom: none;
}

.ova-basket-thumb {
    grid-area: thumb;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}

.ova-basket-thumb.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.75rem;
}

.ova-basket-info {
    grid-area: title;
    min-width: 0;
}

.ova-basket-info .title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1e3a5f;
    line-height: 1.4;
    margin: 0;
}

.ova-basket-price-block {
    grid-area: price;
    text-align: right;
    align-self: start;
}

.ova-basket-price-block .cur {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ova-text);
    display: block;
}

.ova-basket-price-block .old {
    font-size: 0.8125rem;
    text-decoration: line-through;
    color: #94a3b8;
}

.ova-basket-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

@media (max-width: 575px) {
    .ova-basket-item {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "thumb title"
            "thumb price"
            "actions actions";
    }
    .ova-basket-thumb,
    .ova-basket-thumb.ph {
        width: 64px;
        height: 64px;
    }
    .ova-basket-price-block {
        text-align: left;
    }
    .ova-basket-actions {
        margin-top: 0.5rem;
        justify-content: space-between;
        width: 100%;
    }
}

.ova-qty-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ova-border);
    border-radius: var(--ova-radius-pill);
    overflow: hidden;
    background: #fff;
}

.ova-qty-pill button {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ova-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ova-qty-pill button:hover {
    background: #f8fafc;
}

.ova-qty-pill .num {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

.ova-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ova-border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ova-muted);
}

.ova-icon-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.ova-coupon-box {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ova-border);
}

.ova-coupon-row {
    display: flex;
    gap: 0.5rem;
}

.ova-coupon-row .ova-input {
    flex: 1;
}

.ova-btn-outline {
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--ova-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ova-text);
    cursor: pointer;
    white-space: nowrap;
}

.ova-btn-outline:hover {
    border-color: var(--ova-primary);
    color: var(--ova-primary);
}

/* Legal */
.ova-legal {
    font-size: 0.8125rem;
    color: var(--ova-muted);
    line-height: 1.5;
    margin: 1.25rem 0 0;
}

.ova-legal label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.ova-legal input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ova-legal a {
    font-weight: 700;
    color: var(--ova-text);
}

.ova-legal a:hover {
    color: var(--ova-primary);
}

/* Payment card icons hint */
.ova-card-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.55;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ova-muted);
    white-space: nowrap;
}

.ova-input-wrap {
    position: relative;
}

/* Alert */
.ova-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.ova-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
