/* ═══════════════════════════════════════════════════════════════════════════
   Product Tools & Accessories Template Stylesheet
   Pixel-by-Pixel Parity with product-putty.css and reference UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page Shell & Spacing - Utilized side margins for spacious modern arrangement */
.tools-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 32px 60px;
  box-sizing: border-box;
}



/* ═══ Upper Hero Section (2-Column) ═══ */
.tools-hero {
  display: grid;
  grid-template-columns: minmax(420px, 480px) 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .tools-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Left Hero Media */
.tools-media-card {
  background: #FDF6F0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.tools-media-card img {
  width: 100%;
  height: 100%;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tools-media-card:hover img {
  transform: scale(1.04);
}

/* Right Hero Info */
.tools-info-col {
  display: flex;
  flex-direction: column;
}

.tools-brand-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #FF4500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tools-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.18;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
}

.tools-tagline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Feature Pills Row */
.tools-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tools-pill {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #FFF1EB;
  border: 1.5px solid #FF8A50;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.2;
}

/* Short Description */
.tools-short-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 20px 0;
}

.tools-section-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

/* ═══ Pattern 1: Color Variant Selector ═══ */
.tools-color-section {
  margin-bottom: 20px;
}
.tools-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tools-color-btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.tools-color-btn:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
}
.tools-color-btn.active {
  border-color: #FF5722;
  background: #FFF6F2;
  color: #FF5722;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
}
.tools-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.tools-color-dot.golden {
  background: linear-gradient(135deg, #FFD700, #DAA520);
}
.tools-color-dot.silver {
  background: linear-gradient(135deg, #E0E0E0, #A0A0A0);
}
.tools-color-dot.rainbow {
  background: linear-gradient(135deg, #FF5722, #4CAF50, #2196F3);
}

/* ═══ Pattern 2: Select Size / Pack Grid ═══ */
.tools-pack-section {
  margin-bottom: 22px;
}
.tools-pack-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}
@media (max-width: 640px) {
  .tools-pack-card {
    width: calc(50% - 7px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 calc(50% - 7px) !important;
    min-height: 105px !important;
  }
}

.tools-pack-card {
  position: relative;
  width: 152px;
  min-width: 152px;
  max-width: 152px;
  min-height: 110px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 13px 10px 11px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tools-pack-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.tools-pack-card.active,
.tools-pack-card.selected {
  border: 2px solid #FF5722;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.14);
}
.tools-pack-card .pack-size {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px;
  line-height: 1.2;
}
.tools-pack-card .pack-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 2px;
  line-height: 1.2;
  font-feature-settings: 'tnum' on;
}
.tools-pack-card .recommended-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF4500;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 69, 0, 0.3);
  z-index: 2;
}

/* ═══ Mid 2-Column Info Cards (Tool Profile & Recommended Uses) ═══ */
.tools-mid-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .tools-mid-cards {
    grid-template-columns: 1fr;
  }
}

.tools-info-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.tools-info-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px 0;
}

.tools-profile-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tools-profile-col {
  display: flex;
  flex-direction: column;
}
.tools-profile-col .profile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
}
.tools-profile-col .profile-val-num {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
}
.tools-profile-col .profile-val-sub {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}
.tools-areas-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}

/* ═══ Lower 3-Card Details Container ═══ */
.tools-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .tools-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.tools-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.tools-card-header {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
  letter-spacing: -0.2px;
}

/* Column 1: Description Card */
.tools-desc-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #4B5563;
  margin: 0 0 14px 0;
}
.tools-desc-body p:last-child {
  margin-bottom: 0;
}

/* Column 2: Specifications Table Grid */
.tools-specs-body {
  display: flex;
  flex-direction: column;
}
.tools-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  gap: 12px;
}
.tools-spec-row:last-child {
  border-bottom: none;
}
.tools-spec-label {
  color: #6B7280;
  font-weight: 600;
  flex: 0 0 45%;
}
.tools-spec-value {
  color: #111827;
  font-weight: 700;
  text-align: right;
  flex: 1;
}

/* Column 3: Why Choose Section (Exact Match with Reference Image) */
.tools-why-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.tools-why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.why-item-dot {
  width: 7px;
  height: 7px;
  background: #FF4500;
  border-radius: 50%;
  margin-top: 6.5px;
  flex-shrink: 0;
}
.why-item-content {
  font-size: 13.5px;
  line-height: 1.55;
  color: #374151;
}
.why-item-title {
  font-weight: 700;
  color: #0F172A;
}
.why-item-desc {
  font-weight: 400;
  color: #4B5563;
}

/* ═══ You May Also Like Section (Exact Match with product-putty.css / product.css) ═══ */
.tools-related-section {
  margin-top: 48px;
  margin-bottom: 40px;
}
.tools-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tools-related-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}
.tools-slider-arrows {
  display: flex;
  gap: 8px;
}
.tools-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.tools-arrow-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.tools-related-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-top: 10px;
  padding-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tools-related-slider::-webkit-scrollbar {
  display: none;
}

/* Tools Related Slider Cards handled by canonical product-card.css */

/* ═══ Sticky Bottom Action Bar ═══ */
.tools-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.tools-sticky-inner {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.tools-sticky-product {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tools-sticky-product img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #F8FAFC;
  padding: 2px;
  border: 1px solid #E2E8F0;
}
.tools-sticky-product strong {
  display: block;
  font-size: 13.5px;
  color: #0F172A;
  line-height: 1.2;
}
.tools-sticky-product span {
  font-size: 12.5px;
  color: #FF3811;
  font-weight: 700;
}

.tools-whatsapp-btn {
  background: #25D366;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.tools-whatsapp-btn:hover {
  background: #20BA56;
}

/* Error State */
.tools-error-state {
  text-align: center;
  padding: 80px 20px;
}
.tools-error-state h2 {
  font-size: 24px;
  color: #0F172A;
  margin-bottom: 8px;
}
.tools-error-state p {
  color: #64748B;
}

/* Footer clearance */
.footer {
  padding-bottom: 80px !important;
}
