/*
 Theme Name:   Booklovers Child Theme
 Theme URI:    http://booklovers.ancorathemes.com
 Description:  Booklovers Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     booklovers
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  booklovers
*/

/* =Theme customization starts here
------------------------------------------------------------ */

/* --------------------------------------------------------- */
/* Speaker & Webinar Meta Styling */
/* --------------------------------------------------------- */

/* Speaker name below title */
.single-product .pl-speaker-inline {
  margin: 10px 0 15px;
  font-size: 15px;
}
.single-product .pl-speaker-inline .pl-speaker-name {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}
.single-product .pl-speaker-inline .pl-speaker-name:hover {
  text-decoration: underline;
}

/* Course meta box */
.single-product .pl-course-meta {
  margin-top: 20px;
  padding: 14px 18px;
  background: #fbfcfe;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}
.single-product .pl-course-meta div {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.4;
}
.single-product .pl-course-meta strong {
  display: inline-block;
  min-width: 90px;
  color: #222;
}

/* Speaker Bio tab */
.woocommerce div.product .woocommerce-Tabs-panel .pl-speaker-bio {
  padding: 24px;
  background: #fff;
}
.pl-speaker-bio-thumb.alignleft {
  width: 140px;
  margin-right: 20px;
  border-radius: 10px;
}
.pl-speaker-bio-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  color: #111;
}

/* ===============================================
   CLEANER VARIATIONS TABLE + SIDE PLACEMENT FIX
================================================= */

/* Hide datatable UI (search, pagination, entries) */
.dataTables_filter,
.dataTables_length,
.dataTables_info,
.dataTables_paginate {
  display: none !important;
}

/* Table container */
.wpc-variations-table,
.wpcvt-wrap {
  width: 290px !important;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 16px 10px;
  margin-top: 0 !important;
}

/* Table inner spacing */
.wpc-variations-table thead th {
  display: none;
}
.wpc-variations-table tbody td {
  border: none;
  padding: 8px 6px;
  text-align: left;
  vertical-align: middle;
}

/* Price smaller + bold */
.wpc-variations-table tbody td:nth-child(1) {
  font-weight: 500;
  color: #333;
}
.wpc-variations-table tbody td span.amount {
  color: #d32f2f;
  font-weight: 600;
}

/* Quantity box smaller */
.wpc-variations-table input.qty {
  width: 50px !important;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
}

/* Add to Cart button */
.wpc-variations-table .button,
.single_add_to_cart_button {
  display: block !important;
  width: 100%;
  margin-top: 10px;
  background: #000;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 0;
  text-transform: uppercase;
  text-align: center;
}
.single_add_to_cart_button:hover {
  background: #1a237e;
  color: #fff;
}

/* =====================================================
   LAYOUT FIX — KEEP ADDONS ON RIGHT SIDE
===================================================== */
.single-product .product {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

/* Left: Image section */
.single-product div.images {
  flex: 0 0 320px;
}

/* Middle: Summary (title, meta, etc.) */
.single-product .summary {
  flex: 1;
  min-width: 400px;
  position: relative;
  padding-right: 340px; /* 👈 ensures title & desc never hide under the table */
  z-index: 2;
}

/* Right: Addons table */
.single-product .wpcvt-wrap {
  flex: 0 0 300px;
  position: absolute;
  right: 0;
  top: 0;
  align-self: flex-start;
  z-index: 1;
}

/* Responsive layout: stack everything */
@media (max-width: 1024px) {
  .single-product .product {
    flex-direction: column;
  }
  .single-product .summary {
    padding-right: 0;
  }
  .single-product .wpcvt-wrap {
    position: static !important;
    width: 100% !important;
    margin-top: 20px !important;
  }
}

/* =========================================
   PRODUCT IMAGE SIZE
========================================= */
.single-product div.product div.images {
  max-width: 320px !important;
  margin-right: 40px !important;
}
.single-product div.product div.images img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .single-product div.product div.images {
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;
    text-align: center;
  }
  .single-product div.product div.images img {
    max-width: 280px !important;
  }
}

/* =========================================
   HIDE UNUSED META / ATTRIBUTES
========================================= */
.single-product .woocommerce-product-attributes-item--attribute_courses,
.single-product .woocommerce-product-attributes-item--attribute_pa_course,
.single-product .product_meta {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Hide share icons, likes, and social bar on Speaker pages */
.single-speaker .post_meta_single,
.single-speaker .post_meta,
.single-speaker .post_meta_item,
.single-speaker .socials_share,
.single-speaker .social_items,
.single-speaker .post_meta_likes {
    display: none !important;
    visibility: hidden !important;
}

/* Hide Author Box completely */
.single-speaker .author_info {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
.pl-speaker-tab img:nth-of-type(2),
.pl-speaker-tab h5 {
    display: none !important;
}

