/* ==========================================================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #000000;
  --accent-color: #f7ef00;
  --primary-green: #006837;
  --dark-green: #004020;
  --accent-red: #ff0000;
  --accent-purple: #7c3aed;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-dark: #000509;
  --border-radius: 8px;
  --transition-smooth: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-dark);
}

/* ==========================================================================
   2. TRUST BAR (Strict Single Row Mobile Layout)
   ========================================================================== */
.trust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: var(--bg-dark);
  padding: 15px 20px;
  border-radius: var(--border-radius);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-item i {
  font-size: 1.25rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.stat-item strong {
  font-weight: 700;
  color: var(--text-dark);
}

.stat-item span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Single-Row Mobile Optimization */
@media (max-width: 600px) {
  .trust-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Strictly prevents breaking to line 2 */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 4px !important;
    gap: 4px !important;
    background: #121212 !important;
    /* Custom brand dark aesthetic */
    overflow: hidden !important;
  }

  .stat-item {
    display: flex !important;
    flex-direction: row !important;
    /* Keeps icon left, text right */
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .stat-item i {
    font-size: 1rem !important;
    color: var(--accent-color) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .stat-item div {
    display: flex !important;
    flex-direction: column !important;
    /* Stack primary above sub-label */
    align-items: flex-start !important;
    text-align: left !important;
    line-height: 1 !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .stat-item strong {
    font-size: 0.75rem !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .stat-item span {
    font-size: 0.55rem !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: block !important;
  }
}

/* ==========================================================================
   3. HERO PREMIUM & FEATURED PRODUCT
   ========================================================================== */
/* Default Mobile Hidden Mode */
.hero-banner-wrapper,
.hero-premium {
  display: none !important;
  /* Hidden on Mobile & Tablet devices */
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-new {
  background: var(--accent-red);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 20px 0;
  color: #ffffff;
  text-shadow: #0c80c0 2px 1px 4px;
}

.text-purple {
  color: var(--accent-purple);
}

.hero-copy p {
  font-size: 1.2rem;
  color: #0c80c0;
  background-color: #f4faf7;
  margin-bottom: 35px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.btn-outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  z-index: 1;
}

.hero-jar-background {
  width: 100%;
  height: 100%;
  min-height: 450px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Desktop Hero Display Mode */
@media screen and (min-width: 1024px) {
  .hero-banner-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(12px, 2vw, 28px);
    box-sizing: border-box;
  }

  .hero-banner-wrapper.has-featured-product {
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.9fr);
  }

  .hero-premium {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 2 / 1;
    padding: 0;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    background-color: #f4f4f4;
  }

  .hero-featured-product {
    align-self: start;
    height: auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    color: #20242a;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-featured-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
  }

  .hero-featured-image-wrap {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    background: #f7f7f7;
  }

  .hero-featured-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .hero-featured-offer {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    overflow: hidden;
    color: #ffffff;
    background: #d92332;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .hero-featured-details {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    color: #ffffff;
    background: #00AEEF;
    box-sizing: border-box;
  }

  .hero-featured-eyebrow {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .hero-featured-details h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-featured-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ef9b00;
    font-size: 0.82rem;
  }

  .hero-featured-rating strong {
    color: #ffffff;
    font-size: 0.78rem;
  }

  .hero-featured-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-featured-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .hero-featured-specs strong {
    color: #ffffff;
  }

  .hero-featured-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
  }

  .hero-featured-price {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
  }

  .hero-featured-old-price {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    text-decoration: line-through;
  }

  .hero-featured-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding-top: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
  }

  .hero-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 0;
  }

  .btn-shop-now {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
    background-color: #7c3aed;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;
  }

  .btn-shop-now:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   4. MARQUEE TICKER TRACK
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #121212;
  padding: 22px 0;
  box-sizing: border-box;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-loop 25s linear infinite;
}

.ticker-item {
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0 2rem;
  white-space: nowrap;
}

@keyframes ticker-loop {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

/* ==========================================================================
   5. PRODUCT GRID CATALOG (Consolidated Layouts)
   ========================================================================== */
.featured-catalog,
.updated-catalog {
  padding: 40px 5% 10px;
  text-align: center;
}

.featured-catalog h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 5px;
  font-weight: 700;
  background-color: #fcb929;
}

.updated-catalog h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 5px;
  font-weight: 700;
  color: #fff;
  background-color: #f5212b;
}

/* Unified Grid System */
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 5% 60px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.category-product-row {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 22px;
  border-radius: 14px;
  background: #f2f9fd;
}

.latest-products-row {
  max-width: 1400px;
  margin: 24px auto;
  padding: 22px;
  border-radius: 14px;
  background: #fff7ed;
}

.latest-products-title {
  margin: 0 0 16px;
  color: #e87512;
  font-size: 1.6rem;
  font-weight: 800;
}

.latest-products-row .category-product-card {
  box-shadow: 0 4px 12px rgba(194, 93, 0, 0.14);
}

.latest-products-row .category-product-card:hover {
  box-shadow: 0 8px 18px rgba(194, 93, 0, 0.22);
}

.latest-products-row .category-product-card-info {
  background: #e87512;
}

.category-product-category {
  display: none;
}

.category-product-category.is-active {
  display: block;
}

.category-product-row-title {
  margin: 0 0 16px;
  color: #0c80c0;
  font-size: 1.6rem;
  font-weight: 800;
}

.category-product-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-product-scroller::-webkit-scrollbar {
  display: none;
}

.category-product-card {
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 64, 99, 0.12);
  scroll-snap-align: start;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 64, 99, 0.2);
}

.category-product-image {
  width: 100%;
  height: 160px;
  background: #f9f9f9;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-product-card-info {
  min-height: 78px;
  padding: 12px;
  background: #0c80c0;
  color: #ffffff;
}

.category-product-card-info h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-product-card-info span {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Card Component: Catalog */
.product-item {
  position: relative;
  background: var(--white, #ffffff);
  padding: 16px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  min-width: 0;
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Component: Standard Store Layout */
.product-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Wrappers */
.p-image,
.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.p-image img,
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.promo-product-image {
  width: 100%;
  height: 100px;
  border-radius: 6px;
  background: #f9f9f9;
}

.promo-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Metadata, Pricing, & Typography inside Cards */
.p-type,
.product-title {
  font-size: 1rem;
  font-weight: 800;
  color: #004063;
  margin: 10px 0;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-weight,
.product-weight {
  color: #0c80c0;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.p-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-bottom: 12px;
  gap: 2px;
}

.p-price {
  color: #68004e;
  font-size: 1.2rem;
  font-weight: 800;
}

.p-price-old {
  color: #888888;
  font-size: 0.95rem;
  font-style: italic;
  text-decoration: line-through;
  font-weight: 500;
}

.p-current-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.p-discount-indicator {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background-color: #198754;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Buttons */
.btn-order-now {
  width: 100%;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s ease;
}

.btn-order-now:hover {
  opacity: 0.9;
}

.btn-find-card {
  background: var(--dark-green);
  color: var(--white);
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: auto;
  display: block;
}

/* Card Badges */
.badge-new-item {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-red, #ff0000);
  color: var(--white, #ffffff);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-discount-item {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary-green, #006837);
  color: var(--white, #ffffff);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   6. CIRCULAR CATEGORIES SECTION
   ========================================================================== */
.category-circles-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.category-circle-item {
  text-align: center;
}

.category-circle-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.circle-image-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
}

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

@keyframes loading-skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.category-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.category-circle-link:hover {
  transform: translateY(-5px);
}

.category-circle-link:hover .circle-image-wrapper {
  border-color: #6a1b9a;
  box-shadow: 0 8px 20px rgba(106, 27, 154, 0.2);
}

.category-circle-link:hover .circle-image-wrapper img {
  transform: scale(1.1);
}

.category-circle-link:hover .category-name {
  color: #6a1b9a;
}

/* ==========================================================================
   7. EXCLUSIVE PROMO DEALS & CAROUSEL SLIDES
   ========================================================================== */
.promo-deals-section {
  padding: 60px 0;
  background-color: #fdf8f5;
  border-top: 1px solid #f3e6e0;
  border-bottom: 1px solid #f3e6e0;
}

.promo-deals-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.promo-deals-section .section-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
  color: #d9534f;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-deals-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

/* Custom promo cards with natural fluid heights */
.promo-deals-section .product-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 380px;
}

.promo-deals-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(217, 83, 79, 0.08);
  border-color: #f5c6cb;
}

.promo-deals-section .product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo-deals-section .product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px 0;
  line-height: 1.4;
  flex-grow: 1;
}

.promo-deals-section .pricing-block {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-deals-section .current-promo-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #28a745;
}

.promo-deals-section .old-retail-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.95rem;
  font-weight: 500;
}

.promo-deals-section .promo-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #d9534f;
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(219, 83, 79, 0.3);
  z-index: 2;
  letter-spacing: 0.5px;
}

.promo-deals-section .product-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  color: #666;
  font-size: 0.8rem;
  font-weight: 600;
}

.promo-deals-section .product-card small i {
  color: #d9534f;
}

.btn-promo-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 12px;
  text-align: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-promo-whatsapp:hover {
  background-color: #1ebd56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-promo-whatsapp i {
  font-size: 1.15rem;
}

/* Responsive Slide Layouts */
.carousel-slide {
  flex: 0 0 25%;
}

@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 33.333% !important;
  }
}

/* ==========================================================================
   8. BLOG SECTION
   ========================================================================== */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.blog-card-mini {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
}

.blog-card-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  padding: 15px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  width: 100%;
}

.read-more {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. GLOBAL CONSOLIDATED MEDIA QUERIES (Mobile and Tablet Optimizations)
   ========================================================================== */
@media (max-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 676px) {
  .promo-deals-section {
    padding: 40px 0;
  }

  .promo-deals-section .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .promo-deals-section .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .home-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 10px 12px 40px;
    width: 100%;
    box-sizing: border-box;
  }

  .product-item,
  .product-card {
    padding: 10px;
    border-radius: 12px;
  }

  .badge-new-item,
  .badge-discount-item {
    top: 8px;
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .badge-new-item {
    left: 8px;
  }

  .badge-discount-item {
    right: 8px;
  }

  .p-image,
  .card-image {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .p-image img,
  .card-image img {
    border-radius: 8px;
  }

  .p-type,
  .product-title {
    font-size: 0.85rem;
    min-height: 2.4em;
    margin: 4px 0;
  }

  .p-weight,
  .product-weight {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .p-price {
    font-size: 1.05rem;
  }

  .p-price-old {
    font-size: 0.85rem;
  }

  .btn-order-now,
  .btn-find-card {
    padding: 8px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  /* Horizontal category swipe config on smaller views */
  .category-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 15px;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .category-container::-webkit-scrollbar {
    display: none;
  }

  .category-circle-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .circle-image-wrapper {
    width: 90px;
    height: 90px;
  }

  .category-name {
    font-size: 0.85rem;
  }

  /* Carousel Slide config on mobile limits */
  .carousel-slide {
    padding: 0 10px !important;
  }

  .promo-deals-section .section-title {
    font-size: 1.2rem !important;
  }

  .btn-promo-whatsapp {
    font-size: 0.85rem !important;
    padding: 10px 5px !important;
  }

  .btn-share-product {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-share-product .share-label {
    display: none;
  }
}

/* Ticker Layout Preservation Layer */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #111;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-loop 25s linear infinite;
  will-change: transform;
}

/* Optimization for smooth product list loads */
.product-carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
