/* ═══════════════════════════════════════════════════
   FLEETIX — detalii.css
   Store Detail & Products Page · Dark Mode
═══════════════════════════════════════════════════ */

/* ── Dark body override ──────────────────────────── */
body.fx-dark {
    background: #000d1f;
    color: rgba(255,255,255,0.9);
  }
  
  /* ── Shared nav overrides for dark pages ─────────── */
  body.fx-dark .fx-nav {
    background: rgba(0,10,28,0.98);
  }
  
  /* ── Cart button in nav ──────────────────────────── */
  .fx-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .fx-cart-btn:hover { background: rgba(255,204,0,0.12); color: #FFCC00; }
  .fx-cart-btn--active { background: rgba(255,204,0,0.12); color: #FFCC00; border-color: rgba(255,204,0,0.25); }
  
  .fx-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FFCC00;
    color: #001428;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }
  
  /* ── Back link ───────────────────────────────────── */
  .fx-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
  }
  .fx-back-link:hover { color: #FFCC00; }
  
  /* ── Store hero ──────────────────────────────────── */
  .fx-store-hero {
    position: relative;
    background: linear-gradient(160deg, #001428 0%, #001e40 60%, #002d5c 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .fx-store-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .fx-store-hero__glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,204,0,0.07) 0%, transparent 65%);
  }
  
  .fx-dots {
    position: absolute;
    inset: 0;
  }
  
  .fx-store-hero__content {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .fx-store-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFCC00 0%, #e6b800 100%);
    color: #001428;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 28px rgba(255,204,0,0.25);
  }
  
  .fx-store-info__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .fx-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
  }
  
  .fx-badge--cat {
    background: rgba(255,204,0,0.12);
    border: 1px solid rgba(255,204,0,0.25);
    color: #FFCC00;
  }
  
  .fx-badge--open {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.22);
    color: #4ade80;
  }
  
  .fx-store-info__name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  
  .fx-store-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .fx-store-info__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
  }
  
  /* ── Main layout: products + sidebar ─────────────── */
  .fx-layout {
    background: #000d1f;
    padding: 40px 0 100px;
  }
  
  .fx-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }
  
  @media (max-width: 991.98px) {
    .fx-layout__inner {
      grid-template-columns: 1fr;
    }
    .fx-sidebar-cart { display: none; }
  }
  
  /* ── Section label ───────────────────────────────── */
  .fx-section-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .fx-section-label h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.015em;
  }
  
  .fx-section-label span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
  }
  
  /* ── Product card ────────────────────────────────── */
  .fx-prod-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }
  
  .fx-prod-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,204,0,0.2);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  }
  
  .fx-prod-card__body { padding: 20px 20px 0; flex: 1; }
  
  .fx-prod-card__name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }
  
  .fx-prod-card__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  .fx-prod-card__price {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFCC00;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }
  
  /* ── Product card actions ────────────────────────── */
  .fx-prod-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
  }
  
  .fx-qty-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .fx-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
  }
  
  .fx-qty-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #FFCC00;
  }
  
  .fx-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    user-select: none;
  }
  
  .fx-qty-selector--sm .fx-qty-btn { width: 28px; height: 28px; }
  .fx-qty-selector--sm .fx-qty-val { min-width: 24px; font-size: 0.83rem; }
  
  /* ── Add to cart button ──────────────────────────── */
  .fx-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFCC00;
    color: #001428;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    white-space: nowrap;
  }
  
  .fx-add-btn:hover {
    background: #FFD740;
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(255,204,0,0.35);
  }
  
  .fx-add-btn:active { transform: scale(0.98); }
  
  .fx-add-btn--loading {
    opacity: 0.6;
    pointer-events: none;
  }
  
  /* ── Sidebar cart ────────────────────────────────── */
  .fx-sidebar-cart {
    position: sticky;
    top: 80px;
  }
  
  .fx-sidebar-cart__inner {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    overflow: hidden;
  }
  
  .fx-sidebar-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .fx-sidebar-cart__title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
  }
  
  .fx-sidebar-cart__badge {
    background: #FFCC00;
    color: #001428;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
  }
  
  .fx-sidebar-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    color: rgba(255,255,255,0.3);
    text-align: center;
  }
  
  .fx-sidebar-cart__empty p {
    font-size: 0.8rem;
    margin: 0;
  }
  
  .fx-sidebar-cart__list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
  }
  
  .fx-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    font-size: 0.8rem;
  }
  
  .fx-sidebar-item__qty {
    color: #FFCC00;
    font-weight: 600;
    min-width: 20px;
    flex-shrink: 0;
  }
  
  .fx-sidebar-item__name {
    flex: 1;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .fx-sidebar-item__price {
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .fx-sidebar-cart__footer {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .fx-sidebar-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
  }
  
  .fx-sidebar-cart__subtotal strong {
    color: #FFCC00;
    font-size: 1rem;
    font-weight: 700;
  }
  
  /* ── Shared buttons on dark pages ────────────────── */
  body.fx-dark .fx-btn--primary {
    background: #FFCC00;
    color: #001428;
    border: none;
    box-shadow: 0 4px 18px rgba(255,204,0,0.28);
  }
  
  body.fx-dark .fx-btn--primary:hover {
    background: #FFD740;
    color: #001428;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,204,0,0.4);
  }
  
  .fx-btn--block { width: 100%; justify-content: center; }
  
  /* ── Mobile bottom bar ───────────────────────────── */
  .fx-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 12px 16px;
    background: rgba(0,10,28,0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  
  @media (max-width: 991.98px) {
    .fx-bottom-bar { display: block; }
    .fx-layout { padding-bottom: 120px; }
  }
  
  .fx-bottom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .fx-bottom-bar__info { display: flex; flex-direction: column; gap: 2px; }
  .fx-bottom-bar__count { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-weight: 500; }
  .fx-bottom-bar__sub { font-size: 1rem; font-weight: 700; color: #FFCC00; font-family: 'Syne', sans-serif; }
  
  /* ── Empty products ──────────────────────────────── */
  .fx-empty-products {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.08);
  }
  
  /* ── Toast notification ──────────────────────────── */
  .fx-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(20,35,60,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
  }
  
  .fx-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  .fx-toast--error {
    border-color: rgba(239,68,68,0.35);
    color: #fca5a5;
  }
  
  @media (max-width: 991.98px) {
    .fx-toast { bottom: 90px; }
  }
  