/* =====================================================
   Office Essentials UK – Main Stylesheet
   ===================================================== */

/* Google Fonts imported in HTML */
:root {
  --blue:    #007BFF;
  --blue-dk: #0056b3;
  --green:   #28A745;
  --grey:    #333333;
  --lgrey:   #f8f9fa;
  --border:  #dee2e6;
  --white:   #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--grey);
  background: var(--white);
  margin: 0;
  padding-top: 72px; /* offset for fixed navbar */
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue) !important;
  letter-spacing: -0.02em;
}
.navbar { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav-link { font-size: 0.88rem; font-weight: 600; color: var(--grey) !important; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--blue) !important; }

/* Search bar */
.search-form .form-control { font-size: 0.85rem; border-radius: 4px 0 0 4px; }
.search-form .btn { border-radius: 0 4px 4px 0; }

/* Cart icon badge */
.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--blue); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ── HERO / CAROUSEL ─────────────────────────────── */
.hero-carousel { background: #001f5b; }
.hero-carousel .carousel-item {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.slide-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.35;
}
.carousel-caption-custom {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 2rem;
}
.carousel-caption-custom h1 { font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 800; }
.carousel-caption-custom p  { font-size: 1.05rem; margin-bottom: 1.5rem; }
.carousel-caption-custom .btn { font-weight: 600; }

/* ── SECTION TITLES ──────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { font-weight: 700; font-size: 1.75rem; }
.section-title p  { color: #666; margin-top: 0.5rem; }
.section-title .divider {
  width: 60px; height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── PRODUCT CARDS ───────────────────────────────── */
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-3px); }

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: #eef2f7;
}
.product-card .card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card .card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-card .price { font-size: 1.2rem; font-weight: 800; color: var(--blue); }
.product-card .price-was { font-size: 0.82rem; color: #999; text-decoration: line-through; }
.product-card .btn-add {
  margin-top: auto;
  background: var(--blue); color: #fff;
  border: none; border-radius: 4px;
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.product-card .btn-add:hover { background: var(--blue-dk); }

.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 3px;
}
.badge-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 3px;
}
.product-img-wrap { position: relative; }

/* ── CATEGORY CARDS ──────────────────────────────── */
.cat-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.cat-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.cat-card-body {
  background: var(--blue); color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cat-card-body i { font-size: 1.1rem; }

/* ── TRUST BADGES ────────────────────────────────── */
.trust-bar { background: var(--lgrey); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { text-align: center; padding: 1.5rem 1rem; }
.trust-item i { font-size: 2rem; color: var(--blue); margin-bottom: 0.5rem; display: block; }
.trust-item h6 { font-weight: 700; margin-bottom: 0.25rem; }
.trust-item p  { font-size: 0.82rem; color: #666; margin: 0; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
}
.stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card p { font-size: 0.92rem; color: #555; font-style: italic; }
.testimonial-card .author { font-weight: 700; font-size: 0.85rem; margin-top: 1rem; }

/* ── BUYING GUIDES ───────────────────────────────── */
.guide-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow .2s;
  text-decoration: none; color: inherit; display: block;
}
.guide-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.guide-card i { font-size: 2rem; color: var(--blue); margin-bottom: 0.75rem; display: block; }
.guide-card h5 { font-weight: 700; }
.guide-card p { font-size: 0.85rem; color: #666; margin-bottom: 0; }

/* ── CATEGORY PAGE SIDEBAR ───────────────────────── */
.filter-sidebar { background: var(--lgrey); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.filter-sidebar h5 { font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.filter-sidebar label { font-size: 0.85rem; }
.filter-sidebar .section-label { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: #888; margin-top: 1rem; margin-bottom: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }

/* ── PRODUCT PAGE ────────────────────────────────── */
.qty-selector { display: flex; align-items: center; gap: 0.5rem; }
.qty-selector button { background: var(--lgrey); border: 1px solid var(--border); border-radius: 4px; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-selector input { width: 60px; text-align: center; border: 1px solid var(--border); border-radius: 4px; height: 36px; }
.product-rating .stars { display: inline; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.35rem 0; font-size: 0.92rem; }
.feature-list li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ── CART TABLE ──────────────────────────────────── */
.cart-table th { background: var(--lgrey); font-size: 0.85rem; text-transform: uppercase; font-weight: 700; color: #666; }
.cart-total-box { background: var(--lgrey); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.cart-total-box .total-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.95rem; }
.cart-total-box .total-row.grand { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; }

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb { background: var(--lgrey); border-radius: 6px; padding: 0.6rem 1rem; }
.breadcrumb-item a { color: var(--blue); text-decoration: none; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding-top: 3rem;
}
footer h5, footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
footer a { color: #adb5bd; text-decoration: none; font-size: 0.88rem; display: block; margin-bottom: 0.4rem; transition: color .2s; }
footer a:hover { color: #fff; }
footer .social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #444; color: #ccc; font-size: 0.9rem; transition: all .2s; margin-right: 0.4rem; }
footer .social-icons a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-bottom { background: #0f0f1a; text-align: center; padding: 1rem; font-size: 0.8rem; color: #666; margin-top: 2rem; }
.newsletter-form .form-control { border-radius: 4px 0 0 4px; font-size: 0.85rem; }
.newsletter-form .btn { border-radius: 0 4px 4px 0; }

/* ── COOKIE BANNER ───────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a2e; color: #ccc;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
#cookie-banner a { color: var(--blue); }
#cookie-banner .btn { white-space: nowrap; }

/* ── ABOUT PAGE ──────────────────────────────────── */
.team-card { text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--border); }
.stats-box { background: var(--blue); color: #fff; border-radius: 10px; padding: 2rem; text-align: center; }
.stats-box .num { font-size: 2.5rem; font-weight: 800; display: block; }
.stats-box p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* ── CONTACT PAGE ────────────────────────────────── */
.contact-info-box { background: var(--lgrey); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.contact-info-box i { color: var(--blue); width: 24px; }

/* ── MISC ────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--blue); color: #fff; border: none;
  border-radius: 5px; padding: 0.65rem 1.5rem;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: background .2s;
}
.btn-primary-custom:hover { background: var(--blue-dk); color: #fff; }
.section-pad { padding: 4rem 0; }
.section-pad-sm { padding: 2.5rem 0; }
.bg-lightgrey { background: var(--lgrey); }
.text-blue { color: var(--blue) !important; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  .hero-carousel .carousel-item { height: 320px; }
  .carousel-caption-custom h1 { font-size: 1.4rem; }
  #cookie-banner { flex-direction: column; text-align: center; }
}
