/* Bootstrap 5 overrides — Dad eCommerce */
:root {
  --bs-primary: #15803d;
  --bs-primary-rgb: 21, 128, 61;
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: #166534;
  --store-surface: #f5f6fb;
  --store-header-border: rgba(15, 23, 42, 0.08);
  --store-footer-bg: #0f172a;
  --store-footer-muted: rgba(255, 255, 255, 0.65);
  --store-brand-green: #15803d;
  --store-brand-green-dark: #14532d;
  --store-brand-gold: #ca8a04;
}

body,
.store-body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.store-body {
  background-color: var(--store-surface);
  color: #1e293b;
}

/* —— Storefront header —— */
.store-header {
  z-index: 1030;
}

.store-navbar {
  background: #fff;
  border-bottom: 1px solid var(--store-header-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.store-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a !important;
}

.store-logo-link {
  display: inline-flex;
  align-items: center;
}

.store-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 3rem;
  object-fit: contain;
}

.store-logo--footer {
  height: 2.75rem;
}

.store-logo--admin {
  height: 2.5rem;
}

@media (max-width: 575.98px) {
  .store-logo {
    height: 2.5rem;
  }
}

.store-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--bs-primary) 0%, #6366f1 100%);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
}

.store-brand-text {
  font-size: 1.15rem;
}

.store-nav-toggler {
  border: 1px solid var(--store-header-border);
  box-shadow: none;
}

.store-nav-links .nav-link {
  font-weight: 500;
  color: #475569 !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.store-nav-links .nav-link:hover {
  color: var(--bs-primary) !important;
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.store-btn-cart {
  border: 1px solid var(--store-header-border);
  background: #fff;
  color: #0f172b !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-btn-cart:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.14);
}

.store-btn-cart .badge {
  font-size: 0.65rem;
  padding: 0.35em 0.55em;
  background: var(--bs-primary) !important;
}

.store-btn-user {
  border: 1px solid var(--store-header-border);
  background: #fff;
  color: #334155 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
}

.store-btn-user:hover {
  background: #f8fafc;
}

.store-btn-register {
  background: var(--bs-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
}

.store-btn-register:hover {
  background: #4338ca;
  color: #fff !important;
}

.store-link-login {
  color: #64748b !important;
  font-weight: 500;
  text-decoration: none;
}

.store-link-login:hover {
  color: var(--bs-primary) !important;
}

.store-dropdown {
  border-radius: 0.65rem;
  padding: 0.35rem 0;
}

.store-dropdown .dropdown-item {
  border-radius: 0.35rem;
  margin: 0 0.35rem;
  margin-bottom: 0.15rem;
}

/* —— Storefront footer —— */
.store-footer {
  background: var(--store-footer-bg);
  color: #fff;
}

.store-footer-main {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-brand-mark--footer {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
}

.store-footer-brand {
  color: #fff;
  letter-spacing: -0.02em;
}

.store-footer-lead {
  max-width: 22rem;
  line-height: 1.65;
  color: var(--store-footer-muted);
}

.store-footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--store-footer-muted);
  margin-bottom: 1rem;
}

.store-footer-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  display: inline-block;
  transition: color 0.15s ease;
}

.store-footer-list a:hover {
  color: #fff;
}

.store-footer-list li + li {
  margin-top: 0.25rem;
}

.store-footer-link-btn {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-decoration: none;
}

.store-footer-link-btn:hover {
  color: #fff;
}

.store-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--store-footer-muted);
  font-size: 0.85rem;
}

.store-main {
  min-height: 0;
}

/* Static pages (About, Contact) */
.store-page-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
}

.store-info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08) !important;
}

.store-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 1.35rem;
}

.store-info-card__icon--sm {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.15rem;
}

.store-cta-panel {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.08) 0%, rgba(202, 138, 4, 0.1) 100%);
}

/* Home page */
.store-home-hero {
  background: linear-gradient(135deg, var(--store-brand-green-dark) 0%, var(--store-brand-green) 55%, #22c55e 100%);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(21, 128, 61, 0.2);
}

.store-home-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.store-home-hero__title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.store-home-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  line-height: 1.65;
}

.store-home-hero__meta {
  color: rgba(255, 255, 255, 0.78);
}

.store-home-hero__visual {
  background: rgba(255, 255, 255, 0.08);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-home-hero__logo {
  max-height: 220px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.store-home-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--store-header-border);
  border-radius: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.store-home-trust__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(21, 128, 61, 0.1);
  color: var(--store-brand-green);
  font-size: 1.15rem;
}

.store-home-banner-wrap {
  width: 100%;
  overflow: hidden;
}

.store-home-banner--full {
  border-radius: 0;
  box-shadow: none;
}

.store-home-banner__img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 360px;
  min-height: 200px;
}

.store-home-banner--full .store-home-banner__img {
  max-height: none;
  height: clamp(220px, 38vw, 520px);
  min-height: 220px;
}

.store-home-trust--after-banner {
  padding-top: 0.25rem;
}

.store-home-banner__fallback {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--store-brand-green-dark);
}

.store-home-banner--full .store-home-banner__fallback {
  min-height: clamp(220px, 38vw, 520px);
}

.store-home-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: #fff;
  border: 1px solid var(--store-header-border);
  border-radius: 1rem;
  color: #1e293b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.store-home-category:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 128, 61, 0.35);
  box-shadow: 0 0.5rem 1.25rem rgba(21, 128, 61, 0.12);
  color: var(--store-brand-green-dark);
}

.store-home-category__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.1);
  color: var(--store-brand-green);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.store-home-category__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.store-home-category__count {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.store-femi9-offer__panel {
  background: #fff;
  border: 1px solid rgba(190, 24, 93, 0.12);
}

.store-femi9-offer__visual {
  position: relative;
  min-height: 280px;
  height: 100%;
  background: linear-gradient(145deg, #fce7f3 0%, #fdf2f8 100%);
}

.store-femi9-offer__image {
  min-height: 280px;
}

.store-femi9-offer__fallback {
  min-height: 280px;
  background: linear-gradient(145deg, #be185d 0%, #9d174d 100%);
}

.store-femi9-offer__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #9d174d;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}

.store-femi9-offer__content {
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.store-femi9-offer__eyebrow {
  color: #be185d;
  letter-spacing: 0.08em;
}

.store-femi9-offer__title {
  color: #831843;
  letter-spacing: -0.02em;
}

.store-femi9-offer__list li {
  color: #475569;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.store-femi9-offer__list .bi-check2-circle {
  color: #be185d;
}

.store-femi9-offer__coupon {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 241, 242, 0.9);
  border: 1px dashed rgba(190, 24, 93, 0.35);
}

.store-femi9-offer__code {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #9d174d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.store-femi9-offer__btn {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
}

.store-femi9-offer__btn:hover {
  background: linear-gradient(135deg, #9d174d 0%, #831843 100%);
  color: #fff !important;
  box-shadow: 0 0.5rem 1.25rem rgba(190, 24, 93, 0.22);
}

.btn-success {
  --bs-btn-bg: var(--store-brand-green);
  --bs-btn-border-color: var(--store-brand-green);
  --bs-btn-hover-bg: var(--store-brand-green-dark);
  --bs-btn-hover-border-color: var(--store-brand-green-dark);
}

.btn-outline-success {
  --bs-btn-color: var(--store-brand-green);
  --bs-btn-border-color: rgba(21, 128, 61, 0.45);
  --bs-btn-hover-bg: var(--store-brand-green);
  --bs-btn-hover-border-color: var(--store-brand-green);
}

/* Product imagery */
.ratio-product {
  --bs-aspect-ratio: 75%;
}

.ratio-product-square {
  --bs-aspect-ratio: 100%;
}

.card-product {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--bs-border-color);
}

.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.ratio > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.card-product .stretched-link::after {
  z-index: 1;
}

/* Admin sidebar */
.admin-mobile-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1035;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--bs-border-color);
}

.admin-sidebar {
  min-height: 100vh;
  border-right: 1px solid var(--bs-border-color);
}

@media (max-width: 767.98px) {
  .admin-main-content {
    width: 100%;
  }
}

.admin-offcanvas {
  width: min(85vw, 280px);
}

.admin-offcanvas .admin-sidebar {
  min-height: auto;
  border: none;
}

@media (min-width: 768px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
  }
}

.admin-sidebar .nav-link {
  border-radius: 0.375rem;
  color: var(--bs-secondary-color);
  padding: 0.5rem 0.75rem;
}

.admin-sidebar .nav-link:hover {
  background-color: var(--bs-light);
  color: var(--bs-emphasis-color);
}

.admin-sidebar .nav-link.fw-semibold {
  color: var(--bs-emphasis-color);
}

/* Tables */
.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

/* Admin tables — card layout on mobile */
@media (max-width: 767.98px) {
  .admin-table-wrap {
    overflow: visible;
  }

  .admin-data-table {
    border: 0;
  }

  .admin-data-table thead {
    display: none;
  }

  .admin-data-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.04);
  }

  .admin-data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .admin-data-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border: 0;
    text-align: right !important;
    word-break: break-word;
  }

  .admin-data-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    max-width: 38%;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
    text-align: left;
    padding-top: 0.1rem;
  }

  .admin-data-table tbody td.admin-table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: left !important;
  }

  .admin-data-table tbody td.admin-table-actions::before {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 0.15rem;
  }

  .admin-data-table tbody td.admin-table-actions .btn,
  .admin-data-table tbody td.admin-table-actions form,
  .admin-data-table tbody td.admin-table-actions .d-inline {
    width: 100%;
    margin: 0 !important;
  }

  .admin-data-table tbody td.admin-table-actions form .btn {
    width: 100%;
  }

  .admin-data-table tbody td.admin-table-actions .d-inline {
    display: block !important;
  }

  .admin-data-table tbody tr:has(td[colspan]) td {
    display: block;
    text-align: center !important;
    padding: 2rem 0.5rem;
  }

  .admin-data-table tbody tr:has(td[colspan]) td::before {
    display: none;
  }

  .admin-main-content {
    padding: 1rem !important;
  }
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

/* Admin product & form pages */
.admin-page-header .breadcrumb {
  --bs-breadcrumb-divider: "›";
}

.admin-sticky-form {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .admin-sticky-form {
    position: static;
  }
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.border-0.shadow-sm .card-header.bg-white {
  border-radius: 0.5rem 0.5rem 0 0;
}
