/* =============================================
   DISTRIBUIDORA - DARK MODERN THEME
   ============================================= */

* { font-family: 'Inter', sans-serif !important; }

body {
    background: #09090b !important;
    color: #e4e4e7 !important;
    -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.fw-800 { font-weight: 800 !important; }
.text-orange { color: #f97316 !important; }
.bg-orange { background-color: #f97316 !important; }

.btn-orange {
    background: linear-gradient(135deg, #f97316, #fb923c) !important;
    border: none !important; color: #fff !important;
    font-weight: 600 !important; border-radius: 10px !important;
    transition: all 0.3s ease !important;
}
.btn-orange:hover, .btn-orange:focus {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    color: #fff !important; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249,115,22,0.35) !important;
}

.btn-outline-orange {
    border: 1.5px solid #f97316 !important; color: #f97316 !important;
    background: transparent !important; border-radius: 10px !important;
}
.btn-outline-orange:hover { background: #f97316 !important; color: #fff !important; }

/* ---- Bootstrap Dark Overrides ---- */
.form-control, .form-select {
    background: #18181b !important; border: 1px solid #27272a !important;
    color: #e4e4e7 !important; border-radius: 10px !important;
    padding: 0.6rem 1rem !important;
}
.form-control:focus, .form-select:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15) !important;
    background: #18181b !important;
}
.form-control::placeholder { color: #52525b !important; }

.alert { border: none !important; border-radius: 12px !important; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-dark-custom {
    background: rgba(9, 9, 11, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0.5rem 0 !important;
}
.navbar-brand {
    font-weight: 800 !important; color: #fff !important;
    letter-spacing: -0.5px !important; font-size: 1.1rem !important;
}
.navbar .nav-link {
    color: #71717a !important; font-weight: 500 !important; font-size: 0.88rem !important;
    padding: 0.5rem 1rem !important; transition: color 0.2s !important;
}
.navbar .nav-link:hover { color: #fff !important; }

.brand-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}

.cart-float-btn {
    background: #18181b !important; border: 1px solid #27272a !important;
    color: #e4e4e7 !important; border-radius: 50px !important;
    padding: 8px 18px !important; font-size: 0.85rem !important;
    font-weight: 600 !important; text-decoration: none !important;
    transition: all 0.2s !important; display: inline-flex;
    align-items: center; gap: 6px; position: relative;
}
.cart-float-btn:hover {
    background: #f97316 !important; color: #fff !important; border-color: #f97316 !important;
}
.cart-float-btn .cart-count {
    background: #f97316 !important; color: #fff; font-size: 0.6rem;
    padding: 2px 7px; border-radius: 50px;
    position: absolute; top: -6px; right: -6px;
    font-weight: 700; line-height: 1.4;
}

/* =============================================
   STORE BANNER
   ============================================= */
.store-banner-section {
    background: #09090b;
}
.store-banner-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border-bottom: 2px solid rgba(249,115,22,0.15);
}
.store-banner-section {
    background: #09090b;
    padding: 3rem 1rem 0.5rem;
}
.store-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, #09090b 0%, #18181b 50%, #1c1008 100%) !important;
    padding: 4rem 0 3.5rem !important;
}
.hero-section::before {
    content: ''; position: absolute; top: -40%; right: -15%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.2), transparent);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
    color: #f97316; padding: 8px 20px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important; font-weight: 800 !important;
    line-height: 1.08 !important; letter-spacing: -1.5px !important; color: #fff !important;
}

.hero-subtitle { color: #71717a !important; font-size: 1.05rem !important; max-width: 480px; line-height: 1.6; }

.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid #27272a;
}
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stat-label {
    font-size: 0.7rem; color: #52525b; text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 600;
}

/* =============================================
   CATEGORIES
   ============================================= */
.categories-section {
    background: #0f0f12 !important; padding: 1rem 0 !important;
    border-bottom: 1px solid #1a1a1f !important;
}
.categories-scroll {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 50px;
    background: #18181b; color: #71717a;
    font-weight: 500; font-size: 0.82rem;
    text-decoration: none !important; white-space: nowrap;
    border: 1px solid #27272a; transition: all 0.2s;
    cursor: pointer;
}
.category-chip:hover { color: #e4e4e7; border-color: #3f3f46; background: #1f1f23; }
.category-chip.active {
    background: #f97316 !important; color: #fff !important; border-color: #f97316 !important;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

/* =============================================
   SEARCH
   ============================================= */
.search-bar { position: relative; max-width: 520px; margin: 0 auto; }
.search-bar .form-control {
    padding-left: 48px !important; height: 52px !important;
    border-radius: 50px !important; font-size: 0.92rem !important;
    background: #141416 !important; border: 1px solid #27272a !important;
}
.search-bar .form-control:focus { border-color: #f97316 !important; }
.search-bar > i, .search-bar > .search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #52525b; font-size: 0.95rem; z-index: 2; line-height: 1;
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title { font-weight: 800 !important; font-size: 1.4rem !important; letter-spacing: -0.5px; color: #fff !important; }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
    background: #141416 !important; border: 1px solid #1e1e22 !important;
    border-radius: 16px !important; overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.product-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(249,115,22,0.25) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(249,115,22,0.1) !important;
}

.product-img-wrap {
    aspect-ratio: 1 / 1; overflow: hidden; position: relative;
    background: linear-gradient(180deg, #1a1a1f 0%, #111114 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
}
.product-img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
}
.product-card:hover .product-img { transform: scale(1.08); }

.product-img-placeholder { color: #3f3f46; }

.product-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff; padding: 5px 12px; border-radius: 8px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.product-info { padding: 1rem 1rem 1.1rem; }
.product-category {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px;
    color: #52525b; font-weight: 600;
}
.product-name {
    font-size: 0.92rem; font-weight: 700; color: #e4e4e7;
    line-height: 1.3; margin: 5px 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { font-size: 1.35rem; font-weight: 800; color: #f97316; letter-spacing: -0.5px; }

.btn-add-cart {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 11px; border: none; border-radius: 10px;
    background: rgba(249,115,22,0.08); color: #f97316;
    font-weight: 600; font-size: 0.82rem;
    transition: all 0.25s; cursor: pointer;
    border: 1px solid rgba(249,115,22,0.15);
}
.btn-add-cart:hover {
    background: #f97316; color: #fff;
    box-shadow: 0 6px 20px rgba(249,115,22,0.3);
    transform: translateY(-1px);
}
.btn-add-cart.added {
    background: #22c55e !important; color: #fff !important;
    border-color: #22c55e !important;
}
.btn-add-cart:disabled {
    background: #1a1a1f !important; color: #3f3f46 !important;
    border-color: #27272a !important; cursor: not-allowed;
    box-shadow: none !important; transform: none !important;
}

/* =============================================
   DARK CARDS (Cart, Checkout, Order)
   ============================================= */
.card-dark {
    background: #141416 !important; border: 1px solid #1e1e22 !important;
    border-radius: 16px !important; color: #e4e4e7 !important;
}

/* =============================================
   CHECKOUT - TYPE & PAYMENT
   ============================================= */
.order-type-card, .payment-card {
    cursor: pointer; transition: all 0.25s;
    background: #18181b !important; border: 2px solid #27272a !important;
    color: #e4e4e7 !important; border-radius: 12px !important;
}
.order-type-card:hover, .payment-card:hover {
    border-color: #3f3f46 !important; background: #1f1f23 !important;
}
.order-type-option input:checked + .order-type-card,
.payment-option input:checked + .payment-card {
    border-color: #f97316 !important; background: rgba(249,115,22,0.04) !important;
    box-shadow: 0 0 0 1px #f97316, 0 0 25px rgba(249,115,22,0.1) !important;
}

/* =============================================
   STATUS TIMELINE
   ============================================= */
.status-timeline { padding: 0 0.5rem; }
.timeline-line {
    position: absolute; top: 16px; left: 8%; right: 8%; height: 3px;
    background: #27272a; z-index: 0;
}
.timeline-step { position: relative; z-index: 1; flex: 1; }
.timeline-dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto;
    border: 3px solid #09090b; background: #27272a;
    box-shadow: 0 0 0 2px #27272a;
}
.timeline-step.active .timeline-dot {
    background: #22c55e; box-shadow: 0 0 0 2px #22c55e, 0 0 15px rgba(34,197,94,0.25);
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast-cart {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #18181b; color: #e4e4e7;
    padding: 14px 24px; border-radius: 14px;
    font-weight: 600; font-size: 0.88rem;
    border: 1px solid #27272a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    animation: toastSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   FOOTER
   ============================================= */
.footer-dark {
    background: #0f0f12 !important; border-top: 1px solid #1a1a1f !important;
    color: #71717a !important; padding: 3rem 0 1.5rem !important;
}
.footer-dark h6 { color: #e4e4e7 !important; }
.footer-dark hr { border-color: #1e1e22 !important; }

.footer-pay-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #18181b; border: 1px solid #27272a;
    display: flex; align-items: center; justify-content: center;
}

/* =============================================
   INSTALL BANNER
   ============================================= */
.install-banner-card {
    background: #141416; border: 1px solid #27272a;
    border-radius: 16px; backdrop-filter: blur(20px);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center; padding: 4rem 1rem; color: #71717a;
}
.empty-state i { color: #3f3f46; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hero-section { padding: 4rem 0 3rem !important; }
    .hero-title { font-size: 1.9rem !important; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.2rem; }
    .product-img-wrap { padding: 8px; }
    .product-info { padding: 0.75rem 0.85rem; }
    .product-name { font-size: 0.82rem; }
    .product-price { font-size: 1.1rem; }
    .btn-add-cart { padding: 9px; font-size: 0.78rem; }
}

@media (max-width: 400px) {
    .hero-stats { gap: 1rem; }
}
