:root {
    --bg: #f6fbfb;
    --surface: #ffffff;
    --surface-2: #edf7f6;
    --text: #26424a;
    --muted: #6f8a91;
    --line: #d9e9e7;
    --primary: #7bb7c9;
    --primary-2: #9bd0dd;
    --accent: #8fcfbe;
    --accent-2: #bfdff2;
    --success: #7fc8a9;
    --danger: #e59aa5;
    --warning: #f3d7a4;
    --shadow-sm: 0 6px 18px rgba(72, 122, 134, 0.08);
    --shadow-md: 0 10px 24px rgba(72, 122, 134, 0.12);
    --shadow-lg: 0 16px 40px rgba(72, 122, 134, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s ease;
}

    a:hover {
        color: var(--accent);
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text);
}

.container {
    max-width: 1320px;
}

.page-heading h1 {
    font-size: 2.3rem;
    margin-bottom: 0.35rem;
}

.page-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

/* TOP STRIP */
.top-strip {
    background: #dff1ef;
    color: #35565d;
    font-size: 0.9rem;
    padding: 0.55rem 0;
}

.small-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .small-links a,
    .support-number {
        color: #35565d;
        text-decoration: none;
    }

        .small-links a:hover {
            color: #1f4047;
        }

/* HEADER */
.main-header {
    background: linear-gradient(180deg, #e8f5f7 0%, #d8eef1 100%);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(72, 122, 134, 0.12);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-name {
    font-size: 2.25rem;
    font-weight: 900;
    color: #68a9be;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.brand-accent {
    font-size: 2rem;
    font-weight: 300;
    color: #9ccfdf;
}

.search-box input,
.search-box .form-control {
    min-height: 48px;
    border: none;
    border-radius: 8px 0 0 8px;
    box-shadow: none;
}

    .search-box input:focus,
    .search-box .form-control:focus {
        box-shadow: none;
        border-color: transparent;
    }

.search-btn {
    background: var(--accent);
    color: #244148;
    border: none;
    font-weight: 700;
    border-radius: 0 8px 8px 0;
    padding: 0 1.25rem;
}

    .search-btn:hover {
        background: #7fc1ae;
        color: #1f3a40;
    }

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: nowrap;
}

.header-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(123, 183, 201, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    min-width: 0;
    backdrop-filter: blur(4px);
}

    .header-card:first-child {
        flex: 1 1 auto;
    }

.basket-card {
    flex: 0 0 170px;
}

.header-card-title {
    color: var(--text);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.header-card-links,
.header-card-links a {
    color: #58757d;
    font-size: 0.95rem;
}

    .header-card-links a:hover {
        color: #2c4b52;
    }

.category-bar {
    background: #cfe8eb;
    border-top: 1px solid rgba(123, 183, 201, 0.18);
}

.category-links {
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
    padding: 0.95rem 0;
}

    .category-links a {
        color: #2f5158;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.96rem;
    }

        .category-links a:hover {
            color: #6ab6a4;
        }

.benefits-bar {
    background: #fdfefe;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
}

.benefit-item {
    font-weight: 700;
    color: #46636a;
}

/* HERO */
.hero-section {
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(rgba(235, 247, 248, 0.55), rgba(235, 247, 248, 0.55)), linear-gradient(120deg, #d7edf1, #c7e8df, #e9f5f2);
    box-shadow: var(--shadow-lg);
}

.hero-overlay {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.hero-content {
    max-width: 600px;
    color: var(--text);
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #244148;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-content p {
    color: #58757d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-hero {
    background: var(--accent);
    color: #244148;
    padding: 0.85rem 1.4rem;
    font-weight: 800;
    border-radius: 10px;
    border: none;
}

    .btn-hero:hover {
        background: #7fc1ae;
        color: #1f3a40;
    }

/* PROMO GRID */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.promo-card {
    background: linear-gradient(135deg, #ffffff, #f1f9f8);
    border-radius: var(--radius-md);
    min-height: 220px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: end;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none !important;
    color: var(--text) !important;
}

    .promo-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        color: var(--text) !important;
    }

    .promo-card .promo-content h3,
    .promo-card .promo-content h4,
    .promo-card .promo-content p {
        color: inherit !important;
    }

    .promo-card .promo-content span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 16px;
        border-radius: 10px;
        background: var(--primary);
        color: #fff !important;
        font-weight: 800;
        font-size: 0.95rem;
        margin-top: 0.75rem;
        box-shadow: 0 8px 18px rgba(123, 183, 201, 0.18);
    }

    .promo-card:hover .promo-content span {
        background: var(--accent);
        color: #244148 !important;
    }

    .promo-card.dark {
        background: linear-gradient(135deg, #eef8fb, #e2f3f5);
        color: var(--text) !important;
    }

        .promo-card.dark .promo-content h3,
        .promo-card.dark .promo-content h4,
        .promo-card.dark .promo-content p {
            color: var(--text) !important;
        }

    .promo-card.alt {
        background: linear-gradient(135deg, #e8f7f2, #d8efe8);
    }

.promo-large {
    grid-column: span 6;
    min-height: 280px;
}

.promo-grid .promo-card:not(.promo-large) {
    grid-column: span 4;
}

/* INFO BOXES */
.info-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

    .info-box h5 {
        margin-bottom: 0.75rem;
    }

    .info-box p {
        color: var(--muted);
        margin-bottom: 0;
    }

/* FILTER PANEL */
.filter-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn-filter {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border: none;
}

    .btn-filter:hover {
        background: #68a9be;
        color: #fff;
    }

/* PRODUCT CARDS */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.product-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #bfdff2, #a7d6cf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30545b;
    font-size: 1.4rem;
    font-weight: 800;
}

.product-card-body {
    padding: 1.2rem;
}

.product-category {
    color: #7fc8a9;
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-card h5 {
    margin-bottom: 0.45rem;
}

.product-meta {
    color: var(--muted);
    min-height: 48px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* PRODUCT DETAILS */
.product-details-page {
    margin-top: 0.5rem;
}

.details-image-box,
.details-panel,
.review-form-box,
.review-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.details-image-box {
    padding: 1rem;
}

.details-image-placeholder {
    min-height: 420px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cde7ef, #bde2d8);
    color: #30545b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}

.details-panel {
    padding: 2rem;
}

.details-category {
    color: #7fc8a9;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.details-panel h1 {
    margin-bottom: 0.5rem;
}

.details-brand {
    color: var(--muted);
    margin-bottom: 1rem;
}

.details-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.details-info p {
    margin-bottom: 0.35rem;
}

.details-description {
    color: #415d64;
    line-height: 1.75;
    margin-top: 1rem;
}

.review-card {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.review-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.review-form-box {
    padding: 1.5rem;
}

/* PANELS / DASHBOARDS */
.panel-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    min-height: 140px;
    box-shadow: var(--shadow-md);
}

.dashboard-card-title {
    font-size: 0.95rem;
    color: #eef8fb;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
}

.admin-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

    .admin-links-grid a {
        display: block;
        background: #f6fbfb;
        border: 1px solid #e3eceb;
        color: var(--primary);
        text-decoration: none;
        border-radius: 12px;
        padding: 1rem 1.1rem;
        font-weight: 800;
        transition: all 0.2s ease;
    }

        .admin-links-grid a:hover {
            background: var(--primary);
            color: #fff;
            transform: translateY(-2px);
        }

.single-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* ADMIN SIDEBAR */
.admin-layout {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 24px !important;
    align-items: start !important;
}

.admin-sidebar {
    background: linear-gradient(180deg, #dceff2 0%, #cce7eb 100%) !important;
    border-radius: 22px !important;
    padding: 20px !important;
    box-shadow: 0 14px 32px rgba(72, 122, 134, 0.14) !important;
    position: sticky !important;
    top: 20px !important;
}

.admin-sidebar-header {
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(70, 99, 106, 0.10) !important;
}

    .admin-sidebar-header h2 {
        color: #30545b !important;
        font-size: 1.5rem !important;
        font-weight: 900 !important;
        margin: 0 0 4px 0 !important;
    }

    .admin-sidebar-header p {
        color: #608088 !important;
        margin: 0 !important;
        font-size: 0.92rem !important;
    }

.admin-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.admin-sidebar-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 12px !important;
    width: 100% !important;
    background: rgba(255,255,255,0.68) !important;
    color: #31555c !important;
    border: 1px solid rgba(123, 183, 201, 0.16) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    transition: all 0.2s ease !important;
}

    .admin-sidebar-link:hover {
        background: rgba(255,255,255,0.9) !important;
        color: #244148 !important;
        transform: translateX(4px) !important;
        box-shadow: 0 10px 20px rgba(72,122,134,0.10) !important;
    }

    .admin-sidebar-link.active {
        background: linear-gradient(135deg, #8fcfbe, #a8ddd1) !important;
        color: #244148 !important;
        border-color: transparent !important;
        box-shadow: 0 14px 28px rgba(143, 207, 190, 0.24) !important;
    }

.admin-sidebar-icon {
    width: 26px !important;
    min-width: 26px !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    flex-shrink: 0 !important;
}

.admin-main-content {
    min-width: 0 !important;
}

.admin-main-header {
    margin-bottom: 20px !important;
}

    .admin-main-header h1 {
        font-size: 2.35rem !important;
        font-weight: 900 !important;
        margin: 0 0 6px 0 !important;
    }

    .admin-main-header p {
        color: #6f8a91 !important;
        margin: 0 !important;
    }

.admin-content-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 24px !important;
    box-shadow: 0 6px 18px rgba(72,122,134,0.08) !important;
    border: 1px solid #ddeceb !important;
    min-height: 680px !important;
}

.admin-content-area {
    min-height: 620px !important;
}

.admin-welcome-box {
    background: linear-gradient(135deg, #fbfefe, #eef8f7) !important;
    border: 1px solid #ddeceb !important;
    border-radius: 18px !important;
    padding: 32px !important;
}

    .admin-welcome-box h3 {
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        color: #31555c !important;
        margin-bottom: 10px !important;
    }

    .admin-welcome-box p {
        color: #6f8a91 !important;
        margin: 0 !important;
    }

.admin-loading-box {
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #6f8a91 !important;
}

/* FORMS */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-control,
.form-select,
textarea {
    border-radius: 10px !important;
    border: 1px solid #d8e8e6;
    min-height: 46px;
    box-shadow: none !important;
}

    textarea.form-control {
        min-height: 120px;
    }

    .form-control:focus,
    .form-select:focus,
    textarea:focus {
        border-color: #9ccfdf;
        box-shadow: 0 0 0 0.2rem rgba(156, 207, 223, 0.16) !important;
    }

label.form-label,
label {
    font-weight: 700;
    color: var(--text);
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 1rem;
}

.btn-dark {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

    .btn-dark:hover {
        background: #68a9be;
        border-color: #68a9be;
        color: #fff;
    }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #244148;
}

    .btn-primary:hover {
        background: #7fc1ae;
        border-color: #7fc1ae;
        color: #1f3a40;
    }

.btn-success {
    border-color: var(--success);
}

.btn-outline-dark:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* TABLES */
.table {
    margin-bottom: 0;
}

    .table thead th {
        border-bottom: 2px solid #dee7e6;
        font-weight: 800;
        color: var(--primary);
        background: #f7fcfc;
    }

    .table td,
    .table th {
        vertical-align: middle;
    }

/* ALERTS */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* EMPTY / ERROR */
.empty-state,
.error-state {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
}

.old-price {
    text-decoration: line-through;
    color: #8da0a6;
    margin-right: 0.5rem;
    font-weight: 600;
}

.discount-price {
    color: var(--danger);
    font-weight: 900;
}

.old-price-details {
    text-decoration: line-through;
    color: #8da0a6;
    margin-right: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.discount-price-details {
    color: var(--danger);
    font-size: 2rem;
    font-weight: 900;
}

.discount-badge-text {
    color: var(--danger);
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.sidebar-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #8fcfbe;
    color: #244148;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(143, 207, 190, 0.24);
}

.profile-actions-grid {
    display: grid;
    gap: 0.9rem;
}

.profile-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fbfb;
    border: 1px solid #e4eeec;
    border-radius: 16px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

    .profile-action-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        background: #ffffff;
        color: var(--text);
    }

.profile-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.profile-security-box,
.danger-zone-box {
    background: #fafdfd;
    border: 1px solid #e5efed;
    border-radius: 16px;
    padding: 1rem;
}

.danger-zone-box {
    border-color: rgba(229, 154, 165, 0.24);
    background: rgba(229, 154, 165, 0.06);
}

.contact-message-box {
    border: 1px solid #d7e4e2;
    border-radius: 12px;
    padding: 1rem;
    background: #f8fcfc;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.mail-badge,
.mail-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.order-tracking {
    margin-top: 1.25rem;
}

.order-tracking-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.order-tracking-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
}

.order-tracking-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d7e6e4;
    margin: 0 auto 0.6rem auto;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #cfdeda;
}

.order-tracking-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7b9398;
}

.order-tracking-step.completed .order-tracking-dot {
    background: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

.order-tracking-step.completed .order-tracking-label {
    color: #66a88d;
}

.order-tracking-step.current .order-tracking-dot {
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.order-tracking-step.current .order-tracking-label {
    color: var(--text);
}

.order-tracking-cancelled {
    background: #fff6f7;
    border: 1px solid #f0c4cb;
    color: #8a4d57;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-weight: 700;
}

.review-stars-display {
    display: inline-flex;
    gap: 2px;
    font-size: 1.1rem;
    line-height: 1;
}

.star-filled {
    color: #dcb86d;
}

.star-empty {
    color: #c9d7da;
}

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf7f6;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}

.cart-items-list {
    display: grid;
    gap: 1rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    border: 1px solid #e3eceb;
    border-radius: 18px;
    padding: 1rem;
    background: #fbfefe;
}

.cart-item-image {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef7f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-align: center;
    padding: 1rem;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.cart-line-total {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 900;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-weight: 900;
    border-radius: 10px;
}

.cart-qty-value {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f6;
    color: var(--primary);
    font-weight: 800;
}

.cart-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #58757d;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

    .cart-nav-link:hover {
        color: #2c4b52;
    }

.cart-nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.cart-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #244148;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(143, 207, 190, 0.24);
}

.desktop-header-actions {
    display: block;
}

.desktop-category-bar {
    display: block;
}

.mobile-header-bar {
    display: none;
    gap: 0.75rem;
    padding-bottom: 1rem;
}

.mobile-header-btn {
    flex: 1;
    min-height: 46px;
    border: 1px solid rgba(123,183,201,0.18);
    background: rgba(255,255,255,0.68);
    color: var(--text);
    border-radius: 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

    .mobile-header-btn:hover {
        background: rgba(255,255,255,0.88);
    }

.mobile-dropdown-panel {
    display: none;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(123,183,201,0.12);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

    .mobile-dropdown-panel.open {
        display: block;
    }

.mobile-dropdown-links {
    display: grid;
    gap: 0.75rem;
}

    .mobile-dropdown-links a {
        display: block;
        color: var(--text);
        background: rgba(255,255,255,0.72);
        border: 1px solid rgba(123,183,201,0.12);
        border-radius: 12px;
        padding: 0.85rem 1rem;
        font-weight: 700;
        text-decoration: none;
    }

        .mobile-dropdown-links a:hover {
            background: rgba(255,255,255,0.92);
            color: var(--text);
        }

.mobile-account-box {
    background: rgba(255,255,255,0.55);
    border-radius: 14px;
    padding: 0.9rem;
}

.mobile-account-title {
    color: var(--text);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.mailbox-thread-item {
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    border: 1px solid #e3eceb !important;
    background: #fbfefe;
}

.conversation-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-bubble-wrap {
    display: flex;
}

    .conversation-bubble-wrap.customer {
        justify-content: flex-start;
    }

    .conversation-bubble-wrap.support {
        justify-content: flex-end;
    }

.conversation-bubble {
    max-width: 78%;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.conversation-bubble-wrap.customer .conversation-bubble {
    background: #f5f9fa;
    border: 1px solid #dfe9e8;
}

.conversation-bubble-wrap.support .conversation-bubble {
    background: var(--primary);
    color: #fff;
}

.conversation-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    opacity: 0.9;
}

.conversation-body {
    font-size: 0.96rem;
    line-height: 1.6;
}

.product-image-real,
.details-image-real {
    background: #fff;
}

.product-image-placeholder img,
.details-image-placeholder img {
    display: block;
}

.mobile-basket-under-logo {
    display: none;
    margin-top: 0.85rem;
}

.mobile-basket-card {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(123,183,201,0.14);
}

    .mobile-basket-card a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text) !important;
        text-decoration: none;
        font-weight: 700;
    }

        .mobile-basket-card a:hover {
            color: var(--text) !important;
        }

.register-success-box {
    max-width: 760px;
    margin: 0 auto;
}

.masked-credential-box {
    background: #f8fbfb;
    border: 1px solid #e3eceb;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.masked-credential-label {
    display: block;
    font-size: 0.85rem;
    color: #6f8a91;
    margin-bottom: 0.35rem;
}

.masked-credential-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.4px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .admin-layout {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar {
        position: static !important;
    }

    .admin-content-card,
    .admin-content-area {
        min-height: auto !important;
    }
}

@media (max-width: 991px) {
    .desktop-header-actions {
        display: none;
    }

    .desktop-category-bar {
        display: none;
    }

    .mobile-header-bar {
        display: flex;
    }

    .mobile-basket-under-logo {
        display: block;
    }

    .basket-card {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .promo-large,
    .promo-grid .promo-card:not(.promo-large) {
        grid-column: span 12;
    }

    .admin-content-card,
    .admin-content-area {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .small-links {
        gap: 0.7rem;
    }

    .category-links {
        gap: 0.8rem;
    }

    .hero-overlay {
        padding: 2rem;
    }

    .hero-section,
    .hero-overlay {
        min-height: 340px;
    }

    .details-image-placeholder {
        min-height: 280px;
    }

    .dashboard-card-value {
        font-size: 1.6rem;
    }

    .page-heading h1 {
        font-size: 1.9rem;
    }

    .admin-main-header h1 {
        font-size: 1.9rem;
    }

    .orders-table th {
        white-space: nowrap;
    }

    .orders-table td {
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    .orders-table tbody tr:hover {
        background: #fafefe;
    }

    .order-tracking-step {
        min-width: calc(50% - 0.5rem);
    }

    .cart-item-card {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        height: 220px;
    }

    .cart-item-top {
        flex-direction: column;
    }

    .cart-line-total {
        white-space: normal;
    }

    .conversation-bubble {
        max-width: 100%;
    }
}

.audit-log-panel {
    width: 100%;
}

.audit-log-list {
    display: grid;
    gap: 1rem;
}

.audit-log-card {
    background: #ffffff;
    border: 1px solid #e3eceb;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.audit-log-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.audit-log-main {
    min-width: 0;
    width: 100%;
}

.audit-log-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

    .audit-log-title-row h5 {
        margin: 0;
        color: var(--primary);
        font-weight: 800;
    }

.audit-log-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.audit-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--muted);
    font-size: 0.93rem;
}

.audit-log-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.audit-log-value-box {
    background: #f8fbfb;
    border: 1px solid #e3eceb;
    border-radius: 16px;
    padding: 0.9rem;
    min-width: 0;
}

.audit-log-value-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.audit-log-json {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #325158;
    font-family: Consolas, "Courier New", monospace;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid #dde8e7;
    border-radius: 12px;
    padding: 0.85rem;
}

.audit-log-empty {
    color: #7b9297;
    font-size: 0.92rem;
    background: #fff;
    border: 1px dashed #d8e4e2;
    border-radius: 12px;
    padding: 0.85rem;
}

@media (max-width: 991px) {
    .audit-log-values-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.dashboard-alert-card {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid #e3eceb;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dashboard-alert-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .dashboard-alert-card.danger {
        border-left: 6px solid var(--danger);
        background: #fff7f8;
    }

    .dashboard-alert-card.warning {
        border-left: 6px solid var(--warning);
        background: #fffdf7;
    }

    .dashboard-alert-card.success {
        border-left: 6px solid var(--success);
        background: #f7fdfa;
    }

    .dashboard-alert-card.info {
        border-left: 6px solid #9ccfdf;
        background: #f5fbfd;
    }

.dashboard-alert-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-alert-title {
    font-weight: 900;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.dashboard-alert-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.dashboard-alert-count {
    min-width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(123, 183, 201, 0.18);
    flex-shrink: 0;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.product-rating-text {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}
/* Pagination - products */
.pagination {
    gap: 0.45rem;
    margin-top: 1.5rem;
}

    .pagination .page-item {
        margin: 0;
    }

    .pagination .page-link {
        border: 1px solid #cfd9e2;
        background-color: #f8fbfc;
        color: #1f3b57;
        border-radius: 10px !important;
        padding: 0.55rem 0.9rem;
        min-width: 42px;
        text-align: center;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(31, 59, 87, 0.06);
        transition: all 0.2s ease;
    }

        .pagination .page-link:hover {
            background-color: #eaf6f3;
            border-color: #8fd3c7;
            color: #18324a;
            transform: translateY(-1px);
        }

    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #79d3c2, #63c7b6);
        border-color: #63c7b6;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(99, 199, 182, 0.28);
    }

    .pagination .page-item.disabled .page-link {
        background-color: #f3f6f8;
        border-color: #d9e2e8;
        color: #9aa9b5;
        opacity: 1;
        box-shadow: none;
        cursor: not-allowed;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }

@media (max-width: 576px) {
    .pagination {
        gap: 0.3rem;
    }

        .pagination .page-link {
            padding: 0.45rem 0.75rem;
            min-width: 38px;
            font-size: 0.92rem;
        }
}