/*
Theme Name: astra Child
Description: This is a child theme for astra Theme
Author: UX Themes
Template: astra
Version: 4.14
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Hide price and add-to-cart in all product collection blocks */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button { display: none !important; }

.wp-block-image.dr-hero-mobile { display: none !important; }

@media (max-width: 767px) {
  .wp-block-image.dr-hero-desktop { display: none !important; }
  .wp-block-image.dr-hero-mobile { display: block !important; }
  .wc-block-product-template__responsive { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Category guide links */
.fp-category-guides { display: flex; gap: 1rem; margin: 0.75rem 0; }
.fp-guide-link { cursor: pointer; }
@media (max-width: 768px) {
  .fp-category-guides { flex-direction: column; }
}

/* Home page spacing */
.entry-content > .wp-block-columns { padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-block-woocommerce-product-collection > h2.wp-block-heading { margin-top: 0 !important; }
.dr-themes { margin: 48px 0 56px !important; }


/* ==========================================================
   Delulu Republic — homepage section headings
   Paste at the end of: wp-content/themes/astra-child/style.css
   (or Appearance → Customize → Additional CSS)
   ========================================================== */

/* Red label above each headline (Space Mono) */
.entry-content .dr-eyebrow,
.entry-content .dr-trust .kick {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DD183B;
  margin: 0 0 8px;
}

/* Section headline (Anton) */
.entry-content h2.dr-sec-title,
.entry-content .dr-themes h2,
.entry-content .dr-trust h2,
.entry-content .dr-voices h2 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #0F172A;
  margin: 0 0 24px;
}

/* ==========================================================
   Testimonials section
   REPLACE everything from the "Testimonials section" comment
   down to the end of its @media (max-width: 767px) block
   in astra-child/style.css with this.
   ========================================================== */
.dr-voices { margin: 48px 0; }

/* Header row: eyebrow + title on the left, arrows on the right */
.dr-voices-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 0 0 24px;
}
.entry-content .dr-voices .dr-voices-head h2 { margin: 0; }

.dr-voices-nav { display: flex; gap: 10px; flex-shrink: 0; }
.dr-voices-nav[hidden] { display: none; }
.dr-voices-nav button {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0F172A;
  border: 2px solid #0F172A; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
.dr-voices-nav button:hover:not(:disabled),
.dr-voices-nav button:focus-visible { background: #0F172A; color: #fff; }
.dr-voices-nav button:focus-visible { outline: 3px solid #DD183B; outline-offset: 3px; }
.dr-voices-nav button:disabled { opacity: .3; cursor: default; }

/* Cards: one horizontal row. 3 visible on desktop; with 3 or fewer
   cards it looks exactly like the old grid and the arrows stay hidden. */
.dr-voices .cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;               /* arrows replace the scrollbar on desktop */
}
.dr-voices .cards::-webkit-scrollbar { display: none; }

.dr-voices .card {
  flex: 0 0 calc((100% - 64px) / 3);  /* 3 cards, 2 gaps of 32px */
  scroll-snap-align: start;
  margin: 0; padding: 28px;
  background: #FFDCCF; border: 2px solid #0F172A; border-radius: 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.entry-content .dr-voices blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.entry-content .dr-voices blockquote p {
  margin: 0; font-style: normal; font-size: 18px; line-height: 1.5; color: #0F172A;
}
.dr-voices .who { margin-top: auto; }
.dr-voices .name {
  display: block; font-family: Anton, Impact, sans-serif;
  font-size: 20px; letter-spacing: .5px; text-transform: uppercase; color: #0F172A;
}
.entry-content .dr-voices .tee {
  display: inline-block; margin-top: 4px;
  font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #DD183B; text-decoration: none;
}
.entry-content .dr-voices .tee:hover, .entry-content .dr-voices .tee:focus-visible { text-decoration: underline; }

/* Tablet: 2 visible */
@media (max-width: 921px) {
  .dr-voices .cards { gap: 20px; }
  .dr-voices .card { flex-basis: calc((100% - 20px) / 2); }
}

/* Phones: unchanged swipe row, no arrows */
@media (max-width: 767px) {
  .dr-voices { margin: 32px 0 40px; }
  .dr-voices-head { display: block; }
  .dr-voices-nav { display: none !important; }
  .dr-voices .cards {
    gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
  }
  .dr-voices .cards::-webkit-scrollbar { display: initial; }
  .dr-voices .card { flex: 0 0 82%; padding: 20px; border-radius: 14px; }
  .entry-content .dr-voices blockquote p { font-size: 16px; }
}