/* Sepet & Checkout */
.cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #FF9800;
    background: rgba(76, 175, 80, 0.08);
    color: #4CAF50;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.cart-toggle:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    transform: translateY(-1px);
}

.cart-toggle-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FF9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.mini-cart-drawer.is-open {
    transform: translateX(0);
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.mini-cart-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.mini-cart-close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
}

#miniCartPanel {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem;
}

.mini-cart-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mini-cart-row img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
}

.mini-cart-row-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.mini-cart-row-info span,
.mini-cart-row-total {
    font-size: 0.85rem;
    color: #555;
}

.mini-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.mini-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mini-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.mini-cart-btn--secondary {
    background: #fff;
    border-color: #FF9800;
    color: #FF9800;
}

.mini-cart-btn--secondary:hover {
    background: #FF9800;
    border-color: #FF9800;
    color: #fff;
    transform: translateY(-1px);
}

.mini-cart-btn--primary {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.mini-cart-btn--primary:hover {
    background: #439a46;
    border-color: #439a46;
    color: #fff;
    transform: translateY(-1px);
}

.mini-cart-empty {
    text-align: center;
    padding: 2rem 0;
}

.cart-page,
.checkout-page,
.order-page {
    padding: 6.5rem 0 4rem;
    min-height: 70vh;
}

.cart-page h1,
.checkout-page h1,
.order-page h1 {
    font-family: 'Playfair Display', serif;
    color: #2D5A27;
    margin-bottom: 1.5rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-line img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 12px;
}

.cart-line-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #FF9800;
    border-radius: 8px;
    background: #fff;
    color: #4CAF50;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qty-btn:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.cart-line-qty input {
    width: 52px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.35rem;
}

.cart-remove {
    border: 0;
    background: transparent;
    color: #b33;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-summary,
.checkout-summary-card {
    background: #fafaf8;
    border: 1px solid #e8e8e4;
    border-radius: 16px;
    padding: 1.25rem;
    position: sticky;
    top: 6rem;
}

.cart-summary dl > div,
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.cart-summary-total,
.checkout-summary-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
    font-size: 1.1rem;
    font-weight: 700;
}

.coupon-box {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px dashed rgba(255, 152, 0, 0.45);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.06), rgba(255, 152, 0, 0.05));
}

.coupon-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #2D5A27;
}

.coupon-box-header i {
    color: #FF9800;
    font-size: 0.95rem;
}

.coupon-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    border: 2px solid #c8c8c4 !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.85rem !important;
    font: inherit;
    font-size: 0.95rem !important;
    color: #333 !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-input::placeholder {
    color: #9a9a96;
    opacity: 1;
}

.coupon-input:focus {
    outline: none;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.coupon-apply-btn {
    flex-shrink: 0;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    background: #4CAF50;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.coupon-apply-btn:hover {
    background: #439a46;
    border-color: #439a46;
    transform: translateY(-1px);
}

.coupon-message {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.coupon-message.is-success { color: #2D5A27; }
.coupon-message.is-error { color: #b33; }

.cart-summary-actions {
    margin-top: 1.35rem;
    display: grid;
    gap: 0.5rem;
}

.btn-block { width: 100%; display: block; text-align: center; }
.btn-text {
    width: 100%;
    margin-top: 0;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.cart-empty-state i {
    font-size: 3rem;
    color: #2D5A27;
    margin-bottom: 1rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.checkout-form-card {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 16px;
    padding: 1.5rem;
}

.checkout-form-card h2 {
    font-size: 1.15rem;
    color: #2D5A27;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 152, 0, 0.35);
}

.checkout-form-card h2:not(:first-child) {
    margin-top: 1.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

/* main.css form stillerini checkout kartında geçersiz kıl */
.checkout-form-card .form-required-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #666;
}

.checkout-form-card .required-mark {
    color: #d32f2f;
    font-weight: 700;
}

.checkout-form-card .invoice-follow-fields {
    margin-top: 1.25rem;
}

.checkout-form-card .form-field textarea,
.checkout-form-card textarea#address,
.checkout-form-card textarea#invoiceAddress {
    width: 100% !important;
    min-height: 96px !important;
    height: auto !important;
    resize: vertical !important;
    grid-column: unset !important;
    border: 2px solid #c8c8c4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 0.7rem 0.85rem !important;
    color: #333 !important;
    box-sizing: border-box !important;
    line-height: 1.5;
}

.checkout-form-card .form-field textarea:focus,
.checkout-form-card textarea#address:focus,
.checkout-form-card textarea#invoiceAddress:focus {
    outline: none !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15) !important;
    background: #fff !important;
}

.checkout-form-card .form-field.is-invalid textarea,
.checkout-form-card .form-field.is-invalid textarea#address,
.checkout-form-card .form-field.is-invalid textarea#invoiceAddress {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
}

.checkout-form-card .field-title {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    font-size: 0.95rem !important;
    color: #2D5A27 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
}

.checkout-form-card .form-field label.field-title {
    color: #2D5A27 !important;
}

.checkout-form-card .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    color: #2D5A27;
    text-transform: none;
    letter-spacing: normal;
}

.checkout-form-card .form-field input,
.checkout-form-card .form-field textarea,
.checkout-form-card .form-field select {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #c8c8c4 !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.85rem !important;
    font: inherit;
    font-size: 1rem !important;
    color: #333 !important;
    background: #fff !important;
    height: auto;
    min-height: 48px;
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-card .form-field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.checkout-form-card .form-field select,
.checkout-form-card .select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding: 0.7rem 2.75rem 0.7rem 0.85rem !important;
    min-height: 48px !important;
    font-weight: 500;
    border: 2px solid #FF9800 !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23FF9800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    color: #333 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 152, 0, 0.15);
}

.checkout-form-card .select-wrap {
    position: relative;
    width: 100%;
}

.checkout-form-card .select-wrap::after {
    content: none;
}

.checkout-form-card .form-field.is-invalid input,
.checkout-form-card .form-field.is-invalid textarea,
.checkout-form-card .form-field.is-invalid select,
.checkout-form-card .form-field.is-invalid input#tcKimlikNo,
.checkout-form-card .consent-item.is-invalid input[type="checkbox"] {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
}

.checkout-form-card .form-field.is-invalid input:focus,
.checkout-form-card .form-field.is-invalid textarea:focus,
.checkout-form-card .form-field.is-invalid select:focus,
.checkout-form-card .form-field.is-invalid input#tcKimlikNo:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
}

.checkout-form-card .form-field.is-invalid .field-title {
    color: #d32f2f !important;
}

.checkout-form-card .field-error {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #d32f2f;
    line-height: 1.4;
}

.checkout-form-card .form-field input::placeholder,
.checkout-form-card .form-field textarea::placeholder {
    color: #8a8a86;
    opacity: 1;
}

.checkout-form-card .form-field input:focus,
.checkout-form-card .form-field textarea:focus,
.checkout-form-card .form-field select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    background: #fff;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid #d8d8d4;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9a9a96;
    opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #777;
    line-height: 1.4;
}

.shipping-note {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    font-size: 0.92rem;
}

.invoice-type {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.legal-consents {
    margin: 1.25rem 0;
    display: grid;
    gap: 0.85rem;
}

.consent-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e8e8e4;
    border-radius: 10px;
    background: #fafaf8;
}

.consent-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0.2rem 0 0;
    flex-shrink: 0;
    accent-color: #4CAF50;
    cursor: pointer;
}

.checkout-form-card .consent-item label {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    color: #333 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    cursor: pointer;
}

.consent-item label .consent-text {
    display: inline;
    color: #333;
}

.consent-item label .consent-required-mark {
    display: inline;
    margin-left: 0.1em;
    white-space: nowrap;
    color: #d32f2f;
    font-weight: 700;
}

.consent-item.is-invalid {
    border-color: #d32f2f;
    background: #fff8f8;
}

.consent-item .field-error {
    flex-basis: 100%;
    margin: 0.25rem 0 0 calc(18px + 0.65rem);
}

.consent-item label a {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: underline;
}

.consent-item label a:hover {
    color: #FF9800;
}

.legal-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #4CAF50;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.legal-link:hover {
    color: #FF9800;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.legal-modal[hidden] {
    display: none !important;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.legal-modal-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(85vh, 800px);
    background: #fff;
    border-radius: 16px;
    border: 2px solid #FF9800;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: rgba(76, 175, 80, 0.06);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #2D5A27;
}

.legal-modal-close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
}

.legal-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3 {
    color: #2D5A27;
    margin-top: 1.25rem;
}

.legal-modal-body h1:first-child,
.legal-modal-body h2:first-child {
    margin-top: 0;
}

.legal-modal-loading,
.legal-modal-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.legal-modal-error {
    color: #922;
}

.legal-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #eee;
    background: rgba(76, 175, 80, 0.04);
}

body.modal-open {
    overflow: hidden;
}

.checkout-error {
    background: #fff1f1;
    border: 1px solid #f0c0c0;
    color: #922;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

#iyzicoPaymentBox {
    margin-top: 1.5rem;
}

#iyzipay-checkout-form.responsive {
    min-height: 420px;
    width: 100%;
}

.iyzico-payment-panel {
    background: var(--white, #fff);
    border: 1px solid #e8e8e4;
    border-radius: 14px;
    padding: 1rem;
}

.order-success {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.order-success-icon {
    font-size: 3rem;
    color: #2D5A27;
    margin-bottom: 0.75rem;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.order-actions .btn {
    min-width: 180px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    text-align: left;
}

.order-table th,
.order-table td {
    padding: 0.65rem;
    border-bottom: 1px solid #eee;
}

/* ── Product card actions (catalog + homepage) ── */
.product-card-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: auto;
}

.product-card-detail-link,
.product-cart-slot {
    flex: 1 1 0;
    min-width: 0;
}

.product-card-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(45, 90, 39, 0.22);
    background: #fff;
    color: #2D5A27;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-card-detail-link:hover {
    background: rgba(74, 140, 62, 0.08);
    border-color: rgba(74, 140, 62, 0.45);
    color: #2D5A27;
}

.product-card-detail-link i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.product-cart-slot {
    display: flex;
    margin-top: 0;
}

.product-card-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #3d7a35;
    background: #3d7a35;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-card-cart-btn:hover {
    background: #2D5A27;
    border-color: #2D5A27;
}

.product-card-cart-btn i {
    font-size: 0.75rem;
}

.product-card-qty {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(45, 90, 39, 0.22);
    background: #fff;
    overflow: hidden;
}

.product-card-qty-btn {
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #2D5A27;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-card-qty-btn:hover {
    background: rgba(74, 140, 62, 0.12);
}

.product-card-qty-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #2D5A27;
    border-left: 1px solid rgba(45, 90, 39, 0.12);
    border-right: 1px solid rgba(45, 90, 39, 0.12);
}

/* Legacy fallback for pages not yet migrated by products.js */
.product-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #3d7a35;
    background: #3d7a35;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-add-cart-btn:hover {
    background: #2D5A27;
    border-color: #2D5A27;
}

.product-add-cart-btn--solo {
    margin-top: 0;
}

.mini-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.mini-cart-qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: #2D5A27;
}

@media (max-width: 900px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-page,
    .checkout-page,
    .order-page {
        padding: 5.5rem 0 3rem;
    }

    .cart-summary,
    .checkout-summary-card {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 72px 1fr;
    }

    .cart-line-side {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .checkout-form-card {
        padding: 1.15rem;
    }

    .invoice-type {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mini-cart-actions {
        grid-template-columns: 1fr;
    }

    .coupon-row {
        flex-direction: column;
    }

    .coupon-apply-btn {
        width: 100%;
    }

    .order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .legal-modal {
        padding: 0;
        align-items: flex-end;
    }

    .legal-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }
}
