/* ── Firefly IT Solutions Store — Custom Styles ──────────────────────────── */

:root {
  --ff-orange:  #FF6B35;
  --ff-dark:    #1A1A2E;
  --ff-navy:    #16213E;
  --ff-light:   #F8F9FA;
  --ff-border:  #E0E0E0;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.ff-navbar {
  background: var(--ff-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.ff-navbar .navbar-brand { color: #fff !important; font-size: 1.15rem; }
.ff-brand-icon { color: var(--ff-orange); }
/* mix-blend-mode:lighten makes the black logo background invisible against the dark navbar */
.ff-logo { object-fit: contain; mix-blend-mode: lighten; }
/* On white/light backgrounds (e.g. admin pages) lighten can look odd — override if needed */
.admin-sidebar .ff-logo { mix-blend-mode: lighten; }

.search-form .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
  min-width: 220px;
}
.search-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.search-form .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--ff-orange);
  color: #fff;
  box-shadow: none;
}

.btn-cart {
  background: var(--ff-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .45rem .8rem;
}
.btn-cart:hover { background: #e85a22; color: #fff; }

/* ── Category filter ─────────────────────────────────────────────────────── */
.category-filter { gap: .4rem; flex-wrap: wrap; }
.category-filter .btn {
  border-radius: 20px;
  font-size: .82rem;
  padding: .3rem .9rem;
  border-color: var(--ff-border);
  background: #fff;
  color: #333;
  transition: all .15s;
}
.category-filter .btn.active,
.category-filter .btn:hover {
  background: var(--ff-orange);
  border-color: var(--ff-orange);
  color: #fff;
}

/* ── Product cards ───────────────────────────────────────────────────────── */
.product-card {
  border: 1px solid var(--ff-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.product-card .card-img-wrap {
  height: 160px;
  background: var(--ff-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .card-img-wrap img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
  padding: 8px;
}
.product-card .card-img-wrap .no-img {
  font-size: 3rem;
  color: #ccc;
}
.product-card .card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem; }
.product-card .card-title { font-size: .9rem; font-weight: 600; color: #222; line-height: 1.3; margin-bottom: .3rem; }
.product-card .card-code  { font-size: .75rem; color: #888; margin-bottom: .4rem; }
.product-card .card-cat   { font-size: .72rem; color: var(--ff-orange); font-weight: 500; margin-bottom: .5rem; }
.product-card .card-price { font-size: 1.1rem; font-weight: 700; color: var(--ff-dark); margin-top: auto; }
.product-card .card-price small { font-size: .72rem; font-weight: 400; color: #888; display: block; }
.product-card .btn-add {
  background: var(--ff-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 100%;
  margin-top: .6rem;
  font-size: .85rem;
  padding: .45rem;
  transition: background .15s;
}
.product-card .btn-add:hover { background: #e85a22; }
.product-card .out-of-stock { font-size: .75rem; color: #dc3545; font-weight: 500; }

/* ── Results bar ─────────────────────────────────────────────────────────── */
.results-bar { font-size: .85rem; color: #666; }

/* ── Cart ────────────────────────────────────────────────────────────────── */
.cart-img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #f5f5f5; padding: 4px; }
.cart-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #888; border-bottom: 2px solid var(--ff-border); }
.qty-input { width: 60px; text-align: center; }

/* ── Checkout ────────────────────────────────────────────────────────────── */
.checkout-section { background: #fff; border: 1px solid var(--ff-border); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.25rem; }
.checkout-section h5 { font-size: .95rem; font-weight: 700; color: var(--ff-dark); margin-bottom: 1rem; }

.order-summary-box { background: var(--ff-light); border: 1px solid var(--ff-border); border-radius: 10px; padding: 1.25rem; }
.order-summary-box .oi-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .3rem 0; border-bottom: 1px dotted #ddd; }
.order-summary-box .oi-row:last-child { border: none; }
.order-summary-total { font-weight: 700; font-size: 1.05rem; color: var(--ff-dark); }

/* ── Payment method cards ────────────────────────────────────────────────── */
.payment-option { border: 2px solid var(--ff-border); border-radius: 10px; padding: 1rem; cursor: pointer; transition: border-color .15s; }
.payment-option.selected { border-color: var(--ff-orange); background: #fff8f5; }
.payment-option input[type=radio] { accent-color: var(--ff-orange); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-ff { background: var(--ff-orange); color: #fff; border: none; }
.btn-ff:hover { background: #e85a22; color: #fff; }
.btn-ff-outline { border: 2px solid var(--ff-orange); color: var(--ff-orange); background: transparent; }
.btn-ff-outline:hover { background: var(--ff-orange); color: #fff; }

/* ── Success page ────────────────────────────────────────────────────────── */
.success-icon { font-size: 4rem; color: #28a745; }
.order-detail-box { background: var(--ff-light); border-radius: 10px; padding: 1.5rem; }
.bank-details-box { background: #fff; border: 2px solid var(--ff-orange); border-radius: 10px; padding: 1.25rem; }
.bank-details-box h6 { color: var(--ff-orange); font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ff-footer { background: var(--ff-dark); color: #aaa; }
.ff-footer a { color: var(--ff-orange); text-decoration: none; }
.ff-footer a:hover { text-decoration: underline; }
.ff-footer h6 { color: #fff; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.product-grid-skeleton { min-height: 300px; }
.col-lg-2-4 { flex: 0 0 auto; width: 20%; }
@media (max-width: 992px) { .col-lg-2-4 { width: 33.333%; } }
@media (max-width: 576px) { .col-lg-2-4 { width: 50%; } }
@media (max-width: 576px) {
  .search-form .form-control { min-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK STORE THEME
   ═══════════════════════════════════════════════════════════════════════════ */

.ff-dark-theme {
  background: #0a0a0a;
  color: #d0d0d0;
}

/* ── Announcement Bar ─────────────────────────────────────────────────────── */
.ff-announce-bar {
  background: var(--ff-orange);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem 0;
}

/* ── Main Header ──────────────────────────────────────────────────────────── */
.ff-header {
  background: #111;
  border-bottom: 1px solid #1e1e1e;
}
.ff-search-form { max-width: 640px; }
.ff-search-input {
  background: #1a1a1a !important;
  border: 1.5px solid #2a2a2a !important;
  border-right: none !important;
  color: #e0e0e0 !important;
  padding: .65rem 1rem;
  font-size: .92rem;
}
.ff-search-input::placeholder { color: #555 !important; }
.ff-search-input:focus {
  background: #1f1f1f !important;
  border-color: var(--ff-orange) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.ff-search-btn {
  background: var(--ff-orange) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 1.25rem;
  font-size: 1rem;
}
.ff-search-btn:hover { background: #e85a22 !important; }

.ff-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  text-decoration: none;
  padding: .3rem .7rem;
  border-radius: 6px;
  transition: color .15s;
  flex-shrink: 0;
}
.ff-icon-btn:hover { color: var(--ff-orange); }
.ff-icon-label { font-size: .63rem; margin-top: .15rem; letter-spacing: .03em; }

/* ── Category Nav ─────────────────────────────────────────────────────────── */
.ff-cat-nav {
  background: #141414;
  border-bottom: 1px solid #1e1e1e;
}
.ff-cat-nav-outer {
  display: flex;
  align-items: center;
  padding: .35rem 0;
  gap: 0;
  position: relative;
}
.ff-all-cats-wrap {
  flex-shrink: 0;
  margin-right: .25rem;
}
.ff-cat-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  padding-bottom: .2rem;
  gap: 0;
  flex: 1 1 0;
  min-width: 0;
}
.ff-cat-nav-inner::-webkit-scrollbar { height: 3px; }
.ff-cat-nav-inner::-webkit-scrollbar-track { background: transparent; }
.ff-cat-nav-inner::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.ff-cat-nav-inner::-webkit-scrollbar-thumb:hover { background: var(--ff-orange); }
.ff-all-cats-btn {
  background: var(--ff-orange) !important;
  color: #fff !important;
  border: none !important;
  font-size: .78rem;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ff-all-cats-btn:hover { background: #e85a22 !important; }
.ff-cat-dropdown {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
}
.ff-cat-dropdown .dropdown-item {
  color: #bbb;
  font-size: .8rem;
  padding: .38rem 1rem;
}
.ff-cat-dropdown .dropdown-item:hover {
  background: rgba(255,107,53,.1);
  color: var(--ff-orange);
}
.ff-cat-link {
  color: #999;
  text-decoration: none;
  font-size: .78rem;
  padding: .45rem .85rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.ff-cat-link:hover, .ff-cat-link.active {
  color: var(--ff-orange);
  background: rgba(255,107,53,.07);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.ff-hero {
  background: #0a0a0a;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.ff-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(255,107,53,.07) 0%, transparent 60%);
  pointer-events: none;
}
.ff-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,.3), transparent);
}
.ff-hero-eyebrow {
  color: var(--ff-orange);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}
.ff-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.ff-hero-title span { color: var(--ff-orange); }
.ff-hero-subtitle {
  color: #888;
  font-size: .97rem;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.ff-btn-primary {
  background: var(--ff-orange);
  color: #fff !important;
  border: none;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 6px;
  transition: background .15s, transform .1s;
}
.ff-btn-primary:hover { background: #e85a22; transform: translateY(-1px); }
.ff-btn-outline {
  background: transparent;
  color: #ccc !important;
  border: 1.5px solid #333;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 6px;
  transition: border-color .15s, color .15s;
}
.ff-btn-outline:hover { border-color: var(--ff-orange); color: var(--ff-orange) !important; }

.ff-hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.ff-hero-logo-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 65%);
  pointer-events: none;
}
.ff-hero-logo-img {
  max-height: 340px;
  max-width: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 40px rgba(255,107,53,.35));
}
.ff-hero-placeholder {
  font-size: 8rem;
  color: var(--ff-orange);
  opacity: .15;
}

/* ── Trust Bar ────────────────────────────────────────────────────────────── */
.ff-trust-bar {
  background: #0f0f0f;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.ff-trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 0;
}
.ff-trust-item i { font-size: 1.5rem; color: var(--ff-orange); flex-shrink: 0; }
.ff-trust-item strong { color: #e0e0e0; font-size: .83rem; display: block; margin-bottom: .1rem; }
.ff-trust-item span { color: #666; font-size: .73rem; }

/* ── Section Headings ─────────────────────────────────────────────────────── */
.ff-section-heading {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ff-section-link {
  color: var(--ff-orange);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
}
.ff-section-link:hover { text-decoration: underline; }

/* ── Category Tiles (photo-based) ────────────────────────────────────────── */
.ff-cat-tile {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4/3;
  background: #111;
  border: 1px solid #1e1e1e;
  transition: transform .25s, box-shadow .25s;
}
.ff-cat-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255,90,0,.25);
  text-decoration: none;
}
.ff-cat-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
}
.ff-cat-tile:hover .ff-cat-tile-bg { transform: scale(1.06); }
.ff-cat-tile-bg i {
  font-size: 2.8rem;
  color: var(--ff-orange);
  opacity: .8;
}
.ff-cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: .85rem .9rem;
  transition: background .2s;
}
.ff-cat-tile:hover .ff-cat-tile-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.15) 100%);
}
.ff-cat-tile-overlay .tile-name {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  line-height: 1.3;
}
.ff-cat-tile-overlay .tile-explore {
  font-size: .68rem;
  color: var(--ff-orange);
  margin-top: .3rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
}
.ff-cat-tile:hover .tile-explore {
  opacity: 1;
  transform: translateY(0);
}
/* orange bottom border accent on hover */
.ff-cat-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ff-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.ff-cat-tile:hover::after { transform: scaleX(1); }

/* ── Products Filter Bar ──────────────────────────────────────────────────── */
.ff-products-header {
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 1rem;
}
.ff-select {
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  color: #ccc !important;
  font-size: .82rem;
}
.ff-select:focus {
  border-color: var(--ff-orange) !important;
  box-shadow: none !important;
  background: #141414 !important;
  color: #fff !important;
}
.ff-select option { background: #141414; }
.ff-search-inline {
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  color: #ccc !important;
  font-size: .82rem;
}
.ff-search-inline::placeholder { color: #555 !important; }
.ff-search-inline:focus {
  border-color: var(--ff-orange) !important;
  box-shadow: none !important;
  background: #141414 !important;
  color: #fff !important;
}

/* ── Product Cards (dark) ─────────────────────────────────────────────────── */
.ff-dark-theme .product-card {
  background: #111;
  border-color: #1e1e1e;
}
.ff-dark-theme .product-card:hover {
  border-color: var(--ff-orange);
  box-shadow: 0 6px 24px rgba(255,107,53,.1);
}
.ff-dark-theme .card-img-wrap { background: #1a1a1a; }
.ff-dark-theme .card-img-wrap .no-img { color: #333; }
.ff-dark-theme .card-title { color: #ddd; }
.ff-dark-theme .card-code  { color: #555; }
.ff-dark-theme .card-price { color: #fff; }
.ff-dark-theme .out-of-stock { color: #c0392b; }

/* ── Feature Bar ──────────────────────────────────────────────────────────── */
.ff-feature-bar {
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
}
.ff-feature-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.4rem .5rem;
}
.ff-feature-item i { font-size: 1.8rem; color: var(--ff-orange); flex-shrink: 0; }
.ff-feature-item strong { color: #e0e0e0; display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.ff-feature-item span { color: #666; font-size: .73rem; }

/* ── Footer (dark) ────────────────────────────────────────────────────────── */
.ff-footer {
  background: #080808;
  border-top: 1px solid #1a1a1a;
  color: #666;
}
.ff-footer a { color: #666; }
.ff-footer a:hover { color: var(--ff-orange); }
.ff-footer h6 { color: #fff; }

/* ── Dark scrollbar ───────────────────────────────────────────────────────── */
.ff-dark-theme ::-webkit-scrollbar { width: 6px; height: 6px; }
.ff-dark-theme ::-webkit-scrollbar-track { background: #0a0a0a; }
.ff-dark-theme ::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
.ff-dark-theme ::-webkit-scrollbar-thumb:hover { background: var(--ff-orange); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ff-hero { padding: 2.5rem 0 2rem; }
  .ff-hero-logo-wrap { min-height: 200px; }
  .ff-hero-logo-img { max-height: 200px; }
  .ff-hero-logo-glow { width: 260px; height: 260px; }
  .ff-hero-actions .btn { font-size: .82rem; padding: .5rem 1rem; }
  .ff-trust-item { padding: .7rem 0; }
  .ff-feature-item { padding: .9rem 0; }
}
@media (max-width: 576px) {
  .ff-announce-bar .d-flex { flex-direction: column; gap: .15rem !important; text-align: center; }
  .ff-hero-title { font-size: 1.75rem; }
}
