/* 
  QP-LOGISTIC - MODERN MINIMALIST DESIGN SYSTEM (V2)
  Focus: Typography Synchronization & Full Section Implementation
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  /* Color Palette */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #ffb800;
  /* Vibrant Branded Yellow */
  --accent-hover: #e6a600;
  --bg-white: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.95);

  /* Spacing */
  --section-gap: 80px;
  --title-gap: 30px;
  --container-width: 1400px;
  --padding-x: 40px;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius System */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Product Grid Config */
  --prod-visible: 6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography Synchronization */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0;
}

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

a:not(.p-card):not(.cat-item):not(.btn):not(.logo-text):not(.promo-cta):not(
    .action-btn
  ):not(.mess-btn):hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--title-gap);
  color: var(--primary);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* section {
  padding: calc(var(--section-gap) / 2) 0;
  margin-bottom: 0;
} */

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.shopee-cat-header .section-title,
.flash-sale-header .section-title,
.product-section-header .section-title,
.news-filters-wrapper .section-title {
  margin-bottom: 0;
}

/* Product Tabs */
.sale-tabs {
  display: flex;
  gap: 20px;
}

.tab-btn {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  color: var(--text-muted);
}

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary) !important;
  color: white !important;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: white !important;
  color: var(--primary) !important;
}

/* --- TOP BAR --- */
.top-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 12px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  color: var(--text-muted);
}

.top-bar-left span {
  margin-right: 25px;
}

.top-bar-left i {
  color: var(--accent);
  margin-right: 6px;
}

.top-bar-right a {
  color: var(--text-muted);
  margin-left: 20px;
  font-weight: 500;
}

.top-bar-right a:hover {
  color: var(--primary);
}

/* --- HEADER --- */
header {
  background: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex: 0 0 auto;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
}

.header-nav-items {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 50px;
  flex: 1;
}

.header-nav-link {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.header-nav-link:hover {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions a {
  font-size: 20px;
  color: var(--primary);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.search-mini {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  width: 350px;
}

.search-mini input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  margin-left: 10px;
}

/* --- MEGA MENU --- */
.has-mega-menu {
  position: static;
  /* Important for full-width relative to container or header */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border-top: 1px solid var(--border);
  transform: translateY(10px);
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 250px;
  gap: 40px;
  padding: 0 15px;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}

.mega-list a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.mega-list a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.mega-banner {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--border);
}

.mega-banner h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mega-banner .btn {
  margin-top: 15px;
  font-size: 11px;
}

/* --- HERO LAYOUT (SHOPEE STYLE) --- */
.hero-layout-section {
  background: #f5f5f5;
  padding: 15px 0;
}

.hero-layout-wrapper {
  /* display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 8px !important; */
  height: 350px !important;
}

/* .hero-slider-main {
  position: relative;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  height: 100% !important;
}

.hero-slider-main .slider-container {
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.hero-slider-main .slide {
  height: 100%;
  width: 100%;
  background-size: 100% 100% !important;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 50px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.hero-slider-main .slide.active {
  opacity: 1;
  visibility: visible;
} */

.slide-content-minimal h2 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-slider-main .swiper-button-next:after,
.hero-slider-main .swiper-button-prev:after {
  display: none;
}
.hero-side-banners {
  display: grid;
  grid-template-rows: repeat(2, 171px);
  gap: 8px;
  height: 100% !important;
}

.hero-side-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  height: 171px;
}

.hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: var(--transition);
}

.hero-side-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .hero-slider-main {
    height: 220px !important;
  }

  .hero-side-banners {
    display: none !important;
  }
}

/* --- CATEGORY ICONS --- */
.category-icons-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Firefox */
}

.category-icons-wrapper::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.cat-icon-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 90px;
  text-align: center;
  transition: var(--transition);
}

.cat-icon-item:hover {
  opacity: 0.9;
}

.cat-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
}

/* --- LAZADA CATEGORY GRID (SHOPEE SLIDER STYLE) --- */
.category-slider-container {
  position: relative;
  margin: 0 -15px;
  padding: 0 15px;
  padding-top: 10px;
}

.lazada-cat-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 10);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lazada-cat-grid::-webkit-scrollbar {
  display: none;
}

/* --- UNIFIED SLIDER ARROWS (SHOPEE STYLE) --- */
.slider-arrow,
.cat-slider-arrow,
.shopee-cat-arrow,
.flash-prev,
.flash-next,
.best-prev,
.best-next,
.best-seller-prev,
.best-seller-next,
.brand-prev,
.brand-next,
.shop-prev,
.shop-next,
.news-prev,
.news-next,
.sub-prev,
.sub-next {
  position: absolute;
  top: 50%;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1/1 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 100 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: var(--primary) !important;
  opacity: 0.7 !important;
  transform: translateY(-50%);
}

.prev,
.flash-prev,
.best-seller-prev,
.brand-prev,
.shop-prev,
.news-prev,
.sub-prev,
.best-prev {
  left: -35px !important;
}

.next,
.flash-next,
.best-seller-next,
.brand-next,
.shop-next,
.news-next,
.sub-next,
.best-next {
  right: -35px !important;
}

.slider-arrow:hover,
.cat-slider-arrow:hover,
.shopee-cat-arrow:hover,
.flash-prev:hover,
.flash-next:hover,
.best-prev:hover,
.best-next:hover,
.best-seller-prev:hover,
.best-seller-next:hover,
.brand-prev:hover,
.brand-next:hover,
.shop-prev:hover,
.shop-next:hover,
.news-prev:hover,
.news-next:hover,
.sub-prev:hover,
.sub-next:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* General Positioning for Product/Brand/News Sliders (Half-in, half-out on the edge of the wrap) */
.shopee-cat-wrap .shopee-cat-arrow.prev,
.shopee-cat-wrap .flash-prev,
.shopee-cat-wrap .best-seller-prev,
.shopee-cat-wrap .top-deal-prev,
.shopee-cat-wrap .brand-prev,
.shopee-cat-wrap .shop-prev,
.shopee-cat-wrap .news-prev,
.shopee-cat-wrap .sub-prev {
  left: 0 !important;
  transform: translate(-50%, -50%) !important;
}

.shopee-cat-wrap .shopee-cat-arrow.next,
.shopee-cat-wrap .flash-next,
.shopee-cat-wrap .best-seller-next,
.shopee-cat-wrap .top-deal-next,
.shopee-cat-wrap .brand-next,
.shopee-cat-wrap .shop-next,
.shopee-cat-wrap .news-next,
.shopee-cat-wrap .sub-next {
  right: 0 !important;
  transform: translate(50%, -50%) !important;
}

/* Special case for category slider (grid edge is at 15px padding) */
.category-slider-container .cat-slider-arrow.prev {
  left: 15px !important;
  transform: translate(-50%, -50%) !important;
}

.category-slider-container .cat-slider-arrow.next {
  right: 15px !important;
  transform: translate(50%, -50%) !important;
}

/* Special case for hero slider (must be fully inside to avoid overflow:hidden clipping) */
.hero-slider-main .slider-arrow.prev {
  left: 15px !important;
  transform: translateY(-50%) !important;
}

.hero-slider-main .slider-arrow.next {
  right: 15px !important;
  transform: translateY(-50%) !important;
}

/* Ensure containers are relative and have space for hover effects */
.hero-slider-main,
.category-slider-container,
.shopee-category-slider,
.shopee-cat-wrap,
.shopee-cat-viewport,
.product-slider-wrapper,
.brand-slider-wrapper,
.shop-wrapper,
.news-slider-wrapper,
.sub-banners-section {
  position: relative !important;
  overflow: visible !important;
}

/* Fix clipping on hover for all slider tracks */
.product-track,
.brand-track,
.shop-track,
.news-track,
.recommend-grid {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  overflow: visible !important;
}

/* Specific fix for the slider wrapper to allow horizontal scroll but visible vertical hover */
.product-slider-wrapper,
.brand-slider-wrapper,
.shop-wrapper,
.news-slider-wrapper,
.lazada-cat-grid {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

@media (max-width: 991px) {
  .slider-arrow,
  .cat-slider-arrow,
  .shopee-cat-arrow,
  .flash-prev,
  .flash-next,
  .best-prev,
  .best-next,
  .brand-prev,
  .brand-next,
  .shop-prev,
  .shop-next,
  .news-prev,
  .news-next,
  .sub-prev,
  .sub-next {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .cat-slider-arrow {
    display: none;
  }

  .lazada-cat-grid {
    grid-auto-columns: 20%;
    /* Show 5 items per row on mobile */
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.lazada-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  min-height: 140px;
}

.lazada-cat-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 10;
  background: #fff;
}

.lazada-cat-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.lazada-cat-img img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.lazada-cat-item:hover .lazada-cat-img {
  transform: scale(1.1);
}

.lazada-cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

@media (max-width: 991px) {
  .lazada-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .lazada-cat-item:nth-child(10n) {
    border-right: 1px solid var(--border);
  }

  .lazada-cat-item:nth-child(5n) {
    border-right: none;
  }
}

.lazada-cat-item:nth-child(20n) {
  border-right: none;
}

.lazada-cat-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 10;
  background: #fff;
}

.lazada-cat-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.lazada-cat-item:hover .lazada-cat-img {
  transform: scale(1.1);
}

.lazada-cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

@media (max-width: 991px) {
  .lazada-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .lazada-cat-item:nth-child(10n) {
    border-right: 1px solid var(--border);
  }

  .lazada-cat-item:nth-child(5n) {
    border-right: none;
  }
}

.mega-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 5px;
}

.mega-list a {
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.mega-list a:hover {
  color: var(--accent);
}

.slide-content-minimal {
  max-width: 400px;
}

.slide-content-minimal h2 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-side-item:hover img {
  opacity: 0.9;
}

/* Slider Controls (Shopee Style) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
  color: white;
  border: none;
  width: 36px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: var(--transition);
  font-size: 18px;
}

.hero-slider-main:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.3);
}

.slider-arrow.prev {
  left: 0;
  border-radius: 0 2px 2px 0;
}

.slider-arrow.next {
  right: 0;
  border-radius: 2px 0 0 2px;
}

.slider-dots {
  position: absolute;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.slider-dots .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.hero-slider-main .swiper-slide img {
  border-radius: 10px !important;
  height: 350px !important;
}
.slider-dots .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #ffb800 !important;
  /* Shopee Orange */
  border-color: #ffb800 !important;
}

@media (max-width: 991px) {
  .hero-layout-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-slider-main {
    height: 160px;
  }

  .hero-side-banners {
    display: none;
  }

  .slide-content-minimal h2 {
    font-size: 18px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.sub-banners-section {
  position: relative;
  padding-top: 80px !important;
}

.sub-banners-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding-top: 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-banners-slider::-webkit-scrollbar {
  display: none;
}

.sub-banner-item {
  flex: 0 0 calc(50% - 15px);
  /* Show 2 items per view with gap */
  scroll-snap-align: start;
  height: 240px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-size: cover !important;
  background-position: center !important;
  transition: var(--transition);
}

.sub-banner-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  z-index: 1;
}

.sub-banner-item > * {
  position: relative;
  z-index: 2;
}

.sub-banner-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sub-banner-item:hover::before {
  background: rgba(0, 0, 0, 0.2);
  /* Lighten on hover for focus */
}

/* Hover Zoom Effect */
.sub-banner-item {
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

.sub-banner-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  z-index: 0;
}

.sub-banner-item:hover .sub-banner-item-bg {
  transform: scale(1.1);
}

/* --- INTRO --- */
.intro-section {
  /* padding: var(--section-gap) 0; */
  background: #fff;
  padding-bottom: 100px !important;
  /* margin-bottom handled by general section selector */
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-content {
  padding-right: 20px;
}

.intro-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.intro-title {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: var(--title-gap);
  color: var(--primary);
}

.intro-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 14px;
}

.intro-features {
  margin-bottom: 24px;
}

.intro-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.intro-features li:hover {
  transform: translateX(10px);
  color: var(--accent);
}

.intro-features i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 14px;
}

.intro-image-wrapper {
  position: relative;
}

.intro-image-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  z-index: 0;
  transition: all 0.5s ease;
}

.intro-grid:hover .intro-image-wrapper::before {
  top: 20px;
  right: 20px;
  border-color: var(--accent);
}

.intro-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease;
}

.intro-grid:hover .intro-image {
  transform: scale(1.02);
}

/* --- CATEGORIES --- */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-controls {
  display: flex;
  gap: 10px;
}

.cat-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.cat-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.slide-btn {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  /* Center perfectly relative to top: 50% */
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary) !important;
}

.slide-btn:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.slide-btn-left {
  left: -22px;
}

.slide-btn-right {
  right: -22px;
}

.category-slider-wrapper {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  margin-bottom: 25px;
}

.category-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.category-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  /* --cat-col-width is set by JS to exactly (wrapperWidth - gap*(n-1)) / n */
  grid-auto-columns: var(--cat-col-width, 18%);
  width: max-content;
  min-width: 100%;
  gap: 16px;
  padding: 5px;
}

.cat-item {
  text-align: center;
  padding: 15px 10px;
  border: 1px solid var(--border);
  transition: var(--transition);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  background: white;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-img-box {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-alt);
}

.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cat-item p {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.cat-item:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cat-item:hover p {
  color: var(--accent);
}

.cat-item:hover .cat-img-box img {
  transform: scale(1.1);
}

/* ============================================
   SHOPEE-STYLE CATEGORY GRID
   ============================================ */
.category-section {
  background: var(--bg-alt);
  /* padding: var(--section-gap) 0; */
  /* margin-bottom handled by general section selector */
}

.brand-section {
  padding-top: 24px !important;
}

.shopee-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: var(--title-gap);
}

/* Outer wrapper: relative so arrows can float on edges */
.shopee-cat-wrap {
  position: relative;
}

/* Viewport clips the slider */
.shopee-cat-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
}

/* Slider strip: holds all pages side by side */
.shopee-cat-slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Each page = one full viewport width */
.shopee-cat-page {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: auto auto;
  width: 100%;
  flex: 0 0 100%;
  gap: 15px;
  padding: 20px 15px;
}

.shopee-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  background: #fff;
}

.shopee-cat-item:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--border);
}

/* --- PC Styles for Product Headers --- */
.product-section-header,
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 25px;
}

.product-section-header .section-title,
.flash-sale-header .section-title {
  margin-right: 25px;
  margin-bottom: 0;
}

.product-section-header .sale-tabs {
  display: flex;
  gap: 15px;
  margin-right: auto;
}

.product-section-header .view-more-link,
.flash-sale-header .view-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-transform: uppercase;
}

.shopee-cat-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 12px;
  transition: var(--transition);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.shopee-cat-item:hover .shopee-cat-img {
  opacity: 0.9;
}

.shopee-cat-item p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  margin: 0;
  transition: var(--transition);
}

.shopee-cat-item:hover p {
  color: var(--accent);
}

/* Responsive: 6 cols tablet, 4 cols mobile */
@media (max-width: 1024px) {
  .shopee-cat-page {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .shopee-cat-page {
    grid-template-columns: repeat(4, 1fr);
  }

  .shopee-cat-img {
    width: 64px;
    height: 64px;
  }
}

/* --- PROMO BANNER SLIDER --- */
.promo-slider-outer {
  position: relative;
}

.promo-slider-wrapper {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.promo-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.promo-banner-item {
  min-width: 100%;
  height: 200px;
  border-radius: var(--radius-xl);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.promo-banner-item::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.promo-banner-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: fit-content;
}

.promo-title {
  color: white;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.promo-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0;
}

.promo-desc strong {
  color: white;
  font-size: 16px;
}

.promo-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  width: fit-content;
  transition: var(--transition);
  cursor: pointer;
}

.promo-cta:hover {
  background: var(--accent) !important;
  color: white !important;
  transform: translateX(4px);
}

.promo-banner-badge {
  font-size: 72px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -4px;
  font-style: italic;
  position: absolute;
  right: 60px;
  z-index: 0;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.promo-dot.active {
  width: 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
}

.flash-sale-header,
.product-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--title-gap);
}

/* --- BRAND SLIDER --- */
.brand-slider-wrapper {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* margin-top: 20px;
  padding: 20px; */
  position: relative;
  /* border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff; */
}

.brand-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.brand-track {
  display: flex;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  width: calc(1400px / 10);
  /* Default to 10 items per row on desktop */
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: var(--transition);
  padding: 10px 5px;
}

/* Adjust width based on container width variable if available */
@media (min-width: 1400px) {
  .brand-item {
    width: 140px;
  }
}

.brand-logo-box {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.brand-item:hover .brand-logo-box {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.brand-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  color: var(--primary);
  transition: var(--transition);
}

.brand-item:hover .brand-name {
  color: var(--accent);
}

/* --- NEWS SLIDER --- */
.news-slider-wrapper {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-slider-wrapper::-webkit-scrollbar {
  display: none;
}

/* --- NEWS GRID & FILTERS --- */
.news-filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.news-search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.news-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.news-search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #dee5d8;
  border-radius: var(--radius-pill);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.news-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(13, 90, 159, 0.1);
}

.news-cat-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.news-cat-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: white;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.news-cat-btn:hover,
.news-cat-btn.active {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border-color: var(--accent) !important;
  font-weight: 700;
}

.news-track {
  display: flex;
  gap: 24px;
  padding: 10px 0 20px;
  --news-visible: 4;
  width: 100%;
  box-sizing: border-box;
}

.news-track > * {
  flex: 0 0
    calc((100% - (var(--news-visible) - 1) * 24px) / var(--news-visible));
  scroll-snap-align: start;
}

.news-card {
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-track .news-card {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.news-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.news-card:hover .news-title {
  color: var(--accent);
}

.news-img-box {
  height: 200px;
  background: #eee;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-img-box img {
  transform: scale(1.1);
}

.news-date {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

h4.news-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover .news-title {
  color: var(--accent);
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-read-more i {
  transition: transform 0.3s ease;
}

.news-read-more:hover i {
  transform: translateX(5px);
}

/* --- PAGINATION --- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.pag-btn {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.pag-btn:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.pag-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pag-num {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pag-num.active {
  background: #ee4d2d;
  color: white;
  border-color: #ee4d2d;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pag-num:hover:not(.active) {
  border-color: #ee4d2d;
  color: #ee4d2d;
}

.pag-dots {
  color: #999;
}

/* --- SHOP BLOCKS --- */
.shop-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: var(--section-gap);
}

.shop-card {
  height: 400px;
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  position: relative;
}

/* --- FOOTER --- */
footer {
  background: #000;
  color: white;
  padding: 80px 0 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #333;
}

.footer-link {
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

.footer-link:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Products Slider */
.product-slider-wrapper {
  overflow: hidden;
  /* Hide horizontal overflow to prevent half-visible items */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* padding: 20px 0; */
  /* Remove horizontal padding that causes misalignment */
}

:root {
  --prod-visible: 6;
}

.product-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.product-track {
  display: flex;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

.product-track > * {
  /* Precise calculation to fit exactly N items with gaps */
  flex: 0 0
    calc((100% - (var(--prod-visible) - 1) * 15px) / var(--prod-visible));
  scroll-snap-align: start;
}

.p-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  background: white;
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.p-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 247, 230, 1) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  background-size: 200% 200%;
  animation: cardHoverGlow 4s ease infinite;
}

@keyframes cardHoverGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e11d48;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.p-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Force square aspect ratio for neatness */
  overflow: hidden;
  background: #f9f9f9;
  position: relative;
}

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

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

.p-info {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.p-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
  /* 1.4 * 13 * 2 approx 36.4 */
  margin-bottom: 2px;
}

.p-brand {
  display: none !important;
}

.p-rating {
  font-size: 11px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-rating span {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 0;
}

.p-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
  margin-bottom: 0px;
}

.p-price-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.p-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffebd6a6;
  /* Light peachy/cream background from image */
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  /* Pill shape */
  width: fit-content;
  /* margin: 8px 0; */
  font-size: 11px;
  font-weight: 700;
  color: #666;
}

.p-rating i {
  color: #ffc107;
  /* Bright yellow star */
  font-size: 12px;
}

.p-rating span {
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

/* --- PRODUCT TAGS & FLASH PROGRESS --- */
.p-image-box {
  position: relative;
}

.p-tags {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
}

.p-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: white;
  padding: 5px 10px;
  text-transform: uppercase;
  width: fit-content;
  border-radius: 6px 0px 6px 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-size: 300% 300% !important;
  position: relative;
  overflow: hidden;
  animation:
    bgMove 4s ease infinite,
    tagGlow 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes tagGlow {
  0%,
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow:
      0 4px 20px rgba(255, 255, 255, 0.4),
      0 0 10px rgba(255, 255, 255, 0.2);
  }
}

.p-tag::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: rotate(25deg);
  animation: tagShine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes tagShine {
  0% {
    left: -100%;
  }

  20% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.p-tag.orange {
  background: linear-gradient(-45deg, #f59e0b, #fbbf24, #f97316, #fbbf24);
  animation-duration: 4s;
}

.p-tag.orange::after {
  animation-duration: 3s;
  animation-delay: 0.2s;
}

.p-tag.green {
  background: linear-gradient(-45deg, #00bfa5, #26e2c6, #10b981, #26e2c6);
  animation-duration: 5s;
}

.p-tag.green::after {
  animation-duration: 4s;
  animation-delay: 0.5s;
}

.p-tag.red {
  background: linear-gradient(-45deg, #ef4444, #f87171, #dc2626, #f87171);
  animation-duration: 3s;
}

.p-tag.red::after {
  animation-duration: 2.5s;
}

.p-tag.purple {
  background: linear-gradient(-45deg, #8b5cf6, #a78bfa, #7c3aed, #a78bfa);
  animation-duration: 6s;
}

.p-tag.purple::after {
  animation-duration: 5s;
  animation-delay: 1s;
}

.p-tag-large {
  font-size: 14px !important;
  padding: 8px 15px !important;
  border-radius: 20px !important;
}

.flash-progress {
  width: 100%;
  height: 16px;
  background: #ffebd6;
  border-radius: 12px;
  position: relative;
  /* overflow: hidden; */
  margin: 5px 0 0px;
  border: 1px solid #ffe0b2;
}

.flash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ee4d2d 0%, #ff7337 50%, #ee4d2d 100%);
  background-size: 200% 100%;
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: progressShimmer 2s infinite linear;
}

.flash-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 0 4px;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* RECOMMEND GRID */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .recommend-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* FLASH COUNTDOWN */
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
}

.countdown-item {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  min-width: 34px;
  width: 34px;
  text-align: center;
}

.countdown-sep {
  font-weight: 900;
  color: var(--primary);
}

/* DISCOUNT BADGE */
.discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ee4d2d;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 5px;
  border-radius: 0 0 0 10px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.4);
  text-transform: uppercase;
}

.btn-add-cart {
  display: none !important;
}

.btn-add-cart:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

@media (max-width: 1024px) {
  /* category col-width set by JS at breakpoint 4 cols */
  .product-track {
    --prod-visible: 3;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-blocks {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  /* category col-width set by JS at breakpoint 3 cols */
  .product-track {
    --prod-visible: 2;
  }

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

/* --- FLOATING ACTIONS --- */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.action-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
}

.action-btn:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.mess-btn {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  /* Messenger Gradient */
}

.scroll-top-btn {
  background-color: linear-gradient(90deg, #f59e0b, #fbbf24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC STYLES & EFFECTS (AOS Integration)
   ========================================================================== */

/* AOS Fail-safe: Show content if JS fails or AOS doesn't load */
html:not(.aos-init) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.value-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent;
}

.value-card:hover {
  box-shadow: 0 30px 60px rgba(13, 90, 159, 0.12) !important;
  border-color: rgba(13, 90, 159, 0.1);
}

.value-card:hover i {
  transform: scale(1.2) rotate(5deg);
  transition: transform 0.3s ease;
}

.btn-primary {
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.image-composition {
  position: relative;
  width: 100%;
  height: 600px;
}

.image-composition img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-composition .img-main {
  width: 80%;
  height: 80%;
  top: 0;
  right: 0;
  z-index: 1;
}

.image-composition .img-overlap {
  width: 60%;
  height: 60%;
  bottom: 0;
  left: 0;
  z-index: 2;
  border: 10px solid white;
}

/* Hover effects for Images and Blocks */
.about-hero img,
.image-composition img {
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  cursor: pointer;
}

.about-hero img:hover {
  transform: scale(1.05) rotate(1deg);
  filter: saturate(1.2) brightness(1.1);
  box-shadow: 0 30px 60px rgba(13, 90, 159, 0.2) !important;
}

.image-composition:hover .img-main {
  transform: translate(-25px, -25px) scale(1.05) rotate(-1deg) !important;
  filter: brightness(1.1);
}

.image-composition:hover .img-overlap {
  transform: translate(30px, 30px) scale(1.1) rotate(1deg) !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(1.1);
}

.service-item-wrapper {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
}

.service-item-wrapper:hover {
  background: white;
  box-shadow: 0 15px 35px rgba(13, 90, 159, 0.08);
  border-color: rgba(13, 90, 159, 0.15);
  transform: translateX(15px);
}

.service-item-wrapper:hover i {
  transform: scale(1.3) rotate(10deg);
  color: var(--primary);
}

/* --- NEWS DETAIL LAYOUT --- */
.news-detail-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 50px;
}

.news-main-content {
  background: white;
}

.news-meta-top {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: #888;
}

.news-tag {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.news-detail-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 30px;
}

.news-detail-featured-img {
  margin-bottom: 40px;
}

.news-detail-featured-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.img-caption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
}

.news-content-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.news-content-text p {
  margin-bottom: 25px;
}

.news-content-text h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 40px 0 20px;
  font-weight: 700;
}

.news-content-text ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.news-content-text li {
  margin-bottom: 12px;
}

.news-content-text blockquote {
  background: #f0f7ff;
  border-left: 5px solid var(--primary);
  padding: 30px;
  margin: 40px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.news-detail-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-share a {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  transition: var(--transition);
}

.news-share a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.news-tags {
  display: flex;
  gap: 10px;
}

.news-tags a {
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

/* --- SIDEBAR WIDGETS --- */
.news-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  margin-bottom: 40px;
}
.widget-header {
  position: relative;
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.related-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.related-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.related-item:hover .related-img img {
  transform: scale(1.1);
}

.related-info {
  flex: 1;
}

.related-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.related-title:hover {
  color: var(--primary);
}

.related-date {
  font-size: 12px;
  color: #999;
}

.sidebar-cat-list {
  list-style: none;
}

.sidebar-cat-list li {
  margin-bottom: 12px;
}

.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  padding-bottom: 8px;
  border-bottom: 1px solid #f5f5f5;
  transition: var(--transition);
}

.sidebar-cat-list a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.sidebar-cat-list span {
  color: #ccc;
  font-weight: 400;
}

@media (max-width: 992px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* --- PRODUCT LISTING PAGE --- */
.breadcrumb-area {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  list-style: none;
  gap: 10px;
  font-size: 13px;
}

.breadcrumb li a {
  color: #666;
  text-decoration: none;
}

.breadcrumb li.active {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #ccc;
}

.listing-page-section {
  padding: 60px 0;
}

.listing-grid-container {
  display: flex;
  gap: 40px;
}

.listing-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 25px;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Custom scrollbar for refined look */
.listing-sidebar::-webkit-scrollbar {
  width: 4px;
}

.listing-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.listing-sidebar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.listing-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.filter-widget {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 10px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  gap: 6px;
}

.filter-list li {
  border-radius: 8px;
  transition: var(--transition);
}

.filter-list li:hover {
  background: #f8fafc;
}

.filter-list label,
.filter-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  width: 100%;
}

/* --- FILTER CHECKBOX — GOLD BRAND STYLE --- */
.filter-list input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: white;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.filter-list input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.filter-list input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.filter-list input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--accent);
}

.filter-list label:has(input:checked) {
  color: var(--primary);
  font-weight: 600;
}

.filter-list label:has(input:checked) span {
  background: #fef9ec;
  color: #b45309;
  border: 1px solid #fde68a;
}

.filter-list span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  margin-left: auto;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  transition:
    background 0.2s,
    color 0.2s;
}

.filter-list li:hover span {
  background: white;
}

/* --- PRICE RANGE SLIDER — GOLD BRAND STYLE --- */
.price-range-wrapper {
  padding: 4px 2px;
}

.price-range-wrapper input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  /* Gold gradient track: filled left, gray right — set via JS or static */
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--range-progress, 50%),
    #e2e8f0 var(--range-progress, 50%),
    #e2e8f0 100%
  );
  margin-bottom: 12px;
  transition: background 0.2s;
}

/* Webkit thumb */
.price-range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.price-range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
}

/* Firefox thumb */
.price-range-wrapper input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  cursor: pointer;
}

/* Firefox track */
.price-range-wrapper input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 10px;
  background: #e2e8f0;
}

.price-range-wrapper input[type="range"]::-moz-range-progress {
  background: var(--accent);
  height: 5px;
  border-radius: 10px;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

.price-labels span {
  background: #fef9ec;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.listing-main-content {
  flex: 1;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.listing-title {
  font-size: 24px;
  font-weight: 800;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 14px;
}

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.listing-p-card {
  width: 100%;
  /* Override fixed width from .p-card */
}

.p-unit {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.p-vat {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.vat-val {
  color: #ef4444;
  /* Red VAT % as requested */
  font-weight: 700;
}

.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  color: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-add-cart:hover {
  background: var(--accent-hover);
  color: white;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 60px;
  /* Increased gap as requested */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pag-btn,
.pag-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-circle);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: #666;
}

.pagination-wrapper .page-link {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius-circle) !important;
}

.pag-num.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pag-btn:hover,
.pag-num:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: white;
}

.pag-dots {
  color: #999;
}

/* --- PRODUCT DETAIL PAGE --- */
.p-detail-section {
  padding: 48px 0;
}

/* Gallery */
.p-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-list {
  display: flex;
  gap: 15px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--primary);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.p-detail-info {
  display: flex;
  flex-direction: column;
}

.p-detail-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.p-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #f1c40f;
}

.p-detail-rating span {
  color: #666;
}

.p-detail-meta {
  font-size: 14px;
  color: #666;
}

.p-detail-price-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.p-detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.p-detail-vat {
  font-size: 13px;
  color: #ef4444;
  font-weight: 600;
  margin-top: 5px;
}

.p-detail-qty {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 18px;
}

.qty-val {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 700;
}

.p-actions {
  display: flex;
  gap: 15px;
}

.btn-p-action {
  flex: 1;
  padding: 15px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-cart-detail {
  background: #e0f2fe;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-add-cart-detail:hover {
  background: var(--primary);
  color: white;
}

.btn-buy-now {
  background: var(--primary);
  color: white;
}

.btn-buy-now:hover {
  background: #0a4a82;
}

/* Policies */
.p-policies {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.policy-item i {
  color: var(--primary);
  font-size: 16px;
}

/* Tabs */
.p-detail-tabs {
  margin-top: 60px;
}

.tab-nav {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.tab-nav-item {
  padding-bottom: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: #666;
}

.tab-nav-item.active {
  color: var(--primary);
}

.tab-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.tab-content {
  line-height: 1.8;
  color: #444;
}

@media (max-width: 1200px) {
  .product-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .listing-grid-container {
    flex-direction: column;
  }

  .listing-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }

  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT GRID — 5 COLUMNS (products listing page) */
.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1400px) {
  .product-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* FOOTER REFINEMENT */
footer {
  background: #111;
  color: #fff;
  padding: 80px 0 0 0;
  font-family: var(--font-main);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.footer-link {
  color: #999;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
}

/* PRODUCT RATING STYLES */
.p-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  /* margin-bottom: 10px; */
}

.p-rating i {
  color: #ffc107;
  font-size: 12px;
}

.p-rating span {
  font-size: 10px;
  color: #2a3142;
  font-weight: normal;
}

/* FLOATING ACTIONS */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.action-btn {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.hotline-btn {
  background: #d00;
}

.zalo-btn {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.scroll-top-btn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top-btn.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.action-btn:hover {
  transform: scale(1.1);
}

/* --- SIDE CART SIDEBAR --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: white;
  z-index: 99999;
  box-shadow: none;
  /* Remove shadow when hidden */
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-sidebar.active {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  /* Add shadow only when active */
}

.cart-header {
  padding: 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.close-cart:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f8fafc;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f1f5f9;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
}

.cart-item-price {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.cart-item-qty {
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

.remove-item {
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.remove-item:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 25px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total span:first-child {
  font-size: 16px;
  font-weight: 600;
}

.cart-total-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--accent-hover);
  color: white;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* --- AUTH PAGES --- */
.auth-page {
  background-color: var(--bg-alt);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.auth-card {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.auth-card-register {
  max-width: 650px;
}

.auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: var(--transition);
  background: #fcfdfe;
}

.auth-form input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-check label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 600;
  text-transform: none;
  font-size: 14px;
}

.seller-fields {
  display: none;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.4s ease-out;
}

.seller-fields.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.btn-auth {
  width: 100%;
  padding: 16px;
  background: var(--primary) !important;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-auth:hover {
  background: var(--accent) !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .seller-fields.active {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 30px 20px;
  }
}

/* --- STANDARDIZED AUTH BUTTONS --- */
.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.auth-btn-login {
  color: var(--accent);
  border: 2px solid var(--accent);
  background: transparent;
}

.auth-btn-login:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.25);
}

.auth-btn-register {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.auth-btn-register:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* --- SOCIAL LOGIN --- */
.social-login {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.separator:not(:empty)::before {
  margin-right: 15px;
}

.separator:not(:empty)::after {
  margin-left: 15px;
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-google img {
  height: 20px;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- USER PROFILE DROPDOWN --- */

/* Auth wrapper: hidden by default (demo starts logged in) */
/* #headerAuth {
  display: none;
} */

/* Guest profile inherits same layout as logged-in profile */
.user-profile.guest-profile {
  gap: 8px;
}

.user-profile {
  position: relative;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.user-profile:hover .avatar {
  border-color: var(--accent);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 250px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.user-profile:hover .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

.user-info-brief {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

.user-info-brief .user-name {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  font-size: 15px;
}

.user-info-brief .user-role {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.menu-item i {
  width: 18px;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
}

.menu-item:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.menu-item:hover i {
  color: var(--accent);
}

.seller-menu-section {
  border-top: 1px dashed var(--border);
  margin-top: 5px;
  padding-top: 5px;
}

.menu-label {
  padding: 10px 20px 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logout-item {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  color: #ef4444 !important;
}

.logout-item i {
  color: #ef4444 !important;
}

.logout-item:hover {
  background: #fef2f2;
}

/* --- COUPON POPUP --- */
.coupon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coupon-overlay.active {
  display: flex;
  opacity: 1;
}

.coupon-card {
  background: white;
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coupon-overlay.active .coupon-card {
  transform: scale(1);
}

.close-coupon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.close-coupon:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.coupon-icon {
  width: 80px;
  height: 80px;
  background: #fffbeb;
  color: var(--accent);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

.coupon-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}

.coupon-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.coupon-box {
  background: #f8fafc;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.coupon-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}

.btn-copy {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--accent-hover);
}

.btn-copy.copied {
  background: #10b981;
}

.coupon-exp {
  font-size: 12px;
  color: var(--text-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- CONTACT PAGE --- */
.contact-section {
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

/* Contact Info */
.contact-info-card {
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 100%;
}

.contact-info-card .section-title {
  font-size: 24px;
  margin-bottom: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
  transition: var(--transition);
}

.info-item:hover .info-icon {
  background: var(--accent);
  color: white;
}

.info-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--primary);
}

.info-text p,
.info-text a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-text a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form-wrapper {
  padding: 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: white;
  transition: var(--transition);
  outline: none;
  color: var(--primary);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.btn-submit i {
  font-size: 16px;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-column {
  height: 100%;
}

/* --- PROFILE PAGES --- */
.profile-section {
  min-height: 80vh;
}

.profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Profile Sidebar */
.profile-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-user-info {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
  width: 80px;

  height: 80px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 4px solid var(--bg-alt);
}

.sidebar-user-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 700;
}

.sidebar-user-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar-menu {
  padding: 15px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link i {
  width: 20px;
  font-size: 16px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
  border-left-color: var(--accent);
}

.sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border);
}

.btn-become-seller {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: block;
  transition: var(--transition);
}

.btn-become-seller:hover {
  background: var(--accent);
  color: white !important;
}

/* Profile Content */
.profile-main-content {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.content-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.content-header h2 {
  font-size: 22px;
  font-weight: 700;
}

/* Orders Table */
.order-table-wrapper {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th {
  text-align: left;
  padding: 15px;
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: normal;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

/* Delivered */
.badge-warning {
  background: #fef9c3;
  color: #854d0e;
}

/* Shipping */
.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Cancelled */
.badge-info {
  background: #e0f2fe;
  color: #075985;
}

/* Processing */

.btn-view-detail {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.btn-view-detail:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
}

/* --- ORDER DETAIL --- */
.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.order-id-meta h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.order-id-meta p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Order Summary Grid */
.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.summary-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.summary-card p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Shop Groups */
.shop-order-group {
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.shop-header {
  padding: 15px 20px;
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.shop-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-name i {
  color: var(--accent);
}

.product-list {
  padding: 0 20px;
}

.product-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.product-item:last-child {
  border-bottom: none;
}

.product-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
}

.product-info {
  flex: 1;
}

.product-info h5 {
  font-size: 15px;
  margin-bottom: 5px;
}

.product-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.product-price-qty {
  text-align: right;
}

.p-price-each {
  font-weight: 600;
  color: var(--primary);
}

.p-qty {
  font-size: 13px;
  color: var(--text-muted);
}

/* Total Section */
.order-total-section {
  max-width: 400px;
  margin-left: auto;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.total-row.grand-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px dashed var(--border);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}

.btn-cancel-order {
  color: #ef4444;
  font-weight: 600;
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-order:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.btn-outline-danger {
  border: 1px solid #ef4444;
  color: #ef4444;
  background: transparent;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.btn-outline-danger:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #b91c1c;
}

/* ==========================================================================
   CUSTOM MODAL SYSTEM
   ========================================================================== */
.qp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qp-modal-container {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.qp-modal-overlay.active .qp-modal-container {
  transform: translateY(0) scale(1);
}

.qp-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qp-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qp-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.qp-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.qp-modal-body {
  padding: 30px;
}

.qp-modal-footer {
  padding: 20px 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Custom Toast Notification */
.qp-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2000;
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid #10b981;
}

.qp-toast.active {
  transform: translateX(0);
}

.qp-toast-icon {
  width: 24px;
  height: 24px;
  background: #d1fae5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.qp-toast-content {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Custom Outline Buttons */
.btn-qp-outline-danger {
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid #ef4444;
  background: white;
  color: #ef4444;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-qp-outline-danger:hover {
  background: #ef4444;
  color: white;
}

.btn-qp-outline-primary {
  padding: 12px 35px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent);
  background: white;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-qp-outline-primary:hover {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 184, 0, 0.4);
}

/* ==========================================================================
   HEADER REFINEMENT
   ========================================================================== */
.header-nav-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.8px;
  opacity: 0.9;
}

.header-nav-link:hover {
  color: var(--accent);
  opacity: 1;
}

.header-tools {
  gap: 20px;
}

.header-actions {
  gap: 20px;
}

.header-actions a {
  font-size: 18px;
  color: var(--primary);
  transition: var(--transition);
}

.header-actions a:hover {
  color: var(--accent);
}

/* Search Dropdown System */
.search-container {
  position: relative;
}

.search-trigger {
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  padding: 15px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
  margin-top: 15px;
}

.search-container:hover .search-dropdown,
.search-container.active .search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-input-group {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 8px 15px;
  border: 1px solid var(--border);
}

.search-input-group input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  padding: 5px;
}

.search-input-group button {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
}

/* User Profile & Dropdown Refinement */
.user-profile {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.user-profile:hover {
  background: var(--bg-alt);
}

.user-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 1100;
  margin-top: 15px;
}

.user-profile:hover .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info-brief {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

.user-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.menu-item i {
  width: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.menu-item:hover {
  background: #f1f5f9;
  color: var(--accent);
}

.menu-item:hover i {
  color: var(--accent);
}

.logout-item {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 15px;
  color: #ef4444;
}

.logout-item:hover {
  background: #fef2f2;
  color: #ef4444;
}

.logout-item i {
  color: #ef4444;
}

.seller-menu-section {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 10px;
}

.menu-label {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 
   QP-LOGISTIC - SELLER CENTER PREMIUM STYLES
   Integrated into index.css
*/

:root {
  --seller-bg: #f8fafc;
  --seller-card-bg: rgba(255, 255, 255, 0.9);
  --seller-border: #e2e8f0;
  --seller-muted: #64748b;
  --seller-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Base Layout Overrides for Seller Pages */
.profile-section {
  background-color: var(--seller-bg);
}

/* Premium Card Style */
.premium-card {
  background: white;
  border: 1px solid var(--seller-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--seller-shadow);
  transition: box-shadow 0.3s ease;
}

/* Stats Grid & Cards - FIXED ALIGNMENT */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  height: 100%;
  background: white;
  padding: 25px !important;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-icon.icon-blue {
  background: #e0f2fe;
  color: #0ea5e9;
}

.stat-icon.icon-orange {
  background: #fef3c7;
  color: #f59e0b;
}

.stat-icon.icon-green {
  background: #dcfce7;
  color: #10b981;
}

.stat-icon.icon-red {
  background: #fee2e2;
  color: #ef4444;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -5px;
}

/* REMOVE HOVER SCALE ON BLOCKS */
.premium-card:hover,
.stat-card:hover {
  transform: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
  border-color: var(--seller-border) !important;
}

/* Sidebar Navigation */
.profile-sidebar {
  background: white;
  border-radius: 24px;
  padding: 20px 0;
  border: 1px solid var(--seller-border);
  box-shadow: var(--seller-shadow);
  overflow: hidden;
}

.sidebar-user-info {
  padding: 0 20px 20px 20px;
}

.sidebar-link {
  padding: 15px 25px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--seller-muted) !important;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  border-radius: 0 !important;
}

.sidebar-link i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #fffaf0 !important;
  color: var(--accent) !important;
}

.sidebar-link.active {
  border-left-color: var(--accent);
}

/* Advanced Table Styling */
.order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 0;
}

.order-table thead th {
  padding: 15px 20px;
  color: var(--seller-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  border: none;
  background: #f8fafc !important;
}

.order-table thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.order-table thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.order-table tbody tr {
  background: white;
  transition: background 0.2s ease;
}

.order-table tbody tr:hover {
  background: #fdfdfd;
  transform: none !important;
}

.order-table td {
  padding: 16px 20px !important;
  border-top: 1px solid var(--seller-border);
  border-bottom: 1px solid var(--seller-border);
  vertical-align: middle;
}

.order-table td:first-child {
  border-left: 1px solid var(--seller-border);
  border-radius: 16px 0 0 16px;
}

.order-table td:last-child {
  border-right: 1px solid var(--seller-border);
  border-radius: 0 16px 16px 0;
}

/* Filter Buttons - MATCH SCREENSHOT */
.filter-btn {
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--seller-border);
  background: white;
  color: #64748b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.filter-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* User Status & Badges */
.user-status-active {
  background: #dcfce7;
  color: #10b981;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 5px;
}

.badge {
  padding: 6px 12px;
  font-weight: 700;
  font-size: 11px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
}

.badge-info {
  background: #e0f2fe;
  color: #0ea5e9;
}

.badge-warning {
  background: #fff7ed;
  color: #f59e0b;
}

.badge-success {
  background: #f0fdf4;
  color: #22c55e;
}

.btn-reg-seller {
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-reg-seller:hover {
  background: var(--accent) !important;
  color: white !important;
}

/* Simplified Buttons - Modern & Clean */
.btn-excel {
  background: white;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-excel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-add-product {
  background: #0f172a;
  color: white !important;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-add-product:hover {
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Customer Info in Table */
.customer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.customer-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 2px;
}

.customer-phone {
  font-size: 11px;
  color: var(--text-muted);
}

/* Product Action Text Links */
.table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.text-action {
  background: none;
  border: none;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.text-action:hover {
  color: var(--accent);
  opacity: 1;
}

.text-action.text-danger {
  color: #ef4444;
}

.text-action.text-danger:hover {
  color: #b91c1c;
}

.action-divider {
  color: #e2e8f0;
  font-size: 12px;
}

/* Status Badges */
.badge-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.badge-approved {
  background: #dcfce7;
  color: #16a34a;
}

.badge-pending {
  background: #fef3c7;
  color: #d97706;
}

.badge-rejected {
  background: #fee2e2;
  color: #dc2626;
}

.badge-shipping {
  background: #e0f2fe;
  color: #0ea5e9;
}

/* Order Management Filters */
.order-status-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.status-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.3s ease;
}

.status-tab:hover {
  color: var(--primary);
}

.status-tab.active {
  color: var(--accent);
}

.status-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 10px 10px 0 0;
}

.order-filter-card .form-control {
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
}

.order-filter-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-filter-apply {
  background: #0f172a;
  color: white !important;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 10px 24px;
  border: none;
  transition: all 0.3s ease;
}

.btn-filter-apply:hover {
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Custom Search Box */
.search-box-custom {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.search-box-custom i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 1;
  font-size: 14px;
}

.search-box-custom input {
  width: 100%;
  padding: 10px 15px 10px 45px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box-custom input:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
  outline: none;
}

.search-box-custom input::placeholder {
  color: #94a3b8;
}

/* Action Menu (3 Dots) */
.btn-action-menu {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-action-menu:hover {
  background: #f1f5f9;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dropdown-menu-custom {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 10px;
  min-width: 200px;
  margin-top: 8px !important;
  animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.dropdown-item-custom {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border: none !important;
  /* Force remove any default borders */
  background: transparent;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.dropdown-item-custom:hover {
  background: #f1f5f9;
  color: var(--accent);
}

.dropdown-item-custom.text-danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

.dropdown-item-custom i {
  width: 18px;
  font-size: 15px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.dropdown-item-custom:hover i {
  color: inherit;
}

/* .dropdown-divider {
  margin: 8px 0;
} */

/* Premium Pagination */
.pagination-container {
  padding: 20px 0;
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.page-link {
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px !important;
  margin: 0 3px;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1 !important;
  color: var(--primary) !important;
}

.page-item.active .page-link {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.page-item.disabled .page-link {
  background: #f8fafc;
  color: #cbd5e1 !important;
  border-color: #f1f5f9 !important;
}

/* Premium Form Styles */
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 10px;
  display: block;
}

.form-control,
.form-select {
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 14px !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  transition: all 0.3s ease !important;
}

.form-control:focus,
.form-select:focus {
  background-color: white !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1) !important;
  outline: none !important;
}

.input-group-text {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  border-radius: 0 12px 12px 0 !important;
  font-weight: 700;
  color: #64748b;
  padding: 0 16px !important;
  font-size: 13px;
}

.input-group > .form-control {
  border-radius: 12px 0 0 12px !important;
}

.form-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-title i {
  color: var(--accent);
  font-size: 20px;
}

.sticky-form-footer {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  z-index: 100;
  margin-top: 40px;
}

/* Image Upload & Preview */
.image-upload-wrapper {
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.3s ease;
  text-align: center;
}

.image-upload-wrapper:hover {
  background: #f1f5f9;
  border-color: var(--accent);
}

.upload-icon {
  color: #94a3b8;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.image-upload-wrapper:hover .upload-icon {
  color: var(--accent);
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.preview-item {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-preview:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* Checkbox Cards */
.checkbox-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.checkbox-card:hover {
  border-color: var(--accent);
  background: #fffaf0;
  transform: translateY(-1px);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 4px;
}

.checkbox-card span {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* Payment Summary Card - Refined Version */
.payment-summary-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  margin-bottom: 35px;
  transition: all 0.3s ease;
}

.payment-summary-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.balance-icon-box {
  width: 64px;
  height: 64px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #334155;
  transition: all 0.3s ease;
}

.payment-summary-card:hover .balance-icon-box {
  background: white;
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-5deg);
}

.balance-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.balance-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

p.brand-name {
  margin-bottom: 0px;
}

.py-lg-4.py-4 {
  padding: 2rem 0rem !important;
}

/* CUSTOM BUTTONS - DYNAMIC HOVER */
.btn-qp-outline-primary {
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 700;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-qp-outline-primary:hover {
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(238, 77, 45, 0.3);
  transform: translateY(-3px);
}

.btn-qp-outline-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7337, var(--accent));
  background-size: 200% auto;
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-qp-outline-primary:hover::before {
  left: 0;
  animation: bgMove 3s infinite linear;
}

.btn-qp-outline-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(25deg);
  z-index: 2;
  pointer-events: none;
}

.btn-qp-outline-primary:hover::after {
  animation: tagShine 2s infinite;
}

.btn-add-cart {
  width: 100%;
  padding: 8px;
  background: white;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-add-cart:hover {
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(238, 77, 45, 0.2);
}

.btn-add-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7337, var(--accent));
  background-size: 200% auto;
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-add-cart:hover::before {
  left: 0;
  animation: bgMove 3s infinite linear;
}

/* RECOMMEND FILTERS */
.recommend-filters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.recommend-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f2;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.25);
  position: relative;
  overflow: hidden;
}

.filter-btn.active::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(25deg);
  animation: tagShine 3s infinite;
}

/* MODERN PRODUCT FILTERS (MATCHING IMAGE) */
.section-title-modern {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  margin-bottom: 0;
  white-space: nowrap;
}

.section-title-modern::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.modern-filters {
  display: flex;
  gap: 30px;
  margin-left: 20px;
  border-bottom: 2px solid #f1f5f9;
  width: 100%;
}

.m-filter-btn {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.m-filter-btn:hover {
  color: var(--accent);
}

.m-filter-btn.active {
  color: var(--accent);
}

.m-filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 991px) {
  .modern-filters {
    margin-left: 0;
    gap: 15px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

/* REFINED MODERN FILTERS */
.section-title-modern {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  padding-bottom: 8px;
}

.section-title-modern::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.modern-filters {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 0;
}

.m-filter-btn {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.m-filter-btn:hover {
  color: var(--accent);
}

.m-filter-btn.active {
  color: var(--accent);
}

.m-filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* SINGLE ROW MODERN FILTERS */
.section-title-modern {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  position: relative;
  margin-bottom: 0;
  padding-right: 15px;
  border-right: 2px solid #e2e8f0;
  line-height: 1.2;
}

.modern-filters {
  display: flex;
  gap: 25px;
  align-items: center;
}

.m-filter-btn {
  background: none;
  border: none;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.m-filter-btn:hover {
  color: var(--accent);
}

.m-filter-btn.active {
  color: var(--accent);
}

.m-filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.view-more-link {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- SHOPEE STYLE HEADER OPTIMIZATION --- */
:root {
  --shopee-orange: #ee4d2d;
  --shopee-orange-hover: #f05d40;
}

.top-bar {
  background: #ffffff !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 6px 0 !important;
}

.top-bar-inner {
  font-weight: 400 !important;
}

.top-bar-left span,
.top-bar-right a {
  color: white !important;
  font-size: 13px !important;
  opacity: 0.9;
}

.top-bar-left span:hover,
.top-bar-right a:hover {
  opacity: 1;
}

/* .top-bar-left i {
  color: white !important;
} */

header {
  background: var(--shopee-orange) !important;
  padding: 10px 0 20px 0 !important;
  box-shadow: none !important;
}

.header-inner {
  display: grid !important;
  grid-template-columns: 200px 1fr 100px !important;
  align-items: center !important;
  gap: 40px !important;
}

.logo-container img {
  height: 50px !important;
}

.search-area-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopee-search-bar {
  background: white;
  padding: 3px;
  border-radius: 2px;
  display: flex;
  height: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shopee-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 14px;
}

.shopee-search-btn {
  background: var(--shopee-orange);
  border: none;
  color: white;
  padding: 0 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.shopee-search-btn:hover {
  background: var(--shopee-orange-hover);
}

.shopee-search-btn i {
  font-size: 14px;
}

.search-hints {
  display: flex;
  gap: 15px;
}

.search-hints a {
  color: white;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

.search-hints a:hover {
  opacity: 1;
}

.header-cart-shopee {
  display: flex;
  justify-content: center;
  position: relative;
}

.header-cart-shopee .cart-btn {
  font-size: 26px;
  color: white;
}

.header-cart-shopee .cart-count {
  top: -5px;
  right: -12px;
  background: white;
  color: var(--shopee-orange);
  border: 2px solid var(--shopee-orange);
  font-size: 11px;
}

@media (max-width: 991px) {
  .header-inner {
    grid-template-columns: 1fr auto !important;
    gap: 15px !important;
  }

  .search-area-wrapper {
    display: none;
  }
}

/* --- REFINED BRANDED HEADER (ANTI-CLICHE SHOPEE) --- */
header {
  background: var(--primary) !important;
  padding: 15px 0 25px 0 !important;
}

.top-bar {
  background: #0a0f1d !important;
  /* Slightly darker than primary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.header-inner {
  display: grid !important;
  grid-template-columns: 280px 1fr 180px !important;
  /* Wider logo space for dual logos */
  gap: 30px !important;
}

.dual-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
}

.logo-mall-text {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shopee-search-bar {
  border: 2px solid var(--accent) !important;
  border-radius: 4px !important;
}

.shopee-search-btn {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.header-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

.header-right-tools .cart-btn,
.header-right-tools .user-tool-btn {
  font-size: 24px;
  color: white;
  position: relative;
  transition: var(--transition);
}

.header-right-tools .cart-btn:hover,
.header-right-tools .user-tool-btn:hover {
  color: var(--accent);
}

.user-tool-btn {
  cursor: pointer;
}

.header-right-tools .cart-count {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 800 !important;
}

/* Adjust User Profile for Header */
.header-right-tools .user-profile {
  margin: 0;
  padding: 0;
}

.header-right-tools .avatar {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
}

/* --- PREMIUM BRANDED HEADER REFINEMENT --- */
header {
  background: var(--primary) !important;
  padding: 15px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.dual-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 250px;
}

.logo-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.logo-mall-text {
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-area-wrapper {
  flex: 1;
  max-width: 700px;
  margin: 0 40px;
}

.shopee-search-bar {
  background: white;
  border: none !important;
  border-radius: 4px !important;
  padding: 4px !important;
  height: 44px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shopee-search-bar input {
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 400;
}

.shopee-search-btn {
  width: 60px !important;
  height: 100% !important;
  border-radius: 3px !important;
  font-size: 18px !important;
}

.search-hints {
  margin-top: 6px;
  padding-left: 10px;
}

.search-hints a {
  font-size: 11.5px !important;
  margin-right: 18px;
  color: rgba(255, 255, 255, 0.85) !important;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.header-right-tools .user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.header-right-tools .user-profile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.header-right-tools .avatar {
  width: 36px !important;
  height: 36px !important;
  border: 1.5px solid var(--accent) !important;
  object-fit: cover;
}

.header-right-tools .user-name-mall {
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.header-cart-shopee {
  margin-left: 5px;
}

.header-cart-shopee .cart-btn {
  font-size: 24px !important;
  padding: 8px;
}

.header-cart-shopee .cart-count {
  min-width: 18px;
  height: 18px;
  top: 0px !important;
  right: -2px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

/* Fix for top bar fonts */
.top-bar-inner a,
.top-bar-inner span {
  font-size: 12.5px !important;
  font-weight: 400 !important;
}

/* --- LIGHT PREMIUM HEADER (BRAND IDENTITY) --- */
header {
  background: #ffffff !important;
  padding: 18px 0 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid #f1f5f9;
}

.top-bar {
  background: #ffffff !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 6px 0 !important;
}

.top-bar-inner a,
.top-bar-inner span {
  color: #0f172a !important;
  font-size: 13px !important;
}

.top-bar-inner a:hover {
  color: var(--accent) !important;
}

.top-bar-inner .vr {
  background: #e2e8f0 !important;
  opacity: 1 !important;
}

.logo-divider {
  background: #e2e8f0 !important;
}

.logo-mall-text {
  color: var(--primary) !important;
  /* Navy Mall text for clean look */
  font-size: 22px;
}

.shopee-search-bar {
  background: #f1f5f9 !important;
  /* Soft gray background for input */
  box-shadow: none !important;
}

.shopee-search-bar input {
  background: transparent !important;
  color: var(--primary) !important;
}

.shopee-search-bar input::placeholder {
  color: #94a3b8;
}

.search-hints a {
  color: #0f172a !important;
}

.search-hints a:hover {
  color: var(--accent) !important;
}

.header-right-tools .user-name-mall {
  color: var(--primary) !important;
}

.header-right-tools .cart-btn {
  color: var(--primary) !important;
}

.header-right-tools .vr {
  background: #e2e8f0 !important;
  opacity: 1 !important;
}

.header-right-tools .user-profile:hover {
  background: #f8fafc !important;
}

/* --- UNIQUE PREMIUM MALL HEADER (ANTI-SHOPEE) --- */
header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 12px 0 !important;
  border-bottom: 2px solid var(--accent) !important;
  /* Gold line at bottom for prominence */
}

.header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
}

/* Logo Section - More Integrated */
.dual-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.mall-badge {
  background: linear-gradient(135deg, var(--accent), #ff8a00);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(255, 184, 0, 0.3);
}

/* New Navigation Menu in Header */
.header-nav-mall {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0 20px;
  flex: 1;
}

.mall-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);
}

.mall-nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.mall-nav-link:hover {
  color: var(--accent);
}

.mall-nav-link:hover::after {
  width: 100%;
}

/* Refined Compact Search */
.search-area-wrapper {
  margin: 0 !important;
  max-width: 320px !important;
  flex: 0 0 320px !important;
}

.shopee-search-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-pill) !important;
  /* Pill shape is different from Shopee square */
  height: 40px !important;
}

.shopee-search-bar input {
  font-size: 14px !important;
}

.shopee-search-btn {
  background: transparent !important;
  color: var(--primary) !important;
  width: 45px !important;
  border-radius: 50% !important;
}

.shopee-search-btn:hover {
  color: var(--accent) !important;
}

/* Tools Section */
.header-right-tools {
  gap: 15px !important;
}

.header-right-tools .user-profile {
  background: transparent !important;
  padding: 0 !important;
}

.header-right-tools .user-name-mall {
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase;
}

.header-cart-shopee .cart-btn {
  background: var(--primary);
  color: white !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px !important;
  transition: var(--transition);
}

.header-cart-shopee .cart-btn:hover {
  background: var(--accent);
  color: var(--primary) !important;
}

.header-cart-shopee .cart-count {
  top: -5px !important;
  right: -5px !important;
  border: 2px solid white !important;
}

/* --- OPTIMIZED MALL-CENTRIC HEADER (SHOPEE STYLE) --- */
header {
  background: #ffffff !important;
  padding: 15px 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  border-bottom: none !important;
}

.header-inner {
  display: grid !important;
  grid-template-columns: 240px 1fr 240px !important;
  /* Fixed columns for balanced centering */
  align-items: center !important;
  gap: 30px !important;
}

/* Logo Area - Distinct Mall & Logistic */
.dual-logo-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.logo-mall-main {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.logo-logistic-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Centered & Large Search Bar */
.search-area-wrapper {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  position: relative !important;
  flex: none !important;
}

.shopee-search-bar {
  background: #ffffff !important;
  border: 2px solid var(--accent) !important;
  /* Thick gold border for focus */
  border-radius: 4px !important;
  /* Shopee style is slightly rounded/square */
  height: 48px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  padding: 3px !important;
}

.shopee-search-bar input {
  padding: 0 15px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.shopee-search-btn {
  background: var(--accent) !important;
  color: var(--primary) !important;
  width: 60px !important;
  height: 100% !important;
  border-radius: 2px !important;
  font-size: 20px !important;
}

/* Suggestion Box (Hidden by default, shown on focus) */
.search-suggestions-box {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
  /* Controlled by JS or :focus-within */
  z-index: 1000;
  padding: 15px;
}

.search-area-wrapper:focus-within .search-suggestions-box {
  display: block;
}

.suggestion-section-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-tag {
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
  transition: var(--transition);
}

.suggestion-tag:hover {
  background: var(--accent);
  color: white;
}

/* Search Hints (Below Bar) */
.search-hints {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.search-hints a {
  color: #0f172a !important;
  font-size: 12px !important;
}

/* Tools */
.header-right-tools {
  justify-content: flex-end !important;
  gap: 25px !important;
}

.header-right-tools .user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right-tools .user-name-mall {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
}

.header-cart-shopee .cart-btn {
  background: transparent !important;
  color: var(--primary) !important;
  font-size: 24px !important;
}

.header-cart-shopee .cart-count {
  background: var(--accent) !important;
  color: var(--primary) !important;
}

/* --- REFINED DUAL LOGO HEADER --- */
.dual-logo-container {
  display: flex !important;
  flex-direction: row !important;
  /* Back to horizontal */
  align-items: center !important;
  gap: 15px !important;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-mall-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-logistic-title {
  font-size: 20px;
  font-weight: 900;
  color: #64748b;
  /* Subtle gray for logistic */
  letter-spacing: -0.5px;
}

.logo-sub-text {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px;
}

.logo-divider-v {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

/* Hide language switcher as requested */
.top-bar-right .dropdown,
.top-bar-right .vr:nth-last-child(2),
.top-bar-right .vr:nth-last-child(4) {
  display: none !important;
}

/* --- IMAGE BASED DUAL LOGO STYLES --- */
.dual-logo-container .logo-link img {
  display: block;
  width: auto;
  transition: var(--transition);
  filter: brightness(1);
}

.dual-logo-container .logo-link:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.logo-divider-v {
  background: #cbd5e1 !important;
  /* Slightly darker divider for image logos */
}

/* --- ADVANCED SYNCED SEARCH BAR --- */
.shopee-search-bar {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  border-radius: 8px !important;
  /* Slightly more rounded but professional */
  padding: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition) !important;
}

.shopee-search-bar:focus-within {
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15) !important;
  border-color: var(--accent) !important;
}

.shopee-search-bar input {
  padding-left: 15px !important;
  font-size: 15px !important;
  color: #1e293b !important;
}

.shopee-search-btn {
  background: var(--primary) !important;
  border-radius: 6px !important;
  width: 60px !important;
  height: 40px !important;
  color: #fff !important;
  font-size: 18px !important;
  transition: var(--transition) !important;
}

.shopee-search-btn:hover {
  background: var(--accent) !important;
  transform: translateY(0) !important;
  /* Stable hover */
}

/* --- SUGGESTIONS BOX ENHANCEMENTS --- */
.search-suggestions-box {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 20px !important;
  top: calc(100% + 10px) !important;
  /* Gap below bar */
}

.suggestion-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-section-title a {
  text-transform: none;
  font-weight: 500;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

/* Improved Keyword Hover */
.suggestion-tag {
  background: #f1f5f9 !important;
  border: 1px solid transparent !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  color: #334155 !important;
  transition: all 0.2s ease !important;
}

.suggestion-tag:hover {
  background: #fff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.1) !important;
  transform: translateY(-2px);
}

/* Recently Searched Products Layout */
.recent-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recent-p-item {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.recent-p-item:hover {
  background: #f8fafc;
}

.recent-p-img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
}

.recent-p-info {
  flex: 1;
  min-width: 0;
}

.recent-p-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-p-price {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

/* --- PREMIUM REFINED SEARCH BAR (ULTRA MODERN) --- */
.shopee-search-bar {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  /* Soft default border */
  border-radius: 12px !important;
  /* More modern rounding */
  padding: 5px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
}

.shopee-search-bar:focus-within {
  border-color: var(--primary) !important;
  /* Gold border on focus */
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.12) !important;
  transform: translateY(-1px);
}

.shopee-search-bar input {
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  border: none !important;
  background: transparent !important;
}

.shopee-search-bar input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px;
}

.shopee-search-btn {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 100%
  ) !important;
  border: none !important;
  border-radius: 10px !important;
  min-width: 54px !important;
  height: 44px !important;
  color: #fff !important;
  font-size: 19px !important;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shopee-search-btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3) !important;
  transform: scale(1.02) !important;
}

.shopee-search-btn i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Suggestions Box - Floating Card Style */
.search-suggestions-box {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 16px !important;
  margin-top: 12px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 24px !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.suggestion-section-title {
  color: #1e293b !important;
  letter-spacing: 1px;
  opacity: 0.7;
}

.suggestion-tag {
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}

.suggestion-tag:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px) scale(1.05) !important;
}

/* --- SYNCED COLOR THEME & POSITIONING --- */
.search-area-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

.shopee-search-bar {
  border: 2.5px solid var(--primary) !important;
  /* SYNCED GOLD BORDER */
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1) !important;
  z-index: 1001 !important;
  /* Above suggestions */
}

.shopee-search-bar:focus-within {
  border-color: var(--accent) !important;
}

/* Suggestion Box - Positioned immediately below the BAR, not the wrapper */
.search-suggestions-box {
  position: absolute !important;
  top: 48px !important;
  /* Directly below the 44px+padding bar */
  left: 0 !important;
  right: 0 !important;
  margin-top: 5px !important;
  /* Very close gap */
  z-index: 1000 !important;
}

/* Sync Button to the same Gold Theme */
.shopee-search-btn {
  background: var(--primary) !important;
  /* Solid Gold for sync */
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 100%
  ) !important;
  border-radius: 8px !important;
}

.search-hints {
  margin-top: 8px !important;
  z-index: 1 !important;
  /* Behind the suggestions if open */
}

/* --- REFINED THIN SYNCED SEARCH BAR --- */
.shopee-search-bar {
  border: 1px solid #e2e8f0 !important;
  /* Thin, subtle border */
  border-radius: 8px !important;
  /* Professional rounding */
  padding: 3px !important;
  /* More compact */
  transition: all 0.2s ease !important;
  height: 46px !important;
}

.shopee-search-bar:focus-within {
  border-color: var(--primary) !important;
  /* Switch to Gold on focus */
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
}

.shopee-search-bar input {
  height: 38px !important;
  font-size: 14px !important;
  /* Slightly smaller for tidiness */
}

.shopee-search-btn {
  background: var(--primary) !important;
  /* Solid Brand Gold */
  min-width: 46px !important;
  height: 38px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  box-shadow: none !important;
  /* Cleaner look */
}

.shopee-search-btn:hover {
  background: var(--accent) !important;
  transform: none !important;
}

/* Tidy Suggestions Box */
.search-suggestions-box {
  padding: 16px !important;
  /* More compact padding */
  border-radius: 12px !important;
  top: 46px !important;
}

.suggestion-section-title {
  margin-bottom: 10px !important;
  font-size: 12px !important;
}

.recent-products-grid {
  gap: 8px !important;
}

.recent-p-item {
  padding: 6px !important;
}

.recent-p-img {
  width: 38px !important;
  height: 38px !important;
}

.suggestion-tag {
  padding: 5px 12px !important;
  font-size: 12px !important;
}

/* --- SYNCED GOLD SEARCH THEME --- */
:root {
  /* Ensuring Gold is the primary accent for Search */
  --qp-gold: #ffb800;
  --qp-gold-dark: #e6a600;
}

.shopee-search-bar {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: all 0.3s ease !important;
}

/* Focus: Input Border turns Gold */
.shopee-search-bar:focus-within {
  border-color: var(--qp-gold) !important;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1) !important;
}

/* Button: Matches Gold Border */
.shopee-search-btn {
  background: var(--qp-gold) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(255, 184, 0, 0.2) !important;
}

/* Button Hover: Consistent Sync */
.shopee-search-btn:hover {
  background: var(--qp-gold-dark) !important;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3) !important;
  transform: translateY(-1px);
}

/* Sync Suggestion Tags Hover to Gold */
.suggestion-tag:hover {
  background: var(--qp-gold) !important;
  color: #fff !important;
  border-color: var(--qp-gold) !important;
  box-shadow: 0 4px 10px rgba(255, 184, 0, 0.2) !important;
}

/* Sync Recent Products Hover */
.recent-p-item:hover {
  background: rgba(255, 184, 0, 0.05) !important;
  border-radius: 8px;
}

.recent-p-price {
  color: var(--qp-gold-dark) !important;
}

.recent-p-price-old {
  color: #94a3b8 !important;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
  text-decoration: line-through;
}

/* --- HOVER EFFECT FOR CLEAR LINKS --- */
.suggestion-section-title a {
  transition: color 0.2s ease !important;
}

.suggestion-section-title a:hover {
  color: var(--qp-gold-dark) !important;
  /* Matches the gold hover theme */
  text-decoration: underline !important;
}

/* --- REFINED SEARCH BUTTON HOVER --- */
.shopee-search-btn:hover {
  background: #1e293b !important;
  /* Dark Navy for high contrast with white icon */
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px);
}

.shopee-search-btn i {
  transition: transform 0.2s ease !important;
}

.shopee-search-btn:hover i {
  transform: scale(1.1);
  /* Subtle pop for the icon */
}

/* --- REFINED CART BADGE & HOVER --- */
.header-cart-shopee {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-btn {
  position: relative !important;
  color: var(--primary) !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.cart-btn:hover {
  background: rgba(var(--primary-rgb), 0.05) !important;
  color: var(--qp-gold) !important;
  transform: translateY(-2px);
}

.cart-count {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  background-color: var(--qp-gold) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  width: 20px !important;
  /* Fixed width */
  height: 20px !important;
  /* Fixed height */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  /* Perfect circle */
  border: 2px solid #fff !important;
  /* White ring for pop */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.cart-btn:hover .cart-count {
  background-color: var(--accent) !important;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 184, 0, 0.3) !important;
}

/* --- FIXED LOGO SHARPNESS --- */
.logo-link:hover {
  opacity: 1 !important;
  /* Keep full opacity */
}

.dual-logo-container .logo-link:hover img {
  transform: none !important;
  /* Remove scaling to maintain absolute sharpness */
  opacity: 1 !important;
  /* Remove fading */
  filter: brightness(1.1) !important;
  /* Subtle brightness instead of blur */
}

/* --- SCALE DOWN LOGO ON HOVER --- */
.dual-logo-container .logo-link:hover img {
  filter: none !important;
  /* Remove brightness */
  transform: scale(0.98) !important;
  /* Slight scale down as requested */
  opacity: 1 !important;
}

/* --- PRODUCT DETAIL OPTIMIZATIONS (PC) --- */
.p-detail-layout {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.p-detail-old-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.p-detail-old-price .old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 16px;
}

.p-detail-old-price .discount {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.p-detail-vat {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

.p-variations {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.variation-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.variation-label {
  min-width: 100px;
  color: #64748b;
  font-size: 14px;
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v-opt {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.v-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.v-opt.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #fffbeb;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--primary);
}

.p-detail-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
}

.p-detail-qty {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stock-hint {
  font-size: 13px;
  color: #94a3b8;
}

/* Shop Info Card */
.shop-info-card {
  margin: 30px 0;
  padding: 25px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 30px;
  align-items: center;
}

.shop-main {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-right: 30px;
  border-right: 1px solid #e2e8f0;
}

.shop-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 5px;
  object-fit: contain;
}

.shop-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-status {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.shop-btns {
  display: flex;
  gap: 10px;
}

.btn-shop-outline {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  background: white;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-shop-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.shop-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  font-size: 14px;
}

.stat-item span {
  color: #64748b;
  margin-right: 5px;
}

.stat-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* Enhanced Policies */
.p-policies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.policy-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.policy-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbeb;
  color: var(--primary);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.policy-text {
  display: flex;
  flex-direction: column;
}

.policy-text strong {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 2px;
}

.policy-text span {
  font-size: 12px;
  color: #64748b;
}

/* --- GALLERY ENHANCEMENTS --- */
.main-img-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f8fafc;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
}

.main-img-box:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background: var(--primary);
  color: white;
}

.gallery-nav.prev {
  left: 15px;
}

.gallery-nav.next {
  right: 15px;
}

.thumb-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  position: relative;
}

.thumb-nav {
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
}

.thumb-nav:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.thumb-list {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: hidden;
}

.thumb-item {
  flex: 0 0 calc(20% - 8px);
  aspect-ratio: 1/1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.thumb-item.active {
  border-color: var(--primary);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- REPOSITIONED SHOP CARD --- */
.shop-info-card {
  margin: 40px 0;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.shop-main {
  border-right: 1px solid #f1f5f9;
}

/* --- COMPACT PRODUCT DETAIL --- */

.p-detail-name {
  font-size: 24px !important;
  margin-bottom: 8px !important;
}

.p-detail-rating {
  margin-bottom: 12px !important;
}

.p-detail-meta {
  margin-bottom: 15px !important;
  gap: 5px !important;
  display: flex !important;
  flex-direction: column !important;
}

.p-detail-meta p {
  margin-bottom: 2px !important;
  font-size: 13px !important;
}

.p-detail-price-box {
  padding: 15px !important;
  margin-bottom: 15px !important;
}

.p-detail-price {
  font-size: 28px !important;
}

.p-detail-qty-wrapper {
  margin: 15px 0 !important;
}

.p-actions {
  margin-bottom: 20px !important;
  gap: 12px !important;
}

.shop-info-card {
  margin: 20px 0 !important;
  padding: 15px !important;
}

.p-policies {
  margin-top: 20px !important;
  padding-top: 15px !important;
  border-top: 1px solid #f1f5f9 !important;
  gap: 15px !important;
}

.thumb-list {
  margin-top: 10px !important;
  justify-content: center !important;
}

.thumb-item {
  flex: 0 0 65px !important;
  height: 65px !important;
}

/* --- REDESIGNED PRODUCT DETAIL LAYOUT --- */
.p-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
  z-index: 10;
}

.count-text {
  padding: 4px 8px;
}

.view-all-text {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.view-all-text:hover {
  background: rgba(255, 255, 255, 0.3);
}

.p-badge-new {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.p-meta-subtitle {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 15px;
}

.p-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
}

.stat-group strong {
  font-size: 15px;
  color: #1e293b;
}

.rating-stars {
  color: #f59e0b;
}

.divider-v {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

.status-badge {
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
}

.status-badge.stock-in {
  color: #10b981;
  border-color: #10b981;
}

.status-badge.stock-out {
  color: #94a3b8;
  border-color: #94a3b8;
}

.p-detail-price {
  font-size: 32px !important;
  color: #ef4444 !important;
  font-weight: 700;
}

.p-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

.p-meta-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.p-meta-table td {
  padding: 8px 0;
  vertical-align: middle;
}

.meta-label {
  color: #64748b;
  width: 100px;
}

.meta-value {
  color: #1e293b;
}

.social-shares a {
  color: #1e293b;
  font-size: 18px;
  margin-right: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.social-shares a:hover {
  color: var(--primary);
}

.p-condition-text {
  font-size: 14px;
  color: #64748b;
  margin: 15px 0;
}

.p-actions-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.btn-add-cart-outline {
  flex: 1;
  background: transparent;
  border: 1px solid #1e293b;
  color: #1e293b;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-add-cart-outline:hover {
  background: #f8fafc;
}

.btn-wishlist {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wishlist:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.btn-buy-now-full {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy-now-full:hover {
  filter: brightness(1.1);
}

/* Redesigned Shop Info */
.shop-info-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px !important;
  border-radius: 8px;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  margin: 0 !important;
}

.shop-main {
  border-right: none !important;
  padding-right: 0 !important;
  flex: 1;
}

.shop-logo {
  width: 50px !important;
  height: 50px !important;
}

.shop-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-rating {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 4px;
}

.shop-actions-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  text-decoration: none;
}

.btn-shop-outline {
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* -- Actions Row Alignment -- */
.p-actions-row {
  display: flex;
  gap: 15px;
  align-items: stretch;
  height: 48px;
}

.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}

.qty-btn {
  width: 40px;
  height: 100%;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.qty-val {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

/* --- COMPACT REFINEMENTS --- */
.p-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.p-badge-new {
  background: #0f172a;
  align-self: flex-start;
  margin-bottom: 12px;
}

.p-detail-name {
  font-size: 22px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.p-meta-subtitle {
  margin-bottom: 15px;
}

.p-detail-rating-row {
  margin-bottom: 15px;
}

.p-detail-price-box {
  padding: 15px 20px !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  width: 100%;
}

.p-divider {
  margin: 15px 0;
  width: 100%;
}

.p-meta-table {
  margin-bottom: 10px;
}

.meta-label {
  width: 120px;
  color: #64748b;
  font-size: 13px;
}

.meta-value {
  font-size: 13px;
}

.p-condition-text {
  margin: 10px 0 20px 0;
  font-size: 13px;
}

.p-actions-row {
  width: 100%;
  margin-bottom: 12px;
}

.btn-buy-now-full {
  background: #0f172a;
  color: white;
  border-radius: 4px;
}

.btn-buy-now-full:hover {
  background: #1e293b;
}

/* Shop Info Card Tightening */
.shop-info-card {
  padding: 12px 15px !important;
  margin-top: 15px !important;
}

.shop-name {
  font-size: 15px !important;
  margin-bottom: 2px !important;
}

.shop-rating {
  font-size: 12px;
  margin-top: 0;
}

.shop-actions-right {
  gap: 10px;
}

.shop-icon-btn {
  width: 28px;
  height: 28px;
}

.btn-shop-outline {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* --- DRAG TO SCROLL GALLERY & UI TWEAKS --- */
.gallery-scroll-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  border-radius: var(--radius-lg);
}

.gallery-scroll-track::-webkit-scrollbar {
  display: none;
}

.gallery-scroll-track.active {
  cursor: grabbing;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  scroll-snap-align: start;
  pointer-events: none;
}

.gallery-nav {
  display: none !important;
}

/* Tighter Buttons */
.qty-input,
.btn-add-cart-outline,
.btn-wishlist {
  border: 1px solid #e2e8f0 !important;
}

.btn-add-cart-outline {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.btn-add-cart-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
}

.btn-buy-now-full {
  background: #0f172a !important;
}

.btn-buy-now-full:hover {
  background: #1e293b !important;
}

/* --- FINAL BUTTON & PRICE REFINEMENTS --- */
.p-detail-price {
  color: var(--primary) !important;
}

.p-qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.qty-input {
  height: 40px;
  /* smaller height */
  border-radius: var(--radius-lg) !important;
}

.qty-btn {
  width: 36px;
  font-size: 16px;
}

.qty-val {
  width: 40px;
  font-size: 14px;
}

.stock-hint {
  font-size: 13px;
  color: #64748b;
}

.p-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  height: auto;
}

.btn-p-action {
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-lg) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-add-cart-outline {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(245, 158, 11, 0.05) !important;
}

.btn-add-cart-outline:hover {
  background: rgba(245, 158, 11, 0.1) !important;
}

.btn-buy-now-full {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
}

.btn-buy-now-full:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px);
  background: var(--primary) !important;
}

/* --- GALLERY MODAL --- */
.gallery-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-modal.active {
  transform: translateY(0);
}

.gallery-modal-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.gallery-modal-header h3 {
  font-size: 16px;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #1e293b;
  cursor: pointer;
}

.gallery-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
}

.modal-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.modal-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- ENFORCE GOLD THEME OVERRIDES --- */
.p-detail-price {
  color: var(--primary) !important;
}

.btn-buy-now-full {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
}

.btn-buy-now-full:hover {
  background: var(--accent) !important;
  /* Slightly darker gold if available, or just use primary */
  filter: brightness(0.95);
}

.btn-add-cart-outline {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-add-cart-outline:hover {
  background: rgba(245, 158, 11, 0.2) !important;
}

.p-badge-new {
  background: var(--primary) !important;
  color: #fff !important;
}

/* Ensure price box doesn't have huge padding */
.p-detail-price-box {
  background: transparent !important;
  padding: 0 !important;
}

.p-qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.qty-input {
  height: 44px;
  border-radius: var(--radius-lg) !important;
  border-color: #cbd5e1 !important;
}

.p-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-p-action {
  border-radius: var(--radius-lg) !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FINAL BUTTON AESTHETIC TWEAKS --- */
.btn-add-cart-outline {
  background: #fffbeb !important;
  /* Light cream/gold tint */
  border: 1px solid #0f172a !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-add-cart-outline:hover {
  background: #fef3c7 !important;
}

.btn-buy-now-full {
  background: #0f172a !important;
  color: #fff !important;
  border: 1px solid #0f172a !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-buy-now-full:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
}

/* --- GOLD THEME BUTTONS --- */
.btn-add-cart-outline {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-add-cart-outline:hover {
  background: rgba(245, 158, 11, 0.2) !important;
}

.btn-buy-now-full {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
}

.btn-buy-now-full:hover {
  background: var(--accent) !important;
  /* var(--accent) should be the hover color for primary */
  border-color: var(--accent) !important;
}

/* --- SHOP ICON BUTTONS ENHANCEMENTS --- */
.shop-actions-right {
  gap: 15px !important;
}

.shop-icon-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s ease !important;
}

.shop-icon-btn img {
  width: 26px !important;
  height: auto !important;
  transition: all 0.3s ease !important;
}

.shop-icon-btn i {
  font-size: 18px !important;
  color: #64748b !important;
  transition: all 0.3s ease !important;
}

.shop-icon-btn:hover {
  background: #ffb800 !important;
  border-color: #ffb800 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.shop-icon-btn:hover i {
  color: #fff !important;
}

.shop-icon-btn:hover img {
  filter: brightness(0) invert(1) !important;
}

/* --- FIX ZALO HOVER VISIBILITY --- */
.shop-icon-btn:hover img {
  filter: none !important;
  /* Do not make the Zalo icon a solid white silhouette */
}
/* --- 5-COLUMN PRODUCT GRID --- */
.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1199px) {
  .product-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  .product-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* --- ENHANCED ZALO HOVER EFFECT --- */
.shop-icon-btn.zalo-btn:hover {
  background: #0068ff !important;
  border-color: #0068ff !important;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4) !important;
}

.shop-icon-btn.zalo-btn:hover img {
  filter: brightness(0) invert(1) !important;
}

/* --- PHONE BTN HOVER --- */
.shop-icon-btn.phone-btn:hover {
  background: #22c55e !important;
  border-color: #22c55e !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35) !important;
}
.shop-icon-btn.phone-btn:hover i {
  color: #fff !important;
}

/* --- FIX ZALO ICON ON HOVER (v2) --- */
.shop-icon-btn.zalo-btn:hover img {
  filter: none !important;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

/* --- REMOVE BORDER FROM ZALO HOVER --- */
.shop-icon-btn.zalo-btn:hover img {
  box-shadow: none !important;
}

/* Product Reviews Section (BEM) */
.product-reviews {
  margin-top: 2rem;
}

.product-reviews__item {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-reviews__header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-reviews__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-reviews__avatar--initials {
  background: #272343;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.product-reviews__info {
  display: flex;
  flex-direction: column;
}

.product-reviews__name {
  margin: 0;
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
}

.product-reviews__rating {
  color: #f59e0b;
  font-size: 12px;
  margin-top: 4px;
}

.product-reviews__text {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.product-reviews__meta {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 8px;
}

.product-reviews__gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-reviews__gallery-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #eee;
}

.product-reviews__form-wrapper {
  margin-top: 40px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
}

.product-reviews__form-title {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.product-reviews__form-group {
  margin-bottom: 15px;
}

.product-reviews__form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #475569;
}

.product-reviews__star-select {
  color: #f59e0b;
  font-size: 20px;
  cursor: pointer;
}

.product-reviews__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
}

.product-reviews__form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.product-reviews__input {
  flex: 1;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.product-reviews__submit {
  background: #e5a600 !important;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.product-reviews__submit:hover {
  background: #cc9400 !important;
}

/* --- NEW BADGES & SOCIAL SHARES --- */
.p-badges-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.p-badge-new {
  margin-bottom: 0 !important;
}
.p-badge-new.red {
  background: #ef4444 !important;
}
.p-badge-new.blue {
  background: #3b82f6 !important;
}
.p-badge-new.orange {
  background: #f59e0b !important;
}
.p-badge-new.purple {
  background: #8b5cf6 !important;
}
.p-badge-new.green {
  background: #10b981 !important;
}

.social-shares {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 5px;
}
.social-shares a {
  color: #64748b;
  font-size: 18px;
  transition: all 0.3s;
}
.social-shares a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
