:root {
    --primary: #e65100;
    --primary-light: #ff833a;
    --primary-dark: #ac1900;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.navbar { background: var(--primary) !important; }

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

/* Product Cards */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: #eee;
}
.product-card .card-body { padding: 1rem; }
.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card .product-original-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

/* Category pills */
.category-pills .nav-link {
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    margin: 0.2rem;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}
.category-pills .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Cart */
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.quantity-input {
    width: 70px;
    text-align: center;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 3rem 0;
    margin: -1.5rem -0.75rem 2rem;
    text-align: center;
    border-radius: 0 0 24px 24px;
}
.hero h1 { font-size: 2rem; font-weight: 700; }
.hero p { opacity: 0.9; }

/* Product detail */
.product-gallery img {
    width: 100%;
    border-radius: 12px;
    max-height: 500px;
    object-fit: cover;
}

/* Badge */
.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53935;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Placeholder image */
.img-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 3rem;
}

/* Order success */
.order-success {
    text-align: center;
    padding: 3rem 0;
}
.order-success .check-icon {
    font-size: 5rem;
    color: #4caf50;
}

/* Admin */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding-top: 1rem;
}
.admin-sidebar a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 2rem 1rem; margin: -1.5rem -0.75rem 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .product-card .card-img-top { height: 160px; }
}
