/* Auth, cart, wishlist, checkout — white + navy + gold theme */

.shop-page {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    min-height: 60vh;
    color: var(--primary-bg, #061022);
    padding-bottom: 4rem;
}

.shop-page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(6, 16, 34, 0.08);
    margin-bottom: 2rem;
}

.shop-page-header h1 {
    font-family: var(--font-display, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-blue, #0A2163);
    margin-bottom: 0.35rem;
}

.shop-page-header p {
    color: rgba(6, 16, 34, 0.65);
    margin: 0;
}

.auth-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(200, 169, 106, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(200, 169, 106, 0.25);
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(6, 16, 34, 0.08);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card h1,
.auth-card h2 {
    font-family: var(--font-display, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
    color: var(--primary-blue, #0A2163);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: rgba(6, 16, 34, 0.65);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: rgba(6, 16, 34, 0.65);
}

.auth-links a {
    color: var(--champagne-gold, #C8A96A);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    color: #b89458;
}

.auth-card label {
    color: var(--primary-blue, #0A2163);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card textarea,
.auth-card select {
    background: #ffffff !important;
    border: 1px solid rgba(6, 16, 34, 0.12) !important;
    color: var(--primary-bg, #061022) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.auth-card .form-control:focus {
    border-color: #C8A96A !important;
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15) !important;
}

.auth-card .helptext,
.auth-card .form-text,
.auth-card ul.errorlist {
    color: rgba(6, 16, 34, 0.55);
    font-size: 0.78rem;
}

.auth-card ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
    color: #c0392b;
}

.auth-card .btn-gold,
.auth-card input[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Password visibility toggle */
.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control,
.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
    padding-right: 2.85rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    background: transparent;
    color: rgba(6, 16, 34, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-blue, #0A2163);
    background: rgba(200, 169, 106, 0.15);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid rgba(200, 169, 106, 0.7);
    outline-offset: 2px;
}

.password-toggle-btn i {
    font-size: 1.1rem;
}

/* Google auth — model layout: button, OR divider, then form */
.auth-google-wrap {
    margin-bottom: 0.25rem;
}

.btn-google-auth {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid rgba(200, 169, 106, 0.85);
    background: #f8f6f1;
    color: var(--primary-blue, #0A2163);
    font-family: var(--font-body, 'Inter', 'Helvetica Neue', Arial, sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.btn-google-auth:hover {
    background: #fff;
    border-color: #C8A96A;
    color: var(--primary-blue, #0A2163);
    transform: translateY(-1px);
}

.btn-google-auth:disabled,
.btn-google-auth.is-loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.btn-google-auth .google-g {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0 1.5rem;
    color: rgba(6, 16, 34, 0.45);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(6, 16, 34, 0.12);
}

/* Cart */
.cart-lux-card {
    background: #ffffff;
    border: 1px solid rgba(6, 16, 34, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(6, 16, 34, 0.04);
}

.cart-lux-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(6, 16, 34, 0.06);
    align-items: center;
}

.cart-lux-item:last-child {
    border-bottom: none;
}

.cart-lux-item img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    background: #f7f8fb;
    border-radius: 10px;
    padding: 0.5rem;
}

.cart-lux-item-info {
    flex: 1;
    min-width: 0;
}

.cart-lux-item-info h5 {
    font-family: var(--font-display, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.cart-lux-item-info h5 a {
    color: var(--primary-blue, #0A2163);
    text-decoration: none;
}

.cart-lux-item-info h5 a:hover {
    color: #C8A96A;
}

.cart-remove-btn {
    color: rgba(6, 16, 34, 0.45);
    font-size: 1.1rem;
}

.cart-remove-btn:hover {
    color: #c0392b;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-form input {
    width: 56px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(6, 16, 34, 0.12);
    color: var(--primary-bg, #061022);
    border-radius: 8px;
    padding: 0.35rem;
}

.order-summary-lux {
    background: #ffffff;
    border: 1px solid rgba(200, 169, 106, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 12px 32px rgba(6, 16, 34, 0.06);
}

.order-summary-lux h5 {
    font-family: var(--font-display, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
    color: var(--primary-blue, #0A2163);
    margin-bottom: 1rem;
}

.order-summary-lux .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: rgba(6, 16, 34, 0.75);
}

.order-summary-lux .summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue, #0A2163);
    border-top: 1px solid rgba(6, 16, 34, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
}

.order-summary-lux .summary-row.total span:last-child {
    color: #C8A96A;
}

.empty-state-lux {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(6, 16, 34, 0.65);
}

.empty-state-lux i {
    font-size: 3.5rem;
    color: #C8A96A;
    opacity: 0.7;
    margin-bottom: 1rem;
    display: block;
}

.payment-lux-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(200, 169, 106, 0.3);
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(6, 16, 34, 0.08);
}

.payment-lux-card .payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #C8A96A;
    margin: 1rem 0 2rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.payment-methods span {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 16, 34, 0.1);
    font-size: 0.75rem;
    color: rgba(6, 16, 34, 0.65);
}

.checkout-form-lux .form-label {
    color: var(--primary-blue, #0A2163);
}

.checkout-form-lux .form-control,
.checkout-form-lux select,
.checkout-form-lux textarea {
    background: #ffffff;
    border-color: rgba(6, 16, 34, 0.12);
    color: var(--primary-bg, #061022);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.checkout-form-lux .form-control:focus,
.checkout-form-lux select:focus,
.checkout-form-lux textarea:focus {
    background: #ffffff;
    border-color: #C8A96A;
    color: var(--primary-bg, #061022);
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
}

.checkout-form-lux ul {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
    color: #c0392b;
    font-size: 0.78rem;
}

.checkout-form-lux .form-check-label {
    color: rgba(6, 16, 34, 0.75);
}

.checkout-form-lux hr {
    border-color: rgba(6, 16, 34, 0.08);
}

.btn-outline-gold {
    color: #C8A96A;
    border: 1px solid rgba(200, 169, 106, 0.55);
    background: transparent;
}

.btn-outline-gold:hover {
    color: #061022;
    background: #C8A96A;
    border-color: #C8A96A;
}

/* Order status pill — used on the order detail page */
.status-pill {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(10, 33, 99, 0.08);
    color: var(--primary-blue, #0A2163);
}

.status-pill.status-processing { background: rgba(200, 169, 106, 0.18); color: #8a6a2f; }
.status-pill.status-shipped,
.status-pill.status-out_for_delivery { background: rgba(10, 33, 99, 0.12); color: var(--primary-blue, #0A2163); }
.status-pill.status-delivered { background: rgba(56, 161, 105, 0.15); color: #2f7d54; }
.status-pill.status-cancelled,
.status-pill.status-refunded { background: rgba(192, 57, 43, 0.12); color: #c0392b; }

/* Order detail */
.order-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(6, 16, 34, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-detail-back:hover {
    color: #C8A96A;
}

.order-items-card {
    padding: 1.75rem;
}

.order-items-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.order-items-card-header h5 {
    font-family: var(--font-display, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif);
    color: var(--primary-blue, #0A2163);
    margin: 0;
}

.order-items-table {
    width: 100%;
}

.order-items-table th {
    border-top: none;
    border-bottom: 1px solid rgba(6, 16, 34, 0.1);
    color: rgba(6, 16, 34, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 0.5rem 0.75rem 0;
    white-space: nowrap;
}

.order-items-table td {
    padding: 0.9rem 0.5rem 0.9rem 0;
    border-bottom: 1px solid rgba(6, 16, 34, 0.06);
    color: rgba(6, 16, 34, 0.8);
    vertical-align: middle;
}

.order-items-table th:last-child,
.order-items-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.order-items-table th:nth-child(2),
.order-items-table td:nth-child(2),
.order-items-table th:nth-child(3),
.order-items-table td:nth-child(3) {
    text-align: right;
}

.order-items-table tbody tr:last-child td {
    border-bottom: none;
}

/* Notifications */
.notif-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.notif-list-card {
    padding: 0;
}

.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(6, 16, 34, 0.06);
}

.notif-row:last-child {
    border-bottom: none;
}

.notif-row-unread {
    background: rgba(200, 169, 106, 0.06);
}

.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--royal-blue-pale, #eef1fa);
    color: var(--primary-blue, #0A2163);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-icon-alert {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue, #0A2163);
}

.notif-new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C8A96A;
    flex-shrink: 0;
}

.notif-timestamp {
    color: rgba(6, 16, 34, 0.45);
    font-size: 0.78rem;
    margin: 0.15rem 0 0.35rem;
}

.notif-message {
    color: rgba(6, 16, 34, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.notif-view-btn {
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 576px) {
    .notif-row { flex-wrap: wrap; padding: 1rem; }
    .notif-view-btn { margin-left: calc(42px + 1rem); }
}

.wishlist-lux-grid .lux-product-card {
    flex: unset;
    min-width: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .cart-lux-item {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-lux-item img {
        width: 64px;
        height: 80px;
    }

    .cart-lux-item-info {
        flex: 1 1 calc(100% - 64px - 0.75rem);
    }

    .cart-lux-item .cart-qty-form {
        order: 3;
        margin-right: auto;
    }

    .cart-lux-item strong {
        order: 4;
    }

    .cart-lux-item .cart-remove-btn {
        order: 5;
    }

    .order-summary-lux {
        position: static;
    }
}
