/* ============================================================
   Store front — shared design system layer
   Category / Search / Wishlist / My Orders / Order Track pages
   + consistency overrides for cards, buttons, states
   + AFGHANNUTS LIGHT-DARK PREMIUM BROWN THEME
   ============================================================ */

:root {
  --st-primary: #9a5a2c;
  --st-primary-hover: #b06b39;

  --st-text: #f5eee8;
  --st-heading: #fff8f2;
  --st-muted: #cbbdb4;

  --st-border: #4f3d32;
  --st-border-light: #5a4436;

  --st-green: #35b765;
  --st-red: #e57373;
  --st-blue: #64a7df;

  --st-bg: #211c18;
  --st-card: #302923;
  --st-card-2: #382b23;
  --st-input: #241a16;

  --st-radius: 10px;
  --st-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   Page shell
   ============================================================ */

.st-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  background: #211c18;
  color: #f5eee8;
}

.st-page-head {
  margin-bottom: 16px;
}

.st-breadcrumb {
  font-size: 13px;
  color: #bfb1a8;
  margin-bottom: 8px;
}

.st-breadcrumb a {
  color: #d5c7be;
  text-decoration: none;
}

.st-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.st-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff8f2;
  margin: 0 0 4px;
}

.st-page-sub {
  color: #cbbdb4;
  font-size: 14px;
  margin: 0;
}


/* ============================================================
   Product grid reuse
   ============================================================ */

.st-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.st-grid .product-card {
  height: auto;
}

@media (min-width: 640px) {
  .st-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .st-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .st-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* ============================================================
   States
   ============================================================ */

.st-empty {
  text-align: center;
  padding: 64px 16px;
  color: #f5eee8;
}

.st-empty .st-empty-icon {
  font-size: 44px;
  color: #b9aaa1;
  margin-bottom: 12px;
}

.st-empty h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff8f2;
  margin-bottom: 6px;
}

.st-empty p {
  color: #cbbdb4;
  margin-bottom: 18px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.st-empty-btn {
  display: inline-block;
  background: #9a5a2c;
  color: #fff;
  border-radius: 7px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #b87540;
}

.st-empty-btn:hover {
  background: #b06b39;
  color: #fff;
}

.st-btn {
  display: inline-block;
  background: #9a5a2c;
  color: #fff;
  border-radius: 7px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #b87540;
}

.st-btn:hover {
  background: #b06b39;
  color: #fff;
}


/* ============================================================
   Category index cards
   ============================================================ */

.st-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.st-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid #4f3d32;
  border-radius: 10px;
  padding: 18px 16px;
  background: #302923;
  box-shadow: var(--st-shadow);
  text-decoration: none;
  color: #f5eee8;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.st-cat-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
  color: #fff;
}

.st-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #3a2c24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #dda45c;
}

.st-cat-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff8f2;
}

.st-cat-count {
  font-size: 13px;
  color: #bfb1a8;
}

.st-cat-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #9f938a;
  font-size: 14px;
}

.st-cat-card:hover .st-cat-arrow {
  color: #dda45c;
}

@media (min-width: 640px) {
  .st-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .st-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================
   Error
   ============================================================ */

.st-error {
  text-align: center;
  padding: 60px 16px;
  color: #f5eee8;
}

.st-error h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff8f2;
}

.st-error p {
  color: #cbbdb4;
  margin-bottom: 16px;
}

.st-error-retry {
  border: 1px solid #b87540;
  background: #9a5a2c;
  color: #fff;
  border-radius: 7px;
  padding: 8px 22px;
  font-weight: 600;
  cursor: pointer;
}

.st-error-retry:hover {
  background: #b06b39;
  color: #fff;
}


/* ============================================================
   Skeleton loading
   ============================================================ */

.st-skeleton {
  background: #493a31;
  border-radius: var(--st-radius);
  animation: st-pulse 1.2s ease-in-out infinite;
}

@keyframes st-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.st-skeleton-card {
  border: 1px solid #4f3d32;
  border-radius: var(--st-radius);
  overflow: hidden;
  background: #302923;
}

.st-skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.st-skeleton-line {
  height: 13px;
  margin: 10px 12px 0;
}

.st-skeleton-line.short {
  width: 55%;
}

.st-skeleton-line.button {
  height: 34px;
  margin: 14px 12px 12px;
  border-radius: 6px;
}


/* ============================================================
   Status badges
   ============================================================ */

.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.st-badge-pending {
  background: #493d22;
  color: #f0c86b;
}

.st-badge-confirmed {
  background: #363344;
  color: #b9b6ff;
}

.st-badge-packed {
  background: #293b4a;
  color: #8ec5f5;
}

.st-badge-shipped {
  background: #263e4b;
  color: #83c9ef;
}

.st-badge-delivered {
  background: #29432e;
  color: #78d98a;
}

.st-badge-cancelled {
  background: #492b2b;
  color: #f28b8b;
}

.st-badge-returned {
  background: #4a3829;
  color: #e8a768;
}

.st-badge-paid {
  background: #29432e;
  color: #78d98a;
}

.st-badge-unpaid {
  background: #493d22;
  color: #f0c86b;
}

.st-badge-failed {
  background: #492b2b;
  color: #f28b8b;
}

.st-badge-refunded {
  background: #3b3836;
  color: #c9c1bc;
}


/* ============================================================
   My Orders
   ============================================================ */

.st-orders {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-order-card {
  border: 1px solid #4f3d32;
  border-radius: var(--st-radius);
  background: #302923;
  overflow: hidden;
  box-shadow: var(--st-shadow);
  color: #f5eee8;
}

.st-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #4f3d32;
  background: #382b23;
}

.st-order-num {
  font-weight: 700;
  font-size: 14px;
  color: #fff8f2;
}

.st-order-meta {
  font-size: 12.5px;
  color: #bfb1a8;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.st-order-items {
  padding: 6px 16px;
}

.st-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #4b3a31;
  font-size: 14px;
}

.st-order-item:last-child {
  border-bottom: 0;
}

.st-order-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f2eee9;
  flex-shrink: 0;
}

.st-order-item-title {
  flex: 1;
  color: #f5eee8;
  line-height: 1.35;
}

.st-order-item-qty {
  color: #bfb1a8;
  font-size: 13px;
  padding-right: 16px;
}

.st-order-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #4f3d32;
}

.st-order-total {
  font-weight: 700;
  font-size: 15px;
  color: #fff8f2;
}

.st-order-view {
  background: #9a5a2c;
  color: #fff;
  border: 1px solid #b87540;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.st-order-view:hover {
  background: #b06b39;
  color: #fff;
}


/* ============================================================
   Order Track
   ============================================================ */

.st-track-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  border: 1px solid #80604c;
  border-radius: 7px;
  overflow: hidden;
  background: #241a16;
  margin: 10px 0 24px;
}

.st-track-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #241a16;
  color: #fff;
}

.st-track-form input::placeholder {
  color: #9f938a;
}

.st-track-form button {
  border: 0;
  background: #9a5a2c;
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.st-track-form button:hover {
  background: #b06b39;
}

.st-track-card {
  border: 1px solid #4f3d32;
  border-radius: var(--st-radius);
  background: #302923;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--st-shadow);
  color: #f5eee8;
}

.st-track-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.st-track-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff8f2;
}

.st-track-line {
  color: #bfb1a8;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.st-timeline {
  display: flex;
  align-items: flex-start;
  margin: 8px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.st-step {
  flex: 1;
  min-width: 96px;
  text-align: center;
  position: relative;
}

.st-step-dot {
  width: 18px;
  height: 18px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #302923;
  border: 3px solid #66564c;
  position: relative;
  z-index: 1;
}

.st-step.done .st-step-dot {
  background: var(--st-green);
  border-color: var(--st-green);
}

.st-step.active .st-step-dot {
  background: #302923;
  border-color: var(--st-green);
  box-shadow: 0 0 0 3px rgba(53, 183, 101, 0.18);
}

.st-step.cancel .st-step-dot {
  background: var(--st-red);
  border-color: var(--st-red);
}

.st-step-name {
  font-size: 12px;
  font-weight: 700;
  color: #9f938a;
}

.st-step.done .st-step-name,
.st-step.active .st-step-name {
  color: #fff8f2;
}

.st-step.cancel .st-step-name {
  color: var(--st-red);
}

.st-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 3px;
  background: #5a4436;
}

.st-step:not(:last-child).done::after {
  background: var(--st-green);
}

.st-track-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
  font-size: 13.5px;
  color: #c5b7ae;
  margin-top: 8px;
}

.st-track-fields b {
  color: #fff8f2;
}

.st-track-items {
  border: 1px solid #4f3d32;
  border-radius: var(--st-radius);
  overflow: hidden;
}

.st-track-items table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: #f5eee8;
}

.st-track-items th,
.st-track-items td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #4f3d32;
}

.st-track-items th {
  background: #382b23;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #cbbdb4;
}

.st-track-items tr:last-child td {
  border-bottom: 0;
}


/* ============================================================
   Quantities / misc
   ============================================================ */

.st-muted {
  color: #bfb1a8;
}


/* ============================================================
   Product page CTA row
   ============================================================ */

.pd-breadcrumb {
  font-size: 13px;
  color: #bfb1a8;
  margin-bottom: 10px;
}

.pd-breadcrumb a {
  color: #d5c7be;
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.pd-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
  max-width: 560px;
}

.pd-buy-now,
.pd-cta-row .card-atc,
.pd-now-add {
  border-radius: 7px;
  padding: 13px 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #b87540;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  width: 100%;
}

.pd-buy-now {
  background: #9a5a2c;
  color: #fff;
}

.pd-buy-now:hover {
  background: #b06b39;
}

.pd-cta-row .card-atc,
.pd-now-add {
  background: #382b23;
  color: #fff8f2;
}

.pd-cta-row .card-atc:hover,
.pd-now-add:hover {
  background: #493528;
}

.pd-buy-now:disabled,
.pd-cta-row .card-atc:disabled,
.pd-now-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pd-cta-row .card-atc.is-added {
  background: #388e3c;
  border-color: #388e3c;
  color: #fff;
}

.pd-out-stock {
  text-align: center;
  padding: 12px;
  border: 1px solid #4f3d32;
  border-radius: 7px;
  background: #302923;
  color: #f28b8b;
  font-weight: 600;
  font-size: 14px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .st-page {
    padding: 14px 12px 32px;
  }

  .st-page-title {
    font-size: 20px;
  }

  .st-track-card {
    padding: 14px 12px;
  }
}


/* ============================================================
   Hide old placeholder page tags
   ============================================================ */

.api-public-products-guard {
  display: none;
}


/* ============================================================
   Footer strips
   ============================================================ */

.footer-bottom,
.footer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  text-align: center;
  background: #1b1512;
  color: #aaa19b;
  font-size: 12.5px;
}

.home-footer-col {
  color: inherit;
  text-decoration: none;
}

.footer-style-2,
.footer-style-9,
.footer-style-17 {
  color: inherit;
  text-decoration: none;
}

.footer-style-2:hover,
.footer-style-9:hover,
.footer-style-17:hover,
.home-footer-col:hover h6 {
  color: #dda45c;
}


/* ============================================================
   Accessibility
   ============================================================ */

:focus-visible {
  outline: 3px solid #dda45c;
  outline-offset: 2px;
}

.site-header :focus-visible {
  outline-color: #ffd54d;
  outline-offset: 2px;
}

.card-atc:focus-visible,
.st-empty-btn:focus-visible,
.st-btn:focus-visible,
.st-order-view:focus-visible {
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .st-skeleton,
  .st-cat-card,
  .co-checkmark-circle,
  .co-checkmark-check {
    animation: none;
  }
}


/* ============================================================
   AFGHANNUTS — PRODUCT CARD VISIBILITY FIX
   IMPORTANT:
   This overrides Bootstrap .text-dark and old white-theme CSS.
   ============================================================ */

/* Main product card */
.al-product-card,
.product-card {
  background: #302923 !important;
  color: #f5eee8 !important;
  border-color: #4f3d32 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}


/* Product card body */
.al-product-card .body,
.product-card .body,
.product-card .card-body {
  background: #302923 !important;
  color: #f5eee8 !important;
}


/* ============================================================
   PRODUCT TITLE — MAIN FIX
   ============================================================ */

.al-product-card h3,
.al-product-card h3 a,
.al-product-card h3 a.text-dark,
.al-product-card .body h3,
.al-product-card .body h3 a,

.product-card h3,
.product-card h3 a,
.product-card h3 a.text-dark,
.product-card .card-title,
.product-card .card-title a,
.product-card .product-title,
.product-card .product-title a {
  color: #fff8f2 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}


/* Product title hover */
.al-product-card h3 a:hover,
.al-product-card h3 a.text-dark:hover,
.product-card h3 a:hover,
.product-card h3 a.text-dark:hover,
.product-card .card-title a:hover,
.product-card .product-title a:hover {
  color: #fff8f2 !important;
}


/* Bootstrap text-dark override */
.al-product-card .text-dark,
.product-card .text-dark {
  color: #fff8f2 !important;
}


/* Bootstrap text-body override */
.al-product-card .text-body,
.product-card .text-body {
  color: #fff8f2 !important;
}


/* ============================================================
   PRODUCT PRICE
   ============================================================ */

.al-product-card .al-price,
.al-product-card .al-price strong,
.product-card .al-price,
.product-card .al-price strong,
.product-card .price,
.product-card .price strong {
  color: #f0a56f !important;
  opacity: 1 !important;
}


/* MRP */
.al-product-card .al-price del,
.product-card .al-price del,
.product-card del,
.product-card .mrp {
  color: #b8aaa1 !important;
  opacity: 1 !important;
}


/* Saving */
.al-product-card .al-saving,
.product-card .al-saving,
.product-card .saving {
  color: #20b35b !important;
  font-weight: 700 !important;
}


/* ============================================================
   Product secondary text
   ============================================================ */

.al-product-card .body p,
.al-product-card small,
.product-card p,
.product-card small,
.product-card .meta,
.product-card .product-meta {
  color: #cbbdb4 !important;
}


/* ============================================================
   Delivery badge
   ============================================================ */

.al-product-card .delivery,
.product-card .delivery {
  color: #168044 !important;
  background: #eef9f1 !important;
  border-color: transparent !important;
}


/* ============================================================
   Deal badge
   ============================================================ */

.al-product-card .deal,
.product-card .deal {
  color: #fff !important;
  background: #9a5a2c !important;
}


/* ============================================================
   BUY NOW button
   ============================================================ */

.al-product-card .al-card-cta,
.al-product-card button,
.product-card .al-card-cta,
.product-card .card-atc,
.product-card button {
  background: #9a5a2c !important;
  color: #fff !important;
  border-color: #b87540 !important;
}

.al-product-card .al-card-cta:hover,
.al-product-card button:hover,
.product-card .al-card-cta:hover,
.product-card .card-atc:hover,
.product-card button:hover {
  background: #b06b39 !important;
  color: #fff !important;
}


/* ============================================================
   Product image area
   Keep product image area light for image visibility.
   ============================================================ */

.al-product-card .media,
.product-card .media,
.product-card .product-image,
.product-card .card-img-top {
  background: #f2eee9 !important;
}


/* ============================================================
   Product links
   ============================================================ */

.al-product-card a,
.product-card a {
  text-decoration: none;
}


/* ============================================================
   FINAL OVERRIDE
   This specifically wins against Bootstrap and old theme rules.
   ============================================================ */

body {
  background: #211c18;
}

.an-page {
  background: #211c18 !important;
  color: #f5eee8 !important;
}

.an-page .al-product-card,
.an-page .product-card {
  background: #302923 !important;
  color: #f5eee8 !important;
}

.an-page .al-product-card h3,
.an-page .al-product-card h3 a,
.an-page .al-product-card h3 a.text-dark,
.an-page .product-card h3,
.an-page .product-card h3 a,
.an-page .product-card h3 a.text-dark {
  color: #fff8f2 !important;
}


/* ============================================================
   MOBILE PRODUCT CARD
   ============================================================ */

@media (max-width: 640px) {

  .al-product-card h3,
  .al-product-card h3 a,
  .product-card h3,
  .product-card h3 a {
    color: #fff8f2 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .al-product-card .al-price strong,
  .product-card .al-price strong {
    color: #f0a56f !important;
  }

  .al-product-card .al-card-cta,
  .product-card .al-card-cta {
    color: #fff !important;
    background: #9a5a2c !important;
  }
}
/* ============================================================
   FINAL FIX — ALL PRODUCT TITLES WHITE
   ============================================================ */

.al-product-card h3,
.al-product-card h3 a,
.al-product-card h3 a.text-dark,
.al-product-card h3 a.text-decoration-none,
.al-product-card .body h3,
.al-product-card .body h3 a,

.product-card h3,
.product-card h3 a,
.product-card h3 a.text-dark,
.product-card h3 a.text-decoration-none,
.product-card .card-title,
.product-card .card-title a,
.product-card .product-title,
.product-card .product-title a,

.st-grid .product-card h3,
.st-grid .product-card h3 a,
.st-grid .product-card .card-title,
.st-grid .product-card .card-title a {
    color: #fff8f2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}

/* Bootstrap text utilities પણ override */
.al-product-card .text-dark,
.product-card .text-dark,
.al-product-card .text-body,
.product-card .text-body {
    color: #fff8f2 !important;
}

/* Hover */
.al-product-card h3 a:hover,
.product-card h3 a:hover,
.product-card .card-title a:hover,
.product-card .product-title a:hover {
    color: #fff8f2 !important;
}
/* ============================================================
   AFGHANNUTS — ULTIMATE PRODUCT TITLE COLOR FIX
   Force ALL product names/titles to LIGHT WHITE
   ============================================================ */

/* Product card title container */
.al-product-card .body h3,
.al-product-card .body h3 a,
.al-product-card .body h3 a *,
.al-product-card .body .product-title,
.al-product-card .body .product-title a,
.al-product-card .body .product-title a *,

.product-card .body h3,
.product-card .body h3 a,
.product-card .body h3 a *,
.product-card .body .product-title,
.product-card .body .product-title a,
.product-card .body .product-title a *,

.product-card .card-body h3,
.product-card .card-body h3 a,
.product-card .card-body h3 a *,
.product-card .card-body .card-title,
.product-card .card-body .card-title a,
.product-card .card-body .card-title a *,

.st-grid .product-card h3,
.st-grid .product-card h3 a,
.st-grid .product-card h3 a *,
.st-grid .product-card .card-title,
.st-grid .product-card .card-title a,
.st-grid .product-card .card-title a * {

    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;

    opacity: 1 !important;
    visibility: visible !important;

    text-decoration: none !important;
}


/* ============================================================
   Bootstrap text classes
   ============================================================ */

.al-product-card .text-dark,
.al-product-card .text-body,
.al-product-card .text-black,

.product-card .text-dark,
.product-card .text-body,
.product-card .text-black,

.product-card .card-title.text-dark,
.product-card .card-title.text-body {

    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;
}


/* ============================================================
   Very broad product-title protection
   ============================================================ */

.al-product-card h3,
.al-product-card h3 a,
.product-card h3,
.product-card h3 a,
.product-card .card-title,
.product-card .card-title a {

    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;
}


/* ============================================================
   Hover
   ============================================================ */

.al-product-card .body h3 a:hover,
.al-product-card .body .product-title a:hover,
.product-card .body h3 a:hover,
.product-card .body .product-title a:hover,
.product-card .card-title a:hover {

    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;

}


/* ============================================================
   Prevent old theme from changing title through generic links
   ============================================================ */

.al-product-card .body a,
.product-card .body a,
.product-card .card-body a {

    text-decoration: none !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .al-product-card .body h3,
    .al-product-card .body h3 a,
    .al-product-card .body .product-title,
    .al-product-card .body .product-title a,

    .product-card .body h3,
    .product-card .body h3 a,
    .product-card .body .product-title,
    .product-card .body .product-title a,

    .product-card .card-title,
    .product-card .card-title a {

        color: #fff8f2 !important;
        -webkit-text-fill-color: #fff8f2 !important;

        font-size: 16px !important;
        line-height: 1.35 !important;
    }
}


/* ============================================================
   FINAL — PRODUCT CARD TEXT
   ============================================================ */

.an-page .al-product-card .body h3,
.an-page .al-product-card .body h3 a,
.an-page .product-card .body h3,
.an-page .product-card .body h3 a,
.an-page .product-card .card-title,
.an-page .product-card .card-title a {

    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;
}
/* FINAL PRODUCT TITLE WHITE FIX */
.al-product-card .body h3 a.al-product-title,
.al-product-card .body h3 a.al-product-title:visited {
    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.al-product-card .body h3 a.al-product-title:hover {
    color: #fff8f2 !important;
    -webkit-text-fill-color: #fff8f2 !important;
}
/* ============================================================
   AFGHANNUTS — FINAL PRODUCT NAME WHITE OVERRIDE
   FORCE ALL PRODUCT NAMES TO WHITE
   ============================================================ */

/* Product card title */
.al-product-card h3,
.al-product-card h3 a,
.al-product-card h3 a:link,
.al-product-card h3 a:visited,
.al-product-card h3 a:hover,
.al-product-card h3 a:active,

.product-card h3,
.product-card h3 a,
.product-card h3 a:link,
.product-card h3 a:visited,
.product-card h3 a:hover,
.product-card h3 a:active,

.product-card .card-title,
.product-card .card-title a,
.product-card .card-title a:link,
.product-card .card-title a:visited,
.product-card .card-title a:hover,
.product-card .card-title a:active,

.product-card .product-title,
.product-card .product-title a,
.product-card .product-title a:link,
.product-card .product-title a:visited,
.product-card .product-title a:hover,
.product-card .product-title a:active,

.al-product-title,
.al-product-title:link,
.al-product-title:visited,
.al-product-title:hover,
.al-product-title:active {

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Any span / strong / inner element inside product name */
.al-product-card h3 *,
.product-card h3 *,
.product-card .card-title *,
.product-card .product-title *,
.al-product-title * {

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Bootstrap / theme text colors */
.al-product-card .text-primary,
.al-product-card .text-info,
.al-product-card .text-dark,
.al-product-card .text-body,
.al-product-card .text-black,

.product-card .text-primary,
.product-card .text-info,
.product-card .text-dark,
.product-card .text-body,
.product-card .text-black {

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Hover must ALSO remain white */
.al-product-card:hover h3,
.al-product-card:hover h3 a,
.product-card:hover h3,
.product-card:hover h3 a,
.product-card:hover .card-title,
.product-card:hover .card-title a,
.product-card:hover .product-title,
.product-card:hover .product-title a {

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* ============================================================
   FIX — ALL PRODUCT BUY NOW BUTTONS SAME WIDTH & BOTTOM
   ============================================================ */

.al-product-card,
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.al-product-card .body,
.product-card .body,
.product-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.al-product-card .al-card-cta,
.product-card .al-card-cta,
.product-card .card-atc,
.product-card button {
    width: 100% !important;
    margin-top: auto !important;
    min-height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
/* ============================================================
   FINAL FIX — PRODUCT CARDS + BUY NOW ALIGNMENT
   ============================================================ */

/* Make every product card fill the complete grid row */
.st-grid {
    align-items: stretch !important;
}

.st-grid .product-card,
.st-grid .al-product-card {
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Product card content/body must grow */
.st-grid .product-card .body,
.st-grid .product-card .card-body,
.st-grid .al-product-card .body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Push BUY NOW to the bottom */
.st-grid .product-card .al-card-cta,
.st-grid .product-card .card-atc,
.st-grid .product-card button,
.st-grid .al-product-card .al-card-cta,
.st-grid .al-product-card button {
    width: 100% !important;
    margin-top: auto !important;
    min-height: 55px !important;
    height: 55px !important;
    flex-shrink: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
}

/* Keep button inside the card */
.st-grid .product-card > *,
.st-grid .al-product-card > * {
    box-sizing: border-box !important;
}

/* Mobile — 2 cards per row */
@media (max-width: 639px) {
    .st-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }

    .st-grid .product-card,
    .st-grid .al-product-card {
        height: 100% !important;
        min-width: 0 !important;
    }

    .st-grid .product-card .al-card-cta,
    .st-grid .product-card .card-atc,
    .st-grid .product-card button,
    .st-grid .al-product-card .al-card-cta,
    .st-grid .al-product-card button {
        width: 100% !important;
        min-height: 52px !important;
        height: 52px !important;
    }
}