/* Machine Dukan - Main Stylesheet */
:root {
  --md-primary: #0f172a;
  --md-primary-light: #1e293b;
  --md-accent: #e8590c;
  --md-accent-hover: #d14f0a;
  --md-accent-light: #fff4ed;
  --md-text: #1e293b;
  --md-text-muted: #64748b;
  --md-text-light: #94a3b8;
  --md-bg: #ffffff;
  --md-bg-alt: #f8fafc;
  --md-bg-section: #f1f5f9;
  --md-border: #e2e8f0;
  --md-border-light: #f1f5f9;
  --md-success: #16a34a;
  --md-danger: #dc2626;
  --md-warning: #f59e0b;
  --md-info: #0ea5e9;
  --md-radius: 12px;
  --md-radius-sm: 8px;
  --md-radius-lg: 16px;
  --md-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --md-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --md-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --md-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --md-transition: all 0.2s ease;
  --md-header-height: 100px;
  --md-panel-width: 400px;
}

@media (max-width: 991.98px) {
  :root { --md-header-height: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--md-text); background: var(--md-bg); line-height: 1.6; margin: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Barlow', sans-serif; font-weight: 700; color: var(--md-primary); line-height: 1.2; margin-bottom: 0.5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
a { color: var(--md-accent); text-decoration: none; transition: var(--md-transition); }
a:hover { color: var(--md-accent-hover); }
img { max-width: 100%; height: auto; }
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--md-text-muted); font-size: 1.05rem; max-width: 640px; }
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }
.badge-accent { background: var(--md-accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.btn-accent { background: var(--md-accent); color: #fff; border: 2px solid var(--md-accent); padding: 12px 28px; border-radius: var(--md-radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--md-transition); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-accent:hover { background: var(--md-accent-hover); border-color: var(--md-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--md-shadow-md); }
.btn-outline { background: transparent; color: var(--md-accent); border: 2px solid var(--md-accent); padding: 12px 28px; border-radius: var(--md-radius-sm); font-weight: 600; transition: var(--md-transition); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: var(--md-accent); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.bg-dark-section { background: var(--md-primary); color: #fff; }
.bg-dark-section h2, .bg-dark-section h3 { color: #fff; }
.bg-alt-section { background: var(--md-bg-alt); }

/* Top Bar */
.md-topbar { background: var(--md-primary); color: rgba(255,255,255,0.8); font-size: 0.82rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.md-topbar a { color: rgba(255,255,255,0.8); }
.md-topbar a:hover { color: #fff; }
.md-topbar .topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 1.25rem; }

/* Header */
.md-header { position: sticky; top: 0; z-index: 1040; background: var(--md-bg); border-bottom: 1px solid var(--md-border); transition: var(--md-transition); }
.md-header.scrolled { box-shadow: var(--md-shadow-md); }
.md-header .navbar { padding: 0; min-height: var(--md-header-height); }
.md-header .nav-link { color: var(--md-text) !important; font-weight: 500; font-size: 0.92rem; padding: 8px 14px !important; transition: var(--md-transition); }
.md-header .nav-link:hover, .md-header .nav-link.active { color: var(--md-accent) !important; }
.md-logo { height: 40px; width: auto; }
.md-logo-text { font-family: 'Barlow', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--md-primary); text-decoration: none; }
.md-logo-text span { color: var(--md-accent); }
.md-logo-img { height: 80px; width: 280px; object-fit: contain; }
.header-cta .btn-accent { padding: 8px 20px; font-size: 0.85rem; }

/* Hero */
.md-hero { background: linear-gradient(135deg, var(--md-primary) 0%, #1a2742 100%); color: #fff; padding: 5rem 0; position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.md-hero::after { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,89,12,0.15) 0%, transparent 70%); border-radius: 50%; }
.md-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.md-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 560px; margin-bottom: 2rem; }
.md-hero .hero-image { position: relative; z-index: 2; }
.md-hero .hero-image img { max-height: 380px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }

/* Hero Product Slider */
.md-hero-slider { background: linear-gradient(135deg, var(--md-primary) 0%, #1a2742 100%); color: #fff; position: relative; z-index: 1; overflow: hidden; }
.md-hero-slider .carousel-inner { overflow: hidden; }
.md-hero-slider .carousel-item { padding: 5.5rem 0 5rem; min-height: 480px; }
.md-hero-slider .carousel-item::after { content: ''; position: absolute; bottom: -20%; right: 5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(232,89,12,0.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
.slider-row { display: flex; align-items: center; position: relative; z-index: 1; min-height: 340px; }
.slider-content { position: relative; z-index: 1; }
.slider-title { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 1rem; line-height: 1.2; }
.slider-desc { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 1rem; }
.slider-price { font-size: 1.5rem; font-weight: 700; color: var(--md-accent); margin-bottom: 0.5rem; }
.slider-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slider-detail-btn { color: #fff !important; border-color: rgba(255,255,255,0.4) !important; }
.slider-detail-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff !important; }
.slider-image { position: relative; z-index: 1; }
.slider-image img { max-height: 340px; max-width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); transition: transform 0.5s ease; }
.slider-image:hover img { transform: scale(1.05); }

/* Carousel controls */
.md-hero-slider .carousel-control-prev,
.md-hero-slider .carousel-control-next { width: 44px; height: 44px; top: 55%; background: rgba(255,255,255,0.15); border-radius: 50%; opacity: 0; transition: opacity 0.3s; z-index: 5; }
.md-hero-slider:hover .carousel-control-prev,
.md-hero-slider:hover .carousel-control-next { opacity: 1; }
.md-hero-slider .carousel-control-prev { left: 20px; }
.md-hero-slider .carousel-control-next { right: 20px; }
.md-hero-slider .carousel-control-prev-icon,
.md-hero-slider .carousel-control-next-icon { width: 18px; height: 18px; }

/* Carousel indicators */
.md-hero-slider .carousel-indicators { bottom: 15px; z-index: 5; }
.md-hero-slider .carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255,255,255,0.4); border: none; opacity: 0.5; transition: all 0.3s; }
.md-hero-slider .carousel-indicators button.active { background-color: var(--md-accent); opacity: 1; width: 28px; border-radius: 5px; }

/* Trust Strip */
.md-trust-strip { background: var(--md-bg); border-bottom: 1px solid var(--md-border); padding: 1rem 0; }
.md-trust-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.md-trust-item i { color: var(--md-accent); font-size: 1.1rem; }
.md-trust-item span { font-size: 0.88rem; font-weight: 500; color: var(--md-text); }

/* Product Card */
.md-product-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); overflow: hidden; transition: var(--md-transition); height: 100%; display: flex; flex-direction: column; }
.md-product-card:hover { box-shadow: var(--md-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.md-product-card .card-img-wrapper { position: relative; padding-top: 75%; background: var(--md-bg-alt); overflow: hidden; }
.md-product-card .card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.3s ease; }
.md-product-card:hover .card-img-wrapper img { transform: scale(1.05); }
.md-product-card .card-body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.md-product-card .card-category { font-size: 0.75rem; color: var(--md-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.md-product-card .card-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.md-product-card .card-title a { color: var(--md-text); text-decoration: none; }
.md-product-card .card-title a:hover { color: var(--md-accent); }
.md-product-card .card-text { font-size: 0.85rem; color: var(--md-text-muted); margin-bottom: 12px; flex: 1; }
.md-product-card .card-price { font-size: 1.1rem; font-weight: 700; color: var(--md-accent); margin-bottom: 12px; }
.md-product-card .card-price .old-price { font-size: 0.85rem; color: var(--md-text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.md-product-card .card-actions { display: flex; gap: 8px; margin-top: auto; }
.md-product-card .card-actions .btn { flex: 1; font-size: 0.82rem; padding: 8px 12px; }

/* Category Card */
.md-category-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 2rem 1.5rem; text-align: center; transition: var(--md-transition); height: 100%; }
.md-category-card:hover { box-shadow: var(--md-shadow-lg); transform: translateY(-4px); border-color: var(--md-accent); }
.md-category-card .cat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--md-accent-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; color: var(--md-accent); transition: var(--md-transition); }
.md-category-card:hover .cat-icon { background: var(--md-accent); color: #fff; }
.md-category-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.md-category-card h4 a { color: var(--md-text); }
.md-category-card h4 a:hover { color: var(--md-accent); }
.md-category-card p { font-size: 0.85rem; color: var(--md-text-muted); margin: 0; }

/* Industry Card */
.md-industry-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 2rem; transition: var(--md-transition); height: 100%; position: relative; overflow: hidden; }
.md-industry-card:hover { box-shadow: var(--md-shadow-lg); border-color: var(--md-accent); }
.md-industry-card .industry-icon { width: 80px; height: 80px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: rgba(232, 89, 12, 0.1); border-radius: 50%; }
.md-industry-card .industry-icon i { font-size: 2.2rem; color: var(--md-accent); margin-bottom: 0; }
.md-industry-card i { font-size: 2rem; color: var(--md-accent); margin-bottom: 1rem; }
.md-industry-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Blog Card */
.md-blog-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); overflow: hidden; transition: var(--md-transition); height: 100%; }
.md-blog-card:hover { box-shadow: var(--md-shadow-lg); transform: translateY(-3px); }
.md-blog-card .card-img-wrapper { padding-top: 56%; background: var(--md-bg-alt); position: relative; overflow: hidden; }
.md-blog-card .card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.md-blog-card .card-body { padding: 1.25rem; }
.md-blog-card .card-meta { font-size: 0.8rem; color: var(--md-text-muted); margin-bottom: 8px; }
.md-blog-card .card-title a { color: var(--md-text); font-size: 1.05rem; }
.md-blog-card .card-title a:hover { color: var(--md-accent); }

/* Review Card */
.md-review-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 1.5rem; height: 100%; }
.md-review-card .stars { color: #f59e0b; margin-bottom: 8px; }
.md-review-card .review-text { font-size: 0.92rem; color: var(--md-text-muted); margin-bottom: 1rem; font-style: italic; }
.md-review-card .reviewer { font-weight: 600; font-size: 0.9rem; }
.md-review-card .reviewer-info { font-size: 0.8rem; color: var(--md-text-muted); }

/* FAQ */
.md-faq-item { border: 1px solid var(--md-border); border-radius: var(--md-radius); margin-bottom: 12px; overflow: hidden; }
.md-faq-item .accordion-button { font-weight: 600; font-size: 1rem; color: var(--md-text); padding: 1rem 1.25rem; background: var(--md-bg); box-shadow: none; }
.md-faq-item .accordion-button:not(.collapsed) { background: var(--md-accent-light); color: var(--md-accent); }
.md-faq-item .accordion-button::after { filter: none; }
.md-faq-item .accordion-body { font-size: 0.92rem; color: var(--md-text-muted); line-height: 1.7; }

/* Location Card */
.md-location-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 1.5rem; transition: var(--md-transition); height: 100%; }
.md-location-card:hover { box-shadow: var(--md-shadow-md); border-color: var(--md-accent); }
.md-location-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.md-location-card p { font-size: 0.85rem; color: var(--md-text-muted); }

/* Video Card */
.md-video-card { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); overflow: hidden; transition: var(--md-transition); }
.md-video-card:hover { box-shadow: var(--md-shadow-lg); }
.md-video-card .video-thumb { position: relative; padding-top: 56.25%; background: var(--md-primary); }
.md-video-card .video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.md-video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; background: var(--md-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; }
.md-video-card .card-body { padding: 1rem 1.25rem; }

/* Product Detail */
.md-product-detail .product-gallery { position: sticky; top: 100px; }
.md-product-detail .main-image { border-radius: var(--md-radius); overflow: hidden; background: var(--md-bg-alt); border: 1px solid var(--md-border); }
.md-product-detail .main-image img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 16px; }
.md-product-detail .thumb-list { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.md-product-detail .thumb-item { width: 72px; height: 72px; border: 2px solid var(--md-border); border-radius: var(--md-radius-sm); overflow: hidden; cursor: pointer; }
.md-product-detail .thumb-item.active, .md-product-detail .thumb-item:hover { border-color: var(--md-accent); }
.md-product-detail .thumb-item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.md-product-detail .product-info h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.md-product-detail .product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.md-product-detail .product-price { font-size: 1.5rem; font-weight: 700; color: var(--md-accent); margin-bottom: 1rem; }
.md-product-detail .product-meta { margin-bottom: 1.5rem; }
.md-product-detail .product-meta li { padding: 6px 0; border-bottom: 1px solid var(--md-border-light); font-size: 0.9rem; display: flex; gap: 8px; }
.md-product-detail .product-meta li strong { min-width: 140px; }
.md-product-detail .cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.md-product-detail .product-tabs .nav-link { border: none; color: var(--md-text-muted); font-weight: 500; padding: 10px 16px; border-bottom: 2px solid transparent; }
.md-product-detail .product-tabs .nav-link.active { color: var(--md-accent); border-bottom-color: var(--md-accent); background: transparent; }

/* Comparison Table */
.md-compare-table { overflow-x: auto; }
.md-compare-table table { min-width: 600px; }
.md-compare-table th { background: var(--md-bg-alt); font-weight: 600; white-space: nowrap; }
.md-compare-table td { vertical-align: middle; }

/* Cart */
.md-cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--md-border); border-radius: var(--md-radius-sm); margin-bottom: 10px; }
.md-cart-item img { width: 80px; height: 80px; object-fit: contain; background: var(--md-bg-alt); border-radius: var(--md-radius-sm); padding: 4px; }
.md-cart-item .item-qty { display: flex; align-items: center; gap: 8px; }
.md-cart-item .item-qty input { width: 60px; text-align: center; border: 1px solid var(--md-border); border-radius: var(--md-radius-sm); padding: 4px 8px; }

/* CTA Banner */
.md-cta-banner { background: linear-gradient(135deg, var(--md-accent) 0%, #c2410c 100%); color: #fff; border-radius: var(--md-radius-lg); padding: 3rem; position: relative; overflow: hidden; }
.md-cta-banner::after { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.md-cta-banner h2, .md-cta-banner p { color: #fff; position: relative; z-index: 1; }

/* Floating Buttons */
.md-floating { position: fixed; bottom: 24px; right: 24px; z-index: 1030; display: flex; flex-direction: column; gap: 12px; }
.md-floating-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; box-shadow: var(--md-shadow-lg); transition: var(--md-transition); border: none; cursor: pointer; }
.md-floating-btn:hover { transform: scale(1.1); color: #fff; }
.md-floating-btn.whatsapp { background: #25d366; }
.md-floating-btn.call { background: var(--md-info); }
.md-floating-btn.quote { background: var(--md-accent); }
.md-floating-btn.back-to-top { background: var(--md-primary); opacity: 0; pointer-events: none; }
.md-floating-btn.back-to-top.visible { opacity: 1; pointer-events: all; }

.md-mobile-bar { display: none; }
.md-mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.md-mobile-bar-btn i { font-size: 1.2rem; }
.md-mobile-bar-btn.call-bar { background: #0d6efd; }
.md-mobile-bar-btn.call-bar:hover { background: #0b5ed7; color: #fff; }
.md-mobile-bar-btn.whatsapp-bar { background: #25d366; }
.md-mobile-bar-btn.whatsapp-bar:hover { background: #1ebe5d; color: #fff; }

/* Breadcrumbs */
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-item a { color: var(--md-text-muted); }
.breadcrumb-item.active { color: var(--md-text); }

/* Auth Pages */
.md-auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--md-bg-alt); }
.md-auth-card { background: var(--md-bg); border-radius: var(--md-radius-lg); box-shadow: var(--md-shadow-xl); padding: 2.5rem; width: 100%; max-width: 420px; }

/* Footer */
.md-footer { background: var(--md-primary); color: rgba(255,255,255,0.7); padding-top: 4rem; }
.md-footer h5 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.md-footer a { color: rgba(255,255,255,0.6); transition: var(--md-transition); }
.md-footer a:hover { color: var(--md-accent); }
.md-footer ul { list-style: none; padding: 0; }
.md-footer ul li { margin-bottom: 8px; }
.md-footer ul li a { font-size: 0.88rem; }
.md-footer .footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 12px; }
.md-footer .footer-contact li i { color: var(--md-accent); margin-top: 3px; }
.md-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; margin-top: 2rem; text-align: center; font-size: 0.82rem; }
.md-footer .social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; color: rgba(255,255,255,0.7); transition: var(--md-transition); }
.md-footer .social-links a:hover { background: var(--md-accent); color: #fff; }

/* Admin */
.md-admin-sidebar { background: var(--md-primary); color: #fff; min-height: 100vh; width: 260px; position: fixed; top: 0; left: 0; z-index: 1050; overflow-y: auto; transition: var(--md-transition); }
.md-admin-sidebar .sidebar-brand { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.md-admin-sidebar .sidebar-nav { padding: 1rem 0; }
.md-admin-sidebar .sidebar-link { color: rgba(255,255,255,0.6); padding: 10px 1.5rem; font-size: 0.88rem; display: flex; align-items: center; gap: 10px; text-decoration: none; transition: var(--md-transition); border-left: 3px solid transparent; }
.md-admin-sidebar .sidebar-link:hover, .md-admin-sidebar .sidebar-link.active { color: #fff; background: rgba(255,255,255,0.08); border-left-color: var(--md-accent); }
.md-admin-sidebar .sidebar-link i { width: 20px; text-align: center; font-size: 0.9rem; }
.md-admin-sidebar .sidebar-link.text-danger:hover { background: rgba(220,53,69,0.15); }
.md-admin-content { margin-left: 260px; padding: 1.5rem; min-height: 100vh; background: var(--md-bg-alt); }
.md-admin-topbar { background: var(--md-bg); border-bottom: 1px solid var(--md-border); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; margin: -1.5rem -1.5rem 1.5rem; }
.md-admin-stat { background: var(--md-bg); border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 1.25rem; transition: var(--md-transition); }
.md-admin-stat:hover { box-shadow: var(--md-shadow-md); }
.md-admin-stat .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.md-admin-stat .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--md-primary); }
.md-admin-stat .stat-label { font-size: 0.82rem; color: var(--md-text-muted); }

/* Dashboard Modern Cards */
.dash-card { position: relative; overflow: hidden; border-radius: 16px; padding: 1.5rem; color: #fff; display: flex; align-items: center; gap: 1rem; transition: transform 0.3s, box-shadow 0.3s; }
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.dash-card-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.dash-card-body { position: relative; z-index: 2; }
.dash-card-label { font-size: 0.78rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.dash-card-value { font-size: 1.6rem; font-weight: 700; margin: 4px 0 0; }
.dash-card-wave { position: absolute; bottom: -20px; right: -20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); z-index: 1; }
.dash-card-primary { background: linear-gradient(135deg, #e8590c 0%, #d4420a 100%); }
.dash-card-success { background: linear-gradient(135deg, #198754 0%, #146c43 100%); }
.dash-card-warning { background: linear-gradient(135deg, #ff9800 0%, #e68900 100%); }
.dash-card-info { background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%); }
.dash-card-purple { background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%); }
.dash-card-orange { background: linear-gradient(135deg, #fd7e14 0%, #e86a0e 100%); }
.dash-card-teal { background: linear-gradient(135deg, #20c997 0%, #13a882 100%); }
.dash-card-pink { background: linear-gradient(135deg, #d63384 0%, #b92d73 100%); }

/* Dashboard Panels */
.dash-panel { background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }
.dash-panel-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: space-between; }
.dash-panel-header h5 { font-size: 0.95rem; font-weight: 600; margin: 0; color: var(--md-primary); display: flex; align-items: center; gap: 8px; }
.dash-panel-header h5 i { font-size: 0.85rem; opacity: 0.7; }
.dash-panel-body { padding: 1.25rem 1.5rem; }
.dash-panel-body.p-0 { padding: 0; }

/* Dashboard Tables */
.dash-panel .table { font-size: 0.85rem; }
.dash-panel .table thead th { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px; color: #6b7280; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 0.75rem 1rem; }
.dash-panel .table td { padding: 0.7rem 1rem; vertical-align: middle; }
.dash-panel .table-hover tbody tr:hover { background-color: rgba(232,89,12,0.03); }

/* Dashboard responsive */
@media (max-width: 768px) {
    .dash-card { padding: 1rem; }
    .dash-card-value { font-size: 1.3rem; }
    .dash-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .dash-panel-body { padding: 1rem; }
}

/* Cookie Consent */
.md-cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: var(--md-primary); color: rgba(255,255,255,0.8); padding: 1rem; z-index: 1060; box-shadow: 0 -4px 12px rgba(0,0,0,0.15); }
.md-cookie-consent a { color: var(--md-accent); }

/* Empty State */
.md-empty { text-align: center; padding: 4rem 2rem; }
.md-empty i { font-size: 3rem; color: var(--md-text-light); margin-bottom: 1rem; }
.md-empty h3 { color: var(--md-text-muted); font-size: 1.2rem; }
.md-empty p { color: var(--md-text-light); }

/* Page Hero */
.md-page-hero { background: var(--md-bg-section); padding: 3rem 0; border-bottom: 1px solid var(--md-border); }
.md-page-hero h1 { margin-bottom: 0.25rem; }

.policy-content { max-width: 800px; }
.policy-content h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--md-primary); }
.policy-effective { color: #6c757d; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--md-accent); }
.policy-content h2 { font-size: 1.25rem; color: var(--md-primary); margin-top: 2rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.policy-content h3 { font-size: 1.05rem; color: #333; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.policy-content p { color: #444; line-height: 1.7; margin-bottom: 0.75rem; }
.policy-content ul, .policy-content ol { color: #444; line-height: 1.7; margin-bottom: 1rem; padding-left: 1.5rem; }
.policy-content li { margin-bottom: 0.4rem; }
.policy-content strong { color: var(--md-primary); }
.policy-content br { margin-bottom: 0.5rem; display: block; content: ''; }

/* Responsive */
@media (max-width: 991.98px) {
  .md-hero { padding: 3rem 0; min-height: auto; }
  .md-hero .hero-image { display: none; }
  .md-hero-slider .carousel-item { min-height: auto; padding: 3.5rem 0 3rem; }
  .md-hero-slider .slider-image { display: none; }
  .md-floating { bottom: 80px; right: 16px; }
  .md-floating-btn { width: 48px; height: 48px; font-size: 1.1rem; }
  .md-floating-btn.quote, .md-floating-btn.back-to-top { display: none; }
  .md-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }
  .md-mobile-bar-btn { flex: 1; }
  .md-admin-sidebar { transform: translateX(-100%); }
  .md-admin-sidebar.show { transform: translateX(0); }
  .md-admin-content { margin-left: 0; }
  .md-logo-img { height: 40px; width: 140px; }
}

@media (max-width: 575.98px) {
  .section-padding { padding: 3rem 0; }
  .md-cta-banner { padding: 2rem 1.5rem; }
}

/* Print */
@media print {
  .md-header, .md-footer, .md-floating, .md-topbar, .md-cookie-consent, .no-print { display: none !important; }
  .md-admin-sidebar { display: none !important; }
  .md-admin-content { margin-left: 0 !important; }
}

/* ============================================
   Cart Panel - Slide-in from Right
   ============================================ */
.cart-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cart-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--md-panel-width);
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 1100;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-panel.active {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--md-border);
  background: var(--md-primary);
  color: #fff;
}
.cart-panel-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.cart-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--md-transition);
}
.cart-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.panel-empty {
  padding: 3rem 1rem;
}
.panel-empty i {
  color: var(--md-text-light);
}

.panel-items {
  padding: 0.5rem 0;
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--md-border-light);
  transition: var(--md-transition);
  position: relative;
}
.panel-item:hover {
  background: var(--md-bg-alt);
}

.panel-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--md-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--md-bg-alt);
}
.panel-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.panel-item-info {
  flex: 1;
  min-width: 0;
}

.panel-item-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-text);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-item-name:hover {
  color: var(--md-accent);
}

.panel-item-price {
  font-size: 0.78rem;
  color: var(--md-text-muted);
  margin-top: 2px;
}

.panel-item-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--md-accent);
  margin-top: 2px;
}

.panel-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--md-text-light);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--md-transition);
}
.panel-item-remove:hover {
  background: #fee2e2;
  color: var(--md-danger);
}

.panel-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--md-border);
  background: var(--md-bg-alt);
}
.panel-footer .btn {
  font-size: 0.88rem;
  padding: 10px;
  font-weight: 600;
}

/* ============================================
   Product Card Quick Actions (Wishlist + Compare)
   ============================================ */
.card-img-wrapper {
  position: relative;
}

.card-quick-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 5;
}
.md-product-card:hover .card-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--md-transition);
  font-size: 0.85rem;
  color: var(--md-text-muted);
}
.card-action-btn:hover {
  background: var(--md-accent);
  color: #fff;
  transform: scale(1.1);
}
.card-action-btn.active {
  background: var(--md-accent);
  color: #fff;
}
.card-action-btn i {
  font-size: 0.85rem;
}

/* ============================================
   Header Cart + Wishlist Badge Buttons
   ============================================ */
.header-cart-btn, .header-wishlist-btn {
  transition: var(--md-transition);
}
.header-cart-btn:hover, .header-wishlist-btn:hover {
  background: var(--md-accent);
  border-color: var(--md-accent);
  color: #fff;
}

/* ============================================
   Product Detail - Add to Cart area
   ============================================ */
.product-add-cart, .product-wishlist-btn {
  transition: var(--md-transition);
}
.product-wishlist-btn.active {
  background: #fef2f2;
  border-color: var(--md-danger);
  color: var(--md-danger);
}

/* ============================================
   Cart Page - qty controls
   ============================================ */
.cart-qty-minus, .cart-qty-plus {
  min-width: 32px;
}

/* ============================================
   Slide-in panel animation for items
   ============================================ */
@keyframes panelItemSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-item {
  animation: panelItemSlideIn 0.25s ease forwards;
}

/* ============================================
   Cart badge pulse animation
   ============================================ */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-count.pulse, .wishlist-count.pulse {
  animation: badgePulse 0.3s ease;
}

/* State Cards */
.md-state-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  background: #fff;
}
.md-state-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--md-primary);
}
.md-state-card .state-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
}
.md-state-card:hover .state-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
