/* ========================================
   PianoND - Premium Piano House
   Custom Styles (Bootstrap 5 + UnderStrap)
   ======================================== */

/* === CSS Variables === */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-dark: #0f0f1a;
  --secondary: #e8b028;
  --secondary-dark: #d4a01e;
  --secondary-light: #f5d061;
  --accent: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #0f0f1a;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.16);
  --transition: all 0.3s ease;
}

/* === Global === */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
}

.site {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* === Top Bar === */
.top-bar {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(232, 176, 40, 0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.top-bar a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.top-bar a:hover {
  color: var(--secondary);
}

/* === Header / Navbar === */
.navbar-main {
  background: var(--primary) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  padding: 0.6rem 0;
}

/*
 * Sticky navbar - position:sticky
 * Navbar giữ trong flow, top bar hiển thị bình thường
 * Chỉ thêm padding-top cho các trang CẦN THIẾT
 */
#wrapper-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--primary);
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* Các trang có nội dung cần padding để navbar không che */
.page #content,
.page-template-default #content {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* === WooCommerce === */
.woocommerce .page-header {
  background: var(--bg-light);
  padding: 3rem 0;
  text-align: center;
}
.woocommerce .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Product Detail */
.woocommerce div.product {
  margin-bottom: 2rem;
}
.woocommerce div.product div.images {
  margin-bottom: 1.5rem;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  margin-bottom: 0.5rem;
}
.woocommerce div.product div.summary {
  margin-bottom: 1.5rem;
}
.woocommerce div.product div.summary .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #dc2626;
}
.woocommerce div.product div.summary .price del {
  font-size: 1rem;
  color: var(--text-muted);
}
.woocommerce div.product .product_title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  gap: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

/* Add to Cart Button */
.woocommerce .single_add_to_cart_button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
}
.woocommerce .single_add_to_cart_button:hover {
  background: var(--secondary-dark);
  color: var(--primary);
}

/* Quantity Input */
.woocommerce .quantity .qty {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem;
  width: 60px;
}

/* Product Rating */
.woocommerce .star-rating {
  color: #f59e0b;
}

/* Sale Badge */
.woocommerce span.onsale {
  background: #dc2626;
  color: white;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: auto;
  min-width: auto;
  line-height: 1.5;
}

/* Related Products */
.woocommerce .related.products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Product Categories Widget */
.woocommerce .widget_product_categories ul {
  list-style: none;
  padding: 0;
}
.woocommerce .widget_product_categories ul li {
  margin-bottom: 0.25rem;
}
.woocommerce .widget_product_categories ul li a {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.woocommerce .widget_product_categories ul li a:hover {
  color: var(--secondary);
}

/* Price Filter Widget */
.woocommerce .price_slider_wrapper {
  margin-top: 0.5rem;
}
.woocommerce .price_label {
  font-size: 0.85rem;
}

/* WooCommerce Notices */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  border-radius: 8px;
  border: none;
}

/* Shop Page Layout */
.woocommerce-page:not(.single-product) .woocommerce-notices-wrapper {
  margin-bottom: 1rem;
}

/* Product Loop Grid */
.woocommerce ul.products li.product {
  margin-bottom: 1.5rem;
}
.woocommerce ul.products li.product a img {
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 600;
}
.woocommerce ul.products li.product .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
}
.woocommerce ul.products li.product .button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}
.woocommerce ul.products li.product .button:hover {
  background: var(--secondary-dark);
  color: var(--primary);
}

/* Cart & Checkout */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout .order_details h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(232, 176, 40, 0.15);
}
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--secondary-dark);
  color: var(--primary);
}


.navbar-main .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.navbar-main .brand-gold {
  color: var(--secondary);
}
.navbar-main .brand-white {
  color: var(--accent);
}
.navbar-main .navbar-brand small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.navbar-main .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(232, 176, 40, 0.1);
}

/* Dropdown trong navbar tối */
.navbar-main .dropdown-menu {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 8px;
}
.navbar-main .dropdown-item {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-main .dropdown-item:hover {
  background: rgba(232, 176, 40, 0.15);
  color: var(--secondary);
}

.navbar-main .cart-badge {
  position: relative;
  display: inline-block;
}
.navbar-main .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* === Search Overlay === */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26,26,46,0.95);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-overlay.show {
  display: flex;
  opacity: 1;
}
.search-overlay .search-box {
  width: 90%;
  max-width: 600px;
}
.search-overlay .search-box input {
  height: 60px;
  font-size: 1.25rem;
  border: none;
  border-bottom: 2px solid var(--secondary);
  background: transparent;
  color: #fff;
  outline: none;
  width: 100%;
  padding: 0 1rem;
}
.search-overlay .search-box input::placeholder {
  color: rgba(255,255,255,0.4);
}
.search-overlay .search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* === Hero Slider === */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero-slide {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  width: 100%;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
}
.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.4) 100%);
}
.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-slide .hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.hero-slide h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-slide p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
  padding: 0;
}
.hero-indicators button.active {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* === Feature Banner === */
.feature-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  color: var(--accent);
  width: 100%;
}
.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.feature-item .feature-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.feature-item h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

/* === Category Cards === */
.category-card {
  background: var(--accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.category-card .icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}
.category-card:hover .icon-wrap {
  background: var(--secondary);
  color: var(--primary);
}
.category-card h6 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === Product Cards === */
.product-card {
  background: var(--accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-card .product-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-light);
}
.product-card .product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}
.product-card .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.product-card .product-badge .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.product-card .product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card .product-actions .action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 0.85rem;
  cursor: pointer;
}
.product-card .product-actions .action-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}
.product-card .product-body {
  padding: 1rem;
}
.product-card .product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-name a {
  color: var(--text-dark);
}
.product-card .product-name a:hover {
  color: var(--secondary);
}
.product-card .product-price {
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.product-card .product-price .current {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.product-card .product-price ins {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  order: 1;
}
.product-card .product-price .current > .woocommerce-Price-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
}
.product-card .product-price del {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  order: 0;
}
.product-card .product-price del .woocommerce-Price-amount {
  text-decoration: line-through;
  text-decoration-thickness: inherit;
  display: inline-block;
}
.product-card .product-price .screen-reader-text {
  display: none;
}

/* === Brand Bar === */
.brand-bar {
  background: var(--bg-light);
  padding: 2.5rem 0;
  width: 100%;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
  padding: 0;
  list-style: none;
}
.partners__item {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(23,23,23,0.08);
  border-radius: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.partners__link {
  display: contents;
}
.partners__item:hover {
  border-color: rgba(23,23,23,0.14);
  box-shadow: 0 16px 36px rgba(23,23,23,0.07);
  transform: translateY(-3px);
}
.partners__logo {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.partners__item:hover .partners__logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.025);
}
@media (max-width: 768px) {
  .partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partners__item {
    min-height: 100px;
    padding: 18px;
  }
  .partners__logo {
    height: 42px;
  }
}

/* === News Cards === */
.news-card {
  background: var(--accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card .news-image {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
}
.news-card .news-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-card .news-body {
  padding: 1.25rem;
}
.news-card .news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.news-card .news-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-title a {
  color: var(--text-dark);
}
.news-card .news-title a:hover {
  color: var(--secondary);
}
.news-card .news-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News cards inside Swiper slider */
.featured-products-slider .swiper-slide .news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.featured-products-slider .swiper-slide .news-card .news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-products-slider .swiper-slide .news-card .news-summary {
  flex: 1;
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
  width: 100%;
}
.footer h5 {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer p, .footer li {
  font-size: 0.9rem;
  line-height: 2;
}
.footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer a:hover {
  color: var(--secondary);
}
.footer .brand-footer {
  font-size: 1.5rem;
  font-weight: 800;
}
.footer .brand-footer .brand-gold {
  color: var(--secondary);
}
.footer .brand-footer .brand-white {
  color: #fff;
}
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 0.5rem;
  transition: var(--transition);
}
.footer .social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
}
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Footer Full Widget Area (above footer) */
#wrapper-footer-full {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 0;
}
#wrapper-footer-full .footer-widget .widget-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#wrapper-footer-full .footer-widget p,
#wrapper-footer-full .footer-widget li {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.7);
}
#wrapper-footer-full .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#wrapper-footer-full .footer-widget a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  text-decoration: none;
}
#wrapper-footer-full .footer-widget a:hover {
  color: var(--secondary);
}

/* Top Full Widget Area (static hero) */
#wrapper-static-hero .static-hero-widget {
  padding: 1.5rem 0;
}
#wrapper-static-hero .static-hero-widget .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* === Buttons === */
.btn-gold {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-gold:hover {
  background: var(--secondary-dark);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232, 176, 40, 0.3);
}
.btn-outline-gold {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-outline-gold:hover {
  background: var(--secondary);
  color: var(--primary);
}
.btn-dark-primary {
  background: var(--primary);
  color: var(--accent);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-dark-primary:hover {
  background: var(--primary-light);
  color: var(--accent);
  transform: translateY(-1px);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition);
}
.back-to-top.show {
  display: flex;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* === Page Header === */
/* Page header banner - for template-level use (not inside blog posts) */
.wrapper > .page-header,
#page > .page-header {
  background: var(--bg-light);
  padding: 3rem 0;
  text-align: center;
}
.wrapper > .page-header h1,
#page > .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* === Breadcrumb === */
.breadcrumb-section {
  background: var(--bg-light);
  padding: 0.75rem 0;
}
.breadcrumb-section .breadcrumb {
  margin-bottom: 0;
  padding: 0.5rem 0;
}
.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item.active {
  color: var(--secondary);
}

/* === Filter Section === */
.filter-section {
  background: var(--accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}
.filter-section h6 {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.filter-group {
  margin-bottom: 1.25rem;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-group h6 {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.filter-group .form-check {
  margin-bottom: 0.3rem;
}
.filter-group .form-check-input:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}
.filter-section .widget {
  margin-bottom: 1.25rem;
}
.filter-section .widget:last-child {
  margin-bottom: 0;
}
.filter-section .widget-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.filter-section .product-categories li {
  margin-bottom: 0.25rem;
}
.filter-section .product-categories li a {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.filter-section .product-categories li a:hover {
  color: var(--secondary);
}
.filter-section .price_slider_wrapper {
  margin-top: 0.5rem;
}
.filter-section .price_label {
  font-size: 0.85rem;
}

/* === Pagination === */
.pagination .page-link {
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

/* === 404 Page === */
.error-404 {
  padding: 6rem 0;
  text-align: center;
}
.error-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
}
.error-404 h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* === Blog / Archive === */
.entry-title {
  font-weight: 700;
}
.entry-title a {
  color: var(--text-dark);
}
.entry-title a:hover {
  color: var(--secondary);
}
.entry-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.entry-meta a {
  color: var(--text-muted);
}
.entry-meta a:hover {
  color: var(--secondary);
}

.entry-content,
.entry-summary {
  line-height: 1.8;
  color: #444;
}
.entry-content p,
.entry-summary p {
  margin-bottom: 1rem;
}

/* Navbar icon buttons */
.navbar-main .btn-link {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
}
.navbar-main .btn-link:hover {
  color: var(--secondary) !important;
}

/* === Single Post === */
.single-post-article .entry-header {
  margin-bottom: 2rem;
}
.single-post-article .entry-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.single-post-article .entry-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.single-post-article .entry-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.single-post-article .entry-meta .meta-item i {
  color: var(--secondary);
}
.single-post-article .entry-meta .meta-item a {
  color: var(--text-muted);
}
.single-post-article .entry-meta .meta-item a:hover {
  color: var(--secondary);
}
.single-post-article .entry-content {
  line-height: 1.8;
  font-size: 1.05rem;
}
.single-post-article .entry-content p {
  margin-bottom: 1.2rem;
}
.single-post-article .entry-content h2,
.single-post-article .entry-content h3,
.single-post-article .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.single-post-article .entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}
.single-post-article .entry-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.single-post-article .post-tags .badge {
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  transition: var(--transition);
}
.single-post-article .post-tags .badge:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
}
.single-post-article .post-share a {
  font-size: 1.1rem;
  transition: var(--transition);
}
.single-post-article .post-share a:hover {
  color: var(--secondary) !important;
}

/* Post Navigation */
.post-navigation .nav-links {
  display: flex;
  gap: 1.5rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background: var(--primary);
  color: var(--accent);
}
.post-navigation .nav-next a {
  text-align: right;
  justify-content: flex-end;
}
.post-navigation .post-nav-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.post-navigation .post-nav-label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Comments Area */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.comments-title {
  font-weight: 700;
}
.comment-item {
  padding-bottom: 1.5rem;
}
.comment-item:last-child {
  border-bottom: none !important;
}
.comment-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}
.comment-reply .reply-link a {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
}
.comment-reply .reply-link a:hover {
  color: var(--secondary-dark);
}

/* Comment Form */
.comment-form .form-control,
.comment-form textarea {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.75rem;
  transition: var(--transition);
}
.comment-form .form-control:focus,
.comment-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(232, 176, 40, 0.15);
}
.comment-form .form-submit .submit {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.comment-form .form-submit .submit:hover {
  background: var(--secondary-dark);
}

/* === Toast === */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* === Single Post === */
.post-thumbnail {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === Comments === */
#comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comment-list {
  list-style: none;
  padding: 0;
}
.comment {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
}
.comment-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.comment-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 176, 40, 0.15);
}
.comment-form .form-submit .submit {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.comment-form .form-submit .submit:hover {
  background: var(--secondary-dark);
}

/* === Widgets === */

/* Sidebar widget area */
#secondary,
#left-sidebar,
.widget-area {
  margin-bottom: 2rem;
}

/* Base Widget container (sidebar) */
.widget-area .widget {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.widget-area .widget:last-child {
  margin-bottom: 0;
}

/* Widget title */
.widget-area .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Generic widget list styling */
.widget-area .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-area .widget ul li {
  margin-bottom: 0.4rem;
  padding: 0;
}
.widget-area .widget ul li:last-child {
  margin-bottom: 0;
}
.widget-area .widget ul li a {
  display: block;
  padding: 6px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.widget-area .widget ul li a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

/* Standard WordPress widget selectors */
.widget-area .widget_recent_entries ul li a,
.widget-area .widget_recent_comments ul li,
.widget-area .widget_archive ul li a,
.widget-area .widget_categories ul li a,
.widget-area .widget_meta ul li a,
.widget-area .widget_pages ul li a,
.widget-area .widget_nav_menu ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: none;
}
.widget-area .widget_recent_entries ul li a:hover,
.widget-area .widget_recent_comments ul li:hover,
.widget-area .widget_archive ul li a:hover,
.widget-area .widget_categories ul li a:hover,
.widget-area .widget_meta ul li a:hover,
.widget-area .widget_pages ul li a:hover,
.widget-area .widget_nav_menu ul li a:hover {
  background: rgba(232,176,40,0.08);
  color: var(--secondary);
  padding-left: 12px;
}
.widget-area .widget_recent_comments ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
}

/* Post count badge (categories, archives) */
.widget-area .widget_categories .count,
.widget-area .widget_archive .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Tag cloud */
.widget-area .widget_tag_cloud .tag-cloud-link {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 4px 6px 0;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.85rem !important;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.widget-area .widget_tag_cloud .tag-cloud-link:hover {
  background: var(--secondary);
  color: #fff;
}

/* Calendar widget */
.widget-area .widget_calendar table {
  width: 100%;
  font-size: 0.85rem;
}
.widget-area .widget_calendar caption {
  caption-side: top;
  text-align: center;
  font-weight: 600;
  padding: 6px 0;
  color: var(--primary);
}
.widget-area .widget_calendar th,
.widget-area .widget_calendar td {
  text-align: center;
  padding: 4px;
}
.widget-area .widget_calendar #today {
  background: var(--secondary);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
}

/* RSS widget */
.widget-area .widget_rss .rsswidget {
  font-weight: 600;
  color: var(--primary);
}
.widget-area .widget_rss .rss-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 2px 0 6px;
}
.widget-area .widget_rss .rssSummary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.widget-area .widget_rss cite {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Text widget */
.widget-area .widget_text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Search widget (standard WP) */
.widget-area .widget_search .search-form {
  display: flex;
  gap: 6px;
}
.widget-area .widget_search .search-form label {
  flex: 1;
  margin: 0;
}
.widget-area .widget_search .search-form input[type="search"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}
.widget-area .widget_search .search-form input[type="search"]:focus {
  border-color: var(--secondary);
}
.widget-area .widget_search .search-form input[type="submit"],
.widget-area .widget_search .search-submit {
  padding: 8px 16px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.widget-area .widget_search .search-form input[type="submit"]:hover,
.widget-area .widget_search .search-submit:hover {
  background: #d4a832;
}

/* Select dropdowns (archives, categories dropdown) */
.widget-area .widget select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
}
.widget-area .widget select:focus {
  border-color: var(--secondary);
}

/* Reusable sidebar-widget class (used on shop filter sidebar) */
.sidebar-widget {
  border-radius: 12px;
}
.sidebar-widget .widget-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar-widget .wc-layered-nav-term a,
.sidebar-widget .product-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.sidebar-widget .wc-layered-nav-term a:hover,
.sidebar-widget .product-categories a:hover,
.sidebar-widget .wc-layered-nav-term.chosen a,
.sidebar-widget .product-categories .current-cat a {
  background: rgba(232,176,40,0.1);
  color: var(--secondary);
}
.sidebar-widget .product-categories .count,
.sidebar-widget .wc-layered-nav-term .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Featured Products Swiper === */
.featured-products-slider-wrapper {
  position: relative;
}
.featured-products-slider {
  overflow: hidden;
}
.featured-products-slider .swiper-wrapper {
  padding: 4px 0;
}
.featured-products-slider .swiper-slide {
  height: auto;
}
.featured-products-slider .swiper-slide .product-card {
  height: 100%;
  margin: 0;
}
.featured-products-slider-wrapper .swiper-button-next,
.featured-products-slider-wrapper .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.featured-products-slider-wrapper .swiper-button-next {
  right: -20px;
}
.featured-products-slider-wrapper .swiper-button-prev {
  left: -20px;
}
.featured-products-slider-wrapper .swiper-button-next::after,
.featured-products-slider-wrapper .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.featured-products-slider-wrapper .swiper-button-next:hover,
.featured-products-slider-wrapper .swiper-button-prev:hover {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(232,176,40,0.3);
}
.featured-products-slider-wrapper .swiper-button-next:hover::after,
.featured-products-slider-wrapper .swiper-button-prev:hover::after {
  color: var(--primary);
}
.featured-products-slider-wrapper .swiper-button-disabled {
  opacity: 0.3;
  pointer-events: auto;
}

/* === Responsive === */
@media (max-width: 991.98px) {
  .hero-slide { height: 60vh; min-height: 400px; }
  .hero-slide h1 { font-size: 2rem; }
  .hero-slide p { font-size: 1rem; }
  .navbar-main .navbar-nav { margin-top: 0.5rem; }
}
@media (max-width: 767.98px) {
  .hero-slide { height: 50vh; min-height: 350px; }
  .hero-slide h1 { font-size: 1.5rem; }
  .hero-slide p { font-size: 0.9rem; }
  .section-title { font-size: 1.35rem; }
  .product-card .product-actions { opacity: 1; transform: translateX(0); }
  .feature-banner { padding: 2.5rem 0; }
  .wrapper > .page-header { padding: 2rem 0; }
  .wrapper > .page-header h1 { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero-slide { height: 45vh; min-height: 300px; }
  .navbar-main .navbar-brand { font-size: 1.2rem; }
  .navbar-main .navbar-brand small { font-size: 0.5rem; }
  .back-to-top { bottom: 15px; right: 15px; width: 38px; height: 38px; font-size: 1rem; }
}

/* === Demo2 Design System: Shop & Product Detail === */

/* Utility Classes */
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-white-70 { color: rgba(255,255,255,0.7) !important; }
.letter-spacing-1 { letter-spacing: 1px !important; }
.letter-spacing-2 { letter-spacing: 2px !important; }
.rounded-4 { border-radius: 0.75rem !important; }
.rounded-5 { border-radius: 1rem !important; }
.object-fit-cover { object-fit: cover !important; }
.transition-all { transition: all 0.3s ease !important; }
.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }

.bg-gradient-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary) !important;
  color: var(--primary) !important;
  border: 1px solid var(--secondary) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-gold:hover {
  background: var(--secondary-dark) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--secondary) !important;
  color: var(--secondary) !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  background: transparent;
  transition: var(--transition);
}
.btn-outline-gold:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
}

/* Page Header (gradient dark) */
.page-header.bg-gradient-dark {
  position: relative;
  overflow: hidden;
}
.page-header.bg-gradient-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(232,176,40,0.08) 0%, transparent 50%);
  animation: headerGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes headerGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

.single-product .page-header .breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.search-result-item {
  border-color: rgba(15, 44, 46, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  border-color: rgba(232, 176, 40, 0.55);
  box-shadow: 0 10px 30px rgba(15, 44, 46, 0.08);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .search-result-layout > .btn {
    align-self: flex-end;
  }

  .single-product .page-header .breadcrumb-item.active {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-header.bg-gradient-dark::before {
    animation: none;
  }

  .search-result-item {
    transition: none;
  }

  .search-result-item:hover {
    transform: none;
  }
}

/* Sidebar Widget */
.sidebar-widget {
  border-radius: 12px;
}
.sidebar-widget h3 {
  font-family: 'Inter', sans-serif;
}
.sidebar-widget .wc-layered-nav-term a,
.sidebar-widget .product-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.sidebar-widget .wc-layered-nav-term a:hover,
.sidebar-widget .product-categories a:hover,
.sidebar-widget .wc-layered-nav-term.chosen a,
.sidebar-widget .product-categories .current-cat a {
  background: rgba(232,176,40,0.1);
  color: var(--secondary);
}
.sidebar-widget .product-categories .count,
.sidebar-widget .wc-layered-nav-term .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Products Toolbar */
.products-toolbar {
  border: 1px solid var(--border-color);
}
.products-toolbar .orderby {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

/* Product Card (loop) - Demo2 Style */
.product-card-wrapper .product-card.hover-lift:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}
.product-card-wrapper .product-image img {
  transition: transform 0.5s ease;
}
.product-card-wrapper:hover .product-image img {
  transform: scale(1.08);
}
.product-card-wrapper:hover .product-actions {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.product-card-wrapper .product-actions .action-btn {
  transition: all 0.25s ease;
}
.product-card-wrapper .product-actions .action-btn:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
}
.product-card-wrapper .product-actions .action-btn:nth-child(1) { transition-delay: 0.05s; }
.product-card-wrapper .product-actions .action-btn:nth-child(2) { transition-delay: 0.1s; }
.product-card-wrapper .product-name a:hover {
  color: var(--secondary) !important;
}
.product-card-wrapper .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transition: var(--transition);
}
.product-card-wrapper .btn-primary:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--primary) !important;
}

/* Pagination (Shop) */
.pagination .page-numbers {
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  color: var(--text-dark);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.pagination .page-item.active .page-numbers {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary) !important;
}
.pagination .page-numbers.current {
  pointer-events: none;
}

/* Product Detail Section */
.product-detail-section .product-gallery {
  position: sticky;
  top: 100px;
}
.product-detail-section .product-info h1 {
  font-family: 'Playfair Display', serif;
}
.product-detail-section .product-price-box {
  background: var(--bg-light);
}
.product-detail-section .product-price-box .product-price {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
}
.product-detail-section .product-price-box .product-price ins {
  text-decoration: none;
}
.product-detail-section .product-price-box .product-price del {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Spec Table in Product Detail */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr {
  border-bottom: 1px solid var(--border-color);
}
.spec-table td {
  padding: 12px 15px;
  font-size: 0.9rem;
}
.spec-table td:first-child {
  font-weight: 500;
  color: var(--text-muted);
  width: 40%;
  background: var(--bg-light);
}

/* Feature Boxes (product detail) */
.feature-box {
  transition: all 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-box i {
  transition: var(--transition);
}
.feature-box:hover i {
  transform: scale(1.1);
}

/* Product Tabs (Bootstrap nav-tabs style) */
.product-detail-section .product-tabs {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}
.product-detail-section .product-tabs .nav-tabs {
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-light);
}
.product-detail-section .product-tabs .nav-link {
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0;
  padding: 16px 28px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  background: none;
  cursor: pointer;
}
.product-detail-section .product-tabs .nav-link:hover,
.product-detail-section .product-tabs .nav-link.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary) !important;
  background: none;
}
.product-detail-section .product-tabs .tab-pane {
  padding: 0;
  line-height: 1.8;
}
.product-detail-section .product-tabs .tab-pane h2,
.product-detail-section .product-tabs .tab-pane h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.product-detail-section .product-tabs .tab-pane h2:first-of-type,
.product-detail-section .product-tabs .tab-pane h3:first-of-type {
  display: none;
}
.product-detail-section .product-tabs .tab-pane p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* WooCommerce Gallery override for product detail */
.product-detail-section .product-gallery-inner {
  position: static;
}
.product-detail-section .woocommerce-product-gallery {
  position: relative;
  border-radius: 16px;
  overflow: clip;
}
.product-detail-section .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.product-detail-section .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
  background: #fff;
}
.product-detail-section .woocommerce-product-gallery .woocommerce-product-gallery__trigger i {
  font-size: 1.25rem;
  color: #333;
}
.product-detail-section .woocommerce-product-gallery .woocommerce-product-gallery__trigger img {
  display: none;
}
/* Force Flexslider slide images to fill slide width (override Flexslider inline width) */
.flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img {
  width: 100% !important;
}
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs li {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs li:hover img {
  opacity: 1;
}
.product-detail-section .woocommerce-product-gallery .flex-control-thumbs li.flex-active-slide {
  border-color: var(--secondary);
}

/* Quantity control (single product - demo2 style) */
.product-detail-section .quantity-cart .qty-control .qty {
  width: 60px;
  height: 48px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 1rem;
}
/* Add to Cart button in product detail */
.product-detail-section .single_add_to_cart_button {
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px !important;
  transition: var(--transition);
}

/* WooCommerce Sale Badge on detail page */
.woocommerce .product-detail-section .onsale {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  z-index: 5;
  background: #dc2626;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* Stock badge */
.product-detail-section .stock {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.product-detail-section .stock.in-stock {
  background: #ecfdf5;
  color: #059669;
}
.product-detail-section .stock.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

/* Upsell & Related Products */
.woocommerce .upsells.products,
.woocommerce .related.products {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}
.woocommerce .upsells.products h2,
.woocommerce .related.products h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.woocommerce .upsells.products ul.products,
.woocommerce .related.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 992px) {
  .woocommerce .upsells.products ul.products,
  .woocommerce .related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .woocommerce .upsells.products ul.products,
  .woocommerce .related.products ul.products {
    grid-template-columns: 1fr;
  }
}

/* Product Rating stars for detail page */
.product-detail-section .star-rating {
  color: #f59e0b;
  font-size: 1rem;
}

/* Product categories / tags meta */
.product-detail-section .product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.product-detail-section .product_meta > span {
  display: block;
  margin-bottom: 6px;
}
.product-detail-section .product_meta a {
  color: var(--text-muted);
  text-decoration: none;
}
.product-detail-section .product_meta a:hover {
  color: var(--secondary);
}

/* Breadcrumb in page header */
.page-header .breadcrumb-item + .breadcrumb-item::before {
  content: '>';
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 992px) {
  .product-detail-section .product-gallery-inner {
    position: static;
  }
  .product-detail-section .product-tabs .nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .products-page {
    padding: 30px 0;
  }
  .page-header.bg-gradient-dark {
    padding: 40px 0 !important;
  }
  .page-header.bg-gradient-dark h1 {
    font-size: 1.8rem;
  }
}

/* === Legacy WooCommerce helpers (variable, grouped, breadcrumb, cart badge) === */
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  vertical-align: super;
  margin-left: -4px;
}
.woocommerce div.product form.cart .variations { margin-bottom: 1rem; }
.woocommerce div.product form.cart .variations td { padding: 0.5rem 0; vertical-align: middle; }
.woocommerce div.product form.cart .variations td.label { padding-right: 1rem; font-weight: 600; font-size: 0.9rem; }
.woocommerce div.product form.cart .variations select {
  border: 1px solid var(--border-color); border-radius: 6px;
  padding: 0.4rem 2rem 0.4rem 0.75rem; font-size: 0.9rem;
  background: #fff; cursor: pointer; min-width: 180px;
}
.woocommerce div.product form.cart .variations .reset_variations { font-size: 0.8rem; color: var(--secondary); text-decoration: none; margin-left: 0.5rem; }
.woocommerce div.product form.cart .variations .reset_variations:hover { text-decoration: underline; }
.woocommerce div.product form.cart .variations .value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.woocommerce-variation-price { margin: 0.75rem 0; }
.woocommerce-variation-availability { margin-bottom: 1rem; }
.woocommerce div.product form.cart .group_table td { padding: 0.5rem; vertical-align: middle; }
.woocommerce div.product form.cart .group_table td.label { font-weight: 600; font-size: 0.9rem; }
.woocommerce div.product form.cart .group_table td.label a { color: var(--primary); text-decoration: none; }
.woocommerce div.product form.cart .group_table td.price { font-weight: 700; color: #dc2626; }
.breadcrumb-section {
  background: #f8f9fa; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color);
}
.breadcrumb-section .breadcrumb { background: none; padding: 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-section .breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-section .breadcrumb a:hover { color: var(--secondary); }
.breadcrumb-section .breadcrumb .active { color: var(--primary); font-weight: 500; }
