/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://sexdollg.com/
 Description:  Use this child theme to extend Bricks.
 Author:       bricks
 Author URI:   https://www.sexdollg.com/
 Template:     bricks
 Version:      1.2.4
 Last Updated: 2025-11-21
 Notes:        Fixed Mega Menu background width; Forced Sidebar Badge colors.
 Text Domain:  bricks
/* Final Fix: Lazy rendering for Container structures */

#brx-content > *:nth-child(n+5) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

footer, #brx-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}
/* =========================================================
   001 Brand Grid (Main Grid Layout - Footer/Home)
   ========================================================= */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 12px;
  padding: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 4px 6px;
}
.brand-link:hover { opacity: 0.85; transform: scale(1.05); }

.brand-name { white-space: nowrap; color: #fff; }

/* Badge System - Global */
.badge:not(.onsale) {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  color: #fff;
}
/* Added !important to force colors everywhere including sidebar */
.badge-top { background: #ff0099 !important; }
.badge-new { background: #00cc00 !important; }
.badge-affordable { background: #22bb22 !important; }
.badge-torso { background: #ff6600 !important; }
.badge-default { background: #666 !important; }
.badge-real-lady { background: #00c300 !important; color: #fff !important; }
.badge:empty { display: none; }


/* =========================================================
   004 Slider Arrows
   ========================================================= */
.splide__arrow,
.swiper-button-prev,
.swiper-button-next {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  background: rgba(246, 62, 116, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.splide__arrow svg { width: 14px; height: 14px; fill: #fff; }
.splide__arrow:hover,
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #f63e74;
  transform: scale(1.1);
}
.splide__arrow--prev { left: 8px; }
.splide__arrow--next { right: 8px; }

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px !important;
  font-weight: bold;
  color: #fff !important;
}

@media (max-width: 480px) {
  .splide__arrow,
  .swiper-button-prev,
  .swiper-button-next {
    width: 28px !important;
    height: 28px !important;
  }
  .splide__arrow svg,
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 12px !important;
  }
}

.brxe-slider-nested { padding-bottom: 30px; padding-top: 2px; position: relative; }
.splide__pagination__page.is-active,
.swiper-pagination-bullet-active {
  background: #f63e74;
  transform: scale(1.2);
}


/* =========================================================
   Modern Price Module
   ========================================================= */
.modern-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "tnum"; 
}

.mp-current {
  display: inline-flex;
  align-items: baseline;
  color: #f63e74;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.mp-current .mp-symbol { 
  font-size: 18px; 
  margin-right: 1px; 
  font-weight: 600; 
}

.mp-current .mp-int { 
  font-size: 28px; 
  font-weight: 700; 
}

.mp-current .mp-dec { 
  font-size: 18px; 
  font-weight: 600; 
}

.mp-old {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 2px;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fb7701;
  border: 1px solid #fb7701;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 4px;
  margin-left: 2px;
}


.modern-price-wrap.mp-size-small {
  gap: 4px;
  justify-content: center;
  text-align: center;
}

.modern-price-wrap.mp-size-small .mp-current .mp-symbol { font-size: 14px; }
.modern-price-wrap.mp-size-small .mp-current .mp-int    { font-size: 20px; }
.modern-price-wrap.mp-size-small .mp-current .mp-dec    { font-size: 14px; }
.modern-price-wrap.mp-size-small .mp-old                { font-size: 12px; color: #aaa; }
.modern-price-wrap.mp-size-small .mp-badge              { font-size: 11px; padding: 0 3px; border-width: 0.5px; }

@media (max-width: 480px) {
  .modern-price-wrap.mp-size-small .mp-current .mp-int { font-size: 18px; }
}



/* =========================================================
   Divider
   ========================================================= */
.brxe-divider .line {
  height: 2px;
  border: none;
  background: linear-gradient(to right,
    #e5e5e5 0%, #e5e5e5 35%, #f63e74 35%, #f63e74 65%, #e5e5e5 65%, #e5e5e5 100%);
}


/* =========================================================
   Product Page Utility Classes
   ========================================================= */
.p-3.text-c { outline: 0.5px dashed red !important; text-align: center; font-weight: 200; padding: .5rem !important; }
.mb-0, .my-0 { margin-bottom: 0 !important; }
.font-color6 { color: #666; }
.bold { font-weight: 600; }
.font-r075 { font-size: .75rem; }
ul.list-reset { list-style: none; padding: 0; margin: 0 0 .2em; }
ul.list.dashed > li { padding: 10px 0; border-bottom: 1px dashed #ddd; }
.flex { display: flex; }
.items-center { align-items: center; }
.ml-3, .mx-3 { margin-left: 1rem !important; }


/* =========================================================
   Product Gallery Title
   ========================================================= */
.single-product .ptit {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .5px;
  margin: 30px 0 18px;
  color: #222;
  position: relative;
}
.single-product .ptit::after {
  content: "";
  display: block;
  width: 160px;
  height: 2px;
  background: #e94e77;
  margin: 6px auto 0;
  opacity: .85;
  border-radius: 2px;
}
.single-product .div1 { font-size: 0; line-height: 0; margin-bottom: 20px; }


/* =========================================================
   Bricks Image Gallery v13
   ========================================================= */
.single-product ul.brxe-image-gallery.bricks-layout-wrapper {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product ul.brxe-image-gallery.bricks-layout-wrapper li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 4px;
}

.single-product ul.brxe-image-gallery.bricks-layout-wrapper img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 2 / 3;
  object-fit: contain !important;
  background: #fafafa;
  transition: opacity .3s ease, transform .3s ease;
  opacity: 0;
  animation: fadeIn .6s ease forwards;
}
.single-product ul.brxe-image-gallery.bricks-layout-wrapper img:hover {
  opacity: .9;
  transform: scale(1.05);
}

@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 640px) {
  .single-product ul.brxe-image-gallery.bricks-layout-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
  }
}


/* =========================================================
   Responsive Smart Table v3.3
   ========================================================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: clamp(14px, 1vw + 0.45rem, 16px);
  margin: 0 auto;
  table-layout: fixed;
  overflow: hidden;
}

.brxe-container th,
.brxe-container td,
.entry-content th,
.entry-content td,
.woocommerce-product-details__short-description th,
.woocommerce-product-details__short-description td {
  border: 1px solid #ddd;
  padding: clamp(.45em, .6vw, .8em) clamp(.7em, 1.2vw, 1.5em);
  text-align: left;
  vertical-align: middle;
  line-height: 1.45;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table thead th {
  background: linear-gradient(to bottom, #fafafa, #f2f2f2);
  font-weight: 600;
  color: #111;
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .brxe-container table,
  .entry-content table,
  .woocommerce-product-details__short-description table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: auto;
    font-size: clamp(11px, 2vw, 13px);
    width: 100%;
    border-left: none;
    border-right: none;
  }
}


/* =========================================================
   WooCommerce Tabs Fix
   ========================================================= */
.woocommerce-Tabs-panel.entry-content,
.woocommerce-Tabs-panel {
  padding: 10px 12px !important;
  margin-top: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .woocommerce-Tabs-panel.entry-content,
  .woocommerce-Tabs-panel {
    padding: 6px !important;
  }
}


/* =========================================================
   Add to Cart + Buy Now
   ========================================================= */
body.woocommerce-page form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

form.cart .quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

form.cart .quantity input.qty {
  width: 60px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.single_add_to_cart_button,
#wd-buy-now-btn-id {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: .25s ease;
  cursor: pointer;
  margin: 0 !important;
}

.single_add_to_cart_button.button.alt { background: #000 !important; color: #fff !important; }
.single_add_to_cart_button.button.alt:hover { background: #222 !important; }

#wd-buy-now-btn-id { background: #F54F8F !important; color: #fff !important; }
#wd-buy-now-btn-id:hover { background: #e0447f !important; }

@media (max-width: 768px) {
  body.woocommerce-page form.cart { flex-direction: column; align-items: stretch; gap: 20px; }
  form.cart .quantity { margin-right: 0; }
  .single_add_to_cart_button,
  #wd-buy-now-btn-id { width: 100%; padding: 14px 0; }
}

@media (max-width: 480px) {
  body.woocommerce-page form.cart { gap: 8px; padding: 0 4px; }
}

/* Stripe quick pay hide */
form.cart .wc-stripe-payment-request-button,
form.cart .stripe-payment-request-button,
form.cart .wc_stripe_payment_request_wrapper,
form.cart button.stripe-button-el,
form.cart .stripe-gpay-button,
form.cart .woocommerce-gpay-button,
form.cart .apple-pay-button,
form.cart #wc-stripe-payment-request-button-separator,
form.cart .wc-stripe-product-checkout-container,
form.cart .wc_stripe_product_payment_methods {
  display: none !important;
}


/* =========================================================
   EPO Totals Alignment
   ========================================================= */
#tm-epo-totals {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  margin: 10px 0;
  width: 100%;
}
#tm-epo-totals dl.tm-extra-product-options-totals { display: inline-block; margin: 0; }
#tm-epo-totals dt,
#tm-epo-totals dd { display: inline-block; margin-left: 8px; font-size: 15px; color: #222; }
#tm-epo-totals .tm-final-totals { font-weight: 600; color: #f63e74; }


/* =========================================================
   TM EPO Pink Card Style
   ========================================================= */
body .tm-extra-product-options * { border-color: transparent !important; }

body .tm-extra-product-options ul.tmcp-ul-wrap,
body .tm-extra-product-options ul.tmcp-ul-wrap li {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body .tm-extra-product-options .tmcp-field-wrap.tc-mode-text .tm-epo-field-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #aaa !important;
  border-radius: 12px;
  background: transparent !important;
  color: #333 !important;
  padding: 12px 28px;
  cursor: pointer;
  transition: all .25s ease;
}
body .tm-extra-product-options .tmcp-field-wrap.tc-mode-text .tm-epo-field-label:hover {
  border-color: #F54F8F !important;
  color: #F54F8F !important;
}
body .tm-extra-product-options .tmcp-field-wrap.tc-mode-text.tc-active .tm-epo-field-label {
  border-color: #F54F8F !important;
  color: #F54F8F !important;
  background: transparent !important;
}

body .tm-extra-product-options .tmcp-field-wrap img.tc-image.radio-image {
  border-radius: 50%;
  border: 2px solid #aaa !important;
  transition: transform .2s ease, border .2s ease;
  object-fit: cover;
}
body .tm-extra-product-options img.tc-image.radio-image:hover { transform: scale(1.08); border-color: #F54F8F !important; }
body .tm-extra-product-options li.tc-active img.tc-image.radio-image { border-color: #F54F8F !important; transform: scale(1.12) !important; }

body .tm-extra-product-options li.is-separator { display: none !important; }

.tm-extra-product-options .tc-label-text {
  font-size: clamp(11px, 2.5vw, 14px);
  line-height: 1.4;
  font-weight: 500;
}


/* =========================================================
   Brand Tag (.brandg)
   ========================================================= */
.brandg, .brandg * { all: unset; }

.brandg a {
  display: inline-block !important;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #F54F8F !important;
  border: 1px solid #F54F8F !important;
  border-radius: 6px;
  text-decoration: none !important;
  line-height: 1.2;
  transition: .2s ease;
}
.brandg a:hover { color: #E0447F !important; border-color: #E0447F !important; transform: translateY(-1px); }


/* =========================================================
   015 Product Card Title Clamp
   ========================================================= */
.brxe-product-title,
.brxe-product-title a,
.brxe-heading a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4;
}


/* =========================================================
   016 Brand List Vertical (SIDEBAR Style)
   ========================================================= */
.brand-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
}

.brand-list-vertical .brand-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 0;
    text-decoration: none !important;
    line-height: 1.3;
    margin: 0 !important;
    width: 100%;
    color: #000000 !important; /* Brand Name Black */
    font-size: 14px;
    font-weight: 500;
}

.brand-list-vertical .brand-link .brand-name {
    color: #000000 !important;
    font-size: 14px;
    font-weight: 500;
}

.brand-list-vertical .brand-link::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    margin-right: 10px; 
    flex-shrink: 0;
}

/* Restored: Removed 'color: #333' override so colorful badges show */
.brand-list-vertical .brand-link .badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 6px;
    border-radius: 6px;
    line-height: 1;
}

.brand-list-vertical .brand-link:hover .brand-name { color: #F54F8F !important; }
.brand-list-vertical .brand-link:hover::before { background: #F54F8F; }


/* =========================================================
   Mega Menu (Fix: Full Width Background + Centered Content)
   ========================================================= */
.menu-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 24px 20px; 
    
    /* 1. Full width container (background will stretch) */
    width: 100% !important;
    max-width: none !important; /* Unlock width limit */
    
    /* 2. Padding trick to center content at 1240px */
    /* Formula: (100% - 1240px) / 2.  Min padding 20px. */
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-left: max(20px, calc((100% - 1240px) / 2)) !important;
    padding-right: max(20px, calc((100% - 1240px) / 2)) !important;

    margin: 0 !important;
    justify-content: start !important;
    justify-items: start !important;
}

.menu-brand-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    width: 100%;
    padding: 2px 0; 
}

.menu-brand-item, 
.menu-brand-item .brand-name {
    color: #ffffff !important; 
    font-size: 16px; 
    font-weight: 500;
    white-space: nowrap;
    text-transform: none; 
    line-height: 1.3;
}

.menu-brand-item .badge {
    display: inline-flex;
    align-items: center;
    height: 20px; 
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 8px; 
    line-height: 1;
    color: #fff !important;
    transform: translateY(-1px);
}

.menu-brand-item:hover .brand-name { color: #F54F8F !important; }