/* ============================================
   MarketStudent - Main Stylesheet
   Platform E-Commerce Mahasiswa
   ============================================ */

/* ── Variables ── */
:root {
    --primary: #065A82;
    --primary-dark: #061B45;
    --primary-light: #0789A3;
    --secondary: #0789A3;
    --accent: #061B45;
    --bg: #F3F8FF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #E6F2FF;
    --bg-input: #F6FAFF;
    --text: #061B45;
    --text-muted: #2A5580;
    --text-light: #5A8AB5;
    --border: #C7D8F0;
    --success: #7BC8A4;
    --warning: #F5D08A;
    --danger: #E88B8B;
    --info: #0789A3;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(6, 27, 69, 0.18);
    --shadow-sm: 0 2px 8px rgba(6, 27, 69, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 245, 238, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.logo:hover {
    color: var(--text);
}

.nav-search {
    flex: 1;
    max-width: 500px;
}

.nav-search form {
    display: flex;
    gap: 0;
}

.nav-search input {
    flex: 1;
    padding: .6rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    outline: none;
}

.nav-search input:focus {
    border-color: var(--primary);
}

.nav-search button {
    padding: .6rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: white;
    cursor: pointer;
    font-size: .9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--text);
    padding: .3rem;
}

.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: .65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .4rem .8rem .4rem .4rem;
    color: var(--text);
    cursor: pointer;
    font-size: .85rem;
    transition: var(--transition);
}

.nav-user-btn:hover {
    border-color: var(--primary);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-avatar-placeholder {
    font-size: 1.2rem;
}

.nav-username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: .7rem;
    color: var(--text-muted);
}

/* Dropdown - click-based toggle */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(11, 45, 114, 0.18);
    overflow: hidden;
    animation: slideDown .2s ease;
    z-index: 1000;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.2rem;
    color: var(--text);
    font-size: .85rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-menu a:hover i {
    color: var(--primary);
}

.dropdown-danger {
    color: var(--danger) !important;
}

.dropdown-danger i {
    color: var(--danger) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border);
    margin: .2rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem .8rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-card-hover);
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll effect */
.navbar.scrolled {
    padding: .4rem 0;
    box-shadow: 0 4px 20px rgba(11, 45, 114, 0.15);
}

/* Scroll animation classes */
.animate-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 146, 194, 0.4);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    color: white;
    filter: brightness(1.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    color: white;
    filter: brightness(1.1);
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-primary-sm,
.btn-outline-sm {
    padding: .5rem 1rem;
    font-size: .8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
}

.btn-primary-sm:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline-sm {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline-sm:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-sm {
    padding: .4rem .8rem;
    font-size: .78rem;
}

.btn-lg {
    padding: .9rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ── Alerts ── */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    margin: 1rem auto;
    max-width: 1200px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    animation: slideDown .3s ease;
}

.alert a {
    font-weight: 600;
    text-decoration: underline;
}

.alert-success {
    background: rgba(123, 200, 164, .15);
    border: 1px solid rgba(123, 200, 164, .4);
    color: #3D8B63;
}

.alert-danger {
    background: rgba(232, 139, 139, .15);
    border: 1px solid rgba(232, 139, 139, .4);
    color: #C05050;
}

.alert-warning {
    background: rgba(245, 208, 138, .2);
    border: 1px solid rgba(245, 208, 138, .5);
    color: #9A7020;
}

.alert-info {
    background: rgba(168, 200, 240, .2);
    border: 1px solid rgba(168, 200, 240, .5);
    color: #4A80C0;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

.alert code {
    background: rgba(9, 146, 194, .15);
    padding: .2rem .5rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── Main Content ── */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ── Page Header ── */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.page-header p {
    color: var(--text-muted);
    margin-top: .3rem;
}

.page-header.with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Auth Pages ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: .3rem;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.auth-footer a {
    font-weight: 600;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .85rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 146, 194, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-hint {
    color: var(--text-light);
    font-size: .78rem;
    margin-top: .3rem;
    display: block;
}

.form-link {
    font-size: .82rem;
    float: right;
    margin-top: .3rem;
}

.input-disabled {
    opacity: .6;
    cursor: not-allowed;
}

.input-code {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 700;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .flex-2 {
    grid-column: span 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ── Checkbox ── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label a {
    font-weight: 600;
    text-decoration: underline;
}

/* ── Terms Page ── */
.terms-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.terms-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .8rem;
    color: var(--primary-light);
}

.terms-section p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: .5rem;
}

.terms-section ul {
    list-style: none;
    padding: 0;
}

.terms-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.terms-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.terms-notice {
    margin-top: 2rem;
    padding: 1.2rem;
    background: rgba(9, 146, 194, 0.1);
    border: 1px solid rgba(9, 146, 194, 0.3);
    border-radius: var(--radius-sm);
    text-align: center;
}

.terms-notice p {
    font-size: .9rem;
    color: var(--primary-dark);
}

/* ── Modal Popup ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(74, 48, 64, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.modal-open {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(11, 45, 114, 0.2);
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: .2rem .5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body .terms-section {
    margin-bottom: 1.2rem;
}

.modal-body .terms-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--primary-dark);
}

.modal-body .terms-section p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-body .terms-section ul {
    list-style: none;
    padding: 0;
}

.modal-body .terms-section ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: .3rem;
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-body .terms-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Occupation Selector ── */
.occupation-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.occupation-option {
    flex: 1;
    cursor: pointer;
}

.occupation-option input {
    display: none;
}

.occupation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.2rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}

.occupation-option input:checked+.occupation-card {
    border-color: var(--primary);
    background: rgba(9, 146, 194, 0.1);
}

.occ-icon {
    font-size: 2rem;
}

.occ-label {
    font-weight: 600;
    font-size: .9rem;
}

.conditional-fields {
    animation: slideDown .3s ease;
}

/* ── Avatar Upload ── */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-icon i {
    color: var(--primary-dark);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Dashboard ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dash-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dash-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
}

.action-card:hover {
    border-color: var(--primary);
    background: rgba(9, 146, 194, 0.08);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
}

.action-icon i {
    color: var(--primary-dark);
}

/* ── Tables ── */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.table th {
    text-align: left;
    padding: .8rem 1rem;
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
}

.table tr:hover td {
    background: rgba(9, 146, 194, 0.04);
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.table-avatar-placeholder {
    font-size: 1.3rem;
}

.member-info {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.row-banned td {
    opacity: .5;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 184, 148, .15);
    color: #55EFC4;
}

.badge-warning {
    background: rgba(253, 203, 110, .15);
    color: #FFEAA7;
}

.badge-danger {
    background: rgba(225, 112, 85, .15);
    color: #FAB1A0;
}

.badge-info {
    background: rgba(116, 185, 255, .15);
    color: #74B9FF;
}

.badge-primary {
    background: rgba(9, 146, 194, .15);
    color: var(--primary-light);
}

.badge-secondary {
    background: rgba(155, 155, 180, .15);
    color: var(--text-muted);
}

/* ── Product Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .8rem;
}

.products-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    color: var(--text);
    max-width: 200px;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(9, 146, 194, 0.15);
    color: var(--text);
}

.pc-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-input);
}

.pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .pc-image img {
    transform: scale(1.05);
}

.pc-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.pc-category {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: .2rem .5rem;
    border-radius: 4px;
    font-size: .7rem;
    color: white;
}

.pc-info {
    padding: .6rem .7rem;
}

.pc-title {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.pc-price {
    font-size: .85rem;
    font-weight: 800;
    color: var(--primary-light);
}

.pc-seller {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Product Manage Grid ── */
.product-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.product-manage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-manage-card.inactive {
    opacity: .6;
}

.pm-image {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: var(--bg-input);
}

.pm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.pm-badge-inactive {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: var(--danger);
    color: white;
    padding: .2rem .5rem;
    border-radius: 4px;
    font-size: .7rem;
}

.pm-info {
    padding: 1rem;
}

.pm-info h3 {
    font-size: .95rem;
    margin-bottom: .3rem;
}

.pm-price {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .3rem;
}

.pm-meta {
    font-size: .78rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.pm-actions {
    padding: .8rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── Product Detail ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
}

.pd-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    max-height: 500px;
}

.pd-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-no-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

.pd-category {
    display: inline-block;
    background: rgba(9, 146, 194, 0.15);
    color: var(--primary-light);
    padding: .3rem .8rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.pd-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.pd-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.pd-meta {
    display: flex;
    gap: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pd-description {
    margin-bottom: 1.5rem;
}

.pd-description h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.pd-description p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.pd-seller-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pd-seller-info {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.pd-seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pd-seller-avatar-placeholder {
    font-size: 1.5rem;
}

.pd-seller-info strong {
    display: block;
    font-size: .9rem;
}

.pd-seller-info small {
    color: var(--text-muted);
    font-size: .78rem;
}

.pd-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ── Beautified Product Detail Actions ── */
.pd-add-cart {
    margin-top: 1.5rem;
}

.pd-action-group {
    margin-bottom: 1rem;
}

.pd-qty-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-input);
    color: var(--text);
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-inner-spin-button {
    display: none;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(6, 90, 130, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 90, 130, 0.4);
    color: white;
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-wa-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .85rem 2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: .8rem;
}

.btn-wa-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-wa-sm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-wa-sm:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-1px);
}

.pd-stock-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.2rem;
    margin-top: 1.5rem;
    background: rgba(232, 139, 139, .1);
    border: 2px dashed var(--danger);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 1rem;
    font-weight: 600;
}

.pd-stock-empty i {
    font-size: 1.5rem;
}

/* ── Carousel Product Image ── */
.carousel-slide-content.has-image {
    padding-right: 0;
}

.carousel-product-img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .carousel-product-img {
        width: 120px;
    }
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.quantity-input button:hover {
    background: var(--primary);
    color: white;
}

.quantity-input input {
    width: 50px;
    text-align: center;
    border: none;
    background: var(--bg-card);
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-inner-spin-button {
    display: none;
}

.related-products {
    margin: 3rem 0;
}

.related-products h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.img-preview {
    max-width: 200px;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
}

.current-image {
    margin-bottom: 1rem;
}

.current-image small {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
}

/* ── Cart ── */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .8rem;
}

.ci-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

.ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ci-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-info {
    flex: 1;
}

.ci-info h3 {
    font-size: .9rem;
    font-weight: 600;
}

.ci-seller {
    font-size: .78rem;
    color: var(--text-muted);
}

.ci-price {
    color: var(--primary-light);
    font-weight: 600;
    font-size: .85rem;
    margin-top: .2rem;
}

.ci-quantity input {
    width: 60px;
    padding: .4rem;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .85rem;
}

.ci-subtotal {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
}

.ci-remove {
    color: var(--danger);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ci-remove:hover {
    transform: scale(1.2);
}

/* ── Summary Box ── */
.cart-summary,
.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.cart-summary h3,
.checkout-summary h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: .5rem;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
}

/* ── Checkout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem;
    border-bottom: 1px solid var(--border);
}

.checkout-item .ci-image {
    width: 60px;
    height: 60px;
}

.checkout-item .ci-info h4 {
    font-size: .85rem;
}

.checkout-address {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.checkout-address h3 {
    font-size: .95rem;
    margin-bottom: .5rem;
}

/* ── Payment Page ── */
.payment-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.payment-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.payment-order-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.payment-total {
    font-size: 1.3rem;
    margin-top: .3rem;
}

.payment-steps {
    margin-bottom: 2rem;
}

.payment-steps h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.payment-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .8rem;
    font-size: .9rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.payment-upload-form {
    margin-top: 1.5rem;
}

.payment-qris {
    text-align: center;
}

.payment-qris h3 {
    margin-bottom: 1rem;
}

.qris-box {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    display: inline-block;
}

.qris-placeholder {
    color: #333;
}

.qris-icon {
    font-size: 4rem;
    margin-bottom: .5rem;
}

.qris-note {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Orders List ── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
}

.order-number {
    font-weight: 700;
    font-size: .9rem;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-product h4 {
    font-size: .9rem;
}

.order-product p {
    font-size: .8rem;
    color: var(--text-muted);
}

.order-buyer {
    font-size: .78rem !important;
}

.order-total {
    text-align: right;
}

.order-total strong {
    display: block;
    font-size: 1rem;
}

.order-total small {
    color: var(--text-muted);
    font-size: .78rem;
}

.order-actions {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: .5rem;
}

/* ── Admin Verify ── */
.verify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.2rem;
}

.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.vc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vc-buyer {
    margin-bottom: 1rem;
    font-size: .85rem;
}

.vc-buyer p {
    margin-bottom: .2rem;
}

.vc-amount {
    margin-bottom: 1rem;
}

.vc-proof {
    margin-bottom: 1rem;
}

.vc-proof h4 {
    font-size: .85rem;
    margin-bottom: .5rem;
}

.proof-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.vc-actions {
    display: flex;
    gap: .8rem;
}

.vc-actions .btn {
    flex: 1;
}

.vc-date {
    color: var(--text-light);
}

/* ── Filter Bar ── */
.filter-bar,
.market-filters {
    display: flex;
    gap: .8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-cats {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    padding: .4rem 1rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-sort select {
    padding: .4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: .8rem;
    cursor: pointer;
}

.search-result-text {
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.search-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: .6rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: .3rem;
    margin-top: 2rem;
}

.page-link {
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: .5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ── Hero Landing ── */
.hero-landing {
    padding: 4rem 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(6, 90, 130, 0.15), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(253, 121, 168, 0.1), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-carousel-wrapper {
    width: 100%;
}

.hero-carousel-wrapper .carousel-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-carousel-wrapper .carousel-track {
    height: 280px;
}

.carousel-slide-content {
    text-decoration: none;
}

.carousel-product-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(4px);
}

.hero-badge {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 50px;
    background: rgba(9, 146, 194, 0.15);
    border: 1px solid rgba(9, 146, 194, 0.3);
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ── Carousel Slider ── */
.carousel-section {
    padding: 2rem 0;
}

.carousel-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-track {
    position: relative;
    height: 200px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 2.5rem 3rem;
    color: white;
}

.carousel-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.carousel-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .carousel-track {
        height: 160px;
    }

    .carousel-slide-content {
        padding: 1.5rem 2rem;
    }

    .carousel-text h2 {
        font-size: 1.3rem;
    }

    .carousel-text p {
        font-size: 0.85rem;
    }

    .carousel-icon {
        font-size: 2.5rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ── Landing Sections ── */
.landing-stats {
    padding: 3rem 0;
}

.landing-stats .stat-card {
    background: var(--bg-card);
    text-align: center;
    flex-direction: column;
}

.landing-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.landing-products {
    padding: 3rem 0;
}

.landing-products h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.landing-features {
    padding: 4rem 0;
}

.landing-features h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.feature-card p {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Market Header ── */
.market-header {
    margin-bottom: 1.5rem;
}

.market-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

.market-header p {
    color: var(--text-muted);
}

/* ── Footer ── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    font-size: .85rem;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: .9rem;
    margin-bottom: .8rem;
}

.footer-links a,
.footer-links p {
    display: block;
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: .4rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-light);
}

/* ── Animations ── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-search {
        display: none;
    }

    .nav-username {
        display: none;
    }

    .dropdown-arrow {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-carousel-wrapper .carousel-track {
        height: 200px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .payment-page {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .verify-grid {
        grid-template-columns: 1fr;
    }

    .order-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-total {
        text-align: left;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .occupation-selector {
        flex-direction: column;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .ci-subtotal {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: .8rem;
    }

    .pc-info {
        padding: .7rem;
    }

    .pc-title {
        font-size: .8rem;
    }

    .pc-price {
        font-size: .9rem;
    }
}

/* ── Admin Sub Navigation ── */
.admin-subnav-container {
    background: rgba(255, 245, 238, 0.95);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    position: sticky;
    top: 56px;
    z-index: 90;
    backdrop-filter: blur(15px);
}

.admin-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 1rem;
}

.admin-subnav-label {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    white-space: nowrap;
}

.admin-subnav-links {
    display: flex;
    gap: 0.25rem;
    height: 100%;
}

.admin-subnav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.admin-subnav-links a:hover {
    color: var(--text);
    background: rgba(9, 146, 194, 0.08);
}

.admin-subnav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.admin-subnav-exit {
    display: flex;
}

/* ── Data Table (admin) ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.data-table th {
    text-align: left;
    padding: .8rem 1rem;
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.data-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: rgba(9, 146, 194, 0.04);
}

/* ── Dashboard section ── */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.dashboard-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ── Activity list ── */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.activity-item {
    padding: .8rem;
    border-left: 3px solid var(--primary);
    background: var(--bg-input);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.activity-item .badge {
    margin-left: .5rem;
}

.activity-item p {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .3rem;
}

.activity-item small {
    font-size: .75rem;
}

/* ── Verify list ── */
.verify-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.verify-info p {
    margin-bottom: .3rem;
    font-size: .9rem;
}

.verify-proof img {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.verify-actions {
    display: flex;
    gap: .8rem;
    margin-top: 1rem;
}

.admin-actions {
    display: flex;
    gap: .8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ── Highlight number ── */
.highlight {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

/* ── Hide on mobile ── */
.hide-mobile {
    display: inline;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        gap: .5rem;
    }

    .nav-actions.mobile-open {
        display: flex;
    }

    .admin-subnav-container {
        top: 56px;
        overflow-x: auto;
    }

    .admin-subnav-label span {
        display: none;
    }

    .admin-subnav-links a {
        padding: 0 0.7rem;
        font-size: .8rem;
    }

    .verify-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Cookie Consent Banner ── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(11, 45, 114, 0.15);
    z-index: 9999;
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 260px;
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: var(--primary-dark);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent-actions {
        justify-content: center;
    }
}

/* ── WhatsApp Buttons ── */
.btn-wa-sm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-wa-sm:hover {
    background: #1DA851;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.btn-wa-sm i {
    font-size: 1rem;
}

.btn-wa-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.5rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: .6rem;
    width: 100%;
}

.btn-wa-chat:hover {
    background: #1DA851;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-wa-chat i {
    font-size: 1.2rem;
}