:root {
    --dark-bg: #0d0d0d;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --card-border: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #6c757d;
    --success: #198754;
    --success-light: rgba(25, 135, 84, 0.15);
    --success-dark: #146c43;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    zoom: 0.9;
}

.main-content {
    padding-top: 76px;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}
.navbar-brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }
.nav-link { font-weight: 500; padding: 8px 16px !important; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { background: var(--success-light); color: var(--success) !important; }
.nav-icon { color: var(--text-secondary); font-size: 1.2rem; transition: color 0.2s; position: relative; }
.nav-icon:hover { color: var(--success); }
.cart-badge, .wishlist-badge {
    position: absolute; top: -8px; right: -10px; background: var(--success);
    color: #fff; border-radius: 50%; width: 20px; height: 20px;
    font-size: 0.65rem; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.dropdown-menu-dark { background: var(--card-bg); border-color: var(--card-border); }
.dropdown-item { color: var(--text-secondary); }
.dropdown-item:hover { background: var(--success-light); color: var(--success); }

/* Hero */
.hero-section {
    position: relative; overflow: hidden; min-height: 85vh;
    background: linear-gradient(135deg, #0a0a0a, #0d1f0d, #0a0a0a);
}
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-content { padding: 120px 0; }
.hero-badge {
    display: inline-block; background: var(--success-light); color: var(--success);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
}
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px; }
.hero-text { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; line-height: 1.7; }
.hero-img-wrapper {
    position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-img-circle {
    width: 400px; height: 400px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(25,135,84,0.2), rgba(25,135,84,0.05));
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(25,135,84,0.3); position: relative;
}
.hero-img-circle img { max-width: 70%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.hero-price-tag {
    position: absolute; bottom: 20px; right: 20px;
    background: var(--success); color: #fff; padding: 10px 20px;
    border-radius: 12px; font-weight: 700; font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(25,135,84,0.3);
}
.hero-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-indicators button {
    width: 40px; height: 4px; border-radius: 2px; border: none;
    background: rgba(255,255,255,0.2); transition: all 0.3s;
}
.hero-indicators button.active { background: var(--success); width: 60px; }

/* Section styling */
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
.section-subtitle { color: var(--text-secondary); }

/* Product Card */
.product-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; overflow: hidden; transition: all 0.3s;
    position: relative; height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); border-color: rgba(25,135,84,0.3); }
.product-img-wrap {
    position: relative; overflow: hidden; aspect-ratio: 1;
    background: linear-gradient(135deg, #1a2a1a, #2a1a1a);
    display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img, .product-image-wrapper img { width: 80%; height: 80%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-img-wrap img, .product-card:hover .product-image-wrapper img { transform: scale(1.05); }
.product-image-wrapper {
    position: relative; overflow: hidden; aspect-ratio: 1;
    background: linear-gradient(135deg, #1a2a1a, #2a1a1a);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px 12px 0 0;
}
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
}
.product-badge.sale { background: var(--danger); color: #fff; }
.product-badge.new { background: var(--info); color: #000; }
.product-badge.best { background: var(--warning); color: #000; }
.product-badge.organic { background: var(--success); color: #fff; }
.wishlist-toggle {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5);
    border: none; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 0.9rem;
}
.wishlist-toggle:hover { background: var(--danger); color: #fff; }
.wishlist-toggle.active { color: var(--danger); }
.product-body { padding: 16px; }
.product-category { font-size: 0.75rem; color: var(--success); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-name { font-size: 1rem; font-weight: 600; margin: 4px 0; }
.product-name { color: var(--text-primary); text-decoration: none; }
.product-name:hover { color: var(--success); }
.product-rating { font-size: 0.8rem; color: var(--warning); margin: 4px 0; }
.product-rating span { color: var(--text-secondary); margin-left: 4px; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--success); }
.product-price .original { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.product-body .btn-success, .product-body .btn-outline-success { width: 100%; border-radius: 8px; font-weight: 600; }

/* Categories */
.category-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 32px 20px; text-align: center;
    transition: all 0.3s; cursor: pointer; text-decoration: none; display: block;
    height: 100%;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--success); box-shadow: 0 12px 40px rgba(25,135,84,0.1); }
.category-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--success-light); color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 16px; transition: all 0.3s;
}
.category-card:hover .category-icon { background: var(--success); color: #fff; }
.category-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.category-count { font-size: 0.85rem; color: var(--text-secondary); }

/* Testimonials */
.testimonial-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 32px; height: 100%;
}
.testimonial-stars { color: var(--warning); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-text { color: var(--text-secondary); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--success-light); display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--success); font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #0d1f0d, #0a3a0a);
    border-radius: 20px; padding: 60px; text-align: center;
}
.newsletter-section .form-control {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; padding: 14px 20px; border-radius: 12px 0 0 12px;
}
.newsletter-section .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-section .btn-success { padding: 14px 30px; border-radius: 0 12px 12px 0; font-weight: 600; }

/* Footer */
.footer {
    background: #080808; border-top: 1px solid var(--card-border);
    margin-top: 80px;
}
.footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--success); }
.social-links { display: flex; gap: 10px; }
.social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--card-bg); border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.2s; font-size: 0.9rem;
}
.social-icon:hover { background: var(--success); color: #fff; border-color: var(--success); }
.footer-links li { margin-bottom: 8px; }
.newsletter-form .form-control {
    background: var(--card-bg); border: 1px solid var(--card-border);
    color: var(--text-primary); border-radius: 8px 0 0 8px; padding: 12px 16px;
}
.newsletter-form .btn-success { border-radius: 0 8px 8px 0; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--success); color: #fff; display: flex;
    align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 4px 15px rgba(25,135,84,0.4); transition: all 0.3s;
    opacity: 0; visibility: hidden;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--success-dark); color: #fff; transform: translateY(-2px); }

/* Shop filters */
.filter-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.filter-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-card .form-check-label { color: var(--text-secondary); font-size: 0.9rem; }
.filter-card .form-check-input { background: var(--dark-bg); border-color: var(--card-border); }
.filter-card .form-check-input:checked { background-color: var(--success); border-color: var(--success); }
.filter-card .form-control { background: var(--dark-bg); border: 1px solid var(--card-border); color: var(--text-primary); font-size: 0.9rem; }
.price-separator { color: var(--text-muted); padding: 0 4px; }

/* Sort bar */
.sort-bar {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 12px 20px; display: flex;
    align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.sort-bar .form-select {
    background: var(--dark-bg); border: 1px solid var(--card-border);
    color: var(--text-primary); border-radius: 8px; padding: 8px 36px 8px 12px;
    font-size: 0.9rem; cursor: pointer;
}
.sort-bar .form-select option { background: var(--card-bg); color: var(--text-primary); }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button {
    background: var(--dark-bg); border: 1px solid var(--card-border);
    color: var(--text-secondary); padding: 6px 10px; border-radius: 6px;
    cursor: pointer; transition: all 0.2s; line-height: 1;
}
.view-toggle button.active, .view-toggle button:hover { color: var(--success); border-color: var(--success); }

/* Pagination */
.pagination-custom { display: flex; justify-content: center; gap: 6px; }
.pagination-custom .page-link {
    background: var(--card-bg); border: 1px solid var(--card-border);
    color: var(--text-secondary); padding: 8px 16px; border-radius: 8px !important;
    text-decoration: none; transition: all 0.2s; font-size: 0.9rem;
}
.pagination-custom .page-link:hover { background: var(--success-light); color: var(--success); border-color: var(--success); }
.pagination-custom .page-link.active { background: var(--success); color: #fff; border-color: var(--success); }

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent; padding: 16px 0; margin: 0;
}
.breadcrumb-custom .breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-custom .breadcrumb-item a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-custom .breadcrumb-item a:hover { color: var(--success); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--success); }
.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before { color: var(--text-muted); }

/* Product Detail */
.product-detail-img {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; overflow: hidden; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.product-detail-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.thumb-list { display: flex; gap: 10px; margin-top: 16px; }
.thumb-item {
    width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
    background: var(--card-bg); border: 2px solid var(--card-border);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.thumb-item:hover, .thumb-item.active { border-color: var(--success); }
.thumb-item img { max-width: 70%; max-height: 70%; object-fit: contain; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--success); }
.product-detail-price .original { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; }
.sale-badge-lg {
    display: inline-block; background: var(--danger); color: #fff;
    padding: 4px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
}
.product-detail-rating { font-size: 1rem; color: var(--warning); }
.stock-status { font-size: 0.95rem; }
.stock-status.in-stock { color: var(--success); }
.stock-status.out-of-stock { color: var(--danger); }

/* Quantity */
.qty-selector {
    display: inline-flex; align-items: center; gap: 0;
    border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden;
}
.qty-selector button {
    width: 40px; height: 40px; border: none; background: var(--card-bg);
    color: var(--text-primary); font-size: 1rem; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.qty-selector button:hover { background: var(--success); color: #fff; }
.qty-selector input {
    width: 50px; height: 40px; border: none; border-left: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border); background: var(--dark-bg);
    color: var(--text-primary); text-align: center; font-weight: 600; font-size: 1rem;
}
.qty-selector input:focus { outline: none; }

/* Tabs */
.nav-tabs-custom { border-bottom: 1px solid var(--card-border); gap: 0; }
.nav-tabs-custom .nav-link {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 12px 24px; font-weight: 500; font-size: 0.95rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav-tabs-custom .nav-link:hover { color: var(--text-primary); }
.nav-tabs-custom .nav-link.active { color: var(--success); border-bottom-color: var(--success); background: transparent; }

/* Review */
.review-item {
    padding: 20px 0; border-bottom: 1px solid var(--card-border);
}
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--success-light); display: flex; align-items: center; justify-content: center;
    color: var(--success); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { color: var(--card-border); cursor: pointer; font-size: 1.2rem; transition: color 0.2s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--warning); }

/* Cart */
.cart-item {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 20px;
}
.cart-item-img {
    width: 100px; height: 100px; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #1a2a1a, #2a1a1a);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cart-item-name { font-weight: 600; font-size: 1rem; }
.cart-item-price { color: var(--success); font-weight: 600; }
.cart-item-subtotal { font-weight: 700; font-size: 1.1rem; }
.remove-item { color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.remove-item:hover { color: var(--danger); }

/* Cart Summary */
.cart-summary {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 28px; position: sticky; top: 100px;
}
.cart-summary h5 { font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--card-border); padding-top: 16px; margin-top: 8px; font-size: 1.2rem; font-weight: 700; }
.coupon-input .form-control {
    background: var(--dark-bg); border: 1px solid var(--card-border);
    color: var(--text-primary); border-radius: 8px 0 0 8px;
}

/* Checkout */
.checkout-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.checkout-section h5 { font-weight: 700; margin-bottom: 20px; }
.form-label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.form-control, .form-select {
    background: var(--dark-bg); border: 1px solid var(--card-border);
    color: var(--text-primary); padding: 10px 14px; border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--success); box-shadow: 0 0 0 2px rgba(25,135,84,0.15); color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-muted); }
.form-check-label { color: var(--text-secondary); font-size: 0.9rem; }
.payment-option {
    background: var(--dark-bg); border: 2px solid var(--card-border);
    border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.2s;
}
.payment-option:hover { border-color: rgba(25,135,84,0.3); }
.payment-option.selected { border-color: var(--success); background: var(--success-light); }
.payment-option .form-check-input { margin-top: 0; }
.payment-option .form-check-input:checked { background-color: var(--success); border-color: var(--success); }
.payment-icon { font-size: 1.5rem; margin-right: 12px; }
.payment-label { font-weight: 600; }
.payment-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Order Confirmation */
.confirmation-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--success-light); color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 24px;
}
.order-info-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 28px;
}
.order-info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.order-info-value { font-size: 1rem; font-weight: 600; }
.status-badge {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
}
.status-badge.pending { background: rgba(255,193,7,0.15); color: var(--warning); }
.status-badge.confirmed { background: rgba(13,202,240,0.15); color: var(--info); }
.status-badge.shipped { background: rgba(25,135,84,0.15); color: var(--success); }
.status-badge.delivered { background: rgba(25,135,84,0.15); color: var(--success); }

/* Product page text readability */
.product-detail-rating .text-muted,
.product-body .text-muted,
.tab-pane .text-muted,
.tab-pane ul.text-muted li { color: #f0f0f0 !important; font-weight: 400; }

/* Responsive */
/* Dashboard sidebar */
.dashboard-sidebar {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 16px 0; position: sticky; top: 90px;
}
.dashboard-nav { display: flex; flex-direction: column; gap: 2px; }
.dashboard-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: var(--text-secondary);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s; border-left: 3px solid transparent;
}
.dashboard-nav a:hover {
    color: var(--success); background: rgba(25,135,84,0.05);
    border-left-color: var(--success);
}
.dashboard-nav a.active {
    color: var(--success); background: rgba(25,135,84,0.1);
    border-left-color: var(--success); font-weight: 600;
}
.dashboard-nav a.text-danger:hover {
    color: var(--danger); background: rgba(220,53,69,0.08);
    border-left-color: var(--danger);
}
.dashboard-nav i { width: 20px; text-align: center; font-size: 1rem; }
.dashboard-content { padding: 0 0 0 20px; }
@media (max-width: 991px) {
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.5rem; }
    .hero-img-circle { width: 280px; height: 280px; }
    .hero-content { padding: 80px 0; }
    .newsletter-section { padding: 40px 24px; }
}
@media (max-width: 767px) {
    .hero-section { min-height: 60vh; }
    .hero-title { font-size: 1.6rem; }
    .hero-text { font-size: 0.95rem; margin: 0 auto; }
    .hero-img-circle { width: 180px; height: 180px; margin-top: 20px; }
    .hero-content { padding: 40px 0; text-align: center; }
    .hero-badge { font-size: 0.75rem; padding: 4px 12px; }
    .hero-price-tag { font-size: 0.9rem; padding: 6px 14px; bottom: 10px; right: 10px; }
    .hero-content .d-flex { flex-wrap: nowrap; justify-content: center; }
    .hero-section .btn-lg { padding: 6px 12px; font-size: 0.78rem; white-space: nowrap; }
    .hero-indicators { bottom: 16px; }
    .hero-indicators button { width: 20px; height: 3px; }
    .hero-indicators button.active { width: 28px; }
    .section-title { font-size: 1.3rem; }
    .section-subtitle { font-size: 0.9rem; }
    .product-card .btn-sm { font-size: 0.75rem; padding: 4px 10px; }
    .cart-item .row { gap: 8px; }
    .cart-item-img { width: 60px; height: 60px; }
    .footer { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .hero-section { min-height: 50vh; }
    .hero-title { font-size: 1.3rem; }
    .hero-text { font-size: 0.85rem; }
    .hero-img-circle { width: 130px; height: 130px; margin-top: 20px; }
    .hero-content { padding: 30px 0; }
    .hero-badge { font-size: 0.7rem; padding: 3px 10px; margin-bottom: 10px; }
    .hero-section .btn-lg { padding: 5px 10px; font-size: 0.72rem; }
    .hero-price-tag { font-size: 0.8rem; padding: 4px 10px; }
    .hero-indicators { bottom: 10px; gap: 6px; }
    .hero-indicators button { width: 16px; height: 2px; }
    .hero-indicators button.active { width: 22px; }
    .section-title { font-size: 1.1rem; }
    .section-subtitle { font-size: 0.8rem; }
    .main-content { padding-top: 60px; }
    .navbar-brand { font-size: 1.2rem; }
}
