/* ═══════════════════════════════════════
   ELEGANZA — Account Components CSS
   ═══════════════════════════════════════ */

/* ========================================================
   ELEGANZA ACCOUNT PAGES — Shared CSS
   ======================================================== */

/* Page wrapper */
.acc-wrapper {
    background: #f5f5f7;
    min-height: 70vh;
    padding: 40px 0 60px;
}

/* Page title bar */
.acc-page-header {
    margin-bottom: 28px;
}
.acc-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
}
.acc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #888;
    margin-top: 4px;
}
.acc-breadcrumb a { color: #c8a96e; text-decoration: none; }
.acc-breadcrumb a:hover { color: #b8973d; }
.acc-breadcrumb span { color: #ccc; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.acc-sidebar {
    background: linear-gradient(175deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26,26,46,0.18);
    position: sticky;
    top: 90px;
}

.acc-sidebar-user {
    padding: 28px 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(200,169,110,0.2);
}
.acc-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a96e, #d4b97e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(200,169,110,0.3);
}
.acc-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.acc-user-email {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

.acc-nav {
    padding: 12px 0;
}
.acc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}
.acc-nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: rgba(200,169,110,0.6);
    transition: color 0.2s;
}
.acc-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(200,169,110,0.4);
}
.acc-nav-link:hover i { color: #c8a96e; }
.acc-nav-link.active {
    color: #c8a96e;
    background: rgba(200,169,110,0.1);
    border-left-color: #c8a96e;
    font-weight: 600;
}
.acc-nav-link.active i { color: #c8a96e; }

.acc-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 24px;
}

.acc-nav-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,100,100,0.75);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}
.acc-nav-logout i { font-size: 1rem; width: 20px; text-align: center; }
.acc-nav-logout:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
    border-left-color: #ff6b6b;
}

/* ── CARDS ────────────────────────────────────────────── */
.acc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}
.acc-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.acc-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.acc-card-title i { color: #c8a96e; }
.acc-card-body { padding: 24px; }

/* ── STAT CARDS (dashboard) ──────────────────────────── */
.acc-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.acc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.acc-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.acc-stat-icon.gold   { background: linear-gradient(135deg,#c8a96e,#d4b97e); color: #1a1a2e; }
.acc-stat-icon.navy   { background: linear-gradient(135deg,#1a1a2e,#0f3460); color: #c8a96e; }
.acc-stat-icon.green  { background: linear-gradient(135deg,#10b981,#059669); color: #fff; }
.acc-stat-label { font-size: 0.8125rem; color: #888; margin-bottom: 4px; }
.acc-stat-value { font-size: 1.75rem; font-weight: 800; color: #1a1a2e; line-height: 1; }

/* ── INFO LIST (account info) ─────────────────────────── */
.acc-info-list { list-style: none; padding: 0; margin: 0; }
.acc-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f7;
}
.acc-info-item:last-child { border-bottom: none; }
.acc-info-key {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 130px;
    padding-top: 2px;
}
.acc-info-val {
    font-size: 0.9375rem;
    color: #1a1a2e;
    font-weight: 500;
}

/* ── ALERTS ───────────────────────────────────────────── */
.acc-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.acc-alert i { margin-top: 1px; flex-shrink: 0; }
.acc-alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.acc-alert.danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.acc-alert.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.acc-alert.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── FORMS ────────────────────────────────────────────── */
.acc-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    display: block;
}
.acc-form-control {
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    background: #fafafa;
}
.acc-form-control:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
    background: #fff;
}
.acc-form-control:disabled, .acc-form-control[readonly] {
    background: #f5f5f7;
    color: #999;
    cursor: not-allowed;
}
.acc-form-control.is-invalid { border-color: #ef4444; }
.acc-form-hint { font-size: 0.8rem; color: #999; margin-top: 5px; }

/* ── BUTTONS ──────────────────────────────────────────── */
.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}
.acc-btn-primary {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #c8a96e;
    box-shadow: 0 3px 10px rgba(26,26,46,0.2);
}
.acc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(26,26,46,0.3);
    color: #d4b97e;
}
.acc-btn-gold {
    background: linear-gradient(135deg, #c8a96e, #d4b97e);
    color: #1a1a2e;
    box-shadow: 0 3px 10px rgba(200,169,110,0.25);
}
.acc-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(200,169,110,0.35);
    color: #1a1a2e;
}
.acc-btn-outline {
    background: transparent;
    color: #555;
    border: 1.5px solid #ddd;
}
.acc-btn-outline:hover { background: #f5f5f7; color: #1a1a2e; border-color: #ccc; }
.acc-btn-danger {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff;
    box-shadow: 0 3px 10px rgba(239,68,68,0.2);
}
.acc-btn-danger:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(239,68,68,0.3); color: #fff; }
.acc-btn-sm { padding: 7px 14px; font-size: 0.8125rem; }

/* ── ORDER CARDS ──────────────────────────────────────── */
.order-eleganza {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.order-eleganza:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.order-eleganza-head {
    padding: 16px 22px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.order-eleganza-no {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #c8a96e;
    letter-spacing: 0.5px;
}
.order-eleganza-date { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.order-eleganza-body { padding: 16px 22px; }
.order-eleganza-foot {
    padding: 14px 22px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.order-total-label { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.order-total-amount { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; }

/* ── STATUS BADGES ────────────────────────────────────── */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-pill.new            { background:#eff6ff; color:#1e40af; }
.status-pill.approved       { background:#f0fdfa; color:#0f766e; }
.status-pill.prepared       { background:#fef3c7; color:#92400e; }
.status-pill.shipping       { background:#ede9fe; color:#5b21b6; }
.status-pill.delivered      { background:#f0fdf4; color:#166534; }
.status-pill.cancelled      { background:#fef2f2; color:#991b1b; }
.status-pill.return_from_courier,
.status-pill.return_from_customer { background:#fff7ed; color:#c2410c; }
.status-pill.pending        { background:#fef3c7; color:#92400e; }
.status-pill.paid           { background:#f0fdf4; color:#166534; }

/* ── PRODUCT ITEM (order detail) ─────────────────────── */
.ord-product-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f7;
    align-items: flex-start;
}
.ord-product-item:last-child { border-bottom: none; }
.ord-product-img {
    width: 70px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f7;
    flex-shrink: 0;
}
.ord-product-placeholder {
    width: 70px;
    height: 90px;
    border-radius: 8px;
    background: linear-gradient(135deg,#f5f5f7,#e8e8ec);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.ord-product-name { font-weight: 600; color: #1a1a2e; margin-bottom: 4px; font-size: 0.9375rem; }
.ord-product-meta { font-size: 0.8125rem; color: #888; margin-bottom: 2px; }
.ord-product-price { margin-top: 8px; font-weight: 700; color: #1a1a2e; }

/* ── TOTALS TABLE ─────────────────────────────────────── */
.totals-eleganza { margin-top: 20px; padding-top: 20px; border-top: 2px dashed #f0f0f0; }
.totals-row {
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: #555;
}
.totals-row.grand {
    font-size: 1.1875rem;
    font-weight: 800;
    color: #1a1a2e;
    border-top: 2px solid #e5e5e5;
    margin-top: 8px;
    padding-top: 14px;
}
.totals-row.grand span:last-child { color: #c8a96e; }
.totals-row.discount { color: #10b981; }

/* ── ADDRESS CARDS ────────────────────────────────────── */
.addr-card {
    background: #fff;
    border: 1.5px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s;
    height: 100%;
    position: relative;
}
.addr-card:hover { border-color: #c8a96e; box-shadow: 0 4px 16px rgba(200,169,110,0.12); }
.addr-card.is-default { border-color: #c8a96e; background: linear-gradient(135deg, #fffdf7, #fff8e8); }
.addr-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg,#c8a96e,#d4b97e);
    color: #1a1a2e;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── EMPTY STATES ─────────────────────────────────────── */
.acc-empty {
    text-align: center;
    padding: 60px 24px;
}
.acc-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,#f5f5f7,#eee);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 16px;
}
.acc-empty h4 { color: #1a1a2e; font-weight: 700; margin-bottom: 8px; }
.acc-empty p { color: #888; font-size: 0.9375rem; }

/* ── SECTION TITLE ────────────────────────────────────── */
.acc-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

/* ── SECURITY TIPS ────────────────────────────────────── */
.security-tips { padding: 0; margin: 0; list-style: none; }
.security-tips li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 0.875rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}
.security-tips li:last-child { border-bottom: none; }
.security-tips li::before { content: "✓"; color: #c8a96e; font-weight: 700; }

/* ═══════════════════════════════════════
   ELEGANZA — Wishlist Components
   ═══════════════════════════════════════ */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 1024px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .wishlist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wishlist-grid { grid-template-columns: 1fr; } }

.wl-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.wl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.wl-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #f7f5f0;
}
.wl-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.wl-card:hover .wl-card-image img { transform: scale(1.05); }

.wl-card-remove {
    position: absolute;
    top: 10px; right: 10px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.92);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #c8a96e;
    font-size: 1rem;
    transition: all .2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.wl-card-remove:hover { background: #c8a96e; color: #fff; }
.wl-card-remove i { pointer-events: none; }

.wl-card-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #dc2626;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .5px;
}

.wl-card-body {
    padding: 1rem 1rem .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wl-card-category {
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c8a96e;
    margin-bottom: .3rem;
    font-weight: 500;
}
.wl-card-name {
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: .5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wl-card-price {
    margin-bottom: .8rem;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.wl-price-current { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; }
.wl-price-original { font-size: .82rem; text-decoration: line-through; color: #aaa; }
.wl-price-discount { font-size: .75rem; font-weight: 700; color: #dc2626; background: #fef2f2; padding: 2px 6px; border-radius: 4px; }

.wl-card-actions {
    margin-top: auto;
    display: flex; gap: .5rem;
}
.wl-btn-cart {
    flex: 1;
    padding: .6rem;
    background: linear-gradient(135deg, #c8a96e, #d4b97e);
    color: #1a1a2e;
    border: none; border-radius: 8px;
    font-size: .8rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    cursor: pointer; transition: all .25s;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.wl-btn-cart:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200,169,110,.35); }
.wl-btn-detail {
    width: 38px; height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #6b7280; text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}
.wl-btn-detail:hover { border-color: #1a1a2e; color: #1a1a2e; }

.wl-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    margin-top: 1.5rem;
}
.wl-empty-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #c8a96e;
}
.wl-empty h3 { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.wl-empty p  { color: #6b7280; font-size: .9rem; margin-bottom: 1.5rem; }
.wl-empty-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.8rem;
    background: linear-gradient(135deg, #c8a96e, #d4b97e);
    color: #1a1a2e; border-radius: 8px; font-weight: 700;
    text-decoration: none; font-size: .85rem; letter-spacing: .5px; text-transform: uppercase;
    transition: all .25s;
}
.wl-empty-btn:hover { box-shadow: 0 8px 20px rgba(200,169,110,.35); transform: translateY(-2px); color: #1a1a2e; }

/* Removing animation */
.wl-card.removing {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .3s, transform .3s;
}

/* ═══════════════════════════════════════
   ELEGANZA — Select2 (Address Forms)
   ═══════════════════════════════════════ */

.select2-container--bootstrap-5 .select2-selection {
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    background: #fafafa !important;
    font-size: 0.9375rem !important;
    color: #1a1a2e !important;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #c8a96e !important;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.12) !important;
    background: #fff !important;
}
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: linear-gradient(135deg,#1a1a2e,#0f3460) !important;
    color: #c8a96e !important;
}

/* ── MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .acc-wrapper { padding: 20px 0 40px; }
    .acc-sidebar { position: relative; top: 0; margin-bottom: 20px; }
    .order-eleganza-head { flex-direction: column; gap: 8px; }
    .order-eleganza-foot { flex-direction: column; }
    .acc-info-item { flex-direction: column; gap: 4px; }
    .acc-info-key { min-width: 0; }
    .ord-product-item { flex-wrap: wrap; }
}