:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --border: #dbe3ef;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --success: #15803d;
    --warning: #b45309;
    --danger: #b91c1c;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}


a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}


.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.brand-logo {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.brand-text-fallback {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}


.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
}

.main-nav a:hover {
    background: var(--surface-soft);
    text-decoration: none;
}

.main-nav .nav-cta {
    background: var(--primary);
    color: #fff;
}

.main-nav .nav-cta:hover {
    background: var(--primary-hover);
}

.site-main {
    flex: 1 0 auto;
    padding: 28px 0 40px;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: auto;
}

.footer-inner {
    padding: 20px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

p {
    margin: 0 0 16px;
}

ul {
    padding-left: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card-soft {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

.button-secondary {
    background: #e8eefc;
    color: var(--primary);
}

.button-secondary:hover {
    background: #dbe7ff;
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-danger:hover {
    background: #991b1b;
}

form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 0.96rem;
    margin-bottom: 16px;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(29, 78, 216, 0.15);
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table th {
    background: #f0f5ff;
    color: var(--text);
    font-size: 0.92rem;
}

table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: var(--success);
}

.badge-warning {
    background: #fef3c7;
    color: var(--warning);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger);
}

.badge-neutral {
    background: #e2e8f0;
    color: #334155;
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--success);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 20px;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--muted);
}

.kpi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.kpi-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.kpi-item strong {
    display: block;
    font-size: 1.2rem;
    margin-top: 6px;
}

.auth-shell {
    max-width: 520px;
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.spacer-top {
    margin-top: 20px;
}

.spacer-bottom {
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
    }

    .form-row,
    .grid-2,
    .grid-3,
    .grid-4,
    .stat-grid,
    .kpi-list {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(100% - 20px, var(--max-width));
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    table th,
    table td {
        padding: 12px;
    }
}



.home-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0 0 30px;
}

.hero-banner {
    position: relative;
    min-height: 360px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        url('/assets/images/home-hero-image1.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 760px;
}

.hero-overlay h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-button {
    min-width: 160px;
    font-size: 1rem;
}

.home-section {
    padding: 28px 18px 10px;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    border: 1px solid #bfc8d6;
    border-radius: 8px;
    padding: 22px 14px;
    text-align: center;
    color: var(--text);
    text-decoration: none;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.category-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.category-soft-pink {
    background: #f6e9e9;
}

.category-soft-blue {
    background: #dfeaf7;
}

.category-soft-lilac {
    background: #eee8fb;
}

.category-soft-purple {
    background: #f2e2f4;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    height: 190px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #cbd5e1;
}

.product-image-green {
    background: linear-gradient(135deg, #4f6f3a, #1f3a22);
}

.product-image-hair {
    background: linear-gradient(135deg, #e9b08f, #cf7e4f);
}

.product-image-chips {
    background: linear-gradient(135deg, #f5d84c, #d4a900);
}

.product-image-watch {
    background: linear-gradient(135deg, #222, #666);
}

.product-card-body {
    padding: 14px;
}

.product-card-body h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-card .button {
    width: 100%;
}

@media (max-width: 900px) {
    .category-grid,
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .category-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        min-height: 280px;
    }

    .hero-overlay h1 {
        font-size: 1.6rem;
    }

    .section-title-row {
        gap: 10px;
    }

    .section-title-row h2 {
        font-size: 1.1rem;
        white-space: normal;
    }
}

.listing-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 18px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.filters-sidebar {
    align-self: start;
}

.filters-box {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.filters-box h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #cfd8e3;
}

.filter-group {
    padding: 14px 18px;
    border-bottom: 1px solid #cfd8e3;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.price-range-box {
    display: flex;
    justify-content: space-between;
    border: 1px solid #cfd8e3;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.fake-range {
    position: relative;
    height: 18px;
    margin: 12px 0 6px;
}

.fake-range-line {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 4px;
    background: #cfd8e3;
    border-radius: 999px;
}

.fake-range-active {
    position: absolute;
    top: 8px;
    left: 0;
    width: 48%;
    height: 4px;
    background: #1d4ed8;
    border-radius: 999px;
}

.fake-range-dot {
    position: absolute;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #94a3b8;
    border-radius: 50%;
}

.fake-range-dot.left {
    left: 0;
}

.fake-range-dot.right {
    left: 48%;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.9rem;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}




.colour-check-row {
    justify-content: flex-start;
}

.colour-check-row .color-dot {
    flex-shrink: 0;
}

.filters-button.secondary {
    margin-top: 10px;
    display: inline-flex;
}


.color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.color-dot.black {
    background: #000;
}

.color-dot.blue {
    background: #2563eb;
}

.color-dot.green {
    background: #16a34a;
}

.color-dot.red {
    background: #dc2626;
}

.filters-button {
    width: calc(100% - 36px);
    margin: 18px;
    justify-content: center;
    font-size: 1rem;
    min-height: 52px;
}

.listing-content {
    min-width: 0;
}

.listing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #cfd8e3;
}

.listing-topbar h1 {
    font-size: 2rem;
    margin: 0;
}

.sort-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-form label {
    margin: 0;
    font-weight: 600;
}

.sort-form select {
    margin: 0;
    width: auto;
    min-width: 180px;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.listing-card {
    border: 1px solid #cfd8e3;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.listing-card-image {
    height: 190px;
    border-bottom: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
}

.listing-card-body {
    padding: 14px;
}

.listing-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.listing-price {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.listing-card-actions .button {
    width: 100%;
}

.product-image-default {
    background: linear-gradient(135deg, #dbe4f0, #b9c7da);
}

.product-image-dark {
    background: linear-gradient(135deg, #111827, #4b5563);
}

.product-image-light {
    background: linear-gradient(135deg, #f8fafc, #dbeafe);
}

.fake-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.fake-pagination a {
    min-width: 36px;
    height: 36px;
    border: 1px solid #cfd8e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    background: #fff;
}

.fake-pagination a.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-form {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-form select {
        width: 100%;
    }
}


.product-detail-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
}

.product-detail-top {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-main-image {
    height: 430px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
}

.product-thumbs {
    display: flex;
    gap: 12px;
}

.product-thumb {
    width: 110px;
    height: 110px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
}

.product-summary h1 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.stock-status-row {
    margin-bottom: 16px;
}

.product-detail-description {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 560px;
}

.detail-option-group {
    margin-bottom: 20px;
}

.detail-option-group h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    background: #f8fafc;
    font-weight: 700;
}

.detail-colour-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.colour-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-block;
}

.colour-pill.black {
    background: #111;
}

.colour-pill.blue {
    background: #2563eb;
}

.colour-pill.green {
    background: #556b3a;
}

.colour-pill.red {
    background: #dc2626;
}

.colour-pill.white {
    background: #fff;
}

.colour-pill.neutral {
    background: #94a3b8;
}

.product-buy-box {
    margin-top: 24px;
}

.product-buy-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfd8e3;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: #f8fafc;
    color: var(--text);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    width: 64px !important;
    margin: 0 !important;
    border: none !important;
    border-left: 1px solid #cfd8e3 !important;
    border-right: 1px solid #cfd8e3 !important;
    border-radius: 0 !important;
    text-align: center;
    padding: 10px 8px !important;
}

.product-buy-button {
    min-width: 180px;
}

.product-tabs-section {
    margin-top: 20px;
    border-top: 1px solid #cfd8e3;
    padding-top: 24px;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
}

.product-tab {
    padding: 14px 20px;
    border: 1px solid #cfd8e3;
    background: #fff;
    font-weight: 600;
}

.product-tab.active {
    background: #f8fafc;
}

.product-tab-content {
    border-top: 1px solid #cfd8e3;
    padding-top: 20px;
    min-height: 80px;
}

.related-products-section {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #cfd8e3;
}

.related-products-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.related-card-image {
    height: 190px;
    border-bottom: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
}

.related-card-body {
    padding: 14px;
}

.related-card-body h3 {
    margin-bottom: 10px;
}

.related-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.related-card .button {
    width: 100%;
}

@media (max-width: 1024px) {
    .product-detail-top {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-main-image {
        height: 360px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbs {
        flex-wrap: wrap;
    }

    .product-thumb {
        width: 90px;
        height: 90px;
    }

    .product-buy-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-main-image {
        height: 280px;
    }

    .product-summary h1 {
        font-size: 1.6rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }
}



.cart-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
}

.cart-page h1 {
    margin-bottom: 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.cart-items-panel {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.cart-table-header,
.cart-item-row {
    display: grid;
    grid-template-columns: 1.8fr 0.7fr 0.8fr 0.8fr;
    gap: 12px;
    align-items: center;
}

.cart-table-header {
    padding: 16px 18px;
    border-bottom: 1px solid #cfd8e3;
    font-weight: 700;
    background: #f8fafc;
}

.cart-item-row {
    padding: 18px;
    border-bottom: 1px solid #cfd8e3;
}

.cart-item-row:last-of-type {
    border-bottom: none;
}

.cart-product-box {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-product-image {
    width: 96px;
    height: 96px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cart-product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.cart-product-info p {
    margin: 0;
    color: var(--muted);
}

.cart-col-price,
.cart-col-subtotal {
    font-weight: 700;
}

.cart-qty-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.cart-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: #fff;
    color: var(--text);
    border: 1px solid #cfd8e3;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-qty-btn:hover {
    background: #f1f5f9;
}

.cart-qty-value {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #cfd8e3;
    border-bottom: 1px solid #cfd8e3;
    font-weight: 700;
    background: #fff;
}

.cart-bottom-link {
    padding: 18px;
}

.cart-bottom-link a {
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-summary-panel {
    position: sticky;
    top: 95px;
}

.summary-box {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.summary-box h2 {
    padding: 18px;
    margin: 0;
    border-bottom: 1px solid #cfd8e3;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid #cfd8e3;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-checkout-button {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    justify-content: center;
    min-height: 50px;
}

@media (max-width: 960px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none;
    }

    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cart-col-price::before {
        content: "Price: ";
        font-weight: 600;
    }

    .cart-col-subtotal::before {
        content: "Subtotal: ";
        font-weight: 600;
    }
}



.checkout-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
}

.checkout-page h1 {
    margin-bottom: 24px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.checkout-panel-box {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.checkout-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 18px;
    border-bottom: 1px solid #cfd8e3;
    background: #f8fafc;
}

.checkout-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 18px;
    margin: 0;
}

.checkout-form label {
    font-size: 1rem;
    margin-bottom: 8px;
}

.checkout-submit-button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    margin-top: 10px;
}

.checkout-summary-panel {
    position: sticky;
    top: 95px;
}

.payment-preview-box {
    border-top: 1px solid #cfd8e3;
    margin-top: 8px;
    padding: 16px 18px 18px;
}

.payment-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.payment-badge {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.9rem;
}

.payment-preview-note {
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.payment-preview-note.bottom {
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
    color: #475569;
}

.fake-card-box {
    border: 1px solid #cfd8e3;
    background: #fff;
    margin-bottom: 16px;
}

.fake-card-row {
    padding: 12px 14px;
    border-bottom: 1px solid #cfd8e3;
    color: #475569;
}

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

.fake-card-row.small {
    font-size: 0.92rem;
    color: #64748b;
}

.payment-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 14px 0;
}

@media (max-width: 960px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-panel {
        position: static;
    }
}

.order-success-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
}

.order-success-header {
    text-align: center;
    margin-bottom: 28px;
}

.success-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.order-success-header h1 {
    margin-bottom: 10px;
}

.order-success-top {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 26px;
    align-items: start;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 18px;
    border-bottom: 1px solid #cfd8e3;
}

.order-address-box {
    padding: 18px;
}

.order-address-box h3 {
    margin-bottom: 12px;
}

.order-address-box p {
    margin-bottom: 6px;
}

.order-items-section {
    margin-bottom: 20px;
}

.order-items-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cfd8e3;
}

.order-items-header-row .checkout-panel-title {
    border-bottom: none;
    flex: 1;
}

.order-items-header-cols {
    min-width: 360px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 18px;
    font-weight: 700;
}

.order-item-row {
    display: grid;
    grid-template-columns: 1.8fr 0.7fr 0.6fr 0.8fr;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #cfd8e3;
}

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

.order-item-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.order-item-image {
    width: 96px;
    height: 96px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.order-item-info h3 {
    margin-bottom: 8px;
}

.order-item-info p {
    margin: 0;
    color: var(--muted);
}

.order-item-price,
.order-item-qty,
.order-item-line-total {
    font-weight: 700;
}

.order-success-note {
    margin: 18px 0 20px;
    color: #334155;
}

.order-success-note p {
    margin-bottom: 8px;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 960px) {
    .order-success-top {
        grid-template-columns: 1fr;
    }

    .order-items-header-cols {
        display: none;
    }

    .order-item-row {
        grid-template-columns: 1fr;
    }
}


.account-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
}

.account-page h1 {
    margin-bottom: 24px;
}

.account-section {
    border: 1px solid #cfd8e3;
    background: #fff;
    margin-bottom: 24px;
}

.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #cfd8e3;
    background: #f8fafc;
}

.account-section-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.account-info-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 20px 18px;
}

.account-labels p,
.account-values p {
    min-height: 32px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.account-actions {
    padding: 0 18px 18px;
}

.account-orders-table th,
.account-orders-table td {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.seller-dashboard-page {
    background: #fff;
    border: 1px solid var(--border);
    min-height: 900px;
}

.seller-shell {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 100%;
}

.seller-sidebar {
    border-right: 1px solid #cfd8e3;
    background: #f8fafc;
    min-height: 100%;
}

.seller-sidebar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 24px 18px;
    border-bottom: 1px solid #cfd8e3;
    color: #2563eb;
}

.seller-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.seller-sidebar-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.seller-sidebar-nav a.active,
.seller-sidebar-nav a:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.seller-main {
    padding: 22px;
}

.seller-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.seller-topbar h1 {
    margin: 0;
}

.seller-user-greet {
    font-weight: 600;
    color: #334155;
}

.seller-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.seller-stat-card {
    color: #fff;
    padding: 22px;
    border-radius: 6px;
}

.seller-stat-card.blue {
    background: #0f6bdc;
}

.seller-stat-card.green {
    background: #2fb400;
}

.seller-stat-card.orange {
    background: #ff6a00;
}

.seller-stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.seller-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.seller-dashboard-upper {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-panel {
    border: 1px solid #cfd8e3;
    background: #fff;
}

.dashboard-panel-title {
    padding: 14px 16px;
    border-bottom: 1px solid #cfd8e3;
    background: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
}

.dashboard-panel-body {
    padding: 16px;
}

.dashboard-right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-alert-list {
    padding: 14px;
}

.dashboard-alert-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-alert-item:last-child {
    border-bottom: none;
}

.dashboard-alert-thumb {
    width: 86px;
    height: 86px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.dashboard-alert-text strong {
    display: block;
    margin-bottom: 6px;
}

.dashboard-alert-text p {
    margin: 0;
    color: var(--muted);
}

.dashboard-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-action-btn {
    justify-content: center;
    min-height: 54px;
    font-size: 1.05rem;
}

.dashboard-full-width {
    margin-top: 6px;
}

.seller-mini-table th,
.seller-mini-table td,
.seller-orders-table th,
.seller-orders-table td {
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .seller-dashboard-upper {
        grid-template-columns: 1fr;
    }

    .seller-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seller-shell {
        grid-template-columns: 1fr;
    }

    .seller-sidebar {
        border-right: none;
        border-bottom: 1px solid #cfd8e3;
    }

    .seller-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.seller-products-page {
    background: #fff;
    border: 1px solid var(--border);
    min-height: 820px;
}

.product-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.product-toolbar-left {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.toolbar-input,
.toolbar-select {
    min-width: 220px;
    margin: 0 !important;
}

.product-add-btn {
    min-width: 180px;
    justify-content: center;
}

.seller-product-thumb {
    width: 78px;
    height: 78px;
    border: 1px solid #cfd8e3;
    background-size: cover;
    background-position: center;
}

.seller-products-table th,
.seller-products-table td {
    vertical-align: middle;
}

.seller-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #cfd8e3;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-toolbar-left {
        flex-direction: column;
    }

    .toolbar-input,
    .toolbar-select {
        width: 100%;
        min-width: auto;
    }

    .product-add-btn {
        width: 100%;
    }
}

.orders-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.btn-small {
    background: #1d4ed8;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* STATUS COLORS */
.status-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
}

.status-badge.processing { background: orange; }
.status-badge.shipped { background: blue; }
.status-badge.delivered { background: green; }
.status-badge.cancelled { background: red; }

.seller-orders-table th,
.seller-orders-table td {
    vertical-align: middle;
}

.seller-orders-table .button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.dashboard-panel .form-actions {
    margin-top: 14px;
}


.inventory-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.inventory-stat-card {
    color: #fff;
    padding: 18px;
    border-radius: 6px;
    text-align: center;
}

.inventory-stat-card.blue {
    background: #0f6bdc;
}

.inventory-stat-card.yellow {
    background: #d4c300;
}

.inventory-stat-card.orange {
    background: #ff6a00;
}

.inventory-stat-card.red {
    background: #ff2b2b;
}

.inventory-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.inventory-stat-label {
    font-size: 1.2rem;
    font-weight: 700;
}

.inventory-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #cfd8e3;
}

.inventory-header-row .dashboard-panel-title {
    border-bottom: none;
    flex: 1;
}

.inventory-table th,
.inventory-table td {
    vertical-align: middle;
}

.inventory-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inventory-action-cell .button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .inventory-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



@media (max-width: 640px) {
    .inventory-stat-grid {
        grid-template-columns: 1fr;
    }

    .inventory-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .inventory-header-actions {
        width: 100%;
    }

    .inventory-action-cell {
        flex-wrap: wrap;
        white-space: normal;
    }
}



.inventory-stat-link {
    text-decoration: none;
    display: block;
}

.inventory-stat-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.inventory-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.inventory-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.inventory-action-cell .button {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: auto;
}

.inventory-expiry-cell {
    white-space: nowrap;
}

.inventory-table td,
.inventory-table th {
    vertical-align: middle;
}







.admin-page {
    background: #fff;
    border: 1px solid var(--border);
    min-height: 900px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 100%;
}

.admin-sidebar {
    border-right: 1px solid #cfd8e3;
    background: #f8fafc;
    min-height: 100%;
}

.admin-sidebar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 24px 18px;
    border-bottom: 1px solid #cfd8e3;
    color: #2563eb;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.admin-sidebar-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.admin-sidebar-nav a.active,
.admin-sidebar-nav a:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.admin-main {
    padding: 22px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-topbar h1 {
    margin: 0;
}

.admin-user-greet {
    font-weight: 600;
    color: #334155;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-stat-card {
    color: #fff;
    padding: 18px;
    border-radius: 6px;
    text-align: center;
}

.admin-stat-card.blue {
    background: #0f6bdc;
}

.admin-stat-card.green {
    background: #22c55e;
}

.admin-stat-card.orange {
    background: #f59e0b;
}

.admin-stat-card.red {
    background: #ef4444;
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-stat-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-users-table th,
.admin-users-table td {
    vertical-align: middle;
}

.admin-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-action-cell .button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid #cfd8e3;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}


.admin-stat-link {
    text-decoration: none;
    display: block;
}

.admin-stat-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.admin-action-cell {
    align-items: center;
}

.admin-action-cell .muted {
    font-size: 0.9rem;
    white-space: nowrap;
}


.settings-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.settings-card {
    border: 1px solid #cfd8e3;
    background: #fff;
    margin-bottom: 20px;
}

.settings-card-title {
    padding: 16px 18px;
    border-bottom: 1px solid #cfd8e3;
    background: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 240px;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

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

.settings-row label {
    margin: 0;
    font-weight: 600;
}

.settings-row input[type="text"],
.settings-row input[type="email"],
.settings-row select {
    margin: 0 !important;
}

.settings-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    justify-self: start;
}

.settings-save-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.settings-save-btn {
    min-width: 220px;
    justify-content: center;
    min-height: 52px;
}

@media (max-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr;
    }
}

.home-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.home-product-actions .button {
    width: 100%;
    justify-content: center;
}

.category-count {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 4px;
}


/* CART ICON */
.cart-link {
    position: relative;
    font-size: 22px;
    text-decoration: none;
    margin-left: 15px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Small hover effect */
.cart-link:hover {
    transform: scale(1.1);
}

.cart-bounce {
    animation: bounceCart 0.3s ease;
}

@keyframes bounceCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}


.filters-box form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.filters-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filters-box input[type="number"] {
    margin-bottom: 14px;
}

.filters-box .muted {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
}


.listing-card-image-link {
    display: block;
    text-decoration: none;
}

.listing-card-image.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.listing-title-link {
    color: inherit;
    text-decoration: none;
}

.listing-title-link:hover {
    text-decoration: underline;
}

.listing-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.product-main-image.real-image,
.product-thumb,
.related-card-image.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.product-thumb {
    border: 2px solid transparent;
    cursor: pointer;
    appearance: none;
    background-color: #fff;
}

.product-thumb.active {
    border-color: #2563eb;
}

.product-tab {
    border: 1px solid #d1d5db;
    background: #2563eb;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.product-tab.active {
    background: #193ac9;
    border-color: #2563eb;
}

.product-tab-panels {
    margin-top: 0;
}

.product-tab-content {
    display: none;
    padding: 18px 0;
}

.product-tab-content.active {
    display: block;
}

.related-card-image-link {
    display: block;
    text-decoration: none;
}

.size-pill,
.colour-pill {
    cursor: pointer;
    background: #193ac9;
}

.size-pill.active {
    background: #011125;
    border-color: #2563eb;
    color: #1d4ed8;
    font-weight: 700;
}

.colour-pill.active {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.variant-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    border: 1px solid #d1d5db;
}

.variant-thumb-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

.related-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}



.cart-product-image-link {
    display: block;
    text-decoration: none;
}

.cart-product-image.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.cart-remove-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.cart-remove-link:hover {
    text-decoration: underline;
}




.cart-item-row {
    padding: 18px 10px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.cart-product-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-image-link {
    display: block;
    flex-shrink: 0;
}

.cart-product-image {
    width: 72px;
    height: 72px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cart-product-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.cart-variant-meta {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 0.92rem;
}

.cart-remove-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-remove-link:hover {
    text-decoration: underline;
}

.cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.cart-qty-btn:hover {
    background: #e5e7eb;
}

.cart-qty-value {
    min-width: 34px;
    text-align: center;
    font-weight: 600;
    display: inline-block;
}

.cart-summary-panel .summary-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    background: #fff;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.cart-empty-state h2 {
    margin-bottom: 8px;
}

.cart-empty-state p {
    color: #6b7280;
    margin-bottom: 18px;
}

.payment-preview-note.single {
    margin: 14px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    line-height: 1.5;
}

.checkout-submit-button {
    margin-top: 14px;
}

.order-item-image.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.order-items-header-row,
.order-item-row {
    display: grid;
    grid-template-columns: 1fr 120px 100px 120px;
    align-items: center;
    gap: 10px;
}

.order-items-header-row {
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-item-row {
    padding: 15px 0;
    border-bottom: 1px solid #f2f2f2;
}

/* Align numbers nicely */
.order-col-price,
.order-col-qty,
.order-col-total {
    text-align: center;
}

/* Product section */
.order-item-product {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.order-items-header-row,
.order-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 100px 120px;
    align-items: center;
    gap: 12px;
}

.order-items-header-row {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
}

.order-item-row {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.order-col-price,
.order-col-qty,
.order-col-total {
    text-align: center;
    font-weight: 600;
}

.order-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.order-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.order-item-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.order-item-info p {
    margin: 0;
    color: #6b7280;
}

.order-success-note {
    margin-top: 18px;
}

.order-success-actions {
    margin-top: 18px;
}

.order-meta-grid .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.home-feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.product-image-wrap.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.home-add-to-cart-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.home-add-to-cart-form .button {
    width: 100%;
}

.auto-hide-alert {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.auto-hide-alert.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}


.account-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px 0 6px;
}

.account-page-link {
    min-width: 38px;
    height: 38px;
    border: 1px solid #cfd8e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.account-page-link:hover {
    background: #f8fafc;
    text-decoration: none;
}

.account-page-link.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: #93c5fd;
}


.seller-dashboard-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px 0 6px;
}

.seller-page-link {
    min-width: 38px;
    height: 38px;
    border: 1px solid #cfd8e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.seller-page-link:hover {
    background: #f8fafc;
    text-decoration: none;
}

.seller-page-link.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: #93c5fd;
}

.product-toolbar-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 0 18px;
}

.seller-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seller-action-group .button {
    padding: 8px 12px;
    font-size: 0.88rem;
}

.seller-product-thumb.real-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.existing-image-preview {
    margin-bottom: 16px;
}

.existing-image-preview label {
    display: block;
    margin-bottom: 8px;
}

.variant-gallery-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 18px;
}

.variant-gallery-manage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.existing-image-preview {
    margin-bottom: 18px;
}

.info-page {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.info-page .card,
.info-page .card-soft {
    height: 100%;
}

.info-page form {
    margin-bottom: 0;
}

.review-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.brand-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    gap: 10px;
}

.main-nav a {
    padding: 8px 10px;
    white-space: nowrap;
}

.main-nav .logout-link {
    margin-left: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    align-self: center;
}

.header-inner {
    align-items: center;
}

.brand img,
.site-logo {
    max-height: 64px;
    width: auto;
    display: block;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .main-nav .logout-link {
        margin-left: 0;
    }
}