/*
 * sheen-showcase — auto-rotating vertical tabs over a full-width room image,
 * with a title and one product panel per tab.
 *
 * AUTHORING (DA table; label | value rows, then one row per tab):
 *
 *   +------------------------------------------------------------------------------+
 *   | sheen-showcase                                                               |
 *   +------------------------+-----------------------------------------------------+
 *   | Eyebrow                | Perfect wall finish with                            |
 *   | Title                  | Range of sheen levels                               |
 *   | Mobile background      | <image shown behind every tab below 992px>          |
 *   | Auto-advance (seconds) | 5            (0 or empty = no rotation)             |
 *   | Indicator colour       | #255474      (active-tab triangle)                  |
 *   | Panel colour           | #0C2C43      (product panel)                        |
 *   +------+------------+---------------+--------------+-------------+-----------+------------+
 *   | Tab  | Background | Product image | Product name | Description | CTA label | CTA link   |
 *   | Ultra| <1440x600> | <packshot>    | Royale Glitz | An Ultra …  | View details | https://… |
 *   | …one row per tab                                                                        |
 *   +------+------------+---------------+--------------+-------------+-----------+------------+
 *
 * - Every scalar row is optional. Background / product image / CTA are
 *   optional per tab.
 * - VARIANTS: none.
 *
 * Values are the source's computed CSS (www.asianpaints.com
 * .verticaltabscarousel, at 1x); the 992-1439px page scaling there is the
 * site-wide `body { zoom }`, which is not part of this block. The dotted
 * line and arrow are the source's own SVGs (in this folder).
 */

/* the block's own page spacing: with the 40px section margins of this repo
   and the main site, this gives the source's 10px / 50px gap below the
   previous section */
.sheen-showcase-container .sheen-showcase-wrapper {
  max-width: none;
  padding: 0;
}

.sheen-showcase {
  --sheen-showcase-font: "Manrope", sans-serif;
  --sheen-showcase-text: #222;
  --sheen-showcase-on-dark: #fff;
  --sheen-showcase-indicator: #255474;
  --sheen-showcase-panel: #0c2c43;
  --sheen-showcase-mobile-bg: linear-gradient(270deg, #250d06 89.94%, rgb(37 13 6 / 80%));
  --sheen-showcase-cta-hover-bg: #fff7e8;
  --sheen-showcase-cta-focus-bg: #feeecf;
  --sheen-showcase-cta-hover-border: #232426;
  --sheen-showcase-cta-hover-text: #000;

  display: flex;
  margin: 0 15px;
  background: var(--sheen-showcase-mobile-bg);
  color: var(--sheen-showcase-text);
  font-family: var(--sheen-showcase-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
}

.sheen-showcase *,
.sheen-showcase *::before,
.sheen-showcase *::after {
  box-sizing: border-box;
}

.sheen-showcase .sheen-showcase-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 600px;
}

/* --- visual: background, tabs, title (source .left-container) --- */
.sheen-showcase .sheen-showcase-visual {
  position: relative;
  display: flex;
  flex: 100%;
  flex-wrap: wrap;
  height: 100%;
  padding-bottom: 60px;
}

.sheen-showcase .sheen-showcase-backgrounds {
  position: absolute;
  width: 100%;
  height: 600px;
}

.sheen-showcase .sheen-showcase-background[hidden] {
  display: none;
}

.sheen-showcase .sheen-showcase-background img {
  display: block;
  width: 100%;
  height: 100%;
}

.sheen-showcase .sheen-showcase-background,
.sheen-showcase .sheen-showcase-backgrounds picture {
  display: block;
  height: 100%;
}

.sheen-showcase .sheen-showcase-spacer {
  flex: 80%;
}

.sheen-showcase .sheen-showcase-tabs-wrap {
  position: absolute;
  top: 39px;
  right: 17px;
  display: flex;
  flex: 20%;
  justify-content: center;
}

.sheen-showcase .sheen-showcase-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
  margin: 0;
  padding: 44px 0 0;
}

.sheen-showcase .sheen-showcase-tab {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sheen-showcase-on-dark);
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  filter: blur(2px);
}

.sheen-showcase .sheen-showcase-tab:focus-visible {
  outline: 1px solid currentcolor;
}

.sheen-showcase .sheen-showcase-tab.is-active {
  z-index: 2;
  filter: blur(0);
  transition: all 0.5s ease-in-out;
}

/* dotted line from the active tab (sits on the tab's line box) */
.sheen-showcase .sheen-showcase-tab.is-active::before {
  content: url("dotted-line-mob.svg");
  position: absolute;
  right: 0;
  width: 98.212px;
  margin-top: 19px;
  transition: all 0.2s ease-in-out;
}

.sheen-showcase .sheen-showcase-title {
  position: absolute;
  top: 25px;
  right: 16px;
  margin: 0;
  color: var(--sheen-showcase-on-dark);
}

.sheen-showcase .sheen-showcase-title p {
  margin: 0;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: end;
}

.sheen-showcase .sheen-showcase-title h2 {
  margin: 0 0 7px;
  color: inherit;
  font-family: inherit;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

/* --- product panel (source .right-container) --- */
.sheen-showcase .sheen-showcase-panels {
  position: relative;
  display: flex;
  flex: 100%;
  align-items: center;
  margin: -10px 16px 16px;
  border-radius: 8px;
  background: var(--sheen-showcase-panel);
}

.sheen-showcase .sheen-showcase-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 20px 10px;
}

.sheen-showcase .sheen-showcase-panel[hidden] {
  display: none;
}

.sheen-showcase .sheen-showcase-product {
  display: block;
  width: 94px;
  height: 112px;
  margin-bottom: 10px;
}

.sheen-showcase .sheen-showcase-product img {
  display: block;
  width: 100%;
  height: 100%;
}

/* the source's empty "dynamic count" link keeps 22px / 25px below the CTA */
.sheen-showcase .sheen-showcase-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 22px;
  color: var(--sheen-showcase-on-dark);
  text-align: center;
}

.sheen-showcase .sheen-showcase-details h3 {
  margin: 0 0 8px;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 19.2px;
  text-align: center;
}

.sheen-showcase .sheen-showcase-details p {
  margin: 0 0 16px;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 16.5px;
  letter-spacing: 0.33px;
  text-align: center;
}

.sheen-showcase a.sheen-showcase-cta:any-link {
  display: inline-flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  width: fit-content;
  height: 38px;
  padding: 14px 20px;
  border: 1px solid var(--sheen-showcase-on-dark);
  border-radius: 45px;
  color: var(--sheen-showcase-on-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 19.6px;
  text-align: left;
  text-decoration: none;
  text-transform: capitalize;
  cursor: pointer;
}

.sheen-showcase a.sheen-showcase-cta:is(:hover, :focus-visible) {
  border-color: var(--sheen-showcase-cta-hover-border);
  background: var(--sheen-showcase-cta-hover-bg);
  color: var(--sheen-showcase-cta-hover-text);
}

/* the source keeps white text on this cream on mouse focus; dark text here */
.sheen-showcase a.sheen-showcase-cta:focus:not(:hover, :focus-visible) {
  border-color: var(--sheen-showcase-cta-hover-border);
  background: var(--sheen-showcase-cta-focus-bg);
  color: var(--sheen-showcase-cta-hover-text);
}

.sheen-showcase .sheen-showcase-cta-icon {
  display: flex;
}

.sheen-showcase .sheen-showcase-cta-icon::after {
  content: "";
  width: 17px;
  height: 17px;
  background: url("arrow-icon.svg") no-repeat;
  filter: contrast(10000%);
}

.sheen-showcase a.sheen-showcase-cta:is(:hover, :focus-visible, :focus) .sheen-showcase-cta-icon::after {
  filter: invert(1);
}

/* panel contents fade in on each tab change (source fadein 1.2s) */
.sheen-showcase .sheen-showcase-product,
.sheen-showcase .sheen-showcase-details h3,
.sheen-showcase .sheen-showcase-details p,
.sheen-showcase .sheen-showcase-cta {
  animation: sheen-showcase-fadein 1.2s;
}

@keyframes sheen-showcase-fadein {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sheen-showcase .sheen-showcase-product,
  .sheen-showcase .sheen-showcase-details h3,
  .sheen-showcase .sheen-showcase-details p,
  .sheen-showcase .sheen-showcase-cta {
    animation: none;
  }
}

@media (width <= 360px) {
  .sheen-showcase .sheen-showcase-tabs {
    padding-top: 42px;
  }

  .sheen-showcase .sheen-showcase-panels {
    margin: -10px 16px 13px;
  }
}

/* --- desktop --- */
@media (width >= 992px) {
  .sheen-showcase-container .sheen-showcase-wrapper {
    margin-top: 0;
    padding-top: 10px;
  }

  .sheen-showcase {
    margin: 0;
    background: none;
  }

  .sheen-showcase .sheen-showcase-stage {
    flex-direction: row;
  }

  .sheen-showcase .sheen-showcase-visual {
    position: static;
    flex: 70%;
  }

  .sheen-showcase .sheen-showcase-tabs-wrap {
    position: static;
  }

  .sheen-showcase .sheen-showcase-tabs {
    gap: 30px;
    padding-top: 45%;
  }

  .sheen-showcase .sheen-showcase-tab {
    font-size: 20px;
    line-height: 47px;
  }

  .sheen-showcase .sheen-showcase-tab.is-active::before {
    content: url("dotted-line-desk.svg");
    width: auto;
  }

  /* triangle pointing at the panel (fixed at the top of the list, as on the source) */
  .sheen-showcase .sheen-showcase-tab.is-active::after {
    content: "";
    position: absolute;
    top: 10px;
    right: -58px;
    display: block;
    width: 32px;
    height: 32px;
    background: var(--sheen-showcase-indicator);
    clip-path: polygon(72% 49%, 0 0, 0 100%);
  }

  .sheen-showcase .sheen-showcase-title {
    position: relative;
    top: auto;
    right: auto;
    margin: 60px 54px 0;
  }

  .sheen-showcase .sheen-showcase-title p {
    margin: 0 0 14px;
    font-size: 24px;
    text-align: start;
  }

  .sheen-showcase .sheen-showcase-title h2 {
    font-size: 60px;
    line-height: 47px;
  }

  .sheen-showcase .sheen-showcase-panels {
    flex: 30%;
    margin: 30px;
  }

  .sheen-showcase .sheen-showcase-panel {
    padding: 0 20px;
  }

  .sheen-showcase .sheen-showcase-product {
    width: 178px;
    height: 212px;
    margin-bottom: 24px;
  }

  .sheen-showcase .sheen-showcase-details {
    padding-bottom: 25px;
  }

  .sheen-showcase .sheen-showcase-details h3 {
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 28.8px;
  }

  .sheen-showcase .sheen-showcase-details p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.42px;
  }

  .sheen-showcase a.sheen-showcase-cta:any-link {
    gap: 18px;
    line-height: 22px;
  }
}

/* ===== SECOND CTA (optional) START: text link below the CTA, like live "View 13+ Products" ===== */
.sheen-showcase .sheen-showcase-details:has(.sheen-showcase-cta-secondary) {
  padding-bottom: 0;
}

.sheen-showcase a.sheen-showcase-cta-secondary:any-link {
  display: block;
  margin-top: 22px;
  color: var(--sheen-showcase-on-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  animation: sheen-showcase-fadein 1.2s;
}

.sheen-showcase a.sheen-showcase-cta-secondary:hover {
  text-decoration: underline;
}

@media (width >= 992px) {
  .sheen-showcase a.sheen-showcase-cta-secondary:any-link {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheen-showcase a.sheen-showcase-cta-secondary:any-link {
    animation: none;
  }
}

/* ===== SECOND CTA END ===== */

