/* ===================================================================
   Product Showcase — Elementor Widget Frontend CSS
   Interactive tabbed product display with skew + particle background
   =================================================================== */

/* ===== Scoped Reset (override WoodMart theme) ===== */
.ps-wrap,
.ps-wrap *,
.ps-wrap *::before,
.ps-wrap *::after {
  box-sizing: border-box !important;
}

/* Kill ALL theme list styles at every specificity level */
.ps-wrap ul:not(.ps-cat),
.ps-wrap ol {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* .ps-cat is a <ul> — reset list but preserve padding for layout */
.ps-wrap ul.ps-cat,
ul.ps-cat,
ul.ps-cat.ps-mouse {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

.ps-wrap li,
.ps-wrap .ps-sub-item,
.ps-wrap .ps-tabs li,
.ps-wrap ul > li,
li.ps-sub-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

/* Kill ALL theme ::before bullets — ultra high specificity */
.ps-wrap li::before,
.ps-wrap .ps-sub-item::before,
.ps-wrap .ps-cat > li::before,
.ps-wrap ul.ps-cat li::before,
.ps-wrap .ps-tabs li::before,
.ps-wrap .ps-tabs ul li::before,
li.ps-sub-item::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
}

/* Also kill ::before on the ul itself */
.ps-wrap ul::before,
.ps-wrap ul.ps-cat::before {
  display: none !important;
  content: none !important;
}

.ps-wrap a,
.ps-wrap a:hover,
.ps-wrap a:focus {
  text-decoration: none !important;
}

/* ===== Stacking Context ===== */
.ps-wrap {
  isolation: isolate;
  position: relative;
}

/* ===== Row Container ===== */
.ps-row {
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* ===== Skewed Background ===== */
.ps-skew {
  transform: skew(0, -2.4deg);
  z-index: 1000;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform-origin: left top;
  background-color: #fff;
}

/* ===== Particle Canvas Container ===== */
.ps-canvas-box {
  width: 100%;
  height: 500px;
  z-index: 1;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  background: #fff;
}

.ps-canvas-box canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== Main Content ===== */
.ps-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 36px 20px;
  position: relative;
  z-index: 2000;
}

.ps-center {
  position: relative;
}

/* ===== Connecting Line Canvas ===== */
.ps-cv {
  position: absolute;
  z-index: 1001;
  top: 0;
  left: 0;
  transition: all 0.3s cubic-bezier(0.7, 0.01, 0.3, 1);
  opacity: 1;
  pointer-events: none;
}

/* ===== Category Tabs ===== */
.ps-tabs {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin: 70px 0 30px 0 !important;
  position: relative;
  z-index: 1005;
}

.ps-wrap .ps-cat {
  padding-top: 45px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  position: relative !important;
  min-width: 160px;
  cursor: pointer;
  display: block !important;
}

/* Category name via data-name attribute */
.ps-wrap .ps-cat::after {
  content: attr(data-name) !important;
  position: absolute !important;
  display: block !important;
  top: 0 !important;
  left: 19px !important;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  transition: all 0.3s cubic-bezier(0.7, 0.01, 0.3, 1);
}

.ps-wrap .ps-cat:hover::after,
.ps-wrap .ps-cat.active::after {
  color: #337aff;
}

/* ===== Sub-Product Items ===== */
.ps-wrap .ps-sub-item {
  padding-left: 20px !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  font-size: 14px;
  position: relative !important;
  height: 28px !important;
  line-height: 28px !important;
  display: block !important;
}

.ps-wrap .ps-sub-link {
  display: inline-block !important;
  width: 100%;
  font-size: 14px;
  color: #999;
  height: 28px;
  line-height: 28px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ps-wrap .ps-sub-link:hover {
  color: #337aff;
}

/* Blue dot before each sub-item */
.ps-wrap .ps-sub-item::after {
  content: '' !important;
  position: absolute !important;
  display: block !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  left: 4px !important;
  top: 12px !important;
  background-color: #337aff !important;
}

/* ===== Image Area ===== */
.ps-img-box {
  margin: 60px 0 0 0;
}

.ps-img-area {
  text-align: center;
  position: relative;
  min-height: 400px;
}

/* Product Image */
.ps-car {
  display: none;
  transition: all 0.3s cubic-bezier(0.7, 0.01, 0.3, 1);
  opacity: 1;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  width: 680px;
  max-width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
}

.ps-car.show {
  display: inline-block;
  opacity: 1;
  transform: rotateY(0deg);
}

/* 3D Switch Animations */
.ps-car.ps-moveOut {
  transform: rotateY(30deg) !important;
  opacity: 0 !important;
}

.ps-car.ps-moveIn {
  transform: rotateY(-30deg);
  display: inline-block;
  opacity: 0;
}


/* ===== Responsive ===== */

/* Large Desktop ≤ 1440px */
@media screen and (max-width: 1440px) {
  .ps-main {
    max-width: 1100px;
  }
}

/* Small Desktop ≤ 1280px */
@media screen and (max-width: 1280px) {
  .ps-main {
    max-width: 960px;
  }

  .ps-car {
    width: 600px;
    height: 380px;
  }

  .ps-img-area {
    min-height: 380px;
  }
}

/* Tablet Landscape ≤ 1024px */
@media screen and (max-width: 1024px) {
  .ps-main {
    max-width: 90%;
    padding: 0 20px 32px 20px;
  }

  .ps-tabs {
    margin-top: 50px !important;
  }

  .ps-wrap .ps-cat::after {
    font-size: 16px;
  }

  .ps-wrap .ps-sub-link {
    font-size: 13px;
  }

  .ps-car {
    width: 560px;
    height: 360px;
  }

  .ps-img-area {
    min-height: 360px;
  }

  .ps-img-box {
    margin-top: 40px;
  }
}

/* Tablet Portrait ≤ 800px — switch to mobile layout */
@media screen and (max-width: 800px) {
  .ps-main {
    padding: 0 4% 28px 4%;
  }

  .ps-tabs {
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    gap: 20px !important;
  }

  .ps-wrap .ps-cat {
    width: calc(50% - 10px) !important;
    min-width: auto !important;
    margin: 0 !important;
  }

  .ps-wrap .ps-cat::after {
    left: 0 !important;
    font-size: 15px;
  }

  .ps-wrap .ps-sub-link {
    font-size: 13px;
  }

  /* Hide images on mobile */
  .ps-img-box {
    display: none !important;
  }

  /* Hide connecting line canvas */
  .ps-cv {
    display: none !important;
  }

  .ps-canvas-box {
    height: 350px;
  }
}

/* Large Phone ≤ 640px */
@media screen and (max-width: 640px) {
  .ps-main {
    padding: 0 4% 24px 4%;
  }

  .ps-wrap .ps-cat {
    width: calc(50% - 10px) !important;
    padding-top: 36px !important;
    margin: 0 !important;
  }

  .ps-wrap .ps-cat::after {
    font-size: 14px;
  }

  .ps-wrap .ps-sub-link {
    font-size: 12px;
    height: 26px;
    line-height: 26px;
  }

  .ps-wrap .ps-sub-item {
    height: 26px !important;
    line-height: 26px !important;
  }
}

/* Phone ≤ 480px */
@media screen and (max-width: 480px) {
  .ps-main {
    padding: 0 4% 20px 4%;
  }

  .ps-wrap .ps-cat {
    width: calc(50% - 10px) !important;
    margin: 0 !important;
    padding-top: 32px !important;
  }

  .ps-wrap .ps-cat::after {
    font-size: 14px;
  }

  .ps-wrap .ps-sub-link {
    font-size: 12px;
    height: 24px;
    line-height: 24px;
  }

  .ps-wrap .ps-sub-item {
    height: 24px !important;
    line-height: 24px !important;
    padding-left: 16px !important;
  }

  .ps-wrap .ps-sub-item::after {
    width: 3px !important;
    height: 3px !important;
    top: 9px !important;
  }

  .ps-canvas-box {
    height: 250px;
  }
}

/* Small Phone ≤ 375px */
@media screen and (max-width: 375px) {
  .ps-main {
    padding: 0 3.5% 16px 3.5%;
  }

  .ps-wrap .ps-cat::after {
    font-size: 13px;
  }

  .ps-wrap .ps-sub-link {
    font-size: 11px;
  }
}

