/*
Theme Name: Top Store Child
Theme URI: https://tepetools.com
Description: Tepetools Design System applied to Top Store WordPress theme
Author: Tepetools
Template: top-store
Version: 1.0.0
*/

.page-wrapper {
  width: 100%;
}

.delivery-block {
  display: flex;
  width: 100%;
  min-height: 500px;
  align-items: center;
  font-family: 'Lato', sans-serif;
  margin-bottom: 2px;
}

.text-side {
  flex: 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  color: #000000;
}

.inner-content {
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.reverse-layout .text-side {
  align-items: flex-end;
}

.image-side {
  flex: 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: auto;
}

.image-side img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.text-side h1 {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  margin: 0 0 15px 0;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000000;
}

.text-side p {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: #888888;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.03em;
}

@media (max-width: 1000px) {
  .image-side {
    flex: 9;
  }
}

@media (max-width: 768px) {
  .delivery-block {
    min-height: auto;
  }
  .text-side {
    flex: 1;
    padding: 20px !important;
  }
  .image-side {
    flex: 1.2;
  }
  .text-side h1 {
    font-size: 14px;
  }
  .text-side p {
    font-size: 9px;
  }
}

.carousel {
  width: 100%;
  padding: 0;
}

.section-header-clean {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 4rem;
}

.section-header-clean h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.2rem;
  color: #000000 !important;
  margin: 0;
  text-transform: uppercase;
}

.carousel-viewport {
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: calc(4 * 280px + 3 * 24px);
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 24px;
}

.deconstructed-card {
  position: relative;
  width: 280px;
  height: 400px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.card-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.card-image {
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-frame {
  z-index: 3;
}

.frame-path {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 1.5;
  stroke-dasharray: 1520;
  stroke-dashoffset: 1520;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-content {
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transform-style: preserve-3d;
}

.fragment-meta {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-line {
  width: 30px;
  height: 2px;
  background: white;
}

.cta-link {
  margin-top: auto;
  text-decoration: none;
  color: white;
  position: relative;
}

.cta-box {
  position: absolute;
  inset: -5px -10px;
  background: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 4px;
}

.cta-text {
  position: relative;
  font-weight: 700;
  opacity: 0;
  transition: 0.4s;
}

.deconstructed-card:hover .frame-path {
  stroke-dashoffset: 0;
  stroke: #ffffff;
}

.deconstructed-card:hover img {
  transform: scale(1.08);
}

.deconstructed-card:hover .cta-box {
  transform: scaleX(1);
}

.deconstructed-card:hover .cta-text {
  opacity: 1;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.carousel-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #000000;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

@media (max-width: 1250px) and (min-width: 769px) {
  .carousel-viewport {
    max-width: calc(3 * 280px + 2 * 24px);
  }
}

@media (max-width: 768px) {
  .carousel-viewport {
    max-width: 100%;
    padding: 0 10px;
    width: 100%;
  }
  .deconstructed-card {
    width: calc(50vw - 22px);
    height: calc((50vw - 22px) * 1.4);
  }
  .carousel-track {
    gap: 12px;
  }
}

.vortex-alpha-99 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #f8f9fa;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#nexus-core-z {
  width: max-content;
}

.orbit-cell {
  width: 200px;
  height: 300px;
  background-position: 50% 50%;
  display: inline-block;
  background-size: cover;
  position: absolute;
  z-index: 1;
  top: 75%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition-property: all !important;
  transition-duration: 0.8s !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.orbit-cell:nth-child(n+3):hover {
  transform: translate(0, -60%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.orbit-cell:nth-child(1),
.orbit-cell:nth-child(2) {
  left: 0;
  top: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-shadow: none;
}

.orbit-cell:nth-child(3) {
  left: 60%;
}
.orbit-cell:nth-child(4) {
  left: calc(60% + 230px);
}
.orbit-cell:nth-child(5) {
  left: calc(60% + 460px);
}
.orbit-cell:nth-child(n+6) {
  left: calc(60% + 690px);
  opacity: 0;
}

.orbit-cell .nebula-txt-box {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 450px;
  text-align: left;
  color: #fff;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transform: translate(0, -50%);
  display: none;
  z-index: 100;
}

.orbit-cell:nth-child(2) .nebula-txt-box {
  display: block;
}

.orbit-cell .stella-title {
  font-size: 60px;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0;
  animation: fx_slide_up 0.8s ease-in-out 0.2s 1 forwards;
}

.orbit-cell .stella-info {
  margin: 15px 0 25px;
  font-size: 20px;
  opacity: 0;
  line-height: 1.6;
  animation: fx_slide_up 0.8s ease-in-out 0.4s 1 forwards;
}

.orbit-cell button {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid #fff;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  animation: fx_slide_up 0.8s ease-in-out 0.6s 1 forwards;
}

@keyframes fx_slide_up {
  from { opacity: 0; transform: translate(0, 50px); filter: blur(20px); }
  to { opacity: 1; transform: translate(0, 0); filter: blur(0); }
}

.pulse-controls {
  position: absolute;
  bottom: 40px;
  left: 100px;
  z-index: 222;
  display: flex;
  gap: 15px;
}

.pulse-controls button {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.pulse-controls button:hover {
  background: #fff;
  color: #000;
}

@media screen and (max-width: 1024px) {
  .orbit-cell { width: 180px; height: 260px; top: 75%; }
  .orbit-cell:nth-child(3) { left: 55%; opacity: 1; }
  .orbit-cell:nth-child(4) { left: calc(55% + 200px); opacity: 1; }
  .orbit-cell:nth-child(n+5) { opacity: 0; left: calc(55% + 400px); }
  .orbit-cell .nebula-txt-box { left: 50px; width: 400px; }
}

@media screen and (max-width: 768px) {
  .orbit-cell { width: 140px; height: 200px; top: 71%; }
  .vortex-alpha-99 { height: 75vh; }
  .orbit-cell:nth-child(3) { left: 15%; opacity: 1; }
  .orbit-cell:nth-child(4) { left: calc(15% + 155px); opacity: 1; }
  .orbit-cell:nth-child(n+5) { opacity: 0; transform: translate(150px, -50%); }
  .orbit-cell .nebula-txt-box { top: 35%; left: 30px; width: 80%; }
  .orbit-cell .stella-title { font-size: 38px; }
  .orbit-cell .stella-info { font-size: 16px; }
  .pulse-controls { left: 50%; transform: translateX(-50%); bottom: 13px; }
}

/* ===== FOOTER SEO TEXT BLOCK ===== */
.sm-footer-seo {
  border-bottom: 1px solid #e1e3e4;
  padding-bottom: 40px;
  margin-bottom: 40px;
}
.sm-footer-seo p {
  font-size: 13px;
  color: #999;
  line-height: 1.9;
  max-width: 900px;
}

/* ===== FOOTER ACCORDION: desktop always open ===== */
@media (min-width: 901px) {
  .sm-accordion-header { cursor: default; }
  .sm-accordion-content { max-height: none !important; overflow: visible !important; }
  .sm-accordion-icon { display: none !important; }
}
/* Mobile: accordion clickable, content collapsed by default */
@media (max-width: 900px) {
  .sm-accordion-header { cursor: pointer; }
  .sm-accordion-icon { display: block !important; }
  .sm-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .sm-footer-section h3 {
    padding: 12px 0;
  }
}
