/* DFADeals Product Page — BUILD 2026-07-30-v8 premium mockup */
:root {
  --dfa-red: #ed0016;
  --dfa-black: #111111;
  --dfa-border: #e8e8e8;
  --dfa-muted: #666;
  --dfa-radius: 16px;
}

.dfa-product-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dfa-black);
  padding-bottom: 90px;
}

body.dfa-product-page #column-left,
body.dfa-product-page #column-right {
  display: none !important;
}

body.dfa-product-page #content {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

/* Breadcrumb */
.dfa-breadcrumb {
  font-size: 13px;
  margin: 20px 0 28px;
  color: #888;
}

.dfa-breadcrumb-mobile {
  display: none;
}

.dfa-breadcrumb-desktop {
  display: block;
}

.dfa-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.dfa-breadcrumb a:hover {
  color: var(--dfa-red);
}

/* Two-column layout */
.dfa-product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}

/* Gallery */
.dfa-gallery-wrap {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dfa-gallery-thumbs-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dfa-gallery-thumb-btn {
  border: 1.5px solid var(--dfa-border);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.dfa-gallery-thumb-btn.is-active,
.dfa-gallery-thumb-btn:hover {
  border-color: var(--dfa-red);
  box-shadow: 0 0 0 1px var(--dfa-red);
}

.dfa-gallery-thumb-btn img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  display: block;
  background: #fafafa;
}

.dfa-gallery-card {
  border: none;
  border-radius: var(--dfa-radius);
  background: #f6f6f6;
  padding: 28px 24px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dfa-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  position: relative;
  min-height: 280px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.dfa-main-img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}

.dfa-main-img.is-fading {
  opacity: 0;
  transform: scale(0.985);
}

.dfa-gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(40, 40, 40, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.2;
  pointer-events: none;
}

.dfa-gallery-mobile {
  display: none;
}

.dfa-gallery-thumbs-row-wrap {
  position: relative;
  margin-top: 14px;
}

.dfa-gallery-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 28px 2px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dfa-gallery-thumbs-row::-webkit-scrollbar {
  display: none;
}

.dfa-gallery-thumbs-row .dfa-gallery-thumb-btn {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 4px;
  scroll-snap-align: start;
}

.dfa-gallery-thumbs-row .dfa-gallery-thumb-btn img {
  height: 100%;
}

.dfa-thumbs-scroll {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 12px;
}

.dfa-thumbs-scroll.is-visible {
  display: flex;
}

/* Product info */
.dfa-product-badges {
  display: none;
}

.dfa-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--dfa-red);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dfa-brand-name a {
  color: inherit;
  text-decoration: none;
}

.dfa-brand-name a:hover {
  color: #c80012;
}

.dfa-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.dfa-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #666;
}

.dfa-stars {
  color: #f5b301;
  letter-spacing: 1px;
}

.dfa-rating-score {
  font-weight: 700;
  color: var(--dfa-black);
}

.dfa-rating-link,
.dfa-write-review {
  color: var(--dfa-red);
  text-decoration: none;
  font-weight: 600;
}

.dfa-rating-sep {
  color: #ccc;
}

.dfa-rating-link:hover,
.dfa-write-review:hover {
  color: #c80012;
  text-decoration: underline;
}

/* Pricing — typography only, no card */
.dfa-pricing-box {
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 28px;
  background: transparent;
}

.dfa-price-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 14px;
}

.dfa-price-line .dfa-price-label {
  color: #777;
  font-weight: 600;
  font-size: 14px;
}

.dfa-price-line.dfa-price-our .dfa-price-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.dfa-retail-price {
  text-decoration: line-through;
  color: #888;
  font-size: 16px;
  font-weight: 500;
}

.dfa-dfadeals-price {
  color: var(--dfa-black);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dfa-save-line {
  margin-bottom: 0;
}

.dfa-save-line .dfa-save-text {
  color: var(--dfa-red);
  font-weight: 700;
  font-size: 15px;
}

/* Quantity + buttons */
.dfa-purchase-box .form-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.dfa-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dfa-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.dfa-qty-stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: #f7f7f7;
  font-size: 18px;
  cursor: pointer;
}

.dfa-qty-stepper button:hover {
  background: #eee;
}

.dfa-qty-stepper input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--dfa-border);
  border-right: 1px solid var(--dfa-border);
  text-align: center;
  font-weight: 700;
}

.dfa-btn-cart {
  width: 100%;
  height: 54px;
  background: var(--dfa-red) !important;
  border: none !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: none;
}

.dfa-btn-cart:hover {
  background: #c80012 !important;
}

/* Wholesale member purchasing enhancements */
.dfa-ws-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E30613;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.dfa-price-wholesale .dfa-wholesale-price {
  color: #E30613;
  font-size: 26px;
  font-weight: 800;
}

.dfa-price-wholesale .dfa-wholesale-price small {
  font-size: 13px;
  font-weight: 600;
}

.dfa-price-muted .dfa-dfadeals-price {
  color: #777;
  font-size: 15px;
  font-weight: 600;
}

.dfa-ws-save-line {
  margin-top: 6px;
}

.dfa-ws-save-text {
  display: inline-block;
  background: #e8f8ee;
  color: #11803b;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}

.dfa-ws-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #444;
  margin: 0 0 12px;
}

.dfa-ws-qty-error {
  color: #E30613;
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 0;
}

.dfa-ws-subtotal {
  margin: 10px 0 0;
  font-size: 14px;
  color: #333;
}

.dfa-ws-tiers {
  margin: 16px 0 18px;
}

.dfa-ws-tiers h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}

.dfa-ws-tiers table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dfa-ws-tiers th,
.dfa-ws-tiers td {
  padding: 8px 10px;
  border: 1px solid #e8e8e8;
  text-align: left;
}

.dfa-ws-tiers tr.is-active {
  background: #fff5f5;
  color: #E30613;
  font-weight: 800;
}

.dfa-ws-custom-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
  color: #E30613;
  font-weight: 700;
  font-size: 13px;
}

.dfa-ws-custom-link:hover {
  color: #c10510;
  text-decoration: underline;
}

.dfa-secondary-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin-top: 4px;
}

.dfa-secondary-links button {
  color: var(--dfa-red);
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.dfa-secondary-links button:hover,
.dfa-secondary-links button:focus {
  color: #c80012;
  text-decoration: underline;
}

/* Tabs */
.dfa-product-tabs {
  margin-top: 10px;
}

.dfa-product-tabs .nav-tabs {
  border-bottom: 1px solid #ddd;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.dfa-product-tabs .nav-tabs::-webkit-scrollbar {
  display: none;
}

.dfa-product-tabs .nav-link {
  border: none;
  color: #555;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 16px 22px 16px 0;
  white-space: nowrap;
}

.dfa-product-tabs .nav-link:hover,
.dfa-product-tabs .nav-link:focus {
  color: var(--dfa-red);
}

.dfa-product-tabs .nav-link.active {
  color: var(--dfa-black);
  border-bottom: 3px solid var(--dfa-red);
  background: transparent;
}

.dfa-tab-content {
  padding: 28px 0 10px;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.dfa-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.dfa-spec-table th,
.dfa-spec-table td {
  border: 1px solid var(--dfa-border);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}

.dfa-spec-table th {
  width: 34%;
  background: #fafafa;
  font-weight: 700;
}

/* Related products */
.dfa-related-section {
  margin-top: 42px;
}

.dfa-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dfa-related-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dfa-related-view {
  color: var(--dfa-red);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.dfa-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.dfa-related-card {
  scroll-snap-align: start;
  border: 1px solid var(--dfa-border);
  border-radius: var(--dfa-radius);
  background: #fff;
  overflow: hidden;
  position: relative;
}

.dfa-related-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--dfa-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}

.dfa-related-img {
  display: block;
  padding: 18px;
  background: #fff;
}

.dfa-related-img img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.dfa-related-body {
  padding: 0 14px 16px;
}

.dfa-related-brand {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dfa-related-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.dfa-related-name a {
  color: var(--dfa-black);
  text-decoration: none;
}

.dfa-related-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.dfa-related-sale {
  color: var(--dfa-red);
  font-weight: 800;
  font-size: 16px;
}

.dfa-related-retail {
  color: #888;
  text-decoration: line-through;
  font-size: 13px;
}

/* Mobile sticky cart bar */
.dfa-sticky-cart {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid var(--dfa-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}

.dfa-sticky-cart-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.dfa-sticky-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid var(--dfa-border);
  border-radius: 10px;
  object-fit: contain;
  background: #fafafa;
  flex-shrink: 0;
}

.dfa-sticky-price {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.dfa-sticky-retail {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.dfa-sticky-price strong {
  color: var(--dfa-black);
  font-size: 18px;
  font-weight: 800;
  display: block;
}

.dfa-sticky-save {
  display: block;
  font-size: 11px;
  color: var(--dfa-red);
  font-weight: 700;
}

.dfa-sticky-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  background: var(--dfa-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dfa-sticky-btn:hover {
  background: #c80012;
}

body.dfa-product-page footer,
body.dfa-product-page .dfa-footer {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  body.dfa-product-page .dfa-footer {
    padding-bottom: 72px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .dfa-product-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .dfa-product-page {
    padding-bottom: 150px;
  }

  .dfa-breadcrumb-desktop {
    display: none;
  }

  .dfa-breadcrumb-mobile {
    display: block;
    margin: 12px 0 16px;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dfa-breadcrumb-mobile a,
  .dfa-breadcrumb-mobile span {
    display: inline;
  }

  .dfa-gallery-wrap {
    display: none;
  }

  .dfa-gallery-mobile {
    display: block;
  }

  .dfa-gallery-card {
    min-height: 340px;
    padding: 18px 16px 20px;
    border-radius: 18px;
    background: #f5f5f5;
  }

  .dfa-gallery-stage {
    min-height: 300px;
  }

  .dfa-main-img {
    max-height: 300px;
  }

  .dfa-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .dfa-dfadeals-price {
    font-size: 34px;
  }

  .dfa-product-info {
    padding-top: 4px;
  }

  .dfa-sticky-cart {
    display: block;
  }

  .dfa-purchase-box .dfa-btn-cart {
    display: none;
  }

  body.dfa-product-page .dfa-header-inner {
    grid-template-columns: 44px 1fr auto;
  }

  body.dfa-product-page .dfa-header-nav {
    display: none;
  }

  body.dfa-product-page .dfa-action-account,
  body.dfa-product-page .dfa-action-wishlist {
    display: none;
  }
}
