/* =============================================
   HoodIcons Store — Public Store CSS
   Mobile-first, elegant design
   ============================================= */

:root {
  --store-dark:    #1a1a2e;
  --store-mid:     #16213e;
  --store-accent:  #2d1f7a;        /* dark purple — hero/header tint */
  --store-primary: #6c5ce7;        /* logo purple */
  --store-radius:  16px;
  --transition:    .2s ease;
  /* Sync Bootstrap to logo purple */
  --bs-primary:              #6c5ce7;
  --bs-primary-rgb:          108, 92, 231;
  --bs-link-color:           #6c5ce7;
  --bs-link-color-rgb:       108, 92, 231;
  --bs-link-hover-color:     #5a4fd4;
  --bs-link-hover-color-rgb: 90, 79, 212;
}

/* ── Partner trust bar slider ────────────────── */
.partners-section {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}
.partners-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: partners-marquee 28s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo-item { flex-shrink: 0; display: block; }
.partner-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter .25s;
}
.partner-logo-item:hover .partner-logo,
.partner-logo-item:focus .partner-logo { filter: grayscale(0%) opacity(1); }
@keyframes partners-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Service product card ─────────────────────── */
.service-product-card { transition: transform .18s, box-shadow .18s; border-radius: 12px !important; overflow: hidden; }
.service-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(26,26,46,.13) !important; }

/* ── Button primary override ──────────────────── */
.btn-primary {
  --bs-btn-bg:                 #6c5ce7;
  --bs-btn-border-color:       #6c5ce7;
  --bs-btn-hover-bg:           #5a4fd4;
  --bs-btn-hover-border-color: #5a4fd4;
  --bs-btn-active-bg:          #4e44c0;
  --bs-btn-active-border-color:#4e44c0;
  --bs-btn-focus-shadow-rgb:   108, 92, 231;
  --bs-btn-disabled-bg:        #6c5ce7;
  --bs-btn-disabled-border-color:#6c5ce7;
}
.btn-outline-primary {
  --bs-btn-color:              #6c5ce7;
  --bs-btn-border-color:       #6c5ce7;
  --bs-btn-hover-bg:           #6c5ce7;
  --bs-btn-hover-border-color: #6c5ce7;
  --bs-btn-active-bg:          #6c5ce7;
  --bs-btn-active-border-color:#6c5ce7;
  --bs-btn-focus-shadow-rgb:   108, 92, 231;
}

/* ── Base ─────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ───────────────────────────────────── */
.store-nav {
  background: var(--store-dark) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
  padding-bottom: 12px;
}
.store-nav .navbar-brand {
  font-size: 1.15rem;
  letter-spacing: -.3px;
}
.store-nav .nav-link {
  font-size: .9rem;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: background var(--transition);
  color: rgba(255,255,255,.7) !important;
}
.store-nav .nav-link:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.store-nav .navbar-collapse { margin-top: 12px; }
@media (min-width: 992px) { .store-nav .navbar-collapse { margin-top: 0; } }
.cart-badge { font-size: .6rem; padding: 2px 5px; transform: translate(-20%,-50%) !important; }

/* Ad slots */
.store-ad-slot {
  width: 100%;
  max-width: 1340px;
  margin: 1rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
  text-align: center;
}
.store-ad-item,
.store-ad-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.store-ad-item--image .store-ad-link {
  width: 100%;
  max-width: 100%;
}
.store-ad-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}
.store-ad-slot--store_top,
.store-ad-slot--store_bottom,
.store-ad-slot--customer_top {
  margin-top: .85rem;
  margin-bottom: 1rem;
}
.store-ad-slot--store_top .store-ad-item,
.store-ad-slot--store_bottom .store-ad-item,
.store-ad-slot--customer_top .store-ad-item {
  height: clamp(120px, 18vw, 280px);
  border-radius: 12px;
}
.store-ad-slot--store_top .store-ad-image,
.store-ad-slot--store_bottom .store-ad-image,
.store-ad-slot--customer_top .store-ad-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.store-ad-slot--store_top iframe,
.store-ad-slot--store_bottom iframe,
.store-ad-slot--customer_top iframe {
  width: 100%;
  height: 100%;
  max-height: 280px;
}
.store-ad-slot--store_sidebar,
.store-ad-slot--customer_sidebar {
  max-width: 340px;
  padding: 0;
}
.store-ad-slot--store_sidebar .store-ad-image,
.store-ad-slot--customer_sidebar .store-ad-image {
  max-height: 360px;
  object-fit: contain;
}
@media (max-width: 767.98px) {
  .store-ad-slot {
    padding: 0 .75rem;
  }
  .store-ad-slot--store_top .store-ad-item,
  .store-ad-slot--store_bottom .store-ad-item,
.store-ad-slot--customer_top .store-ad-item {
    height: clamp(92px, 30vw, 180px);
  }
}

/* Home portfolio overlay cards */
.home-pf-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 340px;
  background: #0f172a center / cover no-repeat;
  display: block;
}
.home-pf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2rem 1.75rem;
}
.home-pf-card {
  position: relative;
  border-radius: .875rem;
  overflow: hidden;
  min-height: 220px;
  background: #0f172a center / cover no-repeat;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.home-pf-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.18); }
.home-pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.18) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.25rem 1.1rem;
}
@media (max-width: 576px) {
  .home-pf-hero { min-height: 240px; }
  .home-pf-hero-overlay { padding: 1.25rem; }
}

/* Portfolio */
.portfolio-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.portfolio-hero-copy {
  max-width: 760px;
}
.portfolio-card {
  overflow: hidden;
}
.portfolio-card-img,
.portfolio-detail-img,
.portfolio-related-product-img {
  object-fit: cover;
}
.portfolio-card-img {
  aspect-ratio: 32 / 21;
}
.portfolio-card-placeholder,
.portfolio-detail-placeholder {
  background: #f1f5f9;
  color: #94a3b8;
}
.portfolio-card-placeholder {
  aspect-ratio: 32 / 21;
  font-size: 2rem;
}
.portfolio-detail-placeholder {
  min-height: 360px;
  font-size: 3rem;
}
.portfolio-content {
  line-height: 1.75;
}
.portfolio-content h2,
.portfolio-content h3,
.portfolio-content h4 {
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
  font-weight: 700;
}
.portfolio-content img {
  max-width: 100%;
  height: auto;
  border-radius: .75rem;
}
.service-rights-card {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.service-rights-card:hover,
.service-rights-card.active {
  border-color: var(--store-primary);
  background: #f8f7ff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, .1);
}
.lang-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 31px;
}
.lang-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .16);
  flex-shrink: 0;
}
.lang-flag-fallback {
  width: 24px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(255,255,255,.14);
  font-size: .78rem;
  line-height: 1;
  flex-shrink: 0;
}
.dropdown-item .lang-flag-fallback {
  background: #eef2ff;
  color: #4e44c0;
}

/* ── Hero ─────────────────────────────────────── */
.store-hero {
  background: linear-gradient(135deg, var(--store-dark) 0%, var(--store-accent) 100%);
  padding: 60px 0 48px;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-sub { font-size: clamp(.9rem, 2vw, 1.1rem); }
@media (max-width: 575px) { .store-hero { padding: 40px 0 32px; } }

/* ── Product cards ────────────────────────────── */
.product-card {
  border-radius: var(--store-radius) !important;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: #fff;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,52,96,.14) !important;
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
  transform-origin: center center;
  will-change: transform;
}
.product-card:hover .product-img { transform: scale(1.5); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #94a3b8;
}
.sale-badge {
  position: absolute; top: 10px; left: 10px;
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: .5px;
}
.type-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .65rem; font-weight: 600; text-transform: capitalize;
  padding: 3px 8px; border-radius: 20px;
  backdrop-filter: blur(6px);
}
.product-title {
  font-size: .95rem;
  color: #0f172a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-desc {
  font-size: .8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ── Product detail page ─────────────────────── */
.product-description { line-height: 1.8; color: #475569; }
.product-description p { margin-bottom: 1rem; }

/* ── Cart badge fix ───────────────────────────── */
@media (max-width: 575px) {
  .product-card { border-radius: 12px !important; }
}

/* ── Footer ───────────────────────────────────── */
.store-footer {
  background: var(--store-dark);
  color: rgba(255,255,255,.7);
}
.ls-1 { letter-spacing: .06em; }

/* ── Alert overrides ──────────────────────────── */
.alert { border-radius: 12px; }

/* ── Pagination ───────────────────────────────── */
.pagination .page-link { border-radius: 50% !important; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; margin: 0 3px; }

/* ── Utility ──────────────────────────────────── */
.min-w-0 { min-width: 0; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* —— Blog ———————————————————————————————— */
.blog-hero {
  background: linear-gradient(135deg, var(--store-dark) 0%, var(--store-accent) 100%);
}
.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-hero-copy {
  max-width: 58ch;
  font-size: 1rem;
}
.blog-search-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.blog-featured-card,
.blog-card,
.blog-post {
  border-radius: 20px !important;
  overflow: hidden;
}
.blog-featured-image,
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-image {
  min-height: 100%;
  height: 100%;
}
.blog-featured-placeholder,
.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e2e8f0);
  color: #6c5ce7;
}
.blog-featured-placeholder {
  min-height: 100%;
  height: 100%;
  font-size: 3rem;
}
.blog-card-media {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: #eef2ff;
}
.blog-card-image {
  aspect-ratio: 16 / 10;
}
.blog-card-placeholder {
  aspect-ratio: 16 / 10;
  font-size: 2rem;
}
.blog-featured-title,
.blog-post-title,
.blog-card-title {
  line-height: 1.1;
  letter-spacing: -.02em;
}
.blog-featured-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.blog-card-title {
  font-size: 0.8rem;
}
.blog-post-title {
  font-size: clamp(1.1rem, 4vw, 1.8rem);
}
.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #64748b;
  font-size: .85rem;
}
.blog-meta span {
  position: relative;
}
.blog-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}
.blog-post-cover {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}
.blog-post-hero {
  position: relative;
  min-height: 360px;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.blog-post-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.blog-post-hero-content {
  width: 100%;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.blog-post-hero .blog-post-title {
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.blog-post-hero .blog-meta-light span {
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.blog-chip-light {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.blog-chip-light:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}
.blog-meta-light span {
  color: rgba(255,255,255,.82);
}
.blog-meta-light span + span::before {
  background: rgba(255,255,255,.35);
}
@media (max-width: 575px) {
  .blog-post-hero {
    min-height: 260px;
    max-height: 380px;
  }
}
.blog-post-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.75rem;
}
.blog-content {
  color: #334155;
  line-height: 1.85;
  font-size: 1rem;
}
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: .9rem;
  line-height: 1.2;
}
.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content table {
  margin-bottom: 1.2rem;
}
.blog-content a {
  text-decoration-thickness: 1px;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.blog-content th,
.blog-content td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: top;
}
.blog-content th {
  background: #f8fafc;
  color: #475569;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-content blockquote {
  margin-left: 0;
  padding: 16px 18px;
  border-left: 4px solid #6c5ce7;
  background: #f8fafc;
  color: #475569;
  border-radius: 0 12px 12px 0;
}
.blog-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
}
.blog-detail-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.blog-detail-row span {
  color: #64748b;
  font-size: .85rem;
}
.blog-detail-row strong {
  color: #0f172a;
  text-align: right;
}
.blog-breadcrumb .breadcrumb-item a {
  text-decoration: none;
}
@media (max-width: 991px) {
  .blog-featured-image,
  .blog-featured-placeholder {
    min-height: 280px;
  }
}
@media (max-width: 575px) {
  .blog-search-card {
    padding: 14px;
  }
  .blog-post .card-body,
  .blog-card .card-body,
  .blog-featured-card .card-body {
    padding: 1.25rem !important;
  }
}
