/* Force smaller hero height on Desktop screens */
@media all and (min-width: 992px) {
  div.zphero, 
  div.zphero-slider, 
  .zphero [data-banner-container] {
    height: 450px !important;
    min-height: 450px !important;
  }
}

/* Force smaller hero height on Mobile screens */
@media all and (max-width: 767px) {
  div.zphero, 
  div.zphero-slider, 
  .zphero [data-banner-container] {
    height: 250px !important;
    min-height: 250px !important;
  }
}

/* ============================================================
   VITRICART — Essentials Row: horizontal scroll + arrows + uniform tiles
   Target row: div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"]
   Paste this entire file into: Custom CSS panel
   (The companion JS for the arrow buttons goes separately into
   Site Header/Footer Code — see previous message for that script.)
   ============================================================ */

/* --- 1. Row: horizontal scroll, centered-when-fits / left-aligned-when-overflowing --- */
html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;   /* fallback for older browsers */
  justify-content: safe center !important;  /* centers when it fits, avoids clipping when it overflows */
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

/* --- 2. Columns: fixed widths per breakpoint (mobile / tablet / desktop) --- */
html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow > div.zpelem-col {
  flex: 0 0 auto !important;
  width: 130px !important;
  max-width: 130px !important;
  scroll-snap-align: start;
}

@media all and (min-width: 768px) {
  html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow > div.zpelem-col {
    width: 170px !important;
    max-width: 170px !important;
  }
}

@media all and (min-width: 992px) {
  html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow > div.zpelem-col {
    width: 190px !important;
    max-width: 190px !important;
  }
}

/* --- 3. Hide the native scrollbar for a cleaner look --- */
html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow::-webkit-scrollbar {
  display: none;
}
html body div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"].zprow {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* --- 4. Images: uniform square, cropped (not stretched/squished) --- */
div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] figure.zpimage-data-ref .zpimage-anchor {
  aspect-ratio: 1 / 1 !important;
  display: block !important;
}
div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] figure.zpimage-data-ref .zpimage-anchor img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* --- 5. Captions: single line, fixed height, ellipsis truncation --- */
div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] .zpimage-caption {
  height: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] .zpimage-caption-content {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  padding: 0 8px !important;
  max-width: 100% !important;
  font-size: clamp(10px, 2.2vw, 14px) !important; /* scales uniformly with viewport width */
}

/* --- 6. Scroll arrows (buttons injected by the companion JS) --- */
.essentials-scroll-wrapper {
  position: relative;
}

.essentials-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.2s ease;
}
.essentials-scroll-arrow:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.essentials-scroll-arrow.essentials-arrow-left { left: 4px; }
.essentials-scroll-arrow.essentials-arrow-right { right: 4px; }
.essentials-scroll-arrow svg { width: 16px; height: 16px; color: #253D6D; }
.essentials-scroll-arrow.essentials-arrow-hidden { display: none; }

/* Mobile: smaller arrow buttons, repositioned over the image (not the caption) */
@media all and (max-width: 767px) {
  .essentials-scroll-arrow {
    width: 26px;
    height: 26px;
    top: 42% !important;
  }
  .essentials-scroll-arrow svg {
    width: 12px;
    height: 12px;
  }
  .essentials-scroll-arrow.essentials-arrow-left { left: 2px; }
  .essentials-scroll-arrow.essentials-arrow-right { right: 2px; }
}
/* Force caption elements to use the FULL tile width */
div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] .zpimage-caption {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
}

div[data-element-id="elm_vI0WRBTpR02RHdY7d0sTSw"] .zpimage-caption-content {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  letter-spacing: normal !important;
  padding: 0 4px !important;
  font-size: clamp(9px, 2vw, 13px) !important;
}
/* Fix homepage header logo distortion — override the fixed inline width/height */
img[data-zs-logo] {
  width: auto !important;
  height: 80px !important;
  max-width: 400px !important;
  object-fit: contain !important;
}

.theme-logo-parent,
.theme-logo-parent picture {
  overflow: visible !important;
}

/* Fix homepage header logo distortion — override the fixed inline width/height */
img[data-zs-logo] {
  width: auto !important;
  height: 55px !important;
  max-width: 250px !important;
  object-fit: contain !important;
}

.theme-logo-parent,
.theme-logo-parent picture {
  overflow: visible !important;
}
/* ==========================================================================
   VITRICART Product Description Styles
   Recreates the Product Description / Features / Packaging / Summary
   formatting used across the VITRICART catalog.

   HOW TO USE:
   1. In Zoho Commerce, go to Online Store > Design > Edit Theme
      (or Settings > Custom CSS, depending on your plan/theme).
   2. Paste this entire file into the Custom CSS box and save.
   3. In each product's Long Description field, use the simplified
      class-based HTML shown at the bottom of this file instead of
      the long inline-style version — much shorter and easier to edit.
   ========================================================================== */

.vc-desc {
  font-family: Arial, Helvetica, sans-serif;
  color: #343454;
  line-height: 1.55;
  font-size: 14px;
}

.vc-desc p {
  margin: 0 0 14px;
}

.vc-desc h4 {
  font-weight: bold;
  font-size: 15px;
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 4px solid transparent;
}

.vc-desc h4.vc-product-description {
  color: #050E7F;
  border-left-color: #050E7F;
}

.vc-desc h4.vc-features {
  color: #0A31F5;
  border-left-color: #14D4F8;
}

.vc-desc h4.vc-packaging {
  color: #D0083A;
  border-left-color: #D0083A;
}

.vc-desc h4.vc-summary {
  color: #343454;
  border-left-color: #14D4F8;
}

.vc-desc ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.vc-desc ul li {
  margin-bottom: 4px;
}

.vc-desc .vc-summary-box {
  background: #F9C6E0;
  color: #343454;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0;
  font-weight: normal;
}

/* ==========================================================================
   SIMPLIFIED HTML TEMPLATE (paste this per product, replacing the [...]):

<div class="vc-desc">
  <h4 class="vc-product-description">Product Description</h4>
  <p>[product description paragraph]</p>

  <h4 class="vc-features">Features</h4>
  <ul>
    <li>[feature 1]</li>
    <li>[feature 2]</li>
  </ul>

  <h4 class="vc-packaging">Packaging</h4>
  <p>[packaging info]</p>

  <h4 class="vc-summary">Summary</h4>
  <p class="vc-summary-box">[summary sentence]</p>
</div>

   ========================================================================== */

/* ==========================================================================
   VITRICART Product Page Header Restyle
   Targets Zoho Commerce's live theme classes (confirmed from DevTools
   inspection) to recreate the price chip / category chip / status chip /
   italic short-description look on the actual product page header.

   NOTE: SKU is not shown anywhere in this theme's product page DOM, so it
   cannot be added via CSS alone — CSS can only restyle existing content,
   not invent new text. Adding an SKU badge would require a theme/template
   edit (not a stylesheet change) — let me know if you want help with that
   separately.

   Test on one product page after applying — exact class nesting can vary
   slightly by theme version, so minor tweaks may be needed.
   ========================================================================== */

/* Product title */
.theme-product-name h1 {
  color: #050E7F;
  font-weight: bold;
}

/* Cyan divider under the title/price header block */
.theme-product-detail-column .theme-product-name {
  border-bottom: 2px solid #14D4F8;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

/* Price chip */
.theme-product-detail-price-area {
  display: inline-block;
  background: #F9C6E0;
  color: #050E7F;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 14px;
  margin-right: 8px;
}

/* Stock/status chip (shows "Out of stock", "In stock", etc.) */
.theme-prod-stock-details {
  display: inline-block;
  background: #E5F9FD;
  color: #14D4F8;
  border: 1px solid #14D4F8;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Category chip — reuses the immediate category link in the breadcrumb
   (the second-to-last item, just before the product name) */
.theme-breadcrumb-container a:nth-last-child(2) {
  display: inline-block;
  background: #e8eaf7;
  color: #0A31F5;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  text-decoration: none;
}

/* Italic short description, styled like the long-description short intro */
.theme-product-short-description {
  color: #D0083A;
  font-style: italic;
  font-size: 13.5px;
  margin: 10px 0 6px;
}