/* =========================================
   MICRO MART COFFEE SECTION 6.0
   Premium Enterprise Edition
   Fully Responsive / Animated / Polished
========================================= */

:root {
  --coffee-accent: #6366f1;
  --coffee-bg-light: #f8fafc;
  --coffee-bg-dark: #0f172a;
  --coffee-text-light: #1e293b;
  --coffee-text-dark: #e5e7eb;
}

/* =========================================
   SECTION BASE
========================================= */

.micromart-coffee {
  position: relative;
  padding: clamp(70px, 8vw, 120px) 0;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(99, 102, 241, 0.06),
      transparent 40%
    ),
    var(--coffee-bg-light);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.24,1),
              transform 0.9s cubic-bezier(.16,.8,.24,1);
}

[data-theme="dark"] .micromart-coffee {
  background: radial-gradient(
      circle at 80% 20%,
      rgba(99, 102, 241, 0.12),
      transparent 40%
    ),
    var(--coffee-bg-dark);
}

.micromart-coffee.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   GRID LAYOUT
========================================= */

.micromart-coffee__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 1024px) {
  .micromart-coffee__inner {
    grid-template-columns: 1fr;
  }

  .micromart-coffee__visual {
    order: -1;
  }
}

/* =========================================
   TYPOGRAPHY
========================================= */

.micromart-coffee__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--coffee-accent);
  margin-bottom: 16px;
}

.micromart-coffee__title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--coffee-text-light);
}

[data-theme="dark"] .micromart-coffee__title {
  color: var(--coffee-text-dark);
}

.micromart-coffee__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  margin-bottom: 26px;
  color: #475569;
}

[data-theme="dark"] .micromart-coffee__lead {
  color: #cbd5e1;
}

.micromart-coffee__text p {
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 15.5px;
  color: #475569;
}

[data-theme="dark"] .micromart-coffee__text p {
  color: #d1d5db;
}

/* =========================================
   BENEFITS GRID
========================================= */

.micromart-coffee__benefits {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 600px) {
  .micromart-coffee__benefits {
    grid-template-columns: 1fr;
  }
}

.coffee-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  font-weight: 600;
  font-size: 14px;
  transition: transform .4s ease, box-shadow .4s ease;
  opacity: 0;
  transform: translateY(20px);
}

[data-theme="dark"] .coffee-benefit {
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: none;
}

.coffee-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.coffee-benefit i {
  font-size: 16px;
  color: var(--coffee-accent);
  flex-shrink: 0;
}

/* Stagger Animation */
.micromart-coffee.is-visible .coffee-benefit {
  opacity: 1;
  transform: translateY(0);
}

.micromart-coffee.is-visible .coffee-benefit:nth-child(1) { transition-delay: .1s; }
.micromart-coffee.is-visible .coffee-benefit:nth-child(2) { transition-delay: .2s; }
.micromart-coffee.is-visible .coffee-benefit:nth-child(3) { transition-delay: .3s; }
.micromart-coffee.is-visible .coffee-benefit:nth-child(4) { transition-delay: .4s; }

/* =========================================
   CTA
========================================= */

.micromart-coffee__cta {
  margin-top: 40px;
}

/* =========================================
   IMAGE & FLOATING CARD
========================================= */

.micromart-coffee__image-wrapper {
  position: relative;
  perspective: 1200px;
}

.micromart-coffee__image {
  width: 100%;
  height: clamp(300px, 40vw, 450px);
  border-radius: 22px;
  background-image: url('/assets/images/office-coffee-commercial-machine.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.18);
  transition: transform .6s ease;
}

.micromart-coffee__image-wrapper:hover .micromart-coffee__image {
  transform: scale(1.03);
}

.micromart-coffee__floating {
  position: absolute;
  bottom: -30px;
  left: 40px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  max-width: 280px;
}

[data-theme="dark"] .micromart-coffee__floating {
  background: rgba(31,41,55,0.85);
}

.micromart-coffee__floating strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.micromart-coffee__floating span {
  font-size: 13px;
  opacity: 0.75;
}

/* Responsive Floating Card */

@media (max-width: 768px) {
  .micromart-coffee__floating {
    position: static;
    margin-top: 20px;
  }
}

/* =========================================
   REDUCED MOTION SUPPORT
========================================= */

@media (prefers-reduced-motion: reduce) {
  .micromart-coffee,
  .coffee-benefit,
  .micromart-coffee__image {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}






/* =========================================
   DARK / LIGHT MODE ENHANCEMENTS 6.1
   Append Below Existing Coffee CSS
========================================= */

/* Smooth theme transition */
.micromart-coffee,
.micromart-coffee * {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

/* ===== Light Mode Refinements ===== */

[data-theme="light"] .micromart-coffee {
  background-color: #f8fafc;
}

[data-theme="light"] .coffee-benefit {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.05);
}

[data-theme="light"] .micromart-coffee__floating {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15,23,42,0.06);
}

/* ===== Dark Mode Refinements ===== */

[data-theme="dark"] .micromart-coffee {
  background-color: #0b1220;
}

[data-theme="dark"] .micromart-coffee__title {
  color: #f1f5f9;
}

[data-theme="dark"] .micromart-coffee__lead {
  color: #cbd5e1;
}

[data-theme="dark"] .micromart-coffee__text p {
  color: #cbd5e1;
}

[data-theme="dark"] .coffee-benefit {
  background: rgba(17,24,39,0.75);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

[data-theme="dark"] .coffee-benefit:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

[data-theme="dark"] .micromart-coffee__floating {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

[data-theme="dark"] .micromart-coffee__floating strong {
  color: #f8fafc;
}

[data-theme="dark"] .micromart-coffee__floating span {
  color: #cbd5e1;
}

/* Improve accent contrast in dark */
[data-theme="dark"] .coffee-benefit i {
  color: #818cf8;
}

/* Ensure image shadow adapts */
[data-theme="dark"] .micromart-coffee__image {
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}