/* =============================================================================
   RookiDroid Shop — Frontend Styles
   All classes are prefixed with "rd-" to avoid conflicts with Neve / WooCommerce
   ============================================================================= */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --rd-primary:        #9c27b0;
  --rd-primary-dark:   #7b1fa2;
  --rd-primary-light:  #ce93d8;
  --rd-primary-subtle: #f3e5f5;
  --rd-primary-ghost:  #faf5fb;
  --rd-surface:        #ffffff;
  --rd-surface-alt:    #f8f9fa;
  --rd-text:           #1a1a2e;
  --rd-text-secondary: #555770;
  --rd-text-muted:     #8e8ea0;
  --rd-border:         #e8e8ed;
  --rd-success:        #2e7d32;
  --rd-danger:         #d32f2f;
  --rd-radius-sm:      8px;
  --rd-radius-md:      14px;
  --rd-shadow-sm:      0 1px 3px rgba(0,0,0,.06);
  --rd-shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --rd-shadow-glow:    0 4px 24px rgba(156,39,176,.18);
  --rd-transition:     .25s cubic-bezier(.4,0,.2,1);
  --rd-font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --rd-font-display:   'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Wrapper ────────────────────────────────────────────────────────────────── */
.rd-products-wrap {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--rd-font-body);
  color: var(--rd-text);
  -webkit-font-smoothing: antialiased;
}
.rd-products-wrap *,
.rd-products-wrap *::before,
.rd-products-wrap *::after {
  box-sizing: border-box;
}

/* ── Section Header ─────────────────────────────────────────────────────────── */
.rd-section__header {
  text-align: center;
  margin-bottom: 40px;
}
.rd-section__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rd-primary);
  margin-bottom: 10px;
}
.rd-section__title {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--rd-text);
  margin: 0 0 12px;
  line-height: 1.2;
}
.rd-section__subtitle {
  font-size: 1rem;
  color: var(--rd-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.rd-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.rd-tab-btn {
  font-family: var(--rd-font-body);
  font-size: .875rem;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--rd-border);
  background: transparent;
  color: var(--rd-text-secondary);
  cursor: pointer;
  transition: var(--rd-transition);
  line-height: 1;
  white-space: nowrap;
}
.rd-tab-btn:hover {
  border-color: var(--rd-primary-light);
  color: var(--rd-primary);
  background: var(--rd-primary-ghost);
}
.rd-tab-btn--active,
.rd-tab-btn[aria-selected="true"] {
  background: var(--rd-primary);
  color: #fff;
  border-color: var(--rd-primary);
  box-shadow: var(--rd-shadow-glow);
}
.rd-tab-btn--active:hover,
.rd-tab-btn[aria-selected="true"]:hover {
  background: var(--rd-primary-dark);
  border-color: var(--rd-primary-dark);
}
.rd-tab-panel[hidden] {
  display: none;
}

/* ── Product Grid ───────────────────────────────────────────────────────────── */
.rd-product-grid {
  display: grid;
  gap: 24px;
}
.rd-cols-1 { grid-template-columns: repeat(1, 1fr); }
.rd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rd-cols-4 { grid-template-columns: repeat(4, 1fr); }
.rd-cols-5 { grid-template-columns: repeat(5, 1fr); }
.rd-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Product Card ───────────────────────────────────────────────────────────── */
.rd-product-card {
  position: relative;
  background: var(--rd-surface);
  border: 1.5px solid var(--rd-border);
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  transition: transform var(--rd-transition),
              border-color var(--rd-transition),
              box-shadow var(--rd-transition);
  display: flex;
  flex-direction: column;
}
.rd-product-card:hover {
  border-color: var(--rd-primary-light);
  box-shadow: var(--rd-shadow-md);
  transform: translateY(-3px);
}

/* Badges */
.rd-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rd-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 50px;
  line-height: 1.4;
}
.rd-badge--sale { background: var(--rd-danger);   color: #fff; }
.rd-badge--free { background: var(--rd-success);  color: #fff; }
.rd-badge--new  { background: var(--rd-primary);  color: #fff; }
.rd-badge--oos  { background: var(--rd-text-muted); color: #fff; }

/* Image area */
.rd-card__image {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--rd-surface-alt);
  text-decoration: none;
}
.rd-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--rd-transition);
}
.rd-product-card:hover .rd-card__img {
  transform: scale(1.04);
}
.rd-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: .2;
  color: var(--rd-primary);
}

/* Hover overlay */
.rd-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(156, 39, 176, .06);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity var(--rd-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-product-card:hover .rd-card__overlay {
  opacity: 1;
}

/* Card body */
.rd-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rd-card__category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rd-primary);
  margin-bottom: 5px;
}
.rd-card__title {
  font-family: var(--rd-font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--rd-text);
}
.rd-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--rd-transition);
}
.rd-card__title a:hover {
  color: var(--rd-primary);
}
.rd-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.rd-card__price-current {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rd-primary);
}
/* WooCommerce outputs <span class="woocommerce-Price-amount"> inside price */
.rd-card__price-current .woocommerce-Price-amount,
.rd-card__price-current bdi {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rd-primary);
}
.rd-card__price-original {
  font-size: .85rem;
  color: var(--rd-text-muted);
  text-decoration: line-through;
}
.rd-card__price-original .woocommerce-Price-amount,
.rd-card__price-original bdi {
  color: inherit;
  font-size: inherit;
}
.rd-card__action {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--rd-font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--rd-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--rd-transition),
              color var(--rd-transition),
              border-color var(--rd-transition),
              transform var(--rd-transition),
              box-shadow var(--rd-transition);
  white-space: nowrap;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.rd-btn--primary {
  background: var(--rd-primary);
  color: #fff;
  border-color: var(--rd-primary);
  box-shadow: var(--rd-shadow-glow);
}
.rd-btn--primary:hover {
  background: var(--rd-primary-dark);
  border-color: var(--rd-primary-dark);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.rd-btn--outline {
  background: transparent;
  color: var(--rd-primary);
  border-color: var(--rd-primary);
}
.rd-btn--outline:hover {
  background: var(--rd-primary-subtle);
  color: var(--rd-primary) !important;
  border: 2px solid var(--rd-primary) !important;
  text-decoration: none;
}
.rd-btn--disabled {
  background: var(--rd-surface-alt);
  color: var(--rd-text-muted);
  border-color: var(--rd-border);
  cursor: not-allowed;
  opacity: .75;
}
.rd-btn--sm {
  font-size: .82rem;
  padding: 8px 16px;
}

/* Button loading / added state */
.rd-add-to-cart.rd-loading {
  opacity: .7;
  pointer-events: none;
  cursor: wait;
}
.rd-add-to-cart.rd-added {
  background: var(--rd-success);
  border-color: var(--rd-success);
  color: #fff;
}
.rd-add-to-cart.rd-added:hover {
  background: var(--rd-success);
  border-color: var(--rd-success);
  transform: none;
}

/* ── View All ───────────────────────────────────────────────────────────────── */
.rd-view-all {
  text-align: center;
  margin-top: 36px;
}

/* ── Toast error notice ─────────────────────────────────────────────────────── */
.rd-cart-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--rd-danger);
  color: #fff;
  font-family: var(--rd-font-body);
  font-size: .88rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--rd-radius-sm);
  box-shadow: var(--rd-shadow-md);
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.rd-cart-notice--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.rd-no-products {
  text-align: center;
  color: var(--rd-text-muted);
  font-size: .95rem;
  padding: 40px 0;
  width: 100%;
}

/* ── Shop page grid shortcode ────────────────────────────────────────────── */
.rd-shop-grid {
  width: 100%;
  display: grid;
  gap: 18px;
}
.rd-shop-grid .rd-shop-grid-placeholder {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: .25;
  color: var(--rd-primary);
}
.rd-shop-grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.rd-shop-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-shop-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-shop-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* product-card — scoped so these never conflict with Neve / WooCommerce */
.rd-shop-grid .product-card {
  background: var(--rd-surface);
  border: 1.5px solid var(--rd-border);
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  transition: transform var(--rd-transition),
              border-color var(--rd-transition),
              box-shadow var(--rd-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.rd-shop-grid .product-card:hover {
  border-color: var(--rd-primary-light);
  box-shadow: var(--rd-shadow-md);
  transform: translateY(-3px);
}
.rd-shop-grid .product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.rd-shop-grid .product-card__image {
  display: block;
  aspect-ratio: 1;
  background: var(--rd-surface-alt);
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.rd-shop-grid .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.rd-shop-grid .product-card:hover .product-card__image img {
  transform: scale(1.04);
}
.rd-shop-grid .product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rd-shop-grid .product-card__category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rd-primary);
  margin-bottom: 6px;
}
.rd-shop-grid .product-card__title {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--rd-text);
  min-height: 42px;
}
.rd-shop-grid .product-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.rd-shop-grid .product-card__price-current {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--rd-primary);
}
.rd-shop-grid .product-card__price-current .woocommerce-Price-amount,
.rd-shop-grid .product-card__price-current bdi {
  font-family: var(--rd-font-display);
  font-weight: 700;
  color: var(--rd-primary);
}
.rd-shop-grid .product-card__price-original {
  font-size: .82rem;
  color: var(--rd-text-muted);
  text-decoration: line-through;
}
.rd-shop-grid .product-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* btn — scoped to shop grid */
.rd-shop-grid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--rd-font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--rd-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--rd-transition),
              color var(--rd-transition),
              border-color var(--rd-transition),
              transform var(--rd-transition);
  white-space: nowrap;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.rd-shop-grid .btn--primary {
  background: var(--rd-primary);
  color: #fff;
  border-color: var(--rd-primary);
  box-shadow: var(--rd-shadow-glow);
}
.rd-shop-grid .btn--primary:hover {
  background: var(--rd-primary-dark);
  border-color: var(--rd-primary-dark);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.rd-shop-grid .btn--sm {
  font-size: .82rem;
  padding: 8px 16px;
}

/* badge — scoped to shop grid */
.rd-shop-grid .badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 40px;
  color: #fff;
  line-height: 1.4;
}
.rd-shop-grid .badge--sale { background: var(--rd-danger); }
.rd-shop-grid .badge--new  { background: var(--rd-primary); }
.rd-shop-grid .badge--free { background: var(--rd-success); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rd-cols-5 { grid-template-columns: repeat(4, 1fr); }
  .rd-cols-6 { grid-template-columns: repeat(4, 1fr); }
  .rd-shop-grid--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .rd-cols-4,
  .rd-cols-5,
  .rd-cols-6 { grid-template-columns: repeat(3, 1fr); }
  .rd-shop-grid--cols-3,
  .rd-shop-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .rd-cols-3,
  .rd-cols-4,
  .rd-cols-5,
  .rd-cols-6 { grid-template-columns: repeat(2, 1fr); }
  .rd-product-grid { gap: 16px; }
  .rd-shop-grid--cols-2,
  .rd-shop-grid--cols-3,
  .rd-shop-grid--cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .rd-cols-2,
  .rd-cols-3,
  .rd-cols-4,
  .rd-cols-5,
  .rd-cols-6 { grid-template-columns: repeat(1, 1fr); }
  .rd-tabs { gap: 6px; }
  .rd-tab-btn { font-size: .8rem; padding: 7px 14px; }
}

/* =============================================================================
   WooCommerce native /shop/ page overrides
   The content-product.php template override makes every li.product contain
   a div.rd-product-card — so we only need grid layout + chrome styles here.
   ============================================================================= */

/* ── Result count & ordering bar ─────────────────────────────────────────── */
.woocommerce-result-count {
  font-family: var(--rd-font-body);
  font-size: .88rem;
  color: var(--rd-text-muted);
}
.woocommerce-ordering select {
  font-family: var(--rd-font-body);
  font-size: .88rem;
  color: var(--rd-text);
  border: 1.5px solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  padding: 9px 32px 9px 14px;
  background: var(--rd-surface);
  cursor: pointer;
  transition: border-color var(--rd-transition), box-shadow var(--rd-transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8ea0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--rd-primary);
  box-shadow: 0 0 0 3px var(--rd-primary-subtle);
}

/* ── Product grid ─────────────────────────────────────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  clear: both;
}

/* Neve adds a clearfix ::before/::after with display:table — in CSS Grid these
   become real grid items and steal the first/last cell. Remove them. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

/* ── li.product — reset Neve / WooCommerce defaults, let rd-product-card style the card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

/* Make any leftover Neve inner wrappers transparent */
.woocommerce ul.products li.product .nv-card-content-wrapper {
  display: contents;
}

/* ── rd-product-card when inside the WooCommerce loop ────────────────────── */
/* Ensure the card fills the grid cell */
.woocommerce ul.products li.product .rd-product-card {
  height: 100%;
}

/* ── Sale / onsale badge (WooCommerce default, shown outside the card) ──── */
.woocommerce span.onsale {
  background: var(--rd-danger) !important;
  color: #fff !important;
  font-family: var(--rd-font-body) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
  line-height: 1.4 !important;
  min-height: unset !important;
  min-width: unset !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
}

/* ── Category widget (sidebar) ────────────────────────────────────────────── */
.widget_product_categories .widget-title,
.widget_product_categories .widgettitle {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rd-text);
  margin-bottom: 12px;
}
.widget_product_categories .product-categories {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.widget_product_categories .product-categories li {
  padding: 4px 0;
}
.widget_product_categories .product-categories li a {
  font-family: var(--rd-font-body) !important;
  font-size: .9rem !important;
  color: var(--rd-text-secondary) !important;
  transition: color var(--rd-transition) !important;
  text-decoration: none !important;
}
.widget_product_categories .product-categories li a:hover,
.widget_product_categories .product-categories li.current-cat > a {
  color: var(--rd-primary) !important;
}
.widget_product_categories .product-categories .count {
  font-size: .78rem !important;
  color: var(--rd-text-muted) !important;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 40px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: var(--rd-radius-sm) !important;
  border: 1.5px solid var(--rd-border) !important;
  font-family: var(--rd-font-body) !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  color: var(--rd-text-secondary) !important;
  background: var(--rd-surface) !important;
  transition: var(--rd-transition) !important;
  text-decoration: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--rd-primary) !important;
  color: var(--rd-primary) !important;
  background: var(--rd-primary-subtle) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--rd-primary) !important;
  border-color: var(--rd-primary) !important;
  color: #fff !important;
  box-shadow: var(--rd-shadow-glow) !important;
}

/* ── Shop page responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 540px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 16px !important;
  }
}

/* ── Shop page hero banner ───────────────────────────────────────────────── */

/* Hide Neve's own breadcrumbs on the shop page (banner provides its own) */
body.post-type-archive-product .nv-breadcrumbs,
body.post-type-archive-product .neve-breadcrumbs,
body.post-type-archive-product nav.woocommerce-breadcrumb {
  display: none !important;
}

/* Full-width banner, sits right under the site header */
.rd-shop-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(120deg, #f9f9fb 50%, #f3e5f5 100%);
  padding: 52px 0 48px;
}

/* Constrain content to match site column width */
.rd-shop-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Subtle diagonal-line pattern on the right side */
.rd-shop-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 32 L32 0 M32 64 L64 32 M-16 48 L48 -16 M16 80 L80 16' stroke='%239c27b0' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.10;
  pointer-events: none;
}

.rd-shop-banner__breadcrumb {
  display: flex;
  align-items: center;
  font-family: var(--rd-font-body);
  font-size: .85rem;
  color: var(--rd-text-muted);
  margin-bottom: 18px;
}

.rd-shop-banner__breadcrumb a {
  color: var(--rd-text-muted);
  text-decoration: none;
  transition: color var(--rd-transition);
}

.rd-shop-banner__breadcrumb a:hover {
  color: var(--rd-primary);
}

.rd-shop-banner__breadcrumb span {
  margin: 0 5px;
}

.rd-shop-banner__breadcrumb span:last-child {
  margin: 0;
}

.rd-shop-banner__title {
  font-family: var(--rd-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--rd-text);
  margin: 0 0 14px;
  line-height: 1.15;
}

.rd-shop-banner__highlight {
  color: var(--rd-primary) !important;
}

.rd-shop-banner__subtitle {
  font-family: var(--rd-font-body);
  font-size: 1rem;
  color: var(--rd-text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 680px) {
  .rd-shop-banner {
    padding: 36px 0 32px;
  }
  .rd-shop-banner__inner {
    padding: 0 16px;
  }
  .rd-shop-banner::after {
    width: 60%;
    opacity: 0.07;
  }
}
