/*
Theme Name: Rebel & Belle
Theme URI: https://www.rebelenbelle.nl/
Author: Rebel & Belle
Description: Visual rebuild of rebelenbelle.nl (WebTwister shop look) on WordPress + WooCommerce.
Version: 0.6.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: rebelenbelle
*/

:root {
  --rb-pink: #deb5bb;
  --rb-pink-hover: #c6808a;
  --rb-text: #646363;
  --rb-muted: #afafaf;
  --rb-grey: #efefef;
  --rb-white: #ffffff;
  --rb-black: #000000;
  --rb-font: "Roboto", sans-serif;
  --rb-script: "Yellowtail", cursive;
  --rb-gutter: 15px;
  --rb-max: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rb-text);
  font-family: var(--rb-font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--rb-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rb-pink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
.as-h1 {
  color: var(--rb-pink);
  font-family: var(--rb-font);
  font-weight: 300;
  margin: 0 0 1rem;
}

h2,
.as-h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
  color: var(--rb-pink);
  font-family: var(--rb-font);
  font-weight: 300;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1.1rem;
  line-height: 1.8;
}

.site-shell {
  width: calc(100% - (2 * var(--rb-gutter)));
  max-width: var(--rb-max);
  margin: 0 auto;
}

/* Live header is col-12 until lg (~989px). */
@media (max-width: 988px) {
  header .site-shell {
    max-width: none;
  }
}

/* Buttons — match live #deb5bb CTAs */
.btn {
  display: inline-block;
  background: var(--rb-pink);
  color: var(--rb-white) !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
  padding: 7px 35px 7px 20px;
  border: 0;
  border-radius: 0;
  position: relative;
  transition: all 300ms ease-in-out;
  text-decoration: none !important;
}

.btn::after {
  content: "»";
  position: absolute;
  top: 4px;
  right: 18px;
  font-size: 110%;
}

.btn:hover {
  background: var(--rb-pink-hover);
  transform: scale(1.03);
}

.btn-white {
  background: var(--rb-white);
  color: var(--rb-pink) !important;
}

.btn-white:hover {
  background: #f7f7f7;
  color: var(--rb-pink) !important;
}

.brand-image {
  width: min(100%, 300px);
  height: auto;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  height: min(70vh, 700px);
  min-height: 360px;
  overflow: hidden;
  background: #222;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.hero-slide-inner h2 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.25rem, 4vw, 2.85rem);
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 #000;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-slide-inner p {
  color: #fff;
  max-width: 40rem;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--rb-pink);
}

@media (min-width: 989px) {
  .hero-slide-inner {
    bottom: 8%;
    left: 8%;
    width: 40%;
    background: none;
    padding: 30px;
  }
}

/* Sections */
.onepage-section {
  padding: 50px 0;
}

.onepage-section.grey {
  background: var(--rb-grey);
}

.onepage-top {
  text-align: center;
  padding-bottom: 20px;
  color: var(--rb-text);
}

.onepage-top .as-h1 {
  font-size: 38px;
  line-height: 40px;
  font-weight: 300;
  padding: 10px 0 20px;
  margin: 0;
}

.onepage-top p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rb-text);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-pink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: 350ms;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card-body {
  padding: 1.4rem 1.4rem 0;
  flex: 1;
}

.service-card-body h3 {
  color: var(--rb-black);
  font-size: 1.4rem;
  font-weight: 300;
}

.service-card-body h3 a {
  color: var(--rb-black);
  text-decoration: none;
}

.service-card-body p {
  color: var(--rb-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.service-card-footer {
  padding: 1rem 1.4rem 1.4rem;
  text-align: center;
}

/* Rebel / Belle parallax split */
.parallax-split {
  padding: 5rem 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("assets/images/parallax.jpg") center / cover fixed;
  color: #fff;
}

.parallax-split .as-h1 {
  color: #fff;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.split-panel {
  padding: 2rem 1.5rem;
}

.split-panel.white {
  background: rgba(255, 255, 255, 0.92);
  color: var(--rb-text);
}

.split-panel.white .as-h1 {
  color: var(--rb-black);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 300;
}

.split-panel.pink {
  background: rgba(222, 181, 187, 0.92);
  color: #fff;
}

.split-panel.pink .as-h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 300;
}

.split-panel.pink a {
  color: #fff;
}

.split-panel.pink a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-panel {
    padding: 2.5rem;
  }
}

/* Why choose */
.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  text-align: center;
}

.usp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--rb-pink);
  color: var(--rb-white);
  font-size: 1.7rem;
}

.why-item h3 {
  font-family: var(--rb-font);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--rb-pink);
}

.why-item p {
  color: var(--rb-text);
}

/* Products teaser */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--rb-white);
  border: 1px solid #eee;
  padding: 1rem;
  text-align: center;
}

.product-card .price {
  color: var(--rb-pink);
  font-weight: 700;
}

.product-card h3 {
  color: var(--rb-black);
  font-size: 1rem;
  min-height: 2.8em;
}

/* Homepage card / product sliders */
.rb-slider {
  position: relative;
}

.rb-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.rb-slider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 400ms ease;
  will-change: transform;
}

.rb-slider-item {
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 0 10px;
  min-width: 0;
}

.rb-slider-item .service-card,
.rb-slider-item .rb-product-card {
  height: 100%;
}

.rb-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.rb-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.rb-slider-dots button.is-active {
  background: var(--rb-pink);
}

.rb-product-card {
  background: var(--rb-white);
  text-align: center;
  height: 100%;
}

.rb-product-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rb-product-card a:hover {
  text-decoration: none;
}

.rb-product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--rb-white);
  overflow: hidden;
}

.rb-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rb-product-card h3 {
  color: var(--rb-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0.85rem 0 0.4rem;
  padding: 0 0.5rem;
}

.rb-product-card .price {
  color: var(--rb-pink);
  font-weight: 700;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

/* News */
.news-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--rb-white);
  padding: 1.25rem;
  border-top: 3px solid var(--rb-pink);
}

.news-card h3 {
  color: var(--rb-black);
  font-size: 1.15rem;
}

.entry-image {
  margin: 0 0 1.5rem;
}

.entry-image img {
  width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  background: #2f2f2f;
  color: #ddd;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rb-pink);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
}

.site-footer h4 {
  color: var(--rb-pink);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #999;
  font-size: 0.85rem;
}

/* Shop category grid (P2) */
.shop-archive .page-lead,
.page-hero .page-lead {
  max-width: 40rem;
  color: var(--rb-text);
}

.page-hero .breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--rb-muted);
}

.page-hero .breadcrumb a {
  color: var(--rb-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--rb-white);
  border: 1px solid #eee;
  padding: 1rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  border-color: var(--rb-pink);
  text-decoration: none;
  transform: translateY(-2px);
}

.category-card h2 {
  color: var(--rb-black);
  font-size: 1.05rem;
  margin: 0;
}

.category-card p {
  margin: 0;
  color: var(--rb-muted);
  font-size: 0.9rem;
  flex: 1;
}

.category-card .btn {
  align-self: center;
  margin-top: 0.25rem;
}

.category-card-image,
.category-card-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--rb-grey);
}

.category-card-placeholder {
  display: block;
  background:
    linear-gradient(135deg, #f4e6e8 0%, var(--rb-grey) 55%, #e8d0d4 100%);
}

/* WooCommerce mild overrides */
.woocommerce .button,
.woocommerce button.button {
  background: var(--rb-pink) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

.woocommerce ul.products li.product .price {
  color: var(--rb-pink);
}

.product-single .product,
.product-single .rb-product {
  display: block;
}

.page-hero--product {
  padding-bottom: 0.5rem;
}

.page-hero--product .breadcrumb {
  margin-bottom: 0;
}

.rb-product-topbar {
  margin: 0 0 1.25rem;
}

.rb-product-topbar .product_title {
  color: var(--rb-pink);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  line-height: 1.25;
}

.rb-product-main {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .rb-product-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

.rb-product-media .woocommerce-product-gallery {
  margin: 0;
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
}

.rb-product-media .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.rb-product-media .woocommerce-product-gallery__image {
  margin: 0;
  background: #f7f7f7;
  border: 1px solid #eee;
}

.rb-product-media .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-height: min(85vh, 1000px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.rb-product-media .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.rb-product-media .flex-control-thumbs li {
  margin: 0;
  float: none !important;
  width: auto !important;
}

.rb-product-media .flex-control-thumbs img {
  border: 1px solid #eee;
  opacity: 0.75;
  cursor: pointer;
}

.rb-product-media .flex-control-thumbs .flex-active,
.rb-product-media .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--rb-pink);
}

.rb-product-buy {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 1.25rem 1.35rem;
  border: 1px solid #eee;
  background: #fafafa;
}

.rb-product-buy .price {
  color: var(--rb-pink);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.rb-product-buy .woocommerce-product-details__short-description {
  margin-bottom: 1rem;
  color: var(--rb-text);
}

.rb-product-buy .variations {
  width: 100%;
  margin-bottom: 1rem;
}

.rb-product-buy .variations th,
.rb-product-buy .variations td {
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
}

.rb-product-buy .variations th {
  padding-bottom: 0.35rem;
  font-weight: 500;
  color: var(--rb-text);
}

.rb-product-buy .variations select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  margin-bottom: 0.75rem;
}

.rb-product-buy .quantity {
  margin: 0 0.75rem 0.75rem 0;
}

.rb-product-buy .quantity .qty {
  border: 1px solid #ddd;
  padding: 0.55rem 0.4rem;
  width: 4.5rem;
}

.rb-product-buy .single_add_to_cart_button {
  background: var(--rb-pink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.8rem 1.4rem !important;
  font-weight: 500;
}

.rb-product-buy .single_add_to_cart_button:hover {
  background: var(--rb-pink-hover) !important;
}

.rb-product-buy .product_meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.92rem;
  color: var(--rb-muted);
}

.rb-product-buy .product_meta a {
  color: var(--rb-text);
}

.rb-product-details {
  margin-top: 0.5rem;
}

.rb-product-details .woocommerce-tabs {
  margin: 0 0 2rem;
}

.rb-product-details .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #eee;
}

.rb-product-details .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rb-product-details .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--rb-muted);
  border-bottom: 2px solid transparent;
}

.rb-product-details .woocommerce-tabs ul.tabs li.active a {
  color: var(--rb-pink);
  border-bottom-color: var(--rb-pink);
}

.rb-product-details .woocommerce-Tabs-panel {
  padding: 0.5rem 0 0;
}

.rb-product-details .related > h2,
.rb-product-details .upsells > h2 {
  color: var(--rb-pink);
  font-weight: 300;
  font-size: 1.6rem;
}

/* Contact form */
.rb-contact-form {
  max-width: 36rem;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.rb-contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--rb-text);
  font-size: 0.95rem;
}

.rb-contact-form input,
.rb-contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--rb-text);
  background: var(--rb-white);
}

.rb-contact-form input:focus,
.rb-contact-form textarea:focus {
  outline: 2px solid var(--rb-pink);
  outline-offset: 1px;
}

.rb-contact-form .rb-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.rb-form-notice {
  max-width: 36rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.rb-form-notice--ok {
  background: #eef7ee;
  border-left: 3px solid #3d8b40;
}

.rb-form-notice--error {
  background: #fbf0f0;
  border-left: 3px solid #b33;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-pink);
  padding: 1.5rem;
}

.review-card .stars {
  color: var(--rb-pink);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--rb-text);
  line-height: 1.7;
}

.review-card cite {
  font-style: normal;
  font-weight: 500;
  color: var(--rb-black);
  font-size: 0.9rem;
}

/* Inner pages */
.page-hero {
  background: var(--rb-grey);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rb-pink) 35%, transparent);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.page-content .entry-content {
  max-width: 46rem;
}

.page-content .entry-content h2,
.page-content .entry-content h3 {
  margin-top: 1.75rem;
}

.page-content .entry-content ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.page-content .entry-content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.page-content .wp-block-image {
  margin: 1.5rem 0;
}

.page-content .wp-block-image img {
  width: 100%;
  height: auto;
}
