/* ==========================================================================
   SINGLE PRODUCT PAGE - BLOCKSY STYLE REBUILD
   ========================================================================== */

/* --- 1. General Layout --- */
.single-product div.product {
    max-width: 100%;
    margin: 0 0;
    /* Reduced from the site-wide --container-padding (1.5rem) -- this page
       specifically wanted a tighter frame around the gallery/summary area. */
    padding-top: 10px;
    padding-bottom: 0px;
    padding-left: 30px;
    padding-right: 30px;
    display:flex;
    flex-direction:column;
    align-items: flex-start;
    justify-content: flex-start;
  
}


.single-product div.product .top-section {
  display:flex;
  align-items:flex-start;
  width:100%;
  gap:20px;
  flex-wrap: nowrap;
  
}

/* Tablet & mobile: stack the gallery above the summary instead of forcing
   them side-by-side. This is the breakpoint that was missing entirely —
   .top-section previously stayed a row at every width, which is what forced
   the summary column to get crushed down to a sliver on tablets. Matches
   the 1024px breakpoint now used in product-gallery.css so the gallery and
   summary switch to full width at the same moment this wrapper stacks. */
@media (max-width: 1024px) {
  .single-product div.product .top-section {
    flex-direction: column;
  }
}

/* --- 2. Product Image --- */

/* --- 3. Product Summary (Right Column) --- */
.single-product div.product .summary.entry-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


.single-product div.product .summary.entry-summary form.cart{
  padding: 0px;
}

.single-product div.product .product_title {
    font-family: var(--font-base);
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.single-product div.product p.price {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.single-product div.product .woocommerce-product-details__short-description {
    color: var(--color-text-muted);
    font-family: var(--font-base);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.single-product div.product .camfortmall-product-breadcrumb {
    margin: 0 0 12px 0;
    width: 100%;
}

/* Meta Data (Categories, Tags) */
.single-product div.product .product_meta {
    font-family: var(--font-base);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: normal;
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-product div.product .product_meta .posted_in,
.single-product div.product .product_meta .tagged_as {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0;
    margin: 0;
}

.single-product div.product .product_meta .posted_in a,
.single-product div.product .product_meta .tagged_as a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
}

.single-product div.product .product_meta a:hover {
    border-color: var(--color-success);
    color: var(--color-text);
}

/* --- 4. Add to Cart Row (Pill Shapes) --- */
.single-product div.product form.cart {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: nowrap;
}

.single-product div.product form.cart .quantity {
    margin: 0 !important;
}

/* Quantity Input */
.single-product div.product form.cart .quantity input.qty {
    height: 54px;
    width: 80px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-strong);
    padding: 0 15px;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 600;
    color: var(--color-text);
}

/* Primary Add to Cart Button */
.single-product div.product form.cart .single_add_to_cart_button {
    height: 54px;
    flex: 1; /* Makes the button take up remaining space */
    border-radius: var(--radius-full);
    background-color: var(--color-success);
    color: var(--color-white);
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
    padding: 0 30px;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background-color: var(--color-success-hover);
}

/* --- 5. Safe Checkout Badges (Added via PHP) --- */
.custom-safe-checkout {
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-sm) 0;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.custom-safe-checkout__title {
    display: block;
    font-family: var(--font-base);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.custom-safe-checkout__img {
    max-height: 24px;
    margin: 0 auto;
    display: inline-block;
}

/* --- 6. Horizontal Centered Tabs (Overriding Storefront) --- */
.single-product .woocommerce-tabs {
    clear: both;
    width: 100% !important;
    margin-top: 0rem;
    float: none !important;
}

/* Force standard Storefront layout to horizontal */
@media (min-width: 768px) {
    .storefront-full-width-content.single-product div.product .woocommerce-tabs {
        width: 100%;
        display: block;
    }
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 3rem;
    margin: 0 0 2rem 0 !important;
    padding: 0 0 10px 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    width: 100% !important;
    float: none !important;
    text-align: left;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important; /* Hide Storefront's decorative borders */
}

.single-product .woocommerce-tabs ul.tabs li a {
    color: var(--color-text-muted) !important;
    font-family: var(--font-base);
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 0 10px 0 !important;
    position: relative;
    border: none !important;
    text-align: left;
}

/* Active tab underline using brand primary color */
.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-text) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-success);
}

.single-product .woocommerce-tabs .panel {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- 7. Fix Related Products Grid --- */
/* Your current related products grid is collapsing into narrow columns. This fixes it. */
.single-product section.related.products {
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.single-product section.related.products > h2 {
    font-family: var(--font-base);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.single-product section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 30px !important;
}

.single-product section.related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

.camfortmall-product-breadcrumb {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.camfortmall-product-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.camfortmall-product-breadcrumb__sep {
    color: var(--color-text-muted);
    margin: 0 6px; /* replaces the old flex `gap` now that it's inline flow */
}

.camfortmall-product-breadcrumb__current {
    color: var(--color-text);
    font-weight: 600;
}

/* Force hide the default Storefront sticky banner */
.storefront-sticky-add-to-cart {
    display: none !important;
}

/* --- Off Platform Payment Notice Layout (Grey Background) --- */
.custom-payment-notice {
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background-color: #f3f4f6; /* Light grey background */
    border-radius: var(--radius);
    border: 1px solid var(--color-border-strong);
    align-items: center;
    justify-content: center;
    
}

.custom-payment-notice__text {
    font-family: var(--font-base);
    font-size: 0.75rem;
    font-weight: 500;
    color: grey; /* Dark text for contrast against grey */
    margin: 0;
    width: 70%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

}

/* --- Sticky Top Product Banner Layout --- */
.custom-sticky-banner {
    position: fixed;
     bottom: -100px; /* Hidden off-screen initially */
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
}

/* Toggle activation visibility class assigned via JS */
.custom-sticky-banner.is-active {
    bottom: 0;
}

.sticky-banner-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Product Meta Info Column */
.sticky-banner-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sticky-banner-info img {
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.sticky-banner-title {
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.1rem;
}

/* Interactive Form Actions Row */
.sticky-banner-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 !important;
}

/* Fully Rounded Custom Quantity Controls */
.custom-qty-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    padding: 2px;
    height: 46px;
}

.qty-control-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

.qty-control-btn:hover {
    background-color: var(--color-border);
}

.custom-qty-input {
    width: 40px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: var(--font-base) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    font-size: 1rem !important;
}

/* Hide native browser arrows inside custom layout wrapper */
.custom-qty-input::-webkit-outer-spin-button,
.custom-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Fully Rounded Sticky Submission CTA Button */
.sticky-submit-btn {
    height: 46px !important;
    border-radius: var(--radius-full) !important;
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-base) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0 var(--space-md) !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease !important;
}

.sticky-submit-btn:hover {
    background-color: var(--color-primary-dark) !important;
}
ul.products.columns-3::before,
ul.products.columns-3::after {
  display: none !important;
  content: none !important;
}









/* ==========================================================================
   SUMMARY REDESIGN (FIXED & RESPONSIVE)
   ========================================================================== */

.summary.entry-summary {
  display: flex !important;
  flex-direction: column !important;
}

/* ==========================================
   1. FIXED SALE BANNER
   ========================================== */
.sale-banner {
  width: 100% !important;
  height: 44px !important; /* Uniform height prevents breaking background */
  display: flex !important;
  align-items: center !important;
  font-family: var(--font-base) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #ffe06f !important; /* Yellow background */
  margin-bottom: 16px !important;
  box-shadow: none !important;
}
.sale-label {
  height: 44px !important;
  min-width: 110px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  position: relative !important;
  z-index: 2 !important;
  color: #ffffff !important;
  background: #ff4500 !important; /* Orange badge */
  font-size: 16px !important;
  font-weight: 700 !important;
   font-family: var(--font-base) !important;
  flex-shrink: 0 !important;
}
.sale-label::after {
  content: "" !important;
  position: absolute !important;
  right: -12px !important;
  top: 0 !important;
  width: 24px !important;
  height: 44px !important;
  background: #ff4500 !important;
  transform: skewX(20deg) !important;
  z-index: -1 !important;
   font-family: var(--font-base) !important;
}
.sale-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}
.sale-content {
  height: 100% !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 20px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
   font-family: var(--font-base) !important;
}
.sale-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.feature-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}
.divider {
  width: 1px !important;
  height: 20px !important;
  margin: 0 14px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0 !important;
}

/* ==========================================
   2. TITLE & SHARE BUTTON
   ========================================== */
.tm-title-share-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}
.tm-product-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
   font-family: var(--font-base) !important;
}
.tm-share-btn {
  background: #f0f0f0 !important;
  border: 1px solid #dcdcdc !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.tm-share-btn:hover {
  background: #e2e2e2 !important;
}
.tm-share-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #111111 !important;
  fill: none !important;
}

/* ==========================================
   3. BIG GOLDEN STARS
   ========================================== */
.tm-rating-sales-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}
.tm-rating-num {
  font-size: 16px !important;
  font-weight: 700 !important;
   font-family: var(--font-base) !important;
  color: #111111 !important;
}
.tm-stars {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1 !important;
}
.tm-star {
  font-size: 22px !important; /* Large stars */
   font-family: var(--font-base) !important;
  line-height: 1 !important;
}
.tm-star.tm-star-filled {
  color: #ff9900 !important; /* Golden stars */
}
.tm-star.tm-star-empty {
  color: #d1d1d1 !important;
}
.tm-review-count, .tm-sales-count {
     font-family: var(--font-base) !important;
  font-size: 14px !important;
  color: #555555 !important;
}

/* ==========================================
   4. BIG PURPLE SALE PRICE
   ========================================== */
.tm-price-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  margin-bottom: 16px !important;
  padding: 12px 0 !important;
  border-top: 1px solid #eeeeee !important;
  border-bottom: 1px solid #eeeeee !important;
   font-family: var(--font-base) !important;
}
.tm-price-display {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}
.tm-old-price,
.tm-old-price .woocommerce-Price-amount {
  font-size: 20px !important;
  font-weight: 500 !important;
   font-family: var(--font-base) !important;
  color: #888888 !important;
  text-decoration: line-through !important;
}
.tm-sale-price,
.tm-sale-price .woocommerce-Price-amount,
.tm-sale-price .woocommerce-Price-amount bdi {
  font-size: 32px !important; /* Very Big */
  font-weight: 700 !important; /* Bold */
  color: #0d0316 !important; /* Purple */
  line-height: 1 !important;
  text-decoration: none !important;
   font-family: var(--font-base) !important;
}

/* Badges */
.tm-discount-wrap { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.tm-discount-tag {
  background: #e52e2e !important; color: #ffffff !important;
  font-weight: 700 !important; font-size: 16px !important;
  padding: 3px 7px !important; border-radius: 4px !important;
   font-family: var(--font-base) !important;
}
.tm-limited-lbl { color: #e52e2e !important; font-weight: 600 !important; font-size: 16px !important; }
.tm-stock-tag {
  background: #fff0ed !important; color: #e52e2e !important;
  border: 1px solid #ffd4cd !important; font-weight: 600 !important;
   font-family: var(--font-base) !important;
  font-size: 16px !important; padding: 3px 8px !important; border-radius: 4px !important;
}

/* ==========================================
   5. TIMER & BLACK PLACE ORDER BUTTON
   ========================================== */
.tm-timer-wrapper {
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
   font-family: var(--font-base) !important;
}
.tm-timer-label {
  display: flex !important; align-items: center !important; gap: 6px !important;
  font-size: 18px !important; font-weight: 700 !important; color: #222 !important;
}
.tm-timer-boxes { display: flex !important; align-items: center !important; gap: 5px !important; }
.tm-time-box {
  background: #ffffff !important; border: 1px solid #ddd !important;
  border-radius: 6px !important; padding: 5px 8px !important;
  min-width: 66px !important; text-align: center !important;
}
.tm-digit { font-size: 18px !important; font-weight: 800 !important; color: #e52e2e !important; line-height: 1 !important; }
.tm-unit { font-size: 9px !important; font-weight: 700 !important; color: #777 !important; margin-top: 2px !important; display: block !important; }
.tm-colon { font-weight: 800 !important; color: #e52e2e !important; font-size: 16px !important; }

/* Black Cart Button */
.summary.entry-summary form.cart {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important;
  gap: 12px !important; margin-bottom: 16px !important; width: 100% !important;
   font-family: var(--font-base) !important;
}
.summary.entry-summary form.cart .quantity { width: 75px !important; flex-shrink: 0 !important; margin: 0 !important; }
.summary.entry-summary form.cart .quantity input.qty {
  width: 100% !important; height: 48px !important; border-radius: 8px !important;
  border: 1px solid #ccc !important; text-align: center !important; font-weight: 700 !important;
}
.summary.entry-summary form.cart .single_add_to_cart_button {
  flex: 1 1 auto !important; height: 48px !important; border-radius: 24px !important;
  background: #000000 !important; color: #ffffff !important; font-size: 16px !important;
  font-weight: 700 !important; border: none !important; cursor: pointer !important;
}
.summary.entry-summary form.cart .single_add_to_cart_button:hover { background: #222222 !important; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .sale-content .sale-item:nth-child(3),
  .sale-content .divider { display: none !important; }
  .tm-sale-price, .tm-sale-price .woocommerce-Price-amount bdi { font-size: 28px !important; }

  /* --- Sticky banner cleanup --- */
  .sticky-banner-container {
    gap: 8px;
    padding: 0 12px;
  }

  .sticky-banner-info {
    min-width: 0;      /* lets this side actually shrink instead of pushing the button off */
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }

  .sticky-banner-info img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .sticky-banner-info > div:nth-child(2) {
    min-width: 0;
    overflow: hidden;
  }

  .sticky-banner-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-banner-form {
    flex-shrink: 0;    /* keeps qty + button from getting squeezed */
    gap: 6px;
  }

  .custom-qty-wrapper {
    height: 38px;
  }

  .qty-control-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .custom-qty-input {
    width: 26px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .sticky-submit-btn {
    height: 38px !important;
    font-size: 0.8rem !important;
    padding: 0 12px !important;
    white-space: nowrap !important;  /* the actual "no 2 lines" fix */
  }
}


/* ==========================================
   6. ACCEPTED PAYMENT MODES
   ========================================== */
.tm-payments-wrapper {
  margin-top: 12px !important;
  padding-top: 16px !important;
  border-top: 1px dashed #e0e0e0 !important; /* A subtle divider to separate it from the button */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Centers the whole block */
  gap: 12px !important;
  width: 100% !important;
}

.tm-payments-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #666666 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.tm-payments-cards {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  flex-wrap: nowrap !important; /* This strictly forces them to stay on one line */
}

.tm-payments-cards img {
  height: 54px !important; /* Base height for the cards */
  width: auto !important;
  /* The max-width ensures that on super tiny screens, the images shrink rather than wrap */
  max-width: calc(33.333% - 10px) !important; 
  object-fit: contain !important; /* Ensures the card images never distort or stretch */
  border-radius: 4px !important; /* Optional: adds slight rounding if your PNGs have sharp corners */
}

.product_meta{
    display: hidden !important;
}


@media (max-width: 600px) {
  .single-product div.product {
    padding: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* --- Sticky banner cleanup: tablet --- */
@media (min-width: 601px) and (max-width: 1024px) {
  .sticky-banner-container {
    gap: 12px;
    padding: 0 20px;
  }

  .sticky-banner-info {
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
    overflow: hidden;
  }

  .sticky-banner-info img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .sticky-banner-info > div:nth-child(2) {
    min-width: 0;
    overflow: hidden;
  }

  .sticky-banner-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-banner-form {
    flex-shrink: 0;
    gap: 8px;
  }

  .custom-qty-wrapper {
    height: 42px;
  }

  .qty-control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .custom-qty-input {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .sticky-submit-btn {
    height: 42px !important;
    font-size: 0.88rem !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
  }
}

/* --- Sticky banner cleanup: desktop --- */
@media (min-width: 1025px) {
  .sticky-banner-container {
    gap: 16px;
    padding: 0 24px;
  }

  .sticky-banner-info {
    min-width: 0;
    flex: 1 1 auto;
    gap: 12px;
    overflow: hidden;
  }

  .sticky-banner-info img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .sticky-banner-info > div:nth-child(2) {
    min-width: 0;
    overflow: hidden;
  }

  .sticky-banner-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-banner-form {
    flex-shrink: 0;
    gap: 10px;
  }

  .custom-qty-wrapper {
    height: 46px;
  }

  .qty-control-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .custom-qty-input {
    width: 40px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .sticky-submit-btn {
    height: 46px !important;
    font-size: 0.95rem !important;
    padding: 0 var(--space-md) !important;
    white-space: nowrap !important;
  }
}




/* =========================================================
   CAMFORT MALL PRODUCT ORDER CONTROLS — moved out of this file.
   All quantity / Add to Cart / Buy Now / Place Order styling now lives
   in product-unified-actions.css, so there's exactly one place that
   controls how this row looks (this old block used to conflict with
   it — specifically the old solid-black Place Order rule that used to
   live here, which is what was overriding the intended outline style).
   ========================================================= */


   /* ============================================================
   CAMFORT MALL
   SINGLE PRODUCT SUMMARY — 5 : 3 TWO-COLUMN LAYOUT
   ============================================================ */

/*
 * IMPORTANT:
 *
 * This controls ONLY the inside of:
 *
 *     .summary.entry-summary
 *
 * The product gallery/media is NOT changed.
 *
 * Desktop:
 *
 *     MAIN SUMMARY        SIDE INFORMATION
 *     5 parts             3 parts
 *     62.5%               37.5%
 *
 * Tablet:
 *     50% / 50%
 *
 * Mobile:
 *     100% / 100%
 */


/* ============================================================
   1. SUMMARY CONTAINER
   ============================================================ */

.single-product div.product .summary.entry-summary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}


/*
 * Breadcrumb sits above the two-column area and therefore
 * remains full width.
 */

.single-product div.product .summary.entry-summary > .camfortmall-product-breadcrumb {
    width: 100% !important;
    max-width: 100% !important;
}


/* ============================================================
   2. THE ACTUAL TWO-COLUMN SUMMARY
   ============================================================ */

.summary-product-layout {
    width: 100% !important;
    display: grid !important;

    /*
     * MAIN = 5 parts
     * SIDE = 3 parts
     *
     * 5 / 8 = 62.5%
     * 3 / 8 = 37.5%
     */
    grid-template-columns:
        minmax(0, 5fr)
        minmax(0, 3fr) !important;

    gap: 28px !important;

    align-items: start !important;

    box-sizing: border-box !important;
}


/* ============================================================
   3. MAIN 5/8 COLUMN
   ============================================================ */

.summary-product-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    box-sizing: border-box !important;

    /* Lets the timer (and anything else in here) size itself off THIS
       column's actual width instead of the full viewport — see the
       @supports block in the RESPONSIVE SALE TIMER section below. This is
       what fixes the timer not shrinking on medium desktop widths: the
       column can narrow (wider gallery, sidebar content, etc.) without the
       viewport itself getting any smaller, and vw units don't know that. */
    container-type: inline-size;
    container-name: product-summary;
}


/*
 * Everything currently generated by
 * woocommerce_single_product_summary stays inside this column.
 */

.summary-product-main > * {
    min-width: 0 !important;
    max-width: 100% !important;
}


/*
 * Keep the existing sale banner at the full width
 * of the larger summary column.
 */

.summary-product-main .sale-banner {
    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Product title/share row.
 */

.summary-product-main .tm-title-share-wrap {
    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Rating row.
 */

.summary-product-main .tm-rating-sales-row {
    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Price row.
 */

.summary-product-main .tm-price-row {
    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Timer.
 */

.summary-product-main .tm-timer-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}


/*
 * Product order/cart controls.
 */

.summary-product-main form.cart,
.summary-product-main .cm-product-order-controls {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}


/*
 * Payment section.
 */

.summary-product-main .tm-payments-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}


/* ============================================================
   4. SECONDARY 3/8 COLUMN
   ============================================================ */

.summary-product-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    align-self: start !important;

    box-sizing: border-box !important;
}


/* ============================================================
   5. ISHTARI-STYLE SIDE CARD
   ============================================================ */

.summary-side-card {
    width: 100% !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 1px solid #e8e8e8 !important;

    border-radius: 10px !important;

    padding: 20px !important;

    box-shadow: none !important;
}


/* Individual information row */

.summary-side-item {
    display: flex !important;

    align-items: flex-start !important;

    gap: 12px !important;

    width: 100% !important;

    min-width: 0 !important;

    box-sizing: border-box !important;
}


/* Icon container */

.summary-side-icon {
    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #f7f7f8 !important;

    border-radius: 8px !important;

    color: var(--color-primary) !important;

    box-sizing: border-box !important;
}


/* SVG icons */

.summary-side-icon svg {
    width: 20px !important;
    height: 20px !important;

    display: block !important;
}


/* Text area */

.summary-side-content {
    min-width: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    gap: 4px !important;

    padding-top: 1px !important;
}


/* Heading */

.summary-side-content strong {
    display: block !important;

    margin: 0 !important;

    font-family: var(--font-base) !important;

    font-size: 14px !important;

    line-height: 1.3 !important;

    font-weight: 700 !important;

    color: var(--color-text) !important;
}


/* Description */

.summary-side-content span {
    display: block !important;

    margin: 0 !important;

    font-family: var(--font-base) !important;

    font-size: 13px !important;

    line-height: 1.5 !important;

    font-weight: 400 !important;

    color: var(--color-text-muted) !important;
}


/* Divider */

.summary-side-divider {
    width: 100% !important;

    height: 1px !important;

    background: #eeeeee !important;

    margin: 18px 0 !important;
}


/* ============================================================
   6. PREVENT LONG CONTENT FROM BREAKING THE COLUMNS
   ============================================================ */

.summary-product-layout,
.summary-product-main,
.summary-product-side,
.summary-side-card,
.summary-side-item,
.summary-side-content {
    overflow-wrap: break-word !important;
    word-break: normal !important;
}


/* ============================================================
   7. TABLET
   ============================================================ */

@media (min-width: 769px) and (max-width: 1024px) {

    .summary-product-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        gap: 22px !important;
    }

    .summary-side-card {
        padding: 18px !important;
    }

    .summary-side-divider {
        margin: 16px 0 !important;
    }
}


/* ============================================================
   8. MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .single-product div.product .summary.entry-summary {
        width: 100% !important;
        max-width: 100% !important;
    }


    .summary-product-layout {
        display: block !important;

        width: 100% !important;
    }


    .summary-product-main,
    .summary-product-side {
        width: 100% !important;
        max-width: 100% !important;
    }


    /*
     * Give the side information a little breathing room
     * when it moves underneath the main product information.
     */

    .summary-product-side {
        margin-top: 28px !important;
    }


    .summary-side-card {
        width: 100% !important;
        padding: 18px !important;
    }
}


/* ============================================================
   9. SMALL PHONES
   ============================================================ */

@media (max-width: 480px) {

    .summary-side-card {
        padding: 16px !important;
        border-radius: 8px !important;
    }


    .summary-side-item {
        gap: 10px !important;
    }


    .summary-side-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }


    .summary-side-icon svg {
        width: 18px !important;
        height: 18px !important;
    }


    .summary-side-content strong {
        font-size: 13px !important;
    }


    .summary-side-content span {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }


    .summary-side-divider {
        margin: 15px 0 !important;
    }
}





/* ==========================================================================
   CAMFORT MALL PRODUCT SUMMARY - 5 / 3 LAYOUT
   ========================================================================== */

.single-product div.product .summary.entry-summary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}


/* --------------------------------------------------------------------------
   MAIN SUMMARY + SIDE INFO
   -------------------------------------------------------------------------- */

.summary-product-layout {
    width: 100% !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 5fr)
        minmax(0, 3fr) !important;

    gap: 30px !important;

    align-items: start !important;

    box-sizing: border-box !important;
}


.summary-product-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}


.summary-product-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    align-self: start !important;
}


/* --------------------------------------------------------------------------
   REMOVE OLD PAYMENT BLOCK
   -------------------------------------------------------------------------- */

.tm-payments-wrapper {
    display: none !important;
}


/* --------------------------------------------------------------------------
   COLOR + SIZE CUSTOM UI
   -------------------------------------------------------------------------- */

.cm-custom-variation-ui {
    width: 100% !important;
    margin: 18px 0 4px !important;
}


.cm-variation-group {
    width: 100% !important;
    margin-bottom: 18px !important;
}


.cm-variation-group__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 12px !important;

    margin-bottom: 10px !important;
}


.cm-variation-group__label {
    font-size: 14px !important;
    font-weight: 800 !important;

    color: #15171c !important;
}


.cm-variation-group__selected {
    font-size: 13px !important;
    font-weight: 600 !important;

    color: #777 !important;
}


/* --------------------------------------------------------------------------
   COLOR OPTIONS
   -------------------------------------------------------------------------- */

.cm-color-options {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 9px !important;
}


.cm-color-option {
    display: inline-flex !important;

    align-items: center !important;
    gap: 8px !important;

    min-height: 42px !important;

    padding: 7px 11px !important;

    border: 1px solid #e3e3e7 !important;
    border-radius: 10px !important;

    background: #fff !important;

    color: #17181c !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease !important;
}


.cm-color-option:hover {
    border-color: #aaa !important;
    transform: translateY(-1px) !important;
}


.cm-color-option.is-selected {
    border-color: #111 !important;

    background: #fafafa !important;

    box-shadow:
        0 0 0 2px #111 inset !important;
}


.cm-color-option__swatch {
    width: 20px !important;
    height: 20px !important;

    flex: 0 0 20px !important;

    border-radius: 50% !important;

    border: 1px solid rgba(0,0,0,.14) !important;

    box-shadow:
        0 0 0 2px #fff !important;
}


.cm-color-option__label {
    line-height: 1 !important;
}


/* --------------------------------------------------------------------------
   SIZE OPTIONS
   -------------------------------------------------------------------------- */

.cm-size-options {
    display: grid !important;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(105px, 1fr)
        ) !important;

    gap: 9px !important;
}


.cm-size-option {
    min-height: 64px !important;

    padding: 9px 10px !important;

    border: 1px solid #e1e1e5 !important;

    border-radius: 10px !important;

    background: #fff !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    color: #17181c !important;

    cursor: pointer !important;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease !important;
}


.cm-size-option:hover {
    border-color: #999 !important;
    transform: translateY(-1px) !important;
}


.cm-size-option.is-selected {
    background: #111 !important;
    border-color: #111 !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(0,0,0,.12) !important;
}


.cm-size-option__name {
    font-size: 13px !important;
    font-weight: 800 !important;

    line-height: 1.1 !important;
}


.cm-size-option__price {
    font-size: 11px !important;
    font-weight: 700 !important;

    opacity: .72 !important;

    line-height: 1 !important;
}


.cm-size-option.is-selected .cm-size-option__price {
    opacity: .86 !important;
}


.cm-size-option__price .woocommerce-Price-amount,
.cm-size-option__price bdi {
    font-size: inherit !important;
}


/* --------------------------------------------------------------------------
   HIDE NATIVE VARIATION SELECTORS VISUALLY
   BUT KEEP THEM IN THE DOM FOR WOOCOMMERCE
   -------------------------------------------------------------------------- */

html.cm-variation-js-ready .summary-product-main form.variations_form table.variations {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* --------------------------------------------------------------------------
   PRICE / SAVE / STOCK
   -------------------------------------------------------------------------- */

.tm-price-row {
    display: flex !important;

    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 9px !important;

    width: 100% !important;
}


.tm-price-display {
    display: flex !important;

    align-items: baseline !important;

    gap: 8px !important;
}


.tm-old-price {
    color: #9b9b9b !important;

    font-size: 15px !important;

    text-decoration: line-through !important;
}


.tm-sale-price {
    color: #17181c !important;

    font-size: 29px !important;

    font-weight: 800 !important;

    line-height: 1.1 !important;
}


.tm-discount-wrap {
    display: inline-flex !important;

    align-items: center !important;
}


.tm-discount-tag {
    display: inline-flex !important;

    align-items: center !important;

    min-height: 25px !important;

    padding: 4px 8px !important;

    border-radius: 6px !important;

    background: #fff0ee !important;

    color: #d93025 !important;

    border: 1px solid #ffd3cd !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    letter-spacing: .02em !important;
}


.tm-stock-tag {
    display: inline-flex !important;

    align-items: center !important;

    min-height: 25px !important;

    padding: 4px 8px !important;

    border-radius: 6px !important;

    background: #fff8e7 !important;

    color: #9a6700 !important;

    border: 1px solid #f1dc9d !important;

    font-size: 11px !important;

    font-weight: 800 !important;
}


/* --------------------------------------------------------------------------
   SMALLER SALE TIMER
   -------------------------------------------------------------------------- */

.tm-timer-wrapper {
    margin-top: 5px !important;
    margin-bottom: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    flex-wrap: nowrap !important;

    gap: 12px !important;

    width: 100% !important;

    padding: 10px 12px !important;

    border: 1px solid #ececef !important;

    background: #fafafa !important;

    border-radius: 10px !important;

    box-sizing: border-box !important;
}


.tm-timer-label {
    display: flex !important;

    align-items: center !important;

    gap: 5px !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    color: #444 !important;

    white-space: nowrap !important;
}


.tm-timer-label svg {
    width: 15px !important;
    height: 15px !important;
}


.tm-timer-boxes {
    display: flex !important;

    align-items: center !important;

    gap: 3px !important;
}


.tm-time-box {
    min-width: 41px !important;

    padding: 4px 4px !important;

    border: 1px solid #e6e6e8 !important;

    border-radius: 6px !important;

    background: #fff !important;

    text-align: center !important;
}


.tm-digit {
    display: block !important;

    font-size: 13px !important;

    line-height: 1 !important;

    font-weight: 800 !important;

    color: #e52e2e !important;
}


.tm-unit {
    display: block !important;

    margin-top: 2px !important;

    font-size: 7px !important;

    line-height: 1 !important;

    font-weight: 800 !important;

    color: #777 !important;
}


.tm-colon {
    color: #c33 !important;

    font-size: 11px !important;

    font-weight: 800 !important;
}


/* --------------------------------------------------------------------------
   SIDE COLUMN CARDS
   -------------------------------------------------------------------------- */

.summary-product-side {
    display: flex !important;

    flex-direction: column !important;

    gap: 14px !important;
}


.cm-side-card {
    width: 100% !important;

    padding: 17px !important;

    box-sizing: border-box !important;

    background: #fff !important;

    border: 1px solid #ececef !important;

    border-radius: 13px !important;

    box-shadow:
        0 4px 18px rgba(0,0,0,.035) !important;
}


/* --------------------------------------------------------------------------
   RATING
   -------------------------------------------------------------------------- */

.cm-side-rating {
    padding: 16px 17px !important;
}


.cm-side-rating__top {
    display: flex !important;

    align-items: center !important;

    gap: 10px !important;
}


.cm-side-rating__score {
    font-size: 23px !important;

    line-height: 1 !important;

    font-weight: 800 !important;

    color: #17181c !important;
}


.cm-side-rating__stars {
    display: flex !important;

    align-items: center !important;

    gap: 2px !important;
}


.cm-side-star {
    font-size: 15px !important;

    line-height: 1 !important;
}


.cm-side-star.is-filled {
    color: #f4b400 !important;
}


.cm-side-star.is-empty {
    color: #d9d9dd !important;
}


.cm-side-rating__reviews {
    display: inline-block !important;

    margin-top: 8px !important;

    color: #777 !important;

    font-size: 12px !important;

    font-weight: 600 !important;

    text-decoration: none !important;
}


.cm-side-rating__reviews:hover {
    color: #111 !important;
}


/* --------------------------------------------------------------------------
   SIDE HEADINGS
   -------------------------------------------------------------------------- */

.cm-side-card__heading {
    margin-bottom: 13px !important;

    color: #15171c !important;

    font-size: 14px !important;

    font-weight: 800 !important;
}


/* --------------------------------------------------------------------------
   PRODUCT INFORMATION
   -------------------------------------------------------------------------- */

.cm-product-info-list {
    display: flex !important;

    flex-direction: column !important;

    gap: 10px !important;
}


.cm-product-info-row {
    display: flex !important;

    align-items: flex-start !important;

    justify-content: space-between !important;

    gap: 12px !important;

    padding-bottom: 10px !important;

    border-bottom: 1px solid #f0f0f2 !important;
}


.cm-product-info-row:last-child {
    padding-bottom: 0 !important;

    border-bottom: 0 !important;
}


.cm-product-info-label {
    flex: 0 0 auto !important;

    color: #87878d !important;

    font-size: 11px !important;

    font-weight: 700 !important;
}


.cm-product-info-value {
    color: #222329 !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    text-align: right !important;

    overflow-wrap: anywhere !important;
}


.cm-product-info-empty {
    color: #777 !important;

    font-size: 12px !important;

    line-height: 1.5 !important;
}


/* --------------------------------------------------------------------------
   SECURE CHECKOUT
   -------------------------------------------------------------------------- */

.cm-secure-card {
    display: flex !important;

    flex-direction: column !important;

    gap: 11px !important;
}


.cm-secure-card .cm-side-card__heading {
    margin-bottom: 2px !important;
}


.cm-secure-item {
    display: flex !important;

    align-items: center !important;

    gap: 9px !important;

    color: #34353a !important;

    font-size: 12px !important;

    font-weight: 600 !important;

    line-height: 1.35 !important;
}


.cm-secure-icon {
    width: 30px !important;
    height: 30px !important;

    flex: 0 0 30px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    border-radius: 8px !important;

    background: #f8f6ff !important;

    color: #5c4bdb !important;
}


/* --------------------------------------------------------------------------
   PAYMENTS
   -------------------------------------------------------------------------- */

.cm-payment-list {
    display: flex !important;

    flex-direction: column !important;

    gap: 8px !important;
}


.cm-payment-chip {
    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    min-height: 39px !important;

    padding: 7px 9px !important;

    border: 1px solid #ececef !important;

    border-radius: 9px !important;

    background: #fafafa !important;

    color: #36373c !important;

    font-size: 12px !important;

    font-weight: 700 !important;
}


.cm-payment-chip__icon {
    width: 27px !important;
    height: 27px !important;

    flex: 0 0 27px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    border-radius: 7px !important;

    background: #fff !important;

    border: 1px solid #e8e8eb !important;

    color: #333 !important;

    font-size: 12px !important;

    font-weight: 800 !important;
}


/* --------------------------------------------------------------------------
   TABLET
   -------------------------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1024px) {

   .single-product div.product .summary.entry-summary {
    display: flex !important;
    width: 100% !important;
       gap: 22px !important;
   }


    .tm-sale-price {
        font-size: 25px !important;
    }


    .cm-size-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

    .summary-product-layout {
        display: block !important;
    }


    .summary-product-side {
        margin-top: 25px !important;
    }


    .tm-price-row {
        gap: 7px !important;
    }


    .tm-sale-price {
        font-size: 26px !important;
    }


    .tm-timer-wrapper {
        align-items: flex-start !important;

        flex-direction: column !important;

        gap: 8px !important;
    }


    .tm-timer-boxes {
        width: 100% !important;

        justify-content: flex-start !important;
    }


    .cm-size-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .cm-side-card {
        padding: 15px !important;
    }
}




/* =========================================================
   CAMFORT MALL - COMPACT VARIATION UI
   ========================================================= */

/* Keep native WooCommerce variation engine alive,
   but visually hide its controls */
html.cm-variation-js-ready .single-product form.cm-native-variation-form .variations {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.single-product form.cm-native-variation-form .single_variation_wrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}

/* Main custom UI */
.cm-custom-variation-ui {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 2px 0 8px !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Individual rows */
.cm-variation-row {
    width: 100% !important;
    min-width: 0 !important;

    margin: 0 0 6px !important;
    padding: 0 !important;
}

.cm-variation-row:last-child {
    margin-bottom: 0 !important;
}

/* Extremely compact labels */
.cm-variation-label {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;

    height: 15px !important;
    min-height: 15px !important;

    margin: 0 0 3px !important;
    padding: 0 !important;

    line-height: 1 !important;
}

.cm-variation-label strong {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #222 !important;
}

.cm-variation-current {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #777 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* =========================================================
   HORIZONTAL SCROLL CONTAINERS
   ========================================================= */

.cm-color-options,
.cm-size-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 5px !important;

    margin: 0 !important;
    padding: 0 0 2px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.cm-color-options::-webkit-scrollbar,
.cm-size-options::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Never allow buttons to shrink */
.cm-color-option,
.cm-size-option {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;

    box-sizing: border-box !important;

    margin: 0 !important;
}

/* =========================================================
   COLOR
   ========================================================= */

.cm-color-option {
    display: inline-flex !important;
    align-items: center !important;

    gap: 5px !important;

    height: 30px !important;
    min-height: 30px !important;

    padding: 2px 7px 2px 3px !important;

    border: 1px solid #dedede !important;
    border-radius: 6px !important;

    background: #fff !important;

    color: #222 !important;

    font-size: 10px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    pointer-events: auto !important;

    box-shadow: none !important;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease !important;
}

.cm-color-option:hover {
    border-color: #bdbdbd !important;
}

.cm-color-option.is-selected {
    border-color: #111 !important;
    background: #f7f7f7 !important;
    box-shadow: 0 0 0 1px #111 inset !important;
}

.cm-color-option__swatch {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;

    display: block !important;

    border-radius: 4px !important;
    border: 1px solid rgba(0,0,0,.12) !important;

    box-sizing: border-box !important;
}

.cm-color-option__label {
    line-height: 1 !important;
}

/* =========================================================
   SIZE
   ========================================================= */

.cm-size-option {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 42px !important;
    height: 30px !important;
    min-height: 30px !important;

    padding: 0 8px !important;

    border: 1px solid #dedede !important;
    border-radius: 6px !important;

    background: #fff !important;
    color: #222 !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    cursor: pointer !important;
    pointer-events: auto !important;

    box-shadow: none !important;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease !important;
}

.cm-size-option:hover {
    border-color: #bdbdbd !important;
}

.cm-size-option.is-selected {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cm-custom-variation-ui {
        margin: 1px 0 7px !important;
    }

    .cm-variation-row {
        margin-bottom: 5px !important;
    }

    .cm-variation-label {
        height: 14px !important;
        min-height: 14px !important;
        margin-bottom: 3px !important;
    }

    .cm-variation-label strong {
        font-size: 10px !important;
    }

    .cm-variation-current {
        font-size: 9px !important;
    }

    .cm-color-options,
    .cm-size-options {
        gap: 4px !important;
        padding-bottom: 1px !important;
    }

    .cm-color-option {
        height: 28px !important;
        min-height: 28px !important;
        padding: 2px 6px 2px 3px !important;
        font-size: 9px !important;
    }

    .cm-color-option__swatch {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }

    .cm-size-option {
        height: 28px !important;
        min-height: 28px !important;
        min-width: 40px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }
}




/* =========================================================
   CAMFORT MALL - RESPONSIVE SALE TIMER
   ========================================================= */

.tm-timer-wrapper {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;

    gap: 8px !important;

    margin: 10px 0 15px !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

.tm-timer-label {
    display: inline-flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    gap: 5px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
}

.tm-timer-label svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
}

.tm-timer-boxes {
    display: flex !important;
    align-items: center !important;

    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;

    gap: 5px !important;
}

.tm-time-box {
    flex: 1 1 0 !important;
    min-width: 0 !important;

    height: 61px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 5px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 9px !important;

    text-align: center !important;
}

.tm-digit {
    display: block !important;

    font-size: clamp(20px, 2.4vw, 24px) !important;
    font-weight: 800 !important;

    line-height: 1 !important;
}

.tm-unit {
    display: block !important;

    margin-top: 4px !important;

    font-size: 8px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
    letter-spacing: 0.03em !important;
}

.tm-colon {
    flex: 0 0 auto !important;

    font-size: 18px !important;
    font-weight: 800 !important;

    line-height: 1 !important;
}

/* Smaller desktop / tablet:
   hide "Sale ends in:" but keep the clock icon */
@media (max-width: 1100px) {

    .tm-timer-wrapper {
        gap: 6px !important;
    }

    .tm-timer-label span {
        display: none !important;
    }

    .tm-timer-label {
        width: 19px !important;
        min-width: 19px !important;
    }

    .tm-timer-boxes {
        gap: 4px !important;
    }

    .tm-time-box {
        height: 60px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .tm-timer-wrapper {
        width: 100% !important;
        margin: 9px 0 13px !important;
        gap: 5px !important;
    }

    .tm-timer-label {
        width: 18px !important;
        min-width: 18px !important;
    }

    .tm-timer-label svg {
        width: 16px !important;
        height: 16px !important;
    }

    .tm-timer-boxes {
        width: 100% !important;
        gap: 3px !important;
    }

    .tm-time-box {
        height: 57px !important;
        border-radius: 8px !important;
        padding: 6px 3px !important;
    }

    .tm-digit {
        font-size: clamp(19px, 7vw, 23px) !important;
    }

    .tm-unit {
        margin-top: 4px !important;
        font-size: 7px !important;
    }

    .tm-colon {
        font-size: 16px !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {

    .tm-timer-label {
        display: none !important;
    }

    .tm-timer-boxes {
        width: 100% !important;
        gap: 2px !important;
    }

    .tm-time-box {
        height: 55px !important;
        padding: 5px 2px !important;
    }

    .tm-digit {
        font-size: 19px !important;
    }

    .tm-unit {
        font-size: 6.5px !important;
    }

    .tm-colon {
        font-size: 14px !important;
    }
}

/* ---------------------------------------------------------------------
   Fix: the clamp() above sizes .tm-digit off the VIEWPORT (vw), so it
   doesn't actually respond when the SUMMARY COLUMN narrows without the
   viewport itself changing (e.g. a wider gallery, more sidebar content).
   Container query units (cqw) size off the column's own width instead —
   .summary-product-main declares itself a query container above for
   exactly this. Scoped to 601px+ so it can't interfere with the
   already-tuned mobile breakpoints above; wrapped in @supports so
   browsers without container query support just keep the vw-based
   sizing already set above. --------------------------------------- */
@media (min-width: 601px) {
    @supports (container-type: inline-size) {
        .tm-digit {
            font-size: clamp(14px, 6.5cqw, 24px) !important;
        }

        .tm-unit {
            font-size: clamp(6.5px, 2.2cqw, 8px) !important;
        }

        .tm-colon {
            font-size: clamp(12px, 4.5cqw, 18px) !important;
        }
    }
}



.cm-color-option {
    /* ...keep everything else the same, just change these two... */
    border: 1px solid var(--color-border-strong) !important;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
}

.cm-color-option:hover {
    border-color: var(--color-primary-hover) !important;
}

.cm-color-option.is-selected {
    border-color: var(--color-primary) !important;
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-white)) !important;
    box-shadow: 0 0 0 1px var(--color-primary) inset !important;
}





.cm-size-option {
    border: 1px solid var(--color-border-strong) !important;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
}

.cm-size-option:hover {
    border-color: var(--color-primary-hover) !important;
}

.cm-size-option.is-selected {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}




.cm-side-card > summary.cm-side-card__heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    cursor: pointer !important;
    list-style: none !important;
    margin-bottom: 0 !important;
}

.cm-side-card > summary.cm-side-card__heading::-webkit-details-marker,
.cm-side-card > summary.cm-side-card__heading::marker {
    display: none !important;
    content: none !important;
}

.cm-side-card__chevron {
    flex: 0 0 auto !important;
    color: var(--color-text-muted) !important;
    transition: transform 0.2s ease !important;
}

.cm-side-card[open] > summary.cm-side-card__heading {
    margin-bottom: 13px !important;
}

.cm-side-card[open] .cm-side-card__chevron {
    transform: rotate(180deg) !important;
}



.tm-timer-wrapper {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;

    gap: 8px !important;

    margin: 10px 0 15px !important;
    padding: 10px 14px !important;

    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 10px !important;

    box-sizing: border-box !important;
}



@media (max-width: 914px) {
  .single-product div.product{
    display: flex !important;
    flex-direction: column !important; 
  }
}

/* ================================================================
   SOLACE WIGS — CUSTOM VARIATION BUTTON INTEGRATION (2026-10-12)
   ================================================================ */
.cm-custom-variation-ui[hidden],
.cm-variation-reset[hidden] { display: none !important; }
.cm-other-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.cm-other-option {
    min-height: 34px;
    border: 1px solid var(--color-border-strong, #ddd) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #222 !important;
    font: inherit;
    padding: 5px 12px !important;
    cursor: pointer;
}
.cm-other-option.is-selected {
    background: var(--color-primary, #40205f) !important;
    border-color: var(--color-primary, #40205f) !important;
    color: #fff !important;
}
.cm-custom-variation-ui button.cm-variation-option:disabled {
    opacity: .4 !important;
    cursor: not-allowed !important;
}
.cm-custom-variation-ui .cm-variation-reset {
    margin: 8px 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--color-primary, #40205f) !important;
    font-size: 12px !important;
    text-decoration: underline;
    cursor: pointer;
}
.cm-variation-option:focus-visible, .cm-variation-reset:focus-visible {
    outline: 2px solid var(--color-primary, #40205f) !important;
    outline-offset: 2px;
}


/* ===========================================================================
   SOLACE WIGS | SLEEK HORIZONTAL SCROLLBAR FOR VARIATIONS
   Added 2026-10-12 — stylesheet-only change; WooCommerce JS is unchanged.
   =========================================================================== */
.single-product .cm-custom-variation-ui .cm-color-options,
.single-product .cm-custom-variation-ui .cm-size-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 10px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin !important;
    scrollbar-color: #c7c1cb transparent !important;
}

/* Keep each option's full width instead of squeezing or clipping it. */
.single-product .cm-custom-variation-ui .cm-color-options > button,
.single-product .cm-custom-variation-ui .cm-size-options > button {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

/* Chrome / Safari / Edge where WebKit scrollbar styling applies. */
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
    height: 6px !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-track,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 999px !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-thumb,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-thumb {
    background: #c7c1cb !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-thumb:hover,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-thumb:hover {
    background: #958a9f !important;
}

/* Mobile retains native swiping with a less prominent rail. */
@media (max-width: 767px) {
    .single-product .cm-custom-variation-ui .cm-color-options,
    .single-product .cm-custom-variation-ui .cm-size-options {
        padding-bottom: 6px !important;
    }
}







/* ===========================================================================
   SOLACE WIGS | SLEEK HORIZONTAL SCROLLBAR FOR VARIATIONS
   Added 2026-10-12 — stylesheet-only change; WooCommerce JS is unchanged.
   =========================================================================== */
.single-product .cm-custom-variation-ui .cm-color-options,
.single-product .cm-custom-variation-ui .cm-size-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 10px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin !important;
    scrollbar-color: #c7c1cb transparent !important;
}

/* Keep each option's full width instead of squeezing or clipping it. */
.single-product .cm-custom-variation-ui .cm-color-options > button,
.single-product .cm-custom-variation-ui .cm-size-options > button {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

/* Chrome / Safari / Edge where WebKit scrollbar styling applies. */
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
    height: 6px !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-track,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 999px !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-thumb,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-thumb {
    background: #c7c1cb !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
}
.single-product .cm-custom-variation-ui .cm-color-options::-webkit-scrollbar-thumb:hover,
.single-product .cm-custom-variation-ui .cm-size-options::-webkit-scrollbar-thumb:hover {
    background: #958a9f !important;
}

/* Mobile retains native swiping with a less prominent rail. */
@media (max-width: 767px) {
    .single-product .cm-custom-variation-ui .cm-color-options,
    .single-product .cm-custom-variation-ui .cm-size-options {
        padding-bottom: 6px !important;
    }
}

