/* =============================================
   PANDA E-COMMERCE THEME
   Black & White with clean modern aesthetic
   ============================================= */

:root {
    --panda-black: #111111;
    --panda-dark: #1a1a1a;
    --panda-charcoal: #2d2d2d;
    --panda-gray: #6c757d;
    --panda-gray-light: #adb5bd;
    --panda-border: #e5e5e5;
    --panda-light: #f5f5f5;
    --panda-lighter: #fafafa;
    --panda-white: #ffffff;
    --panda-danger: #e74c3c;
    --panda-success: #27ae60;
    --panda-warning: #f39c12;
    --panda-info: #3498db;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--panda-dark);
    background-color: var(--panda-white);
    line-height: 1.6;
}

a {
    color: var(--panda-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--panda-black);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-panda {
    background-color: var(--panda-black);
    color: var(--panda-white);
    border: 2px solid var(--panda-black);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-panda:hover {
    background-color: var(--panda-charcoal);
    border-color: var(--panda-charcoal);
    color: var(--panda-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-panda-outline {
    background-color: transparent;
    color: var(--panda-black);
    border: 2px solid var(--panda-black);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-panda-outline:hover {
    background-color: var(--panda-black);
    color: var(--panda-white);
    transform: translateY(-1px);
}

.btn-panda-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-panda-danger {
    background-color: transparent;
    color: var(--panda-danger);
    border: 2px solid var(--panda-danger);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-panda-danger:hover {
    background-color: var(--panda-danger);
    color: var(--panda-white);
}

.btn-panda-success {
    background-color: transparent;
    color: var(--panda-success);
    border: 2px solid var(--panda-success);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-panda-white {
    background-color: var(--panda-white);
    color: var(--panda-black);
    border: 2px solid var(--panda-white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-panda-white:hover {
    background-color: var(--panda-light);
    color: var(--panda-black);
    transform: translateY(-1px);
}

/* =============================================
   ADMIN SIDEBAR LAYOUT
   ============================================= */

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

.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--panda-black);
    color: var(--panda-white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.admin-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--panda-white);
}

.admin-sidebar-brand .brand-badge {
    background-color: rgba(255,255,255,0.15);
    color: var(--panda-white);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.admin-sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.admin-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-nav .nav-link:hover {
    color: var(--panda-white);
    background-color: rgba(255,255,255,0.08);
}

.admin-sidebar-nav .nav-link.active {
    color: var(--panda-white);
    background-color: rgba(255,255,255,0.12);
    border-left-color: var(--panda-white);
}

.admin-sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.admin-sidebar-footer .nav-link:hover {
    color: var(--panda-danger);
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--panda-light);
    min-height: 100vh;
}

.admin-topbar {
    background-color: var(--panda-white);
    height: var(--topbar-height);
    border-bottom: 1px solid var(--panda-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar .admin-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--panda-dark);
}

.admin-topbar .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--panda-gray);
    font-size: 0.88rem;
}

.admin-topbar .admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--panda-black);
    color: var(--panda-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-main {
    padding: 32px;
}

/* =============================================
   ADMIN CARDS & STATS
   ============================================= */

.stat-card {
    background-color: var(--panda-white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--panda-border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stat-card .stat-icon.bg-dark {
    background-color: var(--panda-black);
    color: var(--panda-white);
}

.stat-card .stat-icon.bg-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--panda-success);
}

.stat-card .stat-icon.bg-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--panda-warning);
}

.stat-card .stat-icon.bg-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--panda-info);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--panda-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--panda-gray);
    font-weight: 500;
}

/* =============================================
   ADMIN TABLE
   ============================================= */

.panda-card {
    background-color: var(--panda-white);
    border-radius: 12px;
    border: 1px solid var(--panda-border);
    overflow: hidden;
}

.panda-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--panda-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.panda-card-header h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.05rem;
}

.panda-card-body {
    padding: 24px;
}

.panda-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.panda-table thead th {
    background-color: var(--panda-lighter);
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--panda-gray);
    border-bottom: 1px solid var(--panda-border);
    white-space: nowrap;
}

.panda-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--panda-border);
    vertical-align: middle;
    font-size: 0.92rem;
}

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

.panda-table tbody tr:hover {
    background-color: var(--panda-lighter);
}

.panda-table .product-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--panda-border);
}

.panda-table .product-name {
    font-weight: 600;
    color: var(--panda-dark);
}

.panda-table .product-desc {
    font-size: 0.82rem;
    color: var(--panda-gray);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panda-table .price {
    font-weight: 700;
    color: var(--panda-dark);
}

.panda-table .stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--panda-success);
}

.stock-badge.low-stock {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--panda-warning);
}

.stock-badge.out-of-stock {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--panda-danger);
}

.panda-table .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   ADMIN FORMS
   ============================================= */

.panda-form .form-group {
    margin-bottom: 20px;
}

.panda-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--panda-dark);
    margin-bottom: 6px;
}

.panda-form .form-control {
    border: 2px solid var(--panda-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: var(--transition);
    color: var(--panda-dark);
}

.panda-form .form-control:focus {
    border-color: var(--panda-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
    outline: none;
}

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

.panda-form .form-text {
    font-size: 0.8rem;
    color: var(--panda-gray);
    margin-top: 4px;
}

.panda-form .validation-message,
.panda-form .field-validation-error {
    color: var(--panda-danger);
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

.image-upload-area {
    border: 2px dashed var(--panda-border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--panda-lighter);
}

.image-upload-area:hover {
    border-color: var(--panda-gray-light);
    background-color: var(--panda-light);
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--panda-gray-light);
    margin-bottom: 8px;
}

.image-upload-area p {
    color: var(--panda-gray);
    font-size: 0.88rem;
    margin: 0;
}

.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.image-card {
    border: 2px solid var(--panda-border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.image-card:hover {
    border-color: var(--panda-gray-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-card.is-main {
    border-color: var(--panda-black);
}

.image-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.image-card .image-actions {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.image-card .main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--panda-black);
    color: var(--panda-white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   CUSTOMER NAVBAR
   ============================================= */

.panda-navbar {
    background-color: var(--panda-white);
    border-bottom: 1px solid var(--panda-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.panda-navbar .navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--panda-black) !important;
    letter-spacing: -1px;
    padding: 16px 0;
}

.panda-navbar .nav-link {
    color: var(--panda-charcoal) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.panda-navbar .nav-link:hover,
.panda-navbar .nav-link.active {
    color: var(--panda-black) !important;
    background-color: var(--panda-light);
}

.panda-navbar .navbar-toggler {
    border: 2px solid var(--panda-border);
    padding: 6px 10px;
}

.panda-navbar .auth-links .nav-link {
    font-weight: 600;
}

.panda-navbar .btn-admin-link {
    background-color: var(--panda-black);
    color: var(--panda-white) !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.panda-navbar .btn-admin-link:hover {
    background-color: var(--panda-charcoal);
}

/* =============================================
   CUSTOMER HERO — Animated Background Paths
   ============================================= */

.panda-hero {
    background-color: var(--panda-black);
    color: var(--panda-white);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ---- Animated SVG Background Paths ---- */
.hero-bg-paths {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-paths svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.hero-path-group {
    animation: heroPathFloat 20s ease-in-out infinite;
    transform-origin: center center;
}

.hero-path-group:nth-child(1) { animation-delay: 0s; }
.hero-path-group:nth-child(2) { animation-delay: -5s; }
.hero-path-group:nth-child(3) { animation-delay: -10s; }

.hero-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    animation: heroPathDraw 4s ease forwards, heroPathPulse 6s ease-in-out infinite;
}

/* Stagger each path line */
.hero-path:nth-child(1) { animation-delay: 0.2s, 4.2s; }
.hero-path:nth-child(2) { animation-delay: 0.4s, 4.4s; }
.hero-path:nth-child(3) { animation-delay: 0.6s, 4.6s; }
.hero-path:nth-child(4) { animation-delay: 0.8s, 4.8s; }
.hero-path:nth-child(5) { animation-delay: 1.0s, 5.0s; }
.hero-path:nth-child(6) { animation-delay: 1.2s, 5.2s; }
.hero-path:nth-child(7) { animation-delay: 1.4s, 5.4s; }
.hero-path:nth-child(8) { animation-delay: 1.6s, 5.6s; }

@keyframes heroPathDraw {
    0% { opacity: 0; stroke-dashoffset: 1000; }
    50% { opacity: 1; }
    100% { opacity: 0.15; stroke-dashoffset: 0; }
}

@keyframes heroPathPulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.2; }
}

@keyframes heroPathFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(0.5deg); }
    50% { transform: translateY(5px) rotate(-0.3deg); }
    75% { transform: translateY(-8px) rotate(0.2deg); }
}

/* ---- Gradient overlays for depth ---- */
.hero-gradient-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to bottom, var(--panda-black) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--panda-black) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ---- Hero Content ---- */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 0;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 18px 6px 6px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-brand-badge img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-brand-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

.panda-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.panda-hero h1 .hero-text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panda-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 36px;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

.panda-hero .hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.1s;
}

.hero-btn-primary {
    background: var(--panda-white);
    color: var(--panda-black);
    border: 2px solid var(--panda-white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: var(--panda-light);
    color: var(--panda-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

.hero-btn-secondary {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

/* ---- Hero Stats Bar ---- */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.3s;
}

.hero-stat-item .stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--panda-white);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-item .stat-txt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ---- Hero Product Showcase (right side) ---- */
.hero-product-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFadeUp 1s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

.hero-product-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
    animation: heroProductFloat 5s ease-in-out infinite;
}

@keyframes heroProductFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Fallback logo when no hero image uploaded */
.hero-logo-fallback {
    opacity: 0.06;
}

.hero-logo-fallback img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    filter: brightness(10);
}

/* ---- Floating particles ---- */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: heroParticleFloat linear infinite;
    z-index: 1;
}

@keyframes heroParticleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes heroFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =============================================
   CUSTOMER PRODUCT CARDS
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--panda-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--panda-gray);
    max-width: 500px;
    margin: 0 auto;
}

.product-card {
    border: 1px solid var(--panda-border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--panda-white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: transparent;
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--panda-light);
}

.product-card .card-img-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.product-card .card-img-wrapper .stock-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--panda-dark);
    margin-bottom: 8px;
}

.product-card .card-desc {
    font-size: 0.85rem;
    color: var(--panda-gray);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-footer-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--panda-border);
    margin-top: auto;
}

.product-card .card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--panda-dark);
}

.product-card .card-action {
    background-color: var(--panda-black);
    color: var(--panda-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.product-card .card-action:hover {
    background-color: var(--panda-charcoal);
    color: var(--panda-white);
    transform: scale(1.05);
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--panda-border);
    margin-bottom: 12px;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery .thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--panda-border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-gallery .thumb-item:hover,
.product-gallery .thumb-item.active {
    border-color: var(--panda-black);
}

.product-info .product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--panda-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.product-info .product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--panda-black);
    margin-bottom: 20px;
}

.product-info .product-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--panda-gray);
    margin-bottom: 28px;
}

.product-info .product-description h1,
.product-info .product-description h2,
.product-info .product-description h3,
.product-info .product-description h4,
.product-info .product-description h5,
.product-info .product-description h6 {
    color: var(--panda-dark);
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.product-info .product-description ul,
.product-info .product-description ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.product-info .product-description li {
    margin-bottom: 0.35em;
}

.product-info .product-description p {
    margin-bottom: 0.8em;
}

.product-info .product-description table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.product-info .product-description table td,
.product-info .product-description table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.product-info .product-description table th {
    background: var(--panda-light);
    font-weight: 700;
}

.product-info .product-description a {
    color: var(--panda-dark);
    text-decoration: underline;
}

.product-info .product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: var(--panda-light);
    border-radius: 12px;
    margin-bottom: 28px;
}

.product-info .product-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.product-info .product-meta .meta-item i {
    color: var(--panda-gray);
    width: 20px;
    text-align: center;
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--panda-black);
    color: var(--panda-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--panda-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--panda-gray);
    margin: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-card {
    background-color: var(--panda-white);
    border: 1px solid var(--panda-border);
    border-radius: 14px;
    padding: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--panda-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--panda-dark);
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    color: var(--panda-dark);
}

.contact-info-item p {
    font-size: 0.88rem;
    color: var(--panda-gray);
    margin: 0;
}

/* =============================================
   CUSTOMER FOOTER
   ============================================= */

.panda-footer {
    background-color: var(--panda-black);
    color: var(--panda-white);
    padding: 64px 0 0;
    margin-top: 80px;
}

.panda-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--panda-white);
}

.panda-footer .footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.panda-footer h6 {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.panda-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panda-footer .footer-links li {
    margin-bottom: 10px;
}

.panda-footer .footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.panda-footer .footer-links a:hover {
    color: var(--panda-white);
}

.panda-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.panda-footer .footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* =============================================
   SEARCH BAR
   ============================================= */

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid var(--panda-border);
    border-radius: 8px;
    padding: 8px 14px 8px 38px;
    font-size: 0.88rem;
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--panda-black);
    box-shadow: none;
    outline: none;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--panda-gray-light);
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--panda-gray-light);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 700;
    color: var(--panda-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--panda-gray);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.panda-breadcrumb {
    padding: 20px 0;
}

.panda-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.panda-breadcrumb .breadcrumb-item a {
    color: var(--panda-gray);
}

.panda-breadcrumb .breadcrumb-item a:hover {
    color: var(--panda-dark);
}

.panda-breadcrumb .breadcrumb-item.active {
    color: var(--panda-dark);
    font-weight: 600;
}

/* =============================================
   PAGE HEADER (Customer)
   ============================================= */

.page-header {
    background-color: var(--panda-light);
    padding: 48px 0;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--panda-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--panda-gray);
    font-size: 1rem;
    margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .panda-hero h1 {
        font-size: 2.8rem;
    }

    .panda-hero {
        min-height: auto;
    }

    .hero-content-wrapper {
        padding: 80px 0;
    }

    .hero-product-showcase {
        margin-top: 40px;
    }

    .hero-product-img {
        max-width: 350px;
        max-height: 400px;
    }

    .hero-stats {
        gap: 32px;
    }

    .product-gallery .main-image {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .panda-hero {
        min-height: auto;
    }

    .hero-content-wrapper {
        padding: 60px 0;
    }

    .panda-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat-item .stat-num {
        font-size: 1.3rem;
    }

    .admin-main {
        padding: 16px;
    }

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

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

    .product-info .product-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   UTILITIES
   ============================================= */

.text-panda {
    color: var(--panda-black);
}

.bg-panda {
    background-color: var(--panda-black);
}

.section-spacing {
    padding: 80px 0;
}

.mb-section {
    margin-bottom: 80px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container{position:fixed;top:80px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.panda-toast{background:var(--panda-dark);color:#fff;padding:14px 20px;border-radius:10px;font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);animation:toastIn .3s ease,toastOut .3s ease 2.7s forwards;min-width:280px;max-width:400px}
.panda-toast.toast-success{border-left:4px solid var(--panda-success)}
.panda-toast.toast-error{border-left:4px solid var(--panda-danger)}
.panda-toast.toast-info{border-left:4px solid var(--panda-info)}
@keyframes toastIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes toastOut{from{opacity:1}to{opacity:0;transform:translateX(100%)}}

/* =============================================
   CART PAGE
   ============================================= */
.cart-item-row{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--panda-border)}
.cart-item-row:last-child{border-bottom:none}
.cart-item-img{width:80px;height:80px;border-radius:10px;object-fit:cover;border:1px solid var(--panda-border);flex-shrink:0}
.cart-item-info{flex:1}
.cart-item-info .item-name{font-weight:700;color:var(--panda-dark);font-size:1rem;margin-bottom:4px}
.cart-item-info .item-price{color:var(--panda-gray);font-size:.88rem}
.qty-control{display:flex;align-items:center;border:2px solid var(--panda-border);border-radius:8px;overflow:hidden}
.qty-control button{width:36px;height:36px;border:none;background:var(--panda-lighter);color:var(--panda-dark);font-size:1rem;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center}
.qty-control button:hover{background:var(--panda-light)}
.qty-control .qty-value{width:48px;text-align:center;font-weight:700;font-size:.92rem;border:none;border-left:2px solid var(--panda-border);border-right:2px solid var(--panda-border);height:36px;color:var(--panda-dark)}
.cart-item-total{font-weight:700;font-size:1rem;color:var(--panda-dark);min-width:80px;text-align:right}
.cart-item-remove{background:none;border:none;color:var(--panda-gray-light);font-size:1.2rem;cursor:pointer;padding:8px;border-radius:8px;transition:var(--transition)}
.cart-item-remove:hover{color:var(--panda-danger);background:rgba(231,76,60,.08)}
.cart-summary{background:var(--panda-lighter);border:1px solid var(--panda-border);border-radius:14px;padding:28px;position:sticky;top:100px}
.cart-summary h5{font-weight:700;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--panda-border)}
.cart-summary .summary-row{display:flex;justify-content:space-between;margin-bottom:12px;font-size:.92rem}
.cart-summary .summary-row.total{font-size:1.15rem;font-weight:800;padding-top:16px;border-top:2px solid var(--panda-border);margin-top:16px;margin-bottom:24px}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--panda-border)}
.checkout-item:last-child{border-bottom:none}
.checkout-item img{width:56px;height:56px;border-radius:8px;object-fit:cover;border:1px solid var(--panda-border)}
.checkout-item .item-details{flex:1}
.checkout-item .item-details .name{font-weight:600;font-size:.9rem;color:var(--panda-dark)}
.checkout-item .item-details .meta{font-size:.8rem;color:var(--panda-gray)}
.checkout-item .item-total{font-weight:700;font-size:.92rem}
.payment-option{border:2px solid var(--panda-border);border-radius:10px;padding:16px;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:12px}
.payment-option:hover{border-color:var(--panda-gray-light)}
.payment-option.selected{border-color:var(--panda-black);background:var(--panda-lighter)}
.payment-option i{font-size:1.3rem}
.payment-option .payment-label{font-weight:600;font-size:.92rem}
.payment-option .payment-desc{font-size:.8rem;color:var(--panda-gray)}

/* =============================================
   ORDER STATUS BADGES
   ============================================= */
.order-status{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.78rem;font-weight:700;text-transform:capitalize}
.order-status.status-pending{background:rgba(243,156,18,.1);color:var(--panda-warning)}
.order-status.status-awaitingpayment{background:rgba(231,76,60,.15);color:#c0392b;border:1px dashed #e74c3c}
.order-status.status-processing{background:rgba(52,152,219,.1);color:var(--panda-info)}
.order-status.status-shipped{background:rgba(142,68,173,.1);color:#8e44ad}
.order-status.status-delivered{background:rgba(39,174,96,.1);color:var(--panda-success)}
.order-status.status-cancelled{background:rgba(231,76,60,.1);color:var(--panda-danger)}

/* =============================================
   ORDER CONFIRMATION
   ============================================= */
.confirmation-icon{width:80px;height:80px;border-radius:50%;background:rgba(39,174,96,.1);color:var(--panda-success);display:flex;align-items:center;justify-content:center;font-size:2.5rem;margin:0 auto 20px}

/* =============================================
   ACCOUNT PAGES
   ============================================= */
.profile-card{background:#fff;border:1px solid var(--panda-border);border-radius:14px;overflow:hidden}
.profile-header{background:var(--panda-black);color:#fff;padding:32px;text-align:center}
.profile-avatar{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700;margin:0 auto 12px}
.profile-header h4{font-weight:700;margin-bottom:4px}
.profile-header p{color:rgba(255,255,255,.6);font-size:.88rem;margin:0}
.profile-body{padding:32px}

/* =============================================
   FILTER TABS & BADGES
   ============================================= */
.filter-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.filter-tab{padding:6px 16px;border-radius:20px;font-size:.82rem;font-weight:600;color:var(--panda-gray);background:var(--panda-light);border:none;cursor:pointer;transition:var(--transition);text-decoration:none}
.filter-tab:hover{background:var(--panda-border);color:var(--panda-dark)}
.filter-tab.active{background:var(--panda-black);color:#fff}
.sidebar-badge{background:rgba(255,255,255,.2);color:#fff;font-size:.7rem;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 6px;margin-left:auto}
.cart-badge-wrapper{position:relative;display:inline-flex;align-items:center}
.cart-badge{position:absolute;top:-6px;right:-8px;background:var(--panda-danger);color:#fff;font-size:.65rem;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px}

/* =============================================
   ALERTS & MESSAGES
   ============================================= */
.panda-alert{padding:14px 20px;border-radius:10px;font-size:.9rem;margin-bottom:20px;display:flex;align-items:center;gap:10px}
.panda-alert-success{background:rgba(39,174,96,.1);color:var(--panda-success);border:1px solid rgba(39,174,96,.2)}
.panda-alert-error{background:rgba(231,76,60,.1);color:var(--panda-danger);border:1px solid rgba(231,76,60,.2)}
.message-row{transition:var(--transition)}
.message-row.unread{background:rgba(52,152,219,.03);border-left:3px solid var(--panda-info)}
.message-content{max-height:0;overflow:hidden;transition:max-height .3s ease;padding:0 16px}
.message-content.show{max-height:300px;padding:16px;border-top:1px solid var(--panda-border)}

/* =============================================
   ABOUT & ERROR PAGES
   ============================================= */
.about-hero{background:var(--panda-black);color:#fff;padding:80px 0;text-align:center}
.about-hero h1{font-size:2.5rem;font-weight:900;margin-bottom:16px}
.about-hero p{color:rgba(255,255,255,.7);font-size:1.1rem;max-width:600px;margin:0 auto}
.error-page{text-align:center;padding:100px 20px}
.error-page .error-code{font-size:8rem;font-weight:900;color:var(--panda-border);line-height:1;margin-bottom:16px}
.error-page h2{font-weight:700;margin-bottom:12px}
.error-page p{color:var(--panda-gray);margin-bottom:28px}

/* =============================================
   SPINNER
   ============================================= */
.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}
.spinner-dark{border-color:rgba(0,0,0,.15);border-top-color:var(--panda-dark)}
@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:767px){.cart-item-row{flex-wrap:wrap}.cart-item-total{text-align:left}}

/* =============================================
   SIZE SELECTOR BUTTONS
   ============================================= */
.size-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:2px solid var(--panda-border);border-radius:8px;background:#fff;color:var(--panda-dark);font-weight:700;font-size:.88rem;cursor:pointer;transition:var(--transition)}
.size-btn:hover{border-color:var(--panda-dark);background:var(--panda-lighter)}
.size-btn.active{border-color:var(--panda-black);background:var(--panda-black);color:#fff}

.color-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:2px solid var(--panda-border);border-radius:8px;background:#fff;color:var(--panda-dark);font-weight:700;font-size:.88rem;cursor:pointer;transition:var(--transition)}
.color-btn:hover{border-color:var(--panda-dark);background:var(--panda-lighter)}
.color-btn.active{border-color:var(--panda-black);background:var(--panda-black);color:#fff}

/* =============================================
   SIZE GUIDE MODAL TWEAKS
   ============================================= */
.size-guide-table{width:100%;border-collapse:collapse;font-size:.88rem}
.size-guide-table th{background:var(--panda-black);color:#fff;padding:10px 14px;font-weight:700;text-align:center}
.size-guide-table td{padding:10px 14px;text-align:center;border-bottom:1px solid var(--panda-border)}
.size-guide-table tbody tr:hover{background:var(--panda-lighter)}
