/* ==============================================
   BUCKSSAUCE-STYLE PRODUCT ANIMATIONS
   ============================================== */

/* =============================================
   1. SHOP PAGE - FULL PANEL PRODUCT CARDS
   ============================================= */
.bs-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.2vw;
  padding: 2vw 2.5vw;
}

.bs-product-panel {
  position: relative;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 1.2vw;
  overflow: hidden;
  min-height: 75vh;
  flex: 1 1 calc(33.333% - 1.2vw);
  max-width: calc(33.333% - 1.2vw);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bs-product-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Panel Content --- */
.bs-panel-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5vw 2vw 0;
  z-index: 2;
}

/* --- Product Title --- */
.bs-panel-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
  padding-top: 1vw;
}

/* --- Tagline (hidden by default, shown on hover) --- */
.bs-panel-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 20px);
  color: var(--black);
  opacity: 0.75;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-top: 1vw;
  transform: translateY(15px);
  transition:
    opacity 0.4s ease 0.05s,
    transform 0.4s ease 0.05s;
}

.bs-product-panel:hover .bs-panel-tagline .bs-panel-category {
  opacity: 1;
  transform: translateY(0);
}

/* --- Product Image Area --- */
.bs-panel-image-area {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  margin-top: 2vw;
  width: calc(100% + 4vw);
  margin-left: -2vw;
  margin-right: -2vw;
}

.bs-panel-image {
  width: 100%;
  max-width: 100%;
  margin: 0;
  /*transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
  position: relative;
  z-index: 3;
  /*transform: translateY(20px);*/
}

.bs-product-panel:hover .bs-panel-image {
  transform: translateY(0);
}

.bs-panel-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* --- Floating Decorative Elements (hidden by default) --- */
.bs-panel-deco {
  position: absolute;
  width: 5vw;
  max-width: 80px;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bs-panel-deco img {
  width: 100%;
  height: auto;
}

.bs-panel-deco.deco-1 {
  top: 45%;
  left: -8%;
  transform: translate(-20px, 10px) rotate(-25deg);
}

.bs-panel-deco.deco-2 {
  top: 35%;
  right: -8%;
  transform: translate(20px, -10px) rotate(20deg);
}

.bs-panel-deco.deco-3 {
  bottom: 20%;
  left: 5%;
  transform: translate(-15px, 15px) rotate(15deg);
}

.bs-product-panel:hover .bs-panel-deco {
  opacity: 1;
}

.bs-product-panel:hover .bs-panel-deco.deco-1 {
  transform: translate(0, 0) rotate(-15deg);
}

.bs-product-panel:hover .bs-panel-deco.deco-2 {
  transform: translate(0, 0) rotate(10deg);
}

.bs-product-panel:hover .bs-panel-deco.deco-3 {
  transform: translate(0, 0) rotate(-5deg);
}

/* --- Action Buttons (always visible) --- */
.bs-panel-actions {
  position: relative;
  margin-top: auto;
  display: flex;
  gap: 0;
  z-index: 10;
}

.bs-panel-btn {
  flex: 1;
  padding: 1.2vw 1vw;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8vw;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.bs-btn-cart {
  background: var(--red);
  color: var(--white);
}

.bs-btn-cart:hover {
  background: var(--red-dark);
  color: var(--white);
}

.bs-btn-view {
  background: var(--white);
  color: var(--red);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.bs-btn-view:hover {
  background: var(--white);
  color: var(--red-dark);
}

.bs-btn-view .arrow-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border: 1px solid var(--red);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.bs-btn-view:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* --- Price Badge (on the panel) --- */
.bs-panel-price {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 22px);
  padding: 0.4vw 1.2vw;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 5;
}

/* --- Category Badge --- */
.bs-panel-category {
  font-family: var(--font-body);
  font-size: clamp(18px, 0.9vw, 20px);
  color: var(--black);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 0.3vw;
}

/* =============================================
   2. HOMEPAGE - PRODUCT SHOWCASE CAROUSEL
   ============================================= */
.product-showcase {
  background: #F4EDE8;
  position: relative;
  overflow: hidden;
  padding: 8vw 0 6vw;
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(249, 25, 20, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* --- Heading --- */
.showcase-heading {
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: 4vw;
}

.showcase-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

.showcase-heading .outline-text {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

/* --- Slide Container --- */
.showcase-slider {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 55vh;
  overflow: hidden;
  padding-bottom: 4vw; /* Prevent drop shadow cutoff */
}

.showcase-slide {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.showcase-slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

/* --- Metadata (Product Number + Name) --- */
.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 4vw;
  margin-bottom: 2vw;
  position: relative;
  z-index: 5;
}

.showcase-counter {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 16px);
  color: rgba(249, 25, 20, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-left: 3vw;
}

.showcase-counter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2vw;
  height: 1px;
  background: rgba(249, 25, 20, 0.3);
}

.showcase-product-name {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 16px);
  color: rgba(249, 25, 20, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-right: 3vw;
}

.showcase-product-name::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 2vw;
  height: 1px;
  background: rgba(249, 25, 20, 0.3);
}

/* --- Visual Area --- */
.showcase-visual {
  position: relative;
  width: 35vw;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.showcase-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #8d4433;
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.4s ease;
}

.showcase-product-img {
  position: relative;
  z-index: 3;
  width: 82%; /* Creates proportional 5% padding as a border */
  height: 82%; /* Creates proportional 5% padding as a border */
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

.showcase-slide.active .showcase-circle,
.showcase-slide.active .showcase-product-img {
  animation: breatheSync 4s ease-in-out infinite;
}

@keyframes breatheSync {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* --- Navigation Arrows --- */
.showcase-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2vw;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.showcase-arrow {
  width: clamp(48px, 4vw, 72px);
  height: clamp(48px, 4vw, 72px);
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: clamp(18px, 1.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.showcase-arrow:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.1);
}

.showcase-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Shop Now Button --- */
.showcase-shop-btn {
  display: block;
  width: fit-content;
  margin: 3vw auto 0;
  padding: 1vw 4vw;
  background: transparent;
  color: var(--black);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--black);
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.showcase-shop-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* =============================================
   3. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .bs-product-panel {
    flex: 1 1 calc(50% - 1.2vw);
    max-width: calc(50% - 1.2vw);
    min-height: 60vh;
  }
}

@media (max-width: 768px) {
  .bs-product-grid {
    gap: 3vw;
    padding: 4vw 4vw;
  }
  .bs-product-panel {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 55vh;
  }
  .bs-panel-title {
    font-size: clamp(28px, 7vw, 44px);
  }
  .bs-panel-image {
    width: 55%;
  }
  .bs-panel-actions {
    transform: translateY(0);
    position: relative;
    margin-top: 1vw;
  }

  .showcase-visual {
    width: 60vw;
  }
  .showcase-heading h2 {
    font-size: clamp(32px, 10vw, 60px);
  }
  .showcase-heading .outline-text {
    font-size: clamp(40px, 13vw, 80px);
  }
  .showcase-meta {
    flex-direction: column;
    gap: 1vw;
    text-align: center;
  }
  .showcase-counter::before,
  .showcase-product-name::after {
    display: none;
  }
  .showcase-counter,
  .showcase-product-name {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .bs-product-panel {
    min-height: 50vh;
  }
  .bs-panel-btn {
    padding: 3.5vw 2vw;
    font-size: 3.5vw;
  }
  .showcase-visual {
    width: 75vw;
  }
  .showcase-arrow {
    width: 40px;
    height: 40px;
  }
}

/* =============================================
   MOBILE VIEW - PRODUCT PANELS
   ============================================= */
@media (max-width: 768px) {
    .bs-product-grid {
        flex-direction: column;
        padding: 5vw 4vw;
        gap: 5vw;
    }

    .bs-product-panel {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-height: auto;
        padding: 0 !important;
    }

    .bs-panel-content {
        padding: 30px 20px 0 !important;
    }

    .bs-panel-title {
        font-size: 30px !important;
        margin-bottom: 5px !important;
    }

    .bs-panel-category {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    .bs-panel-badge {
        font-size: 15px !important;
        padding: 6px 16px !important;
    }

    .bs-panel-image-area {
        margin-left: -20px !important;
        margin-right: -20px !important;
        width: calc(100% + 40px) !important;
        margin-top: 20px !important;
    }

    .bs-panel-image {
        width: 100% !important;
        margin: 0 !important;
    }

    .bs-panel-actions {
        position: relative !important;
        margin: 0 !important;
        width: 100% !important;
        transform: none !important;
    }

    .bs-panel-btn {
        padding: 15px 10px !important;
        font-size: 14px !important;
        flex-direction: column;
        gap: 4px !important;
    }

    .bs-panel-desc {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* Disable the hover-up effect on mobile for better touch experience */
    .bs-product-panel:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }
}
