/* ========= GLOBAL ========= */

:root {
  --fds-red: #ff0000;
  --fds-red-dark: #c20000;
  --fds-black: #000000;
  --fds-charcoal: #141414;
  --fds-gray-900: #1b1b1b;
  --fds-gray-700: #4b4b4b;
  --fds-gray-500: #7a7a7a;
  --fds-gray-300: #d4d4d4;
  --fds-gray-200: #e5e5e5;
  --fds-gray-150: #f0f0f0;
  --fds-gray-100: #f7f7f7;
  --fds-white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(0,0,0,0.14);
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  /* slightly darker, more “premium” background */
  background: radial-gradient(circle at top, #252525 0, #111111 40%, #050505 100%);
  color: #111111;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========= HEADER ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, #050505, #111111);
  border-bottom: 2px solid var(--fds-red);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Search bar more “lit up” on dark header */
.header-search {
  flex: 1;
  display: flex;
  align-items: stretch;
  max-width: 620px;
}

.header-search input {
  flex: 1;
  border-radius: 999px 0 0 999px;
  border: 1px solid #333333;
  border-right: none;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  background: #111111;
  color: #f9f9f9;
}

.header-search input::placeholder {
  color: #777777;
}

.header-search input:focus {
  outline: none;
  border-color: var(--fds-red);
}

.header-search .btn {
  border-radius: 0 999px 999px 0;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #f5f5f5;
}

.main-nav a:hover {
  color: var(--fds-red);
}

/* Mobile nav toggle with icon + text */

.nav-toggle {
  display: none; /* shown in mobile media query */
  width: auto;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid #333333;
  background: #111111;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.45rem;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: #f5f5f5;
  border-radius: 999px;
}

.nav-toggle-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f5f5;
}

/* Tagline strip centered */

.header-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0 0.5rem;
  background: #1b1b1b;
  border-top: 1px solid #262626;
  font-size: 0.82rem;
  color: #e5e5e5;
  text-align: center;
}

/* ========= BUTTONS ========= */

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background .12s ease-out, border-color .12s ease-out, color .12s ease-out, transform .08s;
}

.btn-sm {
  padding: 0.4rem 0.95rem;
}

.btn-lg {
  padding: 0.7rem 1.5rem;
}

.btn-block {
  width: 100%;
}

.btn-red {
  background: linear-gradient(135deg, var(--fds-red), var(--fds-red-dark));
  color: #ffffff;
  border-color: var(--fds-red-dark);
  box-shadow: 0 8px 18px rgba(255,0,0,0.35);
}

.btn-red:hover {
  background: var(--fds-red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #f5f5f5;
  border-color: #555555;
}

.btn-outline:hover {
  border-color: var(--fds-red);
  color: var(--fds-red);
}

/* ========= SHOP LAYOUT ========= */

.shop-main {
  padding: 1.25rem 0 2.5rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

/* Filters */

.shop-filters {
  background: #111111;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.65);
  padding: 0.9rem 0.95rem 1.2rem;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  border: 1px solid #2a2a2a;
}

.filters-toggle {
  display: none;
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid #333333;
  background: #191919;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  text-align: left;
  color: #f5f5f5;
}

.filters-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: #ffffff;
}

.filter-group {
  border-top: 1px solid #262626;
  padding-top: 0.7rem;
  margin-top: 0.7rem;
}

.filter-group h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #f5f5f5;
}

.filter-group label {
  display: block;
  font-size: 0.86rem;
  color: #c1c1c1;
  margin-bottom: 0.2rem;
}

.filter-group input[type="checkbox"] {
  margin-right: 0.4rem;
}

/* Shop content */

.shop-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Toolbar */

.shop-toolbar {
  background: linear-gradient(to bottom, #ffffff, #f7f7f7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e4e4e4;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-tab {
  border-radius: var(--radius-pill);
  border: 1px solid #d4d4d4;
  background: #f5f5f5;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  color: #333333;
}

.shop-tab-active {
  border-color: var(--fds-red);
  background: #ffe5e5;
  color: var(--fds-red);
  font-weight: 600;
}

.shop-sort label {
  font-size: 0.82rem;
  color: #444;
}

.shop-sort select {
  margin-left: 0.25rem;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  background: #ffffff;
}

/* Summary */

.shop-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.86rem;
  color: #f5f5f5;
  padding: 0 0.1rem;
}

.shop-summary-note {
  color: #d1d1d1;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e2e2;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--fds-red), transparent);
}

/* subtle hover border */
.product-card:hover {
  border-color: #ffcccc;
}

.product-image {
  position: relative;
  display: block;
  background: #000;
}

.product-image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.6rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.badge-red {
  left: 0.7rem;
  background: rgba(255,0,0,0.92);
}

.badge-black {
  right: 0.7rem;
  background: rgba(0,0,0,0.92);
}

.product-body {
  padding: 0.9rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.product-title a {
  color: #101010;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--fds-red);
}

.product-spec {
  font-size: 0.85rem;
  color: #555;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.1rem;
}

.product-prices {
  display: flex;
  flex-direction: column;
}

.price-monthly {
  font-size: 1.06rem;
  font-weight: 750;
  color: #111;
}

.price-monthly span {
  font-size: 0.85rem;
  font-weight: 500;
}

.price-cash {
  font-size: 0.83rem;
  color: #555;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  margin-right: 0.25rem;
}

.product-tags {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: flex-end;
}

.tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid #e1e1e1;
  font-size: 0.76rem;
  color: #444;
  background: #fafafa;
}

/* Available in: row */

.product-availability {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: baseline;
}

.availability-label {
  font-weight: 600;
  color: #333;
}

.availability-states {
  font-weight: 500;
  color: #111;
}

.product-actions {
  margin-top: 0.65rem;
  display: flex;
}

/* Pagination */

.shop-pagination {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.86rem;
  color: #e5e5e5;
}

.page-indicator {
  color: #d1d1d1;
}

/* ========= FOOTER ========= */

.site-footer {
  border-top: 1px solid #2b2b2b;
  background: #050505;
  padding: 1.9rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.86rem;
  color: #e5e5e5;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 0.55rem;
}

.footer-copy {
  margin: 0;
  color: #bbbbbb;
  max-width: 260px;
}

.footer-col h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-col a,
.footer-col p {
  color: #d1d1d1;
  text-decoration: none;
  display: block;
  margin: 0 0 0.2rem;
}

.footer-col a:hover {
  color: var(--fds-red);
}

.footer-bottom {
  border-top: 1px solid #2b2b2b;
  margin-top: 1rem;
  padding-top: 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: #999999;
}

/* ========= MODAL ========= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 60;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  background: #111111;
  box-shadow: 0 18px 45px rgba(0,0,0,0.9);
  padding: 1.4rem 1.3rem 1.2rem;
  position: relative;
  border: 1px solid #333333;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #262626;
  color: #f5f5f5;
  font-size: 1.1rem;
}

.modal h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.modal-lead {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: #e3e3e3;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

label {
  font-size: 0.8rem;
  color: #f3f3f3;
}

input,
select,
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid #3a3a3a;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  font-family: inherit;
  background: #050505;
  color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #777777;
}

textarea {
  resize: vertical;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .header-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: #060606;
    border-top: 1px solid #262626;
    padding: 0.8rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .16s ease-out, opacity .16s ease-out;
  }

  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.nav-open .nav-toggle-icon span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-icon span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-filters {
    position: static;
    box-shadow: none;
    padding: 0;
    background: transparent;
    border: none;
  }

  .filters-toggle {
    display: block;
  }

  .filters-panel {
    display: none;
    background: #111111;
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 30px rgba(0,0,0,0.7);
    padding: 0.8rem 0.9rem 1.1rem;
    margin-top: 0.45rem;
    border: 1px solid #333333;
  }

  .filters-panel.filters-open {
    display: block;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-strip {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
