{# DFA HOME BUILD 2026-07-05-v2 — mockup-matched redesign #}
:root {
  --dfa-red: #E30613;
  --dfa-red-dark: #c4000f;
  --dfa-radius-lg: 20px;
  --dfa-radius-md: 18px;
  --dfa-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --dfa-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --dfa-sidebar-width: 280px;
}

body.dfa-home-page {
  background: #fff;
  --dfa-promo-h: 40px;
  --dfa-header-h: 80px;
}

body.dfa-home-page #column-left,
body.dfa-home-page #column-right {
  display: none !important;
}

body.dfa-home-page .dfa-module-zone {
  display: none !important;
}

/* ── Page shell ── */
.dfa-home {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  padding: 24px 20px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.dfa-home *,
.dfa-home *::before,
.dfa-home *::after {
  box-sizing: border-box;
}

/* ── Section headers ── */
.dfa-home-section {
  margin-bottom: 36px;
}

.dfa-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.dfa-home-section-head h2 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dfa-home-section-link {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}

.dfa-home-section-link:hover {
  color: var(--dfa-red);
}

/* ── Shop by Category (hero) ── */
.dfa-home-categories {
  margin-bottom: 28px;
}

.dfa-home-cat-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dfa-home-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--dfa-radius-md);
  overflow: hidden;
  box-shadow: var(--dfa-shadow-soft);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s, border-color 0.2s;
}

.dfa-home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dfa-shadow-hover);
  border-color: #f5c6cc;
}

.dfa-home-cat-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}

.dfa-home-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dfa-home-cat-card:hover .dfa-home-cat-img img {
  transform: scale(1.06);
}

.dfa-home-cat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.dfa-home-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff5f6;
  color: var(--dfa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.dfa-home-cat-name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

/* ── Shop by Brand ── */
.dfa-home-brands {
  margin-bottom: 28px;
}

.dfa-home .dfa-home-brand-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dfa-home .dfa-home-brand-scroll::-webkit-scrollbar {
  display: none;
}

.dfa-home .dfa-home-brand-card {
  display: flex;
  flex: 0 0 148px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--dfa-radius-md);
  padding: 16px 12px;
  min-height: 88px;
  scroll-snap-align: start;
  box-shadow: var(--dfa-shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dfa-home .dfa-home-brand-card:hover,
.dfa-home .dfa-home-brand-card:focus {
  color: #111;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--dfa-shadow-hover);
  border-color: #f5c6cc;
}

.dfa-home .dfa-home-brand-logo {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dfa-home .dfa-home-brand-logo img {
  display: block;
  max-width: 110px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dfa-home .dfa-home-brand-initials {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #E30613 0%, #c4000f 100%);
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.18);
}

/* ── Feature icons ── */
.dfa-home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff5f8;
  border-radius: var(--dfa-radius-lg);
  padding: 20px 16px;
  margin-bottom: 36px;
}

.dfa-home-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 4px;
}

.dfa-home-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ffd6db;
  color: var(--dfa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s;
}

.dfa-home-feature:hover .dfa-home-feature-icon {
  transform: scale(1.08);
}

.dfa-home-feature strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dfa-home-feature span {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
}

/* ── Product grid ── */
.dfa-home-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dfa-home-product-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--dfa-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--dfa-shadow-soft);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s;
}

.dfa-home-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dfa-shadow-hover);
}

.dfa-home-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--dfa-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.dfa-home-product-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #888;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: color 0.2s, transform 0.2s;
}

.dfa-home-product-wish:hover,
.dfa-home-product-wish.is-active {
  color: var(--dfa-red);
  transform: scale(1.1);
}

.dfa-home-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 8px;
  background: #fafafa;
  overflow: hidden;
  text-decoration: none;
}

.dfa-home-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dfa-home-product-card:hover .dfa-home-product-img img {
  transform: scale(1.06);
}

.dfa-home-product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dfa-home-product-brand {
  font-size: 10px;
  font-weight: 900;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dfa-home-product-name {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.dfa-home-product-name a {
  color: #111;
  text-decoration: none;
}

.dfa-home-product-name a:hover {
  color: var(--dfa-red);
}

.dfa-home-product-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  color: #f5a623;
  font-size: 11px;
}

.dfa-home-product-prices {
  margin-bottom: 8px;
}

.dfa-home-product-sale {
  display: block;
  color: var(--dfa-red);
  font-size: 17px;
  font-weight: 900;
}

.dfa-home-product-retail {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  font-weight: 600;
  margin-top: 2px;
}

.dfa-home-product-quick {
  width: 100%;
  height: 40px;
  margin-top: auto;
  border: none;
  border-radius: 10px;
  background: var(--dfa-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.dfa-home-product-card:hover .dfa-home-product-quick {
  opacity: 1;
  transform: translateY(0);
}

.dfa-home-product-quick:hover {
  background: var(--dfa-red-dark);
}

/* Always show quick add on touch devices */
@media (hover: none) {
  .dfa-home-product-quick {
    opacity: 1;
    transform: none;
  }
}

/* ── Scroll reveal ── */
.dfa-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dfa-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile bottom nav lives in dfa-header.css (all retail pages) */

/* ── Tablet ── */
@media (min-width: 768px) {
  .dfa-home {
    padding: 28px 28px 40px;
  }

  .dfa-home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .dfa-home-cat-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ── Desktop ── */
@media (min-width: 992px) {
  .dfa-home {
    padding: 32px 36px 48px;
  }

  .dfa-home-cat-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .dfa-home .dfa-home-brand-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .dfa-home .dfa-home-brand-card {
    flex: 1 1 calc(16.666% - 12px);
    min-width: 140px;
    max-width: none;
  }

  .dfa-home-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .dfa-home-features {
    padding: 24px 28px;
    gap: 16px;
  }

  .dfa-home-feature strong {
    font-size: 13px;
  }
}

@media (min-width: 1280px) {
  .dfa-home-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dfa-home-cat-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .dfa-home-cat-scroll {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .dfa-home .dfa-home-brand-card {
    flex: 1 1 calc(8.333% - 12px);
    min-width: 130px;
  }
}

/* ── Mobile ── */
@media (max-width: 991px) {
  .dfa-home {
    padding: 16px 16px 24px;
  }

  .dfa-home-cat-scroll {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dfa-home-cat-scroll::-webkit-scrollbar {
    display: none;
  }

  .dfa-home-cat-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }

  .dfa-home .dfa-home-brand-card {
    flex: 0 0 140px;
  }

  .dfa-home-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 12px;
  }

  .dfa-home-feature-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .dfa-home-section-head h2 {
    font-size: 17px;
  }
}

/* Ripple effect */
.dfa-home-product-quick {
  position: relative;
  overflow: hidden;
}

.dfa-home-product-wish {
  overflow: hidden;
}

.dfa-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: dfa-ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes dfa-ripple-anim {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
