﻿:root {
    --primary: #07578b;
    --primary-dark: #06456d;
    --primary-soft: #7ea5c3;
    --accent: #0e83bd;
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --text: #23303d;
    --muted: #616b76;
    --line: #d8dde3;
    --shadow: 0 18px 44px rgba(15, 43, 69, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 591px;
    overflow: hidden;
    background: url("../img/banner.jpg") center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 84.27deg, #ffffff 27.85%, rgba(213, 213, 213, 0.702807) 61.62%, rgba(115, 115, 115, 0) 77.55% );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    min-height: 591px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 40px 80px;
}

.hero-box {
    max-width: 760px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    .hero-box h1 {
        margin: 0 0 20px;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 58px;
        line-height: 1.2;
        color: #07578b;
    }

    .hero-box p {
        margin: 0 0 28px;
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        font-size: 20px;
        line-height: 1.7;
        color: #5f6670;
    }

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 58px;
    padding: 0 30px;
    background: #07578b;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: 0.3s ease;
}

    .hero-btn:hover {
        background: #06456d;
    }

@media (max-width: 992px) {
    .hero-section, .hero-content {
        min-height: 500px;
    }

    .hero-content {
        padding: 30px 30px;
    }

    .hero-box {
        max-width: 100%;
        padding: 35px 25px;
        border-radius: 22px;
    }

        .hero-box h1 {
            font-size: 40px;
        }

        .hero-box p {
            font-size: 17px;
        }
}

@media (max-width: 576px) {
    .hero-section, .hero-content {
        min-height: 420px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-box {
        padding: 24px 18px;
        border-radius: 18px;
    }

        .hero-box h1 {
            font-size: 28px;
            line-height: 1.3;
        }

        .hero-box p {
            font-size: 15px;
            line-height: 1.6;
        }

    .hero-btn {
        min-width: 170px;
        height: 50px;
        font-size: 15px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.navbar {
    width: 85%;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 92px;
}

.brand {
    width: 195px;
    height: 71px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #ffffff 0 18%, #dbe8f2 19%, #8cb8d2 34%, #096ea6 35%, #0d8fd0 52%, #0a5e8f 64%, #5e6269 65%, #b6bec7 76%, #eef3f7 100%);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.12), 0 8px 18px rgba(0, 0, 0, 0.12);
}

    .brand-mark::before,
    .brand-mark::after {
        content: "";
        position: absolute;
        inset: 9px;
        border-radius: 50%;
        background: var(--primary);
        transform: rotate(16deg);
    }

    .brand-mark::after {
        inset: 17px;
        background: #ffffff;
        opacity: 0.95;
    }

.brand-name {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 2.3rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

    .nav-links a.active,
    .nav-links a:hover {
        color: #fff;
    }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(100%, 400px);
    width: 400px;
    background: #fff;
    border-radius: 999px;
    padding: 14px 20px;
    color: #8090a0;
}

    .search-bar input {
        border: 0;
        outline: none;
        width: 100%;
        background: transparent;
        color: #51606f;
    }

.icon-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #000000;
    background: #ffffff;
    border: 0;
    cursor: pointer;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

.menu-toggle {
    display: none;
}

.mobile-menu-panel,
.mobile-menu-top,
.mobile-menu-list {
    display: none;
}

/* other sections (hero, testimonial, product, auth, etc) keep as is but won't affect dashboard */
.section {
    padding: 78px 0;
}

.section-title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.12;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2vw, 1.9rem);
    color: #5c6671;
    font-weight: 500;
}

.under-line {
    width: min(100%, 560px);
    height: 4px;
    background: #d7dadd;
    border-radius: 999px;
    margin-bottom: 18px;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 188px;
    padding: 15px 28px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(7, 87, 139, 0.18);
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }


@media (max-width: 980px) {
    .site-header {
        transition: background 0.28s ease;
    }

    .navbar {
        gap: 16px;
        min-height: 82px;
        padding: 14px 0;
        position: relative;
        z-index: 130;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        color: #fff;
        position: relative;
        z-index: 140;
    }

        .menu-toggle::before, .menu-toggle::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 24px;
            height: 2.5px;
            border-radius: 999px;
            background: currentColor;
            transform-origin: center;
            transition: transform 0.32s ease;
        }

        .menu-toggle::before {
            transform: translate(-50%, -50%);
            box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
        }

        .menu-toggle::after {
            transform: translate(-50%, -50%) rotate(0deg);
            opacity: 0;
        }

    .nav-links, .nav-right {
        display: none !important;
    }

    .site-header.open .menu-toggle::before {
        transform: translate(-50%, -50%) rotate(45deg);
        box-shadow: none;
    }

    .site-header.open .menu-toggle::after {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .mobile-menu-panel {
        display: block;
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #050505;
        z-index: 120;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-24px);
        clip-path: inset(0 0 100% 0);
        transition: transform 0.38s ease, clip-path 0.42s ease, opacity 0.24s ease;
    }

    .site-header.open .mobile-menu-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }

    .mobile-menu-list {
        display: block;
        padding: 10px 14px 22px;
    }

        .mobile-menu-list a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            min-height: 52px;
            padding: 14px 14px;
            color: #fff;
            font-size: 1.15rem;
            font-weight: 600;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -90px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    min-width: 228px;
    overflow: hidden;
    z-index: 150;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #23303d;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}

    .dropdown-item:hover {
        background: #f0f4f8;
        color: #07578b;
    }
/* ===== END OF ORIGINAL CSS ===== */

/* ===== DASHBOARD SPECIFIC STYLES (fully responsive, matching theme) ===== */
.dashboard-main {
    padding: 48px 0 64px;
    background: #fbfdff;
}

.dashboard-container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
/* Sidebar card */
.dashboard-sidebar {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: var(--shadow);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(7,87,139,0.12);
}

.avatar-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(7,87,139,0.2);
}

.greeting-text h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.greeting-text p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 18px;
        border-radius: 40px;
        color: var(--text);
        font-weight: 500;
        transition: all 0.2s;
        background: transparent;
    }

        .sidebar-nav a i {
            width: 24px;
            font-size: 1.2rem;
            color: var(--primary-soft);
        }

        .sidebar-nav a.active {
            background: rgba(7,87,139,0.12);
            color: var(--primary);
            font-weight: 600;
        }

            .sidebar-nav a.active i {
                color: var(--primary);
            }

        .sidebar-nav a:hover:not(.active) {
            background: rgba(7,87,139,0.06);
            color: var(--primary-dark);
        }
/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 20px 18px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-3px);
    }

.stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-trend {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

.trend-up {
    color: #2c9b6b;
    font-weight: 600;
}

.trend-down {
    color: #c24a4a;
}

.badge-sale {
    background: #e9ecef;
    border-radius: 40px;
    padding: 2px 8px;
    font-size: 0.7rem;
}
/* Recent orders table */
.recent-orders-card {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow);
}

    .recent-orders-card h3 {
        font-size: 1.5rem;
        margin: 0 0 18px 0;
        color: var(--primary);
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .orders-table th {
        text-align: left;
        padding: 14px 12px;
        color: var(--muted);
        font-weight: 600;
        border-bottom: 2px solid var(--line);
    }

    .orders-table td {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
        color: var(--text);
    }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #eef2ff;
    color: #1e3a8a;
}

.status-completed {
    background: #e0f2e9;
    color: #1e6f3f;
}

.status-pending {
    background: #fff3e3;
    color: #b45b0f;
}

.status-cancelled {
    background: #ffe6e5;
    color: #b91c1c;
}

.amount {
    font-weight: 700;
    color: var(--primary-dark);
}
/* Responsive dashboard */
@media (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dashboard-sidebar {
        padding: 20px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

        .sidebar-nav a {
            padding: 8px 16px;
            font-size: 0.9rem;
            background: rgba(255,255,255,0.5);
        }

    .user-greeting {
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .recent-orders-card {
        padding: 18px;
    }

    .orders-table th, .orders-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

.welcome-note {
    margin-bottom: 28px;
}

    .welcome-note h2 {
        margin: 0 0 8px;
        font-size: 1.8rem;
        color: var(--primary);
    }

    .welcome-note p {
        margin: 0;
        color: var(--muted);
    }

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.address-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    transition: 0.3s;
}

    .address-card:hover {
        border-color: #07578b;
    }

.address-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-body {
    margin-top: 10px;
    font-size: 14px;
}

.payment-options {
    margin-top: 10px;
}

.payment-option {
    display: block;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.address-card {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
}

    .address-card.active {
        border-color: #07578b;
        background: #7ea5c3;
    }

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


.custom-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .custom-popup.active {
        display: block;
    }

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.popup-box {
    position: relative;
    width: 900px;
    max-width: 95%;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

/* ✅ FIXED GRID */
.popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

    /* ✅ INPUT FIX */
    .popup-grid input,
    .popup-grid select {
        width: 100%;
        padding: 14px;
        border-radius: 25px;
        border: 2px solid #07578b;
        outline: none;
        box-sizing: border-box;
    }

/* textarea */
textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #07578b;
    margin-bottom: 15px;
    resize: none;
}

/* buttons */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ✅ RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .popup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .popup-box {
        padding: 20px;
    }

    .popup-grid {
        grid-template-columns: 1fr;
    }

    .popup-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
    }
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .name-row i {
        margin-left: 10px;
        cursor: pointer;
        color: #0b5c83;
        font-size: 14px;
        transition: 0.3s;
    }

        .name-row i:hover {
            transform: scale(1.2);
        }

/* ---------- GLOBAL VARIABLES (matching dashboard) ---------- */
.custom-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .custom-popup.active {
        display: block;
    }

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.popup-box {
    position: relative;
    width: 900px;
    max-width: 95%;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

/* ✅ FIXED GRID */
.popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

    /* ✅ INPUT FIX */
    .popup-grid input,
    .popup-grid select {
        width: 100%;
        padding: 14px;
        border-radius: 25px;
        border: 2px solid #07578b;
        outline: none;
        box-sizing: border-box;
    }

/* textarea */
textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #07578b;
    margin-bottom: 15px;
    resize: none;
}

/* buttons */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ✅ RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .popup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .popup-box {
        padding: 20px;
    }

    .popup-grid {
        grid-template-columns: 1fr;
    }

    .popup-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
    }
}

/* Main content area */
.addresses-main {
    background: transparent;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

    .page-header h2 {
        font-size: 1.8rem;
        color: var(--primary);
        font-weight: 700;
    }

/* Static addresses grid */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.address-card {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
    transition: transform 0.2s ease;
    position: relative;
}

    .address-card:hover {
        transform: translateY(-4px);
    }

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(7,87,139,0.1);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

    .card-badge.default {
        background: #e0f2e9;
        color: #1e6f3f;
    }

.address-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.address-detail {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
}

    .address-detail i {
        width: 20px;
        color: var(--primary-soft);
        margin-top: 3px;
    }

/* static hint (no interactive buttons) */
.static-note {
    margin-top: 20px;
    padding: 12px;
    background: #eef2fa;
    border-radius: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dashboard-sidebar {
        padding: 20px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

        .sidebar-nav a {
            padding: 8px 16px;
            font-size: 0.9rem;
        }
}

@media (max-width: 640px) {
    .address-grid {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }
}

.address-card {
    position: relative;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

    .card-actions i {
        margin-left: 10px;
        cursor: pointer;
        font-size: 16px;
        transition: 0.3s;
    }

.edit-icon {
    color: #0b5c83;
}

.delete-icon {
    color: #dc3545;
}

.card-actions i:hover {
    transform: scale(1.2);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-address-btn {
    background: #0b5c83;
    color: #fff;
    border-radius: 25px;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

}

.add-address-btn i {
    margin-right: 5px;
}

.add-address-btn:hover {
    color: #0b5c83;
    background: rgba(7, 87, 139, 0.12);
}

/* CARD */
.order-card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

/* TOP */
.order-top {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-id {
    font-weight: 600;
}

/* STATUS */
.status-badge {
    background: #f7e6c4;
    color: #b88a00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* GRID */
.order-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    margin-top: 10px;
}

/* ROW */
.order-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

    .order-row span:first-child {
        color: #666;
    }

    .order-row span:last-child {
        font-weight: 500;
    }

    /* FULL WIDTH */
    .order-row.full {
        border-top: 1px solid #eee;
        grid-column: span 2;
    }

/* ACTIONS */
.order-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* BUTTONS */
.view-btn {
    background: #eee;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
}

.order-btn {
    background: #07578b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
    }

    .order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

        .order-row.full {
            grid-column: span 1;
        }

    .order-actions {
        flex-direction: column;
        gap: 10px;
    }

    .order-btn, .view-btn {
        width: 100%;
        text-align: center;
    }
}

.order-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

    .order-tabs button {
        border: none;
        background: transparent;
        font-weight: 500;
        padding: 8px 15px;
        border-radius: 20px;
        cursor: pointer;
    }

    .order-tabs .active {
        background: #e9f2ee;
    }

    .order-tabs a {
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 20px;
        color: #333;
    }

        .order-tabs a.active {
            background: #e9f2ee;
            font-weight: 600;
        }

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

    .pagination a {
        padding: 8px 14px;
        border-radius: 8px;
        background: #eee;
        text-decoration: none;
    }

        .pagination a.active-page {
            background: #07578b;
            color: #fff;
        }


/* Main tracking container (inside dashboard right pane) */
.tracking-content {
    width: 100%;
}

/* ---------- TRACKING HEADER CARD ---------- */
.tracking-header-card {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.order-badge h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-badge p {
    color: var(--muted);
    font-size: 0.85rem;
}

.tracking-number {
    background: #eef2fc;
    padding: 10px 18px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.85rem;
}

.delivery-status {
    background: rgba(7,87,139,0.1);
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 700;
    color: var(--primary);
}

/* ---------- PROGRESS STEPS (MODERN STEPPER) ---------- */
.steps-wrapper {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 100px;
    margin-bottom: 20px;
}

.step-icon {
    width: 58px;
    height: 58px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: #94a3b8;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
}

.step-item.completed .step-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(7,87,139,0.2);
}

.step-item.current .step-icon {
    background: #ffe6c7;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7,87,139,0.2);
    transform: scale(1.02);
}

.step-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin: 8px 0 4px;
}

.step-time {
    font-size: 0.7rem;
    color: var(--muted);
}

/* connector line (desktop) */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 29px;
    right: -50%;
    width: 90%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item.completed:not(:last-child)::after {
    background: var(--primary);
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 18px;
    }

    .step-item {
        display: flex;
        align-items: center;
        gap: 18px;
        text-align: left;
        min-width: auto;
    }

    .step-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .step-title {
        margin: 0;
    }

    .step-time {
        font-size: 0.7rem;
    }
}

/* ---------- ORDER SUMMARY GRID (2 columns) ---------- */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--surface);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
}

    .info-card h4 {
        font-size: 1.25rem;
        margin-bottom: 16px;
        color: var(--primary);
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
        border-left: 4px solid var(--primary);
        padding-left: 14px;
    }

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
}

    .detail-row strong {
        color: var(--text);
    }

.amount-highlight {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

/* product list */
.products-list {
    margin-top: 20px;
}

.product-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    flex-wrap: wrap;
}

.product-img {
    width: 70px;
    height: 70px;
    background: #f0f2f5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-info {
    flex: 2;
}

.product-name {
    font-weight: 700;
    margin-bottom: 6px;
}

.product-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.product-price {
    font-weight: 700;
    color: var(--primary-dark);
}

/* map container */
.map-container {
    margin-top: 12px;
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    background: #eef2f6;
}

#trackingMap {
    height: 100%;
    width: 100%;
}

.refresh-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    .refresh-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

@media (max-width: 860px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .tracking-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* ===== MAIN ===== */
.wishlist-section {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
}

/* HEADER */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

    .wishlist-header h2 {
        font-size: 28px;
        font-weight: 700;
    }

.cart-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.go-cart-btn {
    background: #07578b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .go-cart-btn:hover {
        transform: translateY(-2px);
    }

/* TABLE */
.wishlist-table {
    overflow-x: auto;
}

    .wishlist-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .wishlist-table th {
        background: #f8fafc;
        padding: 16px;
        text-align: left;
        font-weight: 600;
    }

    .wishlist-table td {
        padding: 18px 12px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .wishlist-table tr:hover {
        background: #fafafa;
    }

/* PRODUCT */
.product-col {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .product-col img {
        width: 75px;
        height: 75px;
        border-radius: 12px;
        object-fit: cover;
        background: #f3f3f3;
        transition: 0.3s;
    }

        .product-col img:hover {
            transform: scale(1.05);
        }

.product-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.product-info small {
    color: #888;
}

.rating {
    font-size: 13px;
    color: #f4b400;
}

/* STOCK */
.in-stock {
    color: #28a745;
    font-weight: 600;
}

.out-stock {
    color: #dc3545;
    font-weight: 600;
}

/* PRICE */
del {
    color: #aaa;
    margin-left: 5px;
}

/* QTY */
.qty-box {
    display: flex;
    align-items: center;
    background: #f4f6f8;
    border-radius: 30px;
    padding: 5px 12px;
    gap: 10px;
}

    .qty-box button {
        border: none;
        background: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
    }

    .qty-box input {
        width: 30px;
        border: none;
        background: transparent;
        text-align: center;
    }

/* CART BUTTON */
.wishlist-add-to-cart {
    background: #0b5c83;
    color: #fff;
    border-radius: 25px;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    .wishlist-add-to-cart:hover {
        background: #084c6b;
    }

    /* DISABLED */
    .wishlist-add-to-cart:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* REMOVE */
.remove-btn {
    background: #f1f1f1;
    border-radius: 50%;
    padding: 8px 10px;
    border: none;
    cursor: pointer;
}

    .remove-btn:hover {
        background: red;
        color: #fff;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wishlist-table thead {
        display: none;
    }

    .wishlist-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 14px;
        padding: 12px;
    }

    .wishlist-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
    }

        .wishlist-table td::before {
            content: attr(data-title);
            font-weight: 600;
            color: #666;
        }

    .wishlist-add-to-cart {
        width: 100%;
    }
}


