/* Single Product page styling */
.single-product-container .site-breadcrumbs{
    position:static;
    max-width:100%;
    margin-top:0;
    height:auto;
	display:flex;
	flex-wrap:wrap;

}
.single-product-background-banner {
	background:var(--brand-color-blue-3);
	width:100vw;
	height:50vh;
	position:absolute;
	top:0;
	left:0;
}

.main-product-image-wrapper img {
    object-fit: contain; /* Ensures the whole image is visible */
    transition: opacity 0.1s ease-in-out; /* Smooth transition for image change */
}
.single-product-container .product-details-column {
	background:white;
	padding:3%;
	border-radius:10px;
	box-shadow:0px 0px 20px -20px;
}
/* Meta Tabs */
#tab-instructor_resource {
	background:white;
	padding:2%;
	border-radius:10px;
}
/* Variation Tabs */

.variation-tabs-container {
    display: flex;
    flex-wrap: wrap; /* Allow tabs to wrap if too many */
    gap: 12px; /* Increased gap between tabs */
    margin-bottom: 40px; /* More space before add to cart */
}

.variation-tab {
    padding: 14px 22px; /* Larger padding for a more substantial feel */
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 10px; /* Slightly more rounded */
    cursor: pointer;
    font-size: 1em; /* Clearer font size */
    color: #555;
    background-color: #fdfdfd;
    transition: transform 0.3s ease-in-out; /* Smooth transition for all properties */
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Very subtle shadow */
}
.variation-meta-display {
	padding:2%;
	background:var(--brand-color-blue-3);
	color:white;

}
.variation-tab:hover {
    background-color: #f0f0f0;
    border-color: #c0c0c0;
    transform: translateY(-2px); /* Subtle lift on hover */
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
}

.variation-tab.active {
    background-color: var(--brand-color-blue-3);
    color: #fff;
    border-color: var(--brand-color-blue-2);
    font-weight: 600;
    transform: translateY(-1px); /* Slight lift */
}

.variation-meta-list {
	display:flex;
	gap:2%;
	flex-wrap:wrap;
}
.product-meta-badges {
	display:flex;
	gap:2%;
	flex-wrap:wrap;
}
.product-meta-badges > article {
	padding:3px 6px;
	background:var(--brand-color-blue-1);
	color:white;
	border-radius:8px;
	font-size:80%;
}

.product-meta-badges > article  a {
	color:white;
}

/*Custom Cart */
.custom-cart-notification.success {
    background-color: greenyellow; /* Green for success */
}

.custom-cart-notification.error {
    background-color: #dc3545; /* Red for error */
}

.custom-cart-notification.show {
    display:block;
	max-width:500px;
    opacity: 1;
	position:absolute;
	top:0;
	right:0;
	padding:12px 24px;
}

.custom-cart-notification.hide {
     /* Slide down off-screen */
    opacity: 0;
}

.notification-message {
    flex-grow: 1;
}

.notification-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.notification-close-btn:hover {
    transform: rotate(90deg);
}

.related.products .oceanwp-row .span_1_of_3 {
	width:25%;
}

/* -------------------------------------------------
   PART styling
------------------------------------------------- */

.part-item{
  margin-top:2rem;
  margin-bottom:1.8rem;
  break-inside:avoid;
}

.part-title{
  display:block;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  font-size:1.55rem;
  color:#020617;
  margin-bottom:0.6rem;
  padding-top:0.6rem;
}

/* -------------------------------
   Chapter list layout
   Two-column flow for chapters
-------------------------------- */
.chapter-list {
  column-count: 2;
  column-gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0;

  counter-reset: chapter;
}

/* Prevent a chapter block from
   splitting across columns */
.chapter-title {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1.4rem;
  padding-left: 0;

  counter-reset: section;
}

/* Increment only real chapters */
.chapter-title:not(.no-number):not(.front-matter){
  counter-increment: chapter;
}

/* -------------------------------
   Chapter heading
-------------------------------- */
.chapter-title > strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

/* Chapter number (only real chapters) */
.chapter-title:not(.no-number):not(.front-matter) > strong::before {
  content: counter(chapter) ". ";
  font-weight: 700;
}

/* -------------------------------
   Section list
-------------------------------- */
.section-list {
  list-style: none;
  padding-left: 1.6rem;
  margin: 0.4rem 0 0 0;
}

/* -------------------------------
   Section item
-------------------------------- */
.section-item {
  font-size: 1.25rem;
  color: #374151;
  margin: 0.2rem 0;
  position: relative;

  counter-increment: section;
}

/* Section number (1.1, 1.2, ...) */
.section-item::before {
  content: counter(chapter) "." counter(section) " ";
  font-variant-numeric: tabular-nums;
  margin-right: 0.2rem;
  color: #374151;
}

/* -------------------------------
   Responsive behaviour
-------------------------------- */
@media (max-width: 900px) {
  .chapter-list {
    column-count: 1;
  }
}

/* -------------------------------
   Print-friendly tweaks
-------------------------------- */
@media print {
  body {
    margin: 25mm;
  }

  .chapter-list {
    column-gap: 12mm;
  }
}

/* ------------------------------------
   Front-matter (un-numbered Introduction)
------------------------------------- */

.front-matter > strong::before{
  content: "";
}

.front-matter .section-list{
  counter-reset: introsection;
}

.front-matter .section-item{
  counter-increment: introsection;
}

.front-matter .section-item::before{
  content: counter(introsection) " ";
}

/* ------------------------------------
   Front and back-matter (un-numbered chapters)
------------------------------------- */

.chapter-title.no-number > strong::before{
  content:none;
}

/* Responsive adjustments for popup */
@media (max-width: 600px) {
    .custom-cart-notification {
        width: calc(100% - 40px); /* Full width minus padding */
        left: 20px; /* Align to left with padding */
        transform: translateX(0) translateY(100px);
        font-size: 1em;
        text-align: center;
        bottom: 15px;
        padding: 12px 20px;
    }

    .custom-cart-notification.show {
        transform: translateX(0) translateY(0);
    }
     .custom-cart-notification.hide {
        transform: translateX(0) translateY(100px);
    }
}