:root {
    --primary: #d00000;
    --primary-dark: #9f0404;
    --secondary: #ff4d6d;
    --secondary-soft: #ffe5e8;
    --dark: #2d0a0a;
    --dark-soft: #7a1a1a;
    --light: #fff3f4;
    --white: #ffffff;
    --border: #f5d7d8;
    --shadow: 0 18px 40px rgba(208, 0, 0, 0.12);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(180deg, #fff9f6 0%, #fff4f0 100%);
    color: var(--dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 90, 60, 0.12);
    color: var(--primary-dark);
}

.cart-badge {
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff4d6d;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
}

.notification-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.notif-card {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-left-width: 4px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1.35rem 1.4rem;
}

.notif-card.order {
    border-left-color: #ef4444;
    background: rgba(254, 228, 226, 0.8);
}

.notif-card.info {
    border-left-color: #2563eb;
    background: rgba(219, 234, 254, 0.8);
}

.notif-card.promo {
    border-left-color: #f59e0b;
    background: rgba(255, 247, 237, 0.85);
}

.notif-card.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.notif-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--dark);
}

.notif-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.notif-date {
    display: block;
    margin-top: 0.85rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.no-notifications {
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    color: #6b7280;
    background: rgba(248, 250, 252, 0.75);
}

.notification-card-grid {
    display: grid;
    gap: 1rem;
}

.notif-card {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notif-card.active {
    border-color: #f97316;
}

.notif-card.read {
    background: #f8fafc;
}

.notif-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notif-card-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.notif-card-title h4 {
    margin: 0;
    font-size: 1.15rem;
}

.notif-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    font-size: 1.2rem;
}

.notif-card p {
    margin: 0;
    line-height: 1.75;
    color: #4b5563;
}

.notif-card-header small,
.notif-card small {
    color: #6b7280;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge.active {
    background: #fef9c3;
    color: #b45309;
}

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

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.notification-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
}

.stats-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.stats-label {
    color: #6b7280;
    font-size: 0.95rem;
}

.stats-divider {
    color: rgba(107, 114, 128, 0.8);
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.badge-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-success {
    background: #dcfce7;
    color: #047857;
}
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.notif-type.order {
    background: #fee2e2;
    color: #b91c1c;
}

.notif-type.success {
    background: #dcfce7;
    color: #047857;
}

.notif-type.promo {
    background: #fef3c7;
    color: #92400e;
}

.notif-type.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.active {
    background: #fef9c3;
    color: #b45309;
}

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

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-heading h3 {
    margin: 0;
    font-size: 1.5rem;
}

.page-heading .section-subtitle {
    margin: 0.5rem 0 0;
    color: #475569;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-success {
    background: #dcfce7;
    color: #047857;
}

.profile-card-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.profile-summary-card,
.profile-form-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    padding: 1.8rem;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.profile-summary-card h4 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.profile-meta,
.profile-note {
    margin: 0 0 0.85rem;
    color: #475569;
    line-height: 1.6;
}

.profile-note {
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

@media (max-width: 980px) {
    .profile-card-grid {
        grid-template-columns: 1fr;
    }
    .page-heading {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #c60000 0%, #ed1c24 100%);
    color: white;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.8rem;
    position: relative;
}

.hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
}

.hero-info {
    display: grid;
    gap: 1.4rem;
}

.hero h1 {
    font-size: clamp(3rem, 4.2vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-image {
    width: 100%;
    max-width: 420px;
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255,255,255,0.22);
}

.hero-visual-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

.hero-visual-badge {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-visual-card h2 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    color: white;
}

.hero-visual-card p,
.hero-visual-meta span,
.hero-visual-list div {
    color: rgba(255,255,255,0.92);
}

.hero-visual-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.hero-visual-meta span,
.hero-visual-list div {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.hero-visual-list {
    display: grid;
    gap: 0.75rem;
}

.hero::after {
    content: '';
    position: absolute;
    right: -90px;
    top: 12%;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.hero-meta-item {
    background: rgba(255, 255, 255, 0.18);
    padding: 1rem 1rem;
    border-radius: 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.hero-meta-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.hero-meta-label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

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


.hero-meta-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}


.hero-highlight h3 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.hero-highlight ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: rgba(255,255,255,0.95);
}

.hero-highlight li::before {
    content: '✓';
    color: #fff;
    margin-right: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--dark);
    border: 1px solid rgba(229, 231, 235, 1);
}

.btn-success {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: #b91c1c;
    color: white;
}

.btn-warning {
    background: var(--secondary);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-intro-sm {
    margin-top: 2rem;
}

.section-title {
    font-size: clamp(1.8rem, 2.2vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-soft);
    margin: 0 auto 1.75rem;
    max-width: 720px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    justify-items: center;
}

.product-card {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(229, 231, 235, 0.85);
}

.product-card-link {
    color: inherit;
    text-decoration: none;
}

.product-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #ffe3d3 0%, #f8d7b8 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.product-image-link {
    display: block;
    overflow: hidden;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    min-height: 220px;
    background: linear-gradient(135deg, #ffe3d3 0%, #f8d7b8 100%);
}
.product-card {
    overflow: hidden;
}

.product-info {
    padding: 1.15rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.product-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.product-name-link {
    color: inherit;
    text-decoration: none;
}

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

.product-price {
    color: var(--primary);
    font-size: 1.12rem;
    font-weight: 800;
}

.product-meta {
    color: var(--dark-soft);
    font-size: 0.95rem;
    margin-top: auto;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.product-actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    min-width: 100px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: fit-content;
    background: rgba(15, 23, 42, 0.04);
    color: var(--dark);
}

.product-stock span {
    font-weight: 800;
}

.product-stock.stock-available {
    background: #eafaf1;
    color: #175c36;
}

.product-stock.stock-out {
    background: #fdeaea;
    color: #9b1c1c;
}

.product-action-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.product-action-form .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    min-width: 85px;
}

.product-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.55rem;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.status-available {
    background: #eafaf1;
    color: #1e7d4b;
}

.status-out {
    background: #fdecea;
    color: #b42318;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card,
.info-card,
.page-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 1.4rem;
}

.feature-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--dark-soft);
    font-size: 0.95rem;
}

.section-center-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.testimonial-card p {
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-card strong {
    color: var(--dark-soft);
    display: block;
}

.page-shell {
    max-width: 900px;
    margin: 0 auto;
}

.page-card {
    padding: 2rem;
}

.page-card h1,
.page-card h2 {
    margin-bottom: 0.75rem;
}

.page-card p {
    color: var(--dark-soft);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.info-card {
    padding: 1.4rem;
    text-align: center;
}

.info-card .icon {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.detail-image-wrap {
    background: white;
    border-radius: 28px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.detail-image {
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
    width: 100%;
    display: block;
}

.detail-page {
    padding-top: 1rem;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-soft);
    font-size: 0.95rem;
}

.detail-breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.detail-header {
    display: grid;
    gap: 1rem;
}

.detail-category {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 90, 60, 0.12);
    color: var(--primary);
    font-weight: 700;
    width: fit-content;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.25rem;
}

.detail-price {
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
}

.detail-stock {
    color: var(--dark-soft);
    font-weight: 600;
}

.detail-description {
    color: var(--dark-soft);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.detail-note {
    background: rgba(255, 235, 218, 0.45);
    border-left: 4px solid rgba(255, 90, 60, 0.6);
    padding: 1rem 1.15rem;
    border-radius: 16px;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.detail-actions {
    display: grid;
    gap: 1rem;
}

.detail-quantity {
    max-width: 220px;
}

.detail-status.status-available {
    background: #eafaf1;
    color: #1e7d4b;
}

.detail-status.status-out {
    background: #fdecea;
    color: #b42318;
}

.detail-meta {
    color: var(--dark-soft);
    margin-bottom: 1rem;
}

.detail-price {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-description {
    color: var(--dark-soft);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cart */
.payment-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.receipt-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
}

.receipt-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}

.receipt-title {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--dark);
}

.receipt-meta {
    color: var(--dark-soft);
    line-height: 1.6;
}

.receipt-company {
    text-align: right;
}

.receipt-company strong {
    display: block;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.receipt-table th,
.receipt-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.receipt-table th {
    background: #f9fafb;
    color: var(--dark);
    font-weight: 700;
}

.receipt-total {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.receipt-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--dark-soft);
    font-style: italic;
}

@media print {
    .navbar,
    .hero-actions,
    .btn,
    .footer {
        display: none !important;
    }

    body {
        background: white;
    }

    .receipt-card {
        box-shadow: none;
        margin: 0;
        border: none;
        max-width: 100%;
        padding: 0;
    }

    .receipt-header {
        border-bottom-style: solid;
    }
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.payment-option {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.payment-option:hover,
.payment-option.active {
    border-color: var(--primary);
    background: rgba(255, 90, 60, 0.08);
    box-shadow: 0 10px 25px rgba(255, 90, 60, 0.16);
}

.payment-option input {
    accent-color: var(--primary);
}

.payment-option span {
    display: block;
}

.payment-option strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.payment-option small {
    color: var(--dark-soft);
    font-size: 0.95rem;
}

.cart-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.cart-table th,
.cart-table td {
    padding: 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.cart-table tr:hover td {
    background: rgba(255, 230, 230, 0.7);
}

.qty-input {
    width: 60px;
    padding: 0.45rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cart-summary {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-summary h3 {
    margin: 0;
    color: var(--dark);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Admin */
.admin-body {
    min-height: 100vh;
    background: #f5f6fa;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    padding: 2rem 0;
}

.sidebar-header {
    text-align: center;
    padding: 0 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li a {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: #f5f6fa;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.topbar-title {
    min-width: 0;
    flex: 1;
}

.topbar-title h2 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
    color: var(--dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-item-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-actions .btn,
.topbar-button {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    white-space: nowrap;
}

.topbar-icon,
.topbar-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    background: white !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.topbar-icon:hover,
.topbar-avatar:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16) !important;
}

.topbar-avatar {
    background: var(--primary) !important;
    color: white !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

.topbar-icon .icon-bell {
    font-size: 1.3rem;
}

.topbar-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #d00000;
    color: white;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.data-table th {
    background: var(--dark);
    color: white;
}

/* Table tweaks for admin product list */
.data-table th.col-no,
.data-table td.col-no {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}
.data-table th.col-photo,
.data-table td.col-photo {
    width: 110px;
    text-align: center;
    vertical-align: middle;
}
.data-table td.col-photo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.data-table td.col-photo img.thumbnail {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block;
    margin: 0 auto;
}
.data-table td.col-photo { padding: 0.6rem 0.8rem; }
.data-table th.col-name,
.data-table td.col-name {
    width: 220px;
    vertical-align: middle;
}
.data-table th.col-desc,
.data-table td.col-desc {
    vertical-align: middle;
}
.data-table td.col-desc {
    max-width: 420px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.data-table th.col-price,
.data-table td.col-price {
    width: 140px;
    text-align: right;
    vertical-align: middle;
}
.data-table td.col-price .price-cell {
    white-space: nowrap;
    display: inline-block;
    text-align: right;
    min-width: 110px;
    padding-right: 0.25rem;
    font-weight: 700;
    color: var(--primary);
    overflow: visible;
}
.data-table { table-layout: fixed; }
.data-table th.col-stock,
.data-table td.col-stock {
    width: 90px;
    text-align: center;
}
.data-table th.col-status,
.data-table td.col-status {
    width: 110px;
    text-align: center;
}
.data-table th.col-action,
.data-table td.col-action {
    width: 140px;
    text-align: center;
}
.data-table .action-buttons .btn {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    margin: 4px 0;
}

.notifications-table .notif-row.active {
    background: #fff7e6;
}
.notifications-table .notif-row.read {
    background: #fbfbfd;
}
.notifications-table .notif-title {
    width: 220px;
}
.notifications-table .notif-message {
    max-width: 400px;
}
.notifications-table .message-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4rem;
    color: #4b5563;
}
.notifications-table .notif-type,
.notifications-table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.notifications-table .notif-type.order {
    background: #fff1f0;
    color: #b91c1c;
}
.notifications-table .notif-type.success {
    background: #d1fae5;
    color: #047857;
}
.notifications-table .notif-type.promo {
    background: #fef3c7;
    color: #92400e;
}
.notifications-table .notif-type.info {
    background: #dbeafe;
    color: #1d4ed8;
}
.notifications-table .status-badge.active {
    background: #d1fae5;
    color: #166534;
}
.notifications-table .status-badge.read {
    background: #e2e8f0;
    color: #334155;
}
.notifications-table .notif-date {
    display: block;
    color: #6b7280;
}
.btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
}
.data-table tr td, .data-table tr th { vertical-align: middle; }

@media (max-width: 800px) {
    .data-table td.col-desc { -webkit-line-clamp: 3; }
    .data-table th.col-name, .data-table td.col-name { width: 160px; }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #eafaf1;
    color: #18794e;
    border: 1px solid #ccebd7;
}

.alert-danger {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f7c7c1;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem;
}

.login-box {
    background: white;
    padding: 2.2rem;
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.4rem;
    color: var(--dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.footer h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: white;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .hero {
        padding: 3.5rem 1rem;
    }

    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 100%;
    }

    .container {
        padding: 1.2rem 1rem 2.5rem;
    }

    .admin-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .admin-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}
