/**
 * COMPONENT CSS - PANASONIC ACN SERVICE KHÁNH HÒA
 * Tầng 2: Chứa toàn bộ selector phức tạp, hover con, gradients, keyframes, và WooCommerce overrides
 */

/* ==========================================================================
   1. TOPBAR & HEADER WAVE ARCHITECTURE
   ========================================================================== */
.topbar-dark {
  background-color: #1f2427;
  color: #e2e8f0;
}

.topbar-dark a {
  color: #f1f5f9;
  transition: color 0.2s ease;
}

.topbar-dark a:hover {
  color: #f5b300;
}

.topbar-dark svg {
  color: #f5b300;
}

/* Curved Header Wave Banner */
.curved-header-band {
  background: linear-gradient(180deg, #f7b916 0%, #f5b300 60%, #ebb007 100%);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Arched center wave decoration */
.curved-header-band::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 28px;
  background: #ebb007;
  border-radius: 0 0 100px 100px;
  z-index: 10;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1023px) {
  .curved-header-band::after {
    display: none;
  }
}

/* Center Circular Logo Badge */
.center-logo-badge {
  position: relative;
  z-index: 30;
  width: 108px;
  height: 108px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: -16px auto -20px auto;
}

.center-logo-badge:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.center-logo-badge img,
.center-logo-badge svg {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

/* Desktop Navigation Menu Links */
.panasonic-nav .menu-item {
  position: relative;
}

.panasonic-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2427;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.panasonic-nav .menu-item > a:hover,
.panasonic-nav .menu-item.current-menu-item > a {
  color: #000000;
  background-color: rgba(255, 255, 255, 0.28);
}

/* Dropdown Submenu */
.panasonic-nav .has-submenu > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #f1f5f9;
  min-width: 220px;
  z-index: 50;
  animation: fadeInDown 0.2s ease forwards;
}

.panasonic-nav .has-submenu:hover > .sub-menu {
  display: block;
}

.panasonic-nav .sub-menu li a {
  display: block;
  padding: 8px 18px;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.panasonic-nav .sub-menu li a:hover {
  background-color: #fef3c7;
  color: #b45309;
  padding-left: 22px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   2. PARALLELOGRAM & SKEWED YELLOW RIBBONS
   ========================================================================== */
.skew-ribbon-yellow {
  background: #f5b300;
  transform: skewX(-14deg);
  display: inline-block;
  padding: 6px 24px;
  box-shadow: 0 4px 10px rgba(245, 179, 0, 0.35);
}

.skew-ribbon-yellow .ribbon-content {
  transform: skewX(14deg);
  font-weight: 800;
  color: #1f2427;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skew-ribbon-tag {
  background: #f5b300;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1f2427;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(245, 179, 0, 0.25);
}

.skew-ribbon-tag::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid #f5b300;
}

/* ==========================================================================
   3. HERO BANNER & 3D ROOM VISUALS
   ========================================================================== */
.hero-panasonic-section {
  background: radial-gradient(circle at 65% 45%, #fffbeb 0%, #fef3c7 40%, #fde68a 85%, #fbbf24 100%);
  position: relative;
  overflow: hidden;
}

.hero-3d-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 
    0 1px 0 #d97706,
    0 2px 0 #b45309,
    0 3px 0 #92400e,
    0 4px 0 #78350f,
    0 6px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.5px;
}

.hero-room-card {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.hero-room-card:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   4. CATEGORY CIRCLE BADGES (LINH KIỆN - PHỤ KIỆN)
   ========================================================================== */
.cat-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  group: true;
  transition: transform 0.25s ease;
}

.cat-circle-item:hover {
  transform: translateY(-5px);
}

.cat-circle-item .cat-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.25s ease;
}

.cat-circle-item:hover .cat-icon-circle {
  border-color: #f5b300;
  box-shadow: 0 8px 20px rgba(245, 179, 0, 0.28);
  background-color: #fffdf5;
}

.cat-circle-item .cat-title {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  transition: color 0.2s ease;
}

.cat-circle-item:hover .cat-title {
  color: #b45309;
}

/* ==========================================================================
   5. PANASONIC PRODUCT CARD (SẢN PHẨM BÁN CHẠY)
   ========================================================================== */
.panasonic-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.panasonic-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
  border-color: #fde047;
}

/* Top corner badge */
.panasonic-product-card .card-corner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  background: #f5b300;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #1f2427;
  z-index: 5;
}

.panasonic-product-card .card-model-code {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
  z-index: 5;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trust badges row */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px;
  margin-top: 36px;
  border-bottom: 1px dashed #f1f5f9;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
}

.trust-badge-item svg {
  width: 16px;
  height: 16px;
  color: #1f2427;
  margin-bottom: 2px;
}

/* Product image container */
.card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  background: #ffffff;
}

.card-image-box img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.panasonic-product-card:hover .card-image-box img {
  transform: scale(1.08);
}

/* Title & Price */
.card-content-box {
  padding: 14px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.card-product-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color 0.2s ease;
}

.panasonic-product-card:hover .card-product-title {
  color: #b45309;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-price-sale {
  color: #ca8a04;
  font-size: 1.125rem;
  font-weight: 900;
}

.card-price-regular {
  color: #94a3b8;
  font-size: 0.875rem;
  text-decoration: line-through;
  font-weight: 500;
}

/* Mua ngay button */
.btn-buy-now {
  background: #f5b300;
  color: #1f2427;
  font-weight: 800;
  font-size: 0.9375rem;
  padding: 10px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-buy-now:hover {
  background: #d99c00;
  box-shadow: 0 4px 12px rgba(245, 179, 0, 0.4);
}

/* ==========================================================================
   6. EXTENDED WARRANTY PROGRAM (CHƯƠNG TRÌNH BẢO HÀNH MỞ RỘNG)
   ========================================================================== */
.warranty-program-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.warranty-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.warranty-feature-card:hover {
  background: #ffffff;
  border-color: #f5b300;
  box-shadow: 0 8px 24px rgba(245, 179, 0, 0.15);
  transform: translateY(-4px);
}

.warranty-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* CTA Ribbon Bar */
.cta-yellow-bar {
  background: #f5b300;
  transform: skewX(-12deg);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(245, 179, 0, 0.3);
}

.cta-yellow-bar .cta-content {
  transform: skewX(12deg);
}

/* ==========================================================================
   7. SERVICES CARDS (DỊCH VỤ CHÚNG TÔI)
   ========================================================================== */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.service-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-box img {
  transform: scale(1.08);
}

.service-title-box {
  padding: 16px;
  text-align: center;
  background: #ffffff;
}

.service-title-box h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1e293b;
  transition: color 0.2s ease;
}

.service-card:hover .service-title-box h3 {
  color: #b45309;
}

/* ==========================================================================
   8. ABOUT PAGE OVERLAPPING COLLAGE
   ========================================================================== */
.about-collage-container {
  position: relative;
  padding: 20px;
}

.about-collage-primary {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.about-collage-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 4px solid #f5b300;
  border-radius: 16px;
  z-index: 0;
  transform: translate(14px, 14px);
}

/* ==========================================================================
   9. FLOATING NEWSLETTER CARD & FOOTER
   ========================================================================== */
.floating-newsletter-card {
  background: #f5b300;
  border-radius: 10px;
  padding: 24px;
  color: #1f2427;
  position: relative;
  box-shadow: 0 10px 25px rgba(245, 179, 0, 0.25);
  margin-top: -24px;
}

.floating-newsletter-card .card-fold-ribbon {
  position: absolute;
  top: -8px;
  right: 16px;
  background: #e0a300;
  width: 32px;
  height: 16px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.site-footer {
  background-color: #1f2427;
}

.site-footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #f5b300;
}

.footer-bottom-yellow {
  background-color: #f5b300;
  color: #1f2427;
  font-weight: 600;
}

/* ==========================================================================
   10. MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 999;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.is-active {
  right: 0;
}

/* Submenu toggle in mobile */
.mobile-menu-list .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-list .sub-menu {
  width: 100%;
  padding-left: 16px;
  display: none;
}

.mobile-menu-list .sub-menu.is-open {
  display: block;
}

/* ==========================================================================
   11. WOOCOMMERCE FORM & CHECKOUT OVERRIDES
   ========================================================================== */
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: #f5b300 !important;
  color: #1f2427 !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
}

.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #d99c00 !important;
}

.woocommerce-price-amount {
  color: #ca8a04;
  font-weight: 800;
}

.woocommerce div.product span.price,
.woocommerce div.product p.price {
  color: #ca8a04;
  font-size: 1.5rem;
  font-weight: 900;
}
