/* ============================================================
   DevCassidy Storefront — Custom Theme CSS
   Bootstrap 5.3 loaded via CDN; this file handles brand
   colours, component extensions and layout polish.
   ============================================================ */

/* --- Google Font ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
  --dc-primary:      #1B2A4A;
  --dc-primary-mid:  #1d3461;
  --dc-primary-light:#2563eb;
  --dc-accent:       #f97316;
  --dc-accent-dark:  #ea6c0a;
  --dc-bg:           #f1f5f9;
  --dc-surface:      #ffffff;
  --dc-border:       #e2e8f0;
  --dc-text:         #0f172a;
  --dc-muted:        #64748b;
  --dc-shadow:       0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --dc-shadow-md:    0 4px 8px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --dc-shadow-lg:    0 10px 20px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --dc-radius:       .5rem;
  --dc-radius-lg:    .75rem;
}

/* --- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dc-bg);
  color: var(--dc-text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
  background: var(--dc-primary) !important;
  padding: .7rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  gap: .5rem;
  display: flex;
  align-items: center;
}
.site-navbar .navbar-brand:hover { color: rgba(255,255,255,.9); }
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}
.site-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .55rem;
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem !important;
  border-radius: .375rem;
  transition: background .15s, color .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.site-navbar .dropdown-toggle::after { vertical-align: .15em; }

/* Search */
.navbar-search { flex: 1; max-width: 480px; margin: 0 1.25rem; }
.navbar-search .form-control {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: .875rem;
  border-radius: .375rem 0 0 .375rem;
}
.navbar-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.navbar-search .form-control:focus {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  box-shadow: none;
}
.navbar-search .btn-search {
  background: var(--dc-accent);
  border: 1px solid var(--dc-accent);
  color: #fff;
  border-radius: 0 .375rem .375rem 0;
  padding: .375rem .75rem;
  font-size: .875rem;
  transition: background .15s;
}
.navbar-search .btn-search:hover {
  background: var(--dc-accent-dark);
  border-color: var(--dc-accent-dark);
}

/* Categories dropdown */
.categories-menu {
  min-width: 230px;
  max-height: 420px;
  overflow-y: auto;
  border: none;
  border-radius: var(--dc-radius-lg);
  box-shadow: var(--dc-shadow-lg);
  padding: .5rem;
}
.categories-menu .dropdown-item {
  font-size: .875rem;
  border-radius: .375rem;
  padding: .45rem .75rem;
  color: var(--dc-text);
  transition: background .1s;
}
.categories-menu .dropdown-item:hover { background: #eff6ff; color: var(--dc-primary); }
.categories-menu::-webkit-scrollbar { width: 6px; }
.categories-menu::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* CTA button */
.btn-navbar-cta {
  background: var(--dc-accent);
  border-color: var(--dc-accent);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: .42rem 1rem;
  border-radius: .375rem;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn-navbar-cta:hover,
.btn-navbar-cta:focus {
  background: var(--dc-accent-dark);
  border-color: var(--dc-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .navbar-search { max-width: 100%; margin: .6rem 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--dc-primary) 0%, var(--dc-primary-mid) 55%, var(--dc-primary-light) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 600;
  padding: .22rem .75rem;
  border-radius: 2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-section h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.hero-section .lead {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
}
.hero-stats { display: flex; gap: 2.25rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-stat-value { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: .1rem; }
.btn-hero-primary {
  background: var(--dc-accent);
  border-color: var(--dc-accent);
  color: #fff;
  font-weight: 700;
  padding: .7rem 1.75rem;
  border-radius: .5rem;
  font-size: 1rem;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-hero-primary:hover {
  background: var(--dc-accent-dark);
  border-color: var(--dc-accent-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249,115,22,.4);
  transform: translateY(-2px);
}
.btn-hero-secondary {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: .5rem;
  font-size: 1rem;
  transition: background .15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.5); }

@media (max-width: 767.98px) {
  .hero-section { padding: 2.5rem 0; }
  .hero-section h1 { font-size: 1.9rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-section::after { display: none; }
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip {
  background: var(--dc-surface);
  border-bottom: 1px solid var(--dc-border);
  padding: .65rem 0;
}
.category-strip-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.category-strip-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  background: var(--dc-bg);
  color: var(--dc-text);
  border: 1px solid var(--dc-border);
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.category-pill:hover { background: #eff6ff; border-color: #bfdbfe; color: var(--dc-primary); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-section    { padding: 3rem 0; }
.page-section-sm { padding: 1.75rem 0; }
.site-main       { min-height: 60vh; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title  { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: var(--dc-text); margin: 0; }
.section-link   { font-size: .875rem; color: var(--dc-primary); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover { box-shadow: var(--dc-shadow-lg); transform: translateY(-3px); }
.product-card-img-wrap {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--dc-border);
}
.product-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .2s;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.04); }
.product-card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dc-text);
  line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--dc-primary); }
.product-card-desc {
  font-size: .78rem;
  color: var(--dc-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: .75rem;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--dc-border);
}
.product-price { font-size: 1rem; font-weight: 700; color: var(--dc-primary); white-space: nowrap; }
.product-source { font-size: .7rem; color: var(--dc-muted); white-space: nowrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-buy {
  background: var(--dc-accent);
  border: 1px solid var(--dc-accent);
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  padding: .38rem .85rem;
  border-radius: .375rem;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  display: inline-block;
}
.btn-buy:hover { background: var(--dc-accent-dark); border-color: var(--dc-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-view {
  background: transparent;
  border: 1px solid var(--dc-border);
  color: var(--dc-muted);
  font-size: .8rem;
  font-weight: 500;
  padding: .38rem .85rem;
  border-radius: .375rem;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  display: inline-block;
}
.btn-view:hover { background: var(--dc-bg); border-color: #94a3b8; color: var(--dc-text); }
.btn-buy-lg {
  background: var(--dc-accent);
  border: 1px solid var(--dc-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: .75rem 2rem;
  border-radius: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-buy-lg:hover { background: var(--dc-accent-dark); border-color: var(--dc-accent-dark); color: #fff; box-shadow: 0 6px 16px rgba(249,115,22,.35); transform: translateY(-2px); }

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-strip { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius); padding: 1.25rem 1.5rem; }
.trust-item  { display: flex; align-items: flex-start; gap: .75rem; }
.trust-icon  { width: 2.5rem; height: 2.5rem; background: #eff6ff; border-radius: .5rem; display: flex; align-items: center; justify-content: center; color: var(--dc-primary); font-size: 1.1rem; flex-shrink: 0; }
.trust-label { font-size: .85rem; font-weight: 600; color: var(--dc-text); }
.trust-desc  { font-size: .75rem; color: var(--dc-muted); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--dc-radius);
  padding: 1.5rem;
  border: 1px solid var(--dc-border);
}
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--dc-primary); letter-spacing: -.02em; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.site-breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .875rem; }
.site-breadcrumb .breadcrumb-item,
.site-breadcrumb .breadcrumb-item.active { color: var(--dc-muted); }
.site-breadcrumb .breadcrumb-item a { color: var(--dc-primary); }
.site-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--dc-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-card-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dc-muted); margin-bottom: 1rem; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { margin-bottom: .25rem; }
.sidebar-cat-list a { font-size: .875rem; color: var(--dc-text); display: flex; align-items: center; gap: .4rem; padding: .3rem .5rem; border-radius: .375rem; transition: background .1s, color .1s; }
.sidebar-cat-list a:hover { background: #eff6ff; color: var(--dc-primary); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: linear-gradient(135deg, var(--dc-primary) 0%, var(--dc-primary-light) 100%); border-radius: var(--dc-radius-lg); padding: 2.5rem; color: #fff; }
.newsletter-section h3 { font-weight: 700; font-size: 1.35rem; }
.newsletter-section p  { color: rgba(255,255,255,.78); }
.newsletter-section .form-control { border-radius: .375rem 0 0 .375rem; border: none; padding: .65rem 1rem; }
.newsletter-section .btn-subscribe { background: var(--dc-accent); border-color: var(--dc-accent); color: #fff; font-weight: 600; border-radius: 0 .375rem .375rem 0; padding: .65rem 1.25rem; transition: background .15s; }
.newsletter-section .btn-subscribe:hover { background: var(--dc-accent-dark); border-color: var(--dc-accent-dark); }

/* ============================================================
   PAGINATION
   ============================================================ */
.dc-pagination .page-link { color: var(--dc-primary); border-color: var(--dc-border); font-size: .875rem; padding: .4rem .8rem; }
.dc-pagination .page-item.active .page-link { background: var(--dc-primary); border-color: var(--dc-primary); }
.dc-pagination .page-link:hover { background: #eff6ff; color: var(--dc-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: #94a3b8; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-heading { color: #f1f5f9; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .35rem; }
.site-footer .footer-links a { font-size: .875rem; }
.site-footer hr { border-color: #1e293b; margin: 1.5rem 0 1rem; }
.site-footer .footer-bottom { font-size: .8rem; color: #475569; }

/* ============================================================
   CONSENT BANNER
   ============================================================ */
.consent-banner { background: #1e293b; color: #fff; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000; padding: 1rem 1.5rem; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.consent-inner  { display: flex; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; }
.consent-content { flex: 1; font-size: .875rem; }
.consent-note    { color: #94a3b8; margin-top: .2rem; font-size: .8rem; }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-consent-manage { background: #334155; border: none; color: #fff; border-radius: .375rem; padding: .45rem .9rem; font-size: .875rem; cursor: pointer; }
.btn-consent-manage:hover { background: #475569; }
.btn-consent-accept { background: var(--dc-accent); border: none; color: #fff; border-radius: .375rem; padding: .45rem .9rem; font-weight: 600; font-size: .875rem; cursor: pointer; }
.btn-consent-accept:hover { background: var(--dc-accent-dark); }
.is-hidden { display: none !important; }

@media (max-width: 575.98px) {
  .consent-inner { flex-direction: column; align-items: flex-start; }
  .consent-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-result-card { background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius); overflow: hidden; transition: box-shadow .15s; }
.search-result-card:hover { box-shadow: var(--dc-shadow-md); }
.search-result-img { width: 80px; height: 80px; object-fit: contain; background: #f8fafc; flex-shrink: 0; padding: .4rem; }

/* ============================================================
   PRIVACY / DOC PAGES
   ============================================================ */
.doc-content { max-width: 800px; margin: 0 auto; line-height: 1.75; }
.doc-content h1, .doc-content h2, .doc-content h3 { font-weight: 700; letter-spacing: -.01em; color: var(--dc-primary); margin-top: 2.25rem; }
.doc-content a { color: var(--dc-primary-light); }
.doc-content a:hover { text-decoration: underline; }
.doc-body { font-family: inherit; line-height: 1.75; color: var(--dc-text); padding: 2rem; max-width: 900px; margin: 0 auto; }
