:root {
  --primary-color: #eb0a1e;
  /* Toyota Red */
  --primary-foreground: #ffffff;
  --card-bg: #ffffff;
  --card-foreground: #000000;
  --secondary-bg: #f3f4f6;
  --border-color: #e5e7eb;
  --muted-foreground: #6b7280;
}

/* Container for all promotions */
.specials-grid-container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  padding: 2rem 0;
  max-width: 1232px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .specials-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .specials-grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Individual Card Styling */
.special-card-link {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease-in-out;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}

.special-card-link:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.special-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--secondary-bg);
}

.special-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-content-wrapper {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  padding: 24px;
}

.special-title {
  font-size: 18px;
  line-height: 1.375;
  font-weight: 700;
  color: var(--card-foreground);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-save-badge {
  margin-top: 0.5rem;
  width: fit-content;
  border-radius: 0.375rem;
  border: 2px solid var(--primary-color);
  background-color: var(--card-bg);
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--primary-color);
}

.special-pricing-row {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.special-price-col {
  display: flex;
  flex-direction: column;
}

.special-price-col.right {
  text-align: right;
}

.special-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
  margin: 0;
}

.special-price-value {
  font-size: 24px;
  line-height: 2rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin: 0;
}

.special-price-value.highlight {
  color: var(--primary-color);
}

.special-price-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
}

.special-terms-text {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.special-button-wrapper {
  margin-top: auto;
  padding-top: 24px;
}

.special-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  background-color: var(--primary-color);
  padding: 0.625rem 1rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--primary-foreground);
  transition: background-color 0.2s ease-in-out;
}

.special-card-link:hover .special-button {
  background-color: #c70919;
}

.special-button svg {
  width: 14px;
  height: 14px;
}

/* Category Heading Styling */
.special_heading {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Hero Banner */
.archive-hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.archive-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* dark overlay */
}

.archive-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  width: 50%;
}

.archive-hero-content span {
  text-transform: uppercase;
  letter-spacing: 5.12px;
  font-weight: 500;
  font-size: 12px;
  line-height: calc(1/.75);
  color: rgba(227, 227, 227, 0.85);
}

.archive-hero-content h1 {
  font-size: 40px;
  font-weight: 700;
  text-transform: capitalize;
  margin: 0;
  letter-spacing: 0.05em;
  color: #fff;
  font-family: "toyotatextbold";
  line-height: 1.25;
  margin-top: 12px;
}

.archive-hero-content p {
  margin-top: 12px;
  color: rgba(227, 227, 227, 0.85);
  font-size: 16px;
  line-height: 1.25;
}

/* Filter Styles */
.specials-filter-container {
  margin: 20px auto;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  background-color: #f3f4f6;
  color: #000000;
  border: none;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #e5e7eb;
  color: #000000;
}

.filter-btn.active {
  background-color: #cc0000;
  color: #ffffff;
}

.top-content-container {
  margin-top: 24px;
}

.top-content-container h3 {
  font-family: "toyotatextbold";
  color: #000000;
  font-size: 30px;
  margin-top: 24px;
  margin-bottom: 24px;

}

.top-content-container p {
  font-size: 16px;
  line-height: 1.5;
  color: oklch(50% .012 265);
  margin-top: 16px;
}

.top-content-container p strong {
  color: #000000;
}

/* single page view */
.single-specials .entry-content {
  margin-top: 0px;
}

.single-specials .site-inner {
  padding-top: 0px;
}

.quform-field-captcha,
.quform-field-date,
.quform-field-email,
.quform-field-file,
.quform-field-multiselect,
.quform-field-password,
.quform-field-select,
.quform-field-text,
.quform-field-textarea,
.quform-field-time,
.select2-container--quform .select2-selection {
  border-radius: calc(8px - 2px) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.quform-label>.quform-label-text {
  text-transform: uppercase;
  color: oklch(50% .012 265);
  font-size: 12px;
}

.quform-element-submit button {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #fff !important;
  border-radius: calc(8px - 2px) !important;
  text-transform: uppercase !important;
}

.quform-element-9_34,
.quform-element-9_35 {
  display: none !important;
}

@media (max-width: 768px) {
  .archive-hero-banner {
    min-height: 320px;
  }

  .archive-hero-content {
    width: 100%;
  }

  .archive-hero-content h1 {
    font-size: 30px;
  }

  .single-specials .site-inner {
    padding: 0px;
  }
}

/* Custom Lightbox Styles (to bypass Tailwind CDN issues) */
.custom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.95);
  cursor: zoom-out;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.custom-lightbox.hidden {
  display: none !important;
}

.custom-lightbox.opacity-0 {
  opacity: 0 !important;
}

.custom-lightbox-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  z-index: 50;
  padding: 0.5rem;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  border: none;
}

.custom-lightbox-btn:hover {
  color: #d1d5db;
}

@media (min-width: 640px) {
  .custom-lightbox {
    padding: 2rem;
  }
  .custom-lightbox-btn {
    top: 1.5rem;
    right: 1.5rem;
  }
}

.custom-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.375rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  cursor: default;
}

.cursor-zoom-in {
  cursor: zoom-in !important;
}