.showcase-hidden {
  display: none;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.82fr);
  gap: 26px;
  min-height: 330px;
  margin: 6px 0 22px;
  padding: clamp(24px, 4.5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 194, 168, 0.38), transparent 17rem),
    linear-gradient(135deg, #1b1b4f, #4f46d8 52%, #7c3aed);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.hero-eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #dffcf7;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(28px, 4.1vw, 44px);
  line-height: 1.06;
  letter-spacing: -1.3px;
}

.hero-content p {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn {
  padding: 9px 15px;
  font-size: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 460px;
  margin-top: 26px;
}

.hero-stats div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: 21px;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.hero-card-main {
  width: min(290px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 52px rgba(17, 24, 39, 0.24);
  backdrop-filter: blur(18px);
  transform: rotate(3deg);
}

.hero-card-main img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.hero-card-main div {
  display: grid;
  gap: 5px;
  padding: 12px 4px 2px;
}

.hero-card-main span,
.hero-floating-card {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.hero-card-main strong {
  font-size: 17px;
}

.hero-floating-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(12px);
}

.hero-floating-top {
  top: 34px;
  right: 18px;
}

.hero-floating-bottom {
  left: 18px;
  bottom: 38px;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.store-benefits article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(231, 233, 242, 0.86);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.benefit-icon {
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.store-benefits h2 {
  margin: 0 0 5px;
  font-size: 15px;
}

.store-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.social-plugin-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 32px;
  padding: clamp(24px, 3.8vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(231, 233, 242, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 9% 20%, rgba(108, 92, 231, 0.16), transparent 18rem),
    radial-gradient(circle at 92% 18%, rgba(0, 194, 168, 0.14), transparent 17rem),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.social-plugin-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  pointer-events: none;
}

.social-plugin-content,
.social-plugin-card {
  position: relative;
  z-index: 1;
}

.social-plugin-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-plugin-content h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -1.2px;
}

.social-plugin-content p {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.social-plugin-section .hero-eyebrow {
  color: var(--primary);
  border-color: rgba(108, 92, 231, 0.16);
  background: var(--primary-soft);
}

.meta-follow-button,
.meta-plugin-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-top: 22px;
  padding: 13px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #0f5fd0);
  box-shadow: 0 16px 30px rgba(24, 119, 242, 0.28);
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-follow-button:hover,
.meta-plugin-fallback:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(24, 119, 242, 0.36);
}

.meta-follow-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #1877f2;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.social-plugin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 390px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(231, 233, 242, 0.95);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #eef6ff 58%, #eefaf7);
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.1);
}

.social-plugin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(231, 233, 242, 0.9);
}

.social-plugin-card-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-plugin-card-header strong {
  color: #1877f2;
  font-size: 15px;
}

.social-plugin-card .fb-page {
  display: grid !important;
  flex: 1;
  place-items: center;
}

.social-plugin-card .fb-page,
.social-plugin-card .fb-page span,
.social-plugin-card .fb-page iframe {
  max-width: 100% !important;
}

.social-plugin-card .fb-xfbml-parse-ignore {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0;
}

@media (max-width: 820px) {
  .hero-section,
  .social-plugin-section {
    grid-template-columns: 1fr;
  }

  .store-benefits {
    grid-template-columns: 1fr;
  }

  .social-plugin-card {
    min-height: 300px;
  }
}

.page-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  margin: 36px 0 18px;
  letter-spacing: -0.6px;
}

.page-title::before {
  content: "";
  width: 12px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(108, 92, 231, 0.24);
}

section[id] {
  scroll-margin-top: 128px;
}

.cate-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cate-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.cate-item a {
  color: var(--text);
  font-weight: 600;
}

.cate-item:hover,
.cate-item.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.14);
}

.checkout-status-banner {
  position: fixed;
  top: 96px;
  right: max(24px, calc((100vw - 1200px) / 2));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 14px;
  width: min(430px, calc(100vw - 32px));
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(18px);
  animation: checkout-toast-in 0.32s ease both;
}

.checkout-status-icon {
  display: inline-grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.checkout-status-content {
  display: grid;
  gap: 4px;
}

.checkout-status-content strong {
  font-size: 16px;
  line-height: 1.2;
}

.checkout-status-content span {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.82;
}

.checkout-status-banner-success {
  display: flex;
  color: #14532d;
  background: rgba(220, 252, 231, 0.95);
  border-color: #86efac;
}

.checkout-status-banner-success .checkout-status-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.checkout-status-banner-cancel {
  display: flex;
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
  border-color: #fcd34d;
}

.checkout-status-banner-cancel .checkout-status-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.checkout-status-banner-error {
  display: flex;
  color: #7f1d1d;
  background: rgba(254, 226, 226, 0.95);
  border-color: #fca5a5;
}

.checkout-status-banner-error .checkout-status-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes checkout-toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(231, 233, 242, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08), transparent 36%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.34);
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.14);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card > a {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 12px 12px 0;
  border-radius: 18px;
  background: #f3f4f8;
}

.product-card-img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.product-card-name {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.product-card-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 900;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(231, 233, 242, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.product-img-wrap {
  display: grid;
  gap: 14px;
}

.img-swiper {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  background: linear-gradient(135deg, #f5f7ff, #eefaf7);
}

.swiper-container {
  display: flex;
  width: 100%;
}

.swiper-slide {
  min-width: 100%;
  scroll-snap-align: start;
}

.swiper-slide img {
  width: 100%;
  height: min(520px, 58vw);
  min-height: 360px;
  object-fit: cover;
}

.swiper-indicator {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.swiper-indicator img.product-card-img {
  width: 86px;
  height: 86px;
  padding: 4px;
  border: 2px solid rgba(108, 92, 231, 0.32);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.1);
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.indicator-dot.active {
  background: var(--primary);
}

.product-info-wrap {
  align-content: center;
  display: grid;
  gap: 18px;
}

.product-name {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #f59e0b;
  background: #fff7e8;
  font-weight: 800;
}

.rating-count {
  color: var(--muted);
  font-weight: 700;
}

.product-price {
  font-size: 34px;
  color: var(--primary);
  font-weight: 900;
  margin: 0;
}

.product-desc {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcff;
}

.product-desc h3 {
  margin: 0 0 8px;
}

.product-desc p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.product-desc ul {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.product-add-cart {
  width: fit-content;
  min-width: 190px;
  min-height: 48px;
}

@media (max-width: 960px) {
  .nav-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cate {
    justify-content: flex-start;
  }

  .nav-auth-actions {
    flex-wrap: wrap;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 240px;
  }

  .store-benefits {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-status-banner {
    top: 86px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .hero-section {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-floating-card {
    display: none;
  }

  .cart-wrapper {
    width: 100%;
    justify-content: center;
  }

  .cart-dropdown {
    left: 0;
    right: auto;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
