/* ==========================================================================================================
   THEME INFORMATION
========================================================================================================== */

/*
Theme Name: La Petite Alice | Retail
Theme URI: 
Description: Child theme of Shoptimizer
Author: La Petite Alice
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:          GNU General Public License v2 or later
License URI:      http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================================================
GENERAL STYLING
========================================================================================================== */

/* Disable hover events on images */
img {
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: #544844;
}

.site-header-cart a.cart-contents .count, 
.site-header-cart a.cart-contents .count::after {
  border: 1px solid #392e24 !important;
  color: #392e24 !important;
}

.site-header-cart a.cart-contents:hover .count, 
.site-header-cart a.cart-contents:hover .count {
  color: #fff !important;
}

.col-full.topbar-wrapper {
    max-width: 100% !important;
}

.top-bar {
    font-size: 14px;
    padding-top: 6px;
    padding-bottom: 6px;
}    

.header-widget-region {
    position: relative;
    color: #fff;
    background-color: #94705c !important;
    text-align: center;
}

.header-widget-region .widget {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Target the currency switcher select element in top bar */
.top-bar-right form select {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important; /* Set to white or any visible color */
  font-size: 14px !important;
  font-weight: 500;
  padding: 0 8px;
  appearance: none;
  cursor: pointer;
}

/* Optional: remove background arrow image if present */
.top-bar-right form select {
  background-image: none !important;
}

/* Currency notice */
.demo_store {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 1em 1.41575em;
    color: #fff;
    background-color: #544844;
    font-size: 15px;
}


/* ==========================================================================================================
PAGE SETTINGS
========================================================================================================== */

body.single-product:has(:not(.woocommerce-breadcrumb)) .site-main, body:has(:not(.woocommerce-breadcrumb)) .site-content {
    padding-top: 0;
}

@media (min-width: 993px) {
    .page-template-default .site-content {
        padding-bottom: 0;
    }
}

@media (min-width: 993px) {
    .widget-area {
        padding-bottom: 0;
    }
}

.below-content {
    clear: both;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 !important;
}

.wpb_content_element, ul.wpb_thumbnails-fluid>li {
    margin-bottom: 0px;
}
.vc_row-has-fill+.vc_row-full-width+.vc_row>.vc_column_container>.vc_column-inner {
	padding-top: 0px;
}

/* Hide titles on Pages & Posts */
.page .entry-title {
  display: none;
}
.page-template-default .archive-header,
.single-post .archive-header {
  display: none;
}
.post .entry-title {
  display: none;
}


/* ==========================================================================================================
MENUS
========================================================================================================== */

/* Disable the link for the menu item with the no-click class */
.no-click > a {
  pointer-events: none;
  cursor: default;
  color: inherit;  /* Optional: Prevents color change on hover */
}
	
/* Cart in menu */

.shoptimizer-cart a.cart-contents:hover .count {
    background-color: #94705c !important;
}  

/* Mobile Menu */
.mobile-menu-bottom {
  position: absolute;
  bottom: 0 !important;
  margin-bottom: 10%;
  width: 90%;
  z-index: 3; /* for dropdowns too */
  background-color: #fff;
}
.mobile-menu-bottom div {
  margin-top: 20px;
}
.mobile-menu-bottom .header {
  font-weight: bold;
  font-size: 15px !important;
}
.mobile-menu-bottom div ul {
  margin-left: 5% !important;
  margin-top: 5px;
}
#social-media-mobile-menu {
  text-align: center;
}
#social-media-mobile-menu a i {
  color: #544;
}
#nav-menu-item-218672 {
  z-index: 2;
  background-color: #fff;
}
#nav-menu-item-218629 {
  z-index: 4;
  background-color: #fff;
}

/* ==========================================================================================================
 MODAL VIDEO
========================================================================================================== */

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
	padding-bottom: 0px !important;
}

.video-container img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: block;
}


/* ==========================================================================================================
 WOOCOMMERCE STYLING (General)
========================================================================================================== */

/* WooCommerce Info & Messages */
.woocommerce-info, .woocommerce-noreviews, p.no-comments {
  background-color: #ece5dc;
  padding: 0.35em 1.618em;
  border: 0px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}

.woocommerce-info {
    margin-bottom: 10px !important;
}

.woocommerce-info a {
        color: #392e24;
}
.woocommerce-info a:hover {
        color: #544844;    
}

@media (max-width: 768px) {
  .woocommerce-info {
    font-size: 16px;
  }
}
.woocommerce-message {
  margin-bottom: 1em;
  background: none;
  font-size: 14px;
}
.single-product .woocommerce-message .message-inner {
  display: none;
}
.single-product .woocommerce-message {
  display: none;
}

/* Hide Categories in Widgets */
.cat-item-2265,
.cat-item-2264,
.cat-item-2259,
.cat-item-15 {
  display: none;
}

/* Misc Product Grid Tweaks */
ul.products li.product:not(.product-category)::before {
  width: unset !important;
  height: unset !important;
}

.wc-block-components-product-metadata__description {
  display: none;
}

.no-cta-buttons ul.products li.product:not(.product-category) {
    padding-bottom: 0;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    ul.products {
        display: grid
;
        grid-template-columns: repeat(2, minmax(10px, 1fr));
        column-gap: 20px;
        row-gap: 0px;
        width: 100%;
        margin-left: 0;
    }
}

/* Two products per row in mobile on .m-grid-1 
@media (max-width: 770px) {
  .m-grid-1 ul.products li.product {
    width: 50% !important;
  }
}
*/

/* ==========================================================================================================
PRODUCT PAGES
========================================================================================================== */

/* General */

.product .summary table.variations tr:last-child .value {
  padding-bottom: 0;
}

.custom-attribute {
    font-size: 14px;
}

.product p.price {
  margin: 0 0 25px 0;
}

/* Variation Swatches for WooCommerce */
.cfvsw-swatches-blur-cross-disable::before,
.cfvsw-swatches-hide-disable::before,
.cfvsw-swatches-blur-cross::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" fill="none" stroke="%23544844" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 10L40 40M40 10L10 40"/></svg>') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

.lpa-color-notice {
    font-style: italic;
    color: #6c584c;
    font-size: 14px;
    margin-top: 6px;
}

/* Hide old size guide link from CommerceKit */
.commercekit-size-guide {
  display: none !important;
}

a[data-trigger="sizeGuide"] {
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Hide reset attribute selection */
a.reset_variations {
  display: none !important;
}


/* ==============================
   SIZE AND COLOR MODAL BUTTONS
   ============================== */

th.label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

#colorGuideButton,
#sizeGuideButton {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #544844 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    gap: 6px !important;
}


/* ==============================
   COLOR GUIDE MODAL (UNIFIED)
   ============================== */

/* The main modal container */
#colorGuideModal {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important; /* off-screen initially */
    width: 90vw !important;  /* up to 90% width on desktop */
    max-width: 1000px !important;
    height: 100vh !important;
    background: #fff !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
    z-index: 9999999 !important;
    transition: right 0.4s ease-in-out !important;
    /* Decide if the modal or the iFrame handles scrolling:
       - If you use an iFrame for content, set overflow: hidden.
       - If you inject raw HTML, set overflow-y: auto. */
    overflow: hidden !important; 
    display: none !important; /* hidden by default */
}

/* Slide in the modal when it has .open */
#colorGuideModal.open {
    display: block !important;
    right: 0 !important;
}

/* On mobile, make it full width */
@media (max-width: 768px) {
    #colorGuideModal {
        width: 100vw !important;
        max-width: none !important;
    }
}

/* Sticky header at the top of the modal */
#colorGuideHeader {
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #ddd !important;
    z-index: 99999999 !important; /* ensure it stays above content */
}

/* Header title */
#colorGuideHeader h2 {
    margin: 0 !important;
    font-size: 18px !important;
}

/* Close button (X) */
#closeColorGuide {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
}

/* The main content area below the header */
#colorGuideContent {
    /* fill remaining vertical space */
    width: 100% !important;
    height: calc(100vh - 60px) !important; /* adjust 60px if your header is taller/shorter */
}

.vc_tta.vc_general {
    font-size: 16px !important;
}

/* ==============================
   SIZE GUIDE MODAL
   ============================== */

#sizeGuideButton {
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #544844 !important;
  white-space: nowrap !important;
  margin-left: auto !important;
  cursor: pointer !important;
  gap: 6px !important;
}

#sizeGuideModal {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important; /* Off-screen initially */
  width: 90vw !important;  /* up to 90% width on desktop */
  max-width: 1000px !important;
  height: 100vh !important;
  background: #fff !important;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
  z-index: 9999999 !important;
  transition: right 0.4s ease-in-out !important;
  overflow-y: auto !important;
  display: block !important; /* For animation */
}

#sizeGuideModal.open {
  right: 0 !important;
}

@media (max-width: 768px) {
  #sizeGuideModal {
    width: 100vw !important;
    max-width: none !important;
  }
}

#sizeGuideHeader {
  position: sticky !important;
  top: 0 !important;
  background: #fff !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #ddd !important;
  z-index: 99999999 !important;
}

#sizeGuideHeader h2 {
  margin: 0 !important;
  font-size: 18px !important;
}

#closeSizeGuide {
  background: none !important;
  border: none !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

.size-guide-body {
  padding: 20px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Embroidery Note Text Field */
.wcpa_wrap .wcpa_field_wrap textarea {
    height: 60px !important; /* Reduce height */
    margin-bottom: 15px !important; /* Add margin below */
}

/* Upsells */
.woocommerce div.product .upsells {
    text-align: center; /* Centers the heading */
}

.woocommerce div.product .upsells ul.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensures responsiveness */
    gap: 20px; /* Adjust spacing between items */
    padding: 0;
}

.woocommerce div.product .upsells ul.products li {
    float: none;
}

/* Embroideries Category Modal */

/* Modal Background */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    position: relative;
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 80vh;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Make the modal scrollable if content is too long */
#category-content {
    max-height: 60vh;
    overflow-y: auto;
}

/* ------------------------------------------------------------------------
 * Embroidery Modal */

/* 🚀 Ensure WooCommerce Styles Work in Modal */
#category-modal .product,
#category-modal .woocommerce {
    all: unset;
    display: block;
}

#category-modal .woocommerce-message {
    background-color: #f3f3f3;
    padding: 10px;
    border-left: 4px solid #3f3;
}

/* Ensure Product Titles Are Clickable */
.woocommerce-LoopProduct-link {
    cursor: pointer !important;
}

/* Back Button */
.back-to-category {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------------
 * Additional Product Page Tweaks */

.from-text {
  font-size: 15px;
}

.product_meta {
  display: none;
}

.related-wrapper {
  background-color: #f8f8f8 !important;
}

.summary details summary {
  color: #392E24 !important;
  font-size: 14px;
}

.cg-accordion-item {
  color: #392E24 !important;
}

.commercekit-inventory span {
  color: #392E24;
}

.commercekit-inventory {
  width: 100% !important;
  padding-top: 15px;
}

.cg-thumbs-4.cg-thumb-swiper .swiper-slide {
  width: 15% !important;
}

.size-guide-modal table {
  margin: 0px !important;
}

/* NEW Product badge */

.ckit-badge_wrapper {
  font-size: 13px !important;
}

.ckit-badge {
  opacity: 1 !important;
}

/* Sale Badge */

.product-label {
  background-color: #94705c;
  color: #fff;
}

/* On sale product label hidden in summary */
.entry-summary .product-label {
  display: none !important;
}

/* Add to Cart */

.woocommerce-variation-add-to-cart {
  padding-top: 0px !important;
}

.entry-summary .in-stock {
  display: none !important;
}

.cart .single_add_to_cart_button {
  width: 100%;
}

.single_add_to_cart_button {
  background-color: #392e24 !important;
  text-transform: uppercase;
  margin: 0px !important;
}

.single_add_to_cart_button:hover {
  background-color: #4C4239 !important;
}

.woocommerce-mini-cart__buttons .checkout,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
  background-color: #544844 !important;
  border-color: #544844 !important;
}

.woocommerce-mini-cart__buttons .checkout:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button:hover {
  background-color: #392e24 !important;
  border-color: #392e24 !important;
}

.quantity {
  display: none !important;
}

/* Short product handling info */

.info-row-icon {
  margin-right: 6px !important;
  width: 21px;
}

.info-row a {
  display: flex;
}

.handeling-info {
  margin: 30px 0 30px;
}

/* Related products */

.related-wrapper > section > h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 20px;
  padding-top: 60px !important;
}

@media (max-width: 992px) {
  .site .related-wrapper > section > h2 {
    font-size: 16px;
  }
  .wpb_wrapper h3 {
    font-size: 16px;
  }
}

.product-details-wrapper {
  order: 1;
}

.woocommerce-tabs {
  order: 3;
  margin: 0px !important;
  padding: 0 3% !important;
  background-color: #fff !important; /* was inherit comment left here */
}

.related-wrapper {
  order: 2;
}

/* Custom widget area "product details" */

.info-list {
  display: block;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #392E24;
}

.info-item i {
  width: 18px;
  min-width: 18px;
  margin-right: 10px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-item span {
  display: inline-block;
  margin: 0;
  color: inherit;
}

/* Favorites / WishList */

.commercekit-wishlist-table tbody td {
  font-size: 14px;
}

.commercekit-wishlist a em.cg-wishlist::before,
.commercekit-wishlist a {
  color: #392E24;
}

.summary .commercekit-wishlist a {
  right: 0 !important;
  position: absolute;
}

.summary .commercekit-wishlist a em.cg-wishlist::before {
  margin-top: 4px;
}

.commercekit-save-wishlist span {
  margin-left: -5px;
}


/* ==========================================================================================================
   6. CHECKOUT PAGE
========================================================================================================== */

/* Countdown */

#commercekit-timer.non-product,
#commercekit-timer-message.non-product {
    width: 100%;
    /*max-width: 800px;*/
    margin: 24px auto;
    padding: 12px 18px;
    background-color: #f1ece6;
    border: 1px solid #ece5dc;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
    font-weight: normal;
    color: #5e4d3a;
    text-align: center;
    box-shadow: 0 1px 3px rgba(160, 148, 123, 0.08);
}

/* Login button */

.woocommerce-form-login-toggle {
    max-width: 300px;
    margin: 0 auto 20px auto;
    text-align: center;
}

/* Hide shipping labels */

label[for="radio-control-0-free_shipping:26"],
label[for="radio-control-0-free_shipping:29"],
label[for="radio-control-0-free_shipping:27"],
label[for="radio-control-0-free_shipping:28"] {
  display: none !important;
}

/* Checkout reviews */

.woocommerce-checkout-review-order-table tfoot th {
    border-bottom: 1px solid #e2e2e2;
    color: #111;
    background-color: #ffffff !important;
}

.woocommerce-checkout-review-order-table tfoot td {
    border-bottom: 1px solid #e2e2e2;
    color: #111;
    background-color: #ffffff !important;
}

/* CommerceKit order bump button */
.commercekit-order-bump .ckobp-actions button {
  padding: 5px 13px;
  font-size: 13px;
  font-weight: normal;
  color: #ffff;
  border: 0px;
  background: #544844;
  border-radius: 6px;
  transition: 0.2s all;
}

.commercekit-order-bump .ckobp-price, 
.commercekit-order-bump .ckobp-price ins {
  color: #94705c;
}


/* ==========================================================================================================
   7. FOOTER
========================================================================================================== */

.site-footer div {
  max-width: 1500px !important;
}

.copyright div {
  max-width: 1500px !important;
}

.footer-menu li a {
  color: #ffffff !important;
}

.fa-brands {
  font-size: 20px !important;
  padding: 0 5px !important;
  color: #ffffff;
}

@media (max-width: 992px) {

  #custom_html-11 span {
    display: none !important;
  }

  #social-media {
    display: flex !important;
    justify-content: space-between !important;
    margin: 13% 20% 0 20% !important;
  }

  .copyright-section {
    flex-direction: column;
    margin-top: 30px;
  }

  footer.copyright p {
    margin-top: 20px;
  }

  .credic-card-icons {
    /* display: none !important; */
    display: flex;
    flex-direction: row;
    margin-bottom: 40px;
  }

  #custom_html-6 span {
    display: none !important;
  }

  .footer-nl-signup-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 40px;
  }

  .footer-nl-signup-text p {
    text-align: center;
  }

  .fake-nl-signup div input {
    width: 200px !important;
  }

  .fake-nl-signup div button {
    width: 100px !important;
  }

  .wpb_single_image.vc_align_left {
    text-align: center;
  }
}
