/* ==========================================================================
   PGTBD Pro - Master Theme Stylesheet
   Design matching PGTBD Power with Yellow Header & Yellow Brand Accents
   High Security, High Performance, 100% Responsive
   ========================================================================== */

:root {
  --primary-yellow: #F8B600;
  --primary-yellow-hover: #e6c100;
  --primary-yellow-dark: #b89a00;
  --primary-black: #000000;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1600px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Full Wide Container */
.pgtbd-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pgtbd-container-full {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header Styles (White Background for Top Header, PGT Logo stands out)
   ========================================================================== */
.pgtbd-header-top {
  background-color: #ffffff;
  color: var(--primary-black);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 60;
}

.pgtbd-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

/* Logo */
.pgtbd-logo-link {
  display: block;
  width: 220px;
  max-width: 100%;
}

.pgtbd-logo-img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

.pgtbd-footer-logo-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* Search Bar */
.pgtbd-search-form {
  flex: 1;
  max-width: 620px;
  display: flex;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}

.pgtbd-search-category {
  background: #f9fafb;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-black);
  cursor: pointer;
  outline: none;
}

.pgtbd-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--primary-black);
  outline: none;
  background: #ffffff;
}

.pgtbd-search-btn {
  background-color: var(--primary-yellow);
  color: var(--primary-black);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.pgtbd-search-btn:hover {
  background-color: var(--primary-yellow-hover);
}

/* Header Right / Hotline & Cart */
.pgtbd-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pgtbd-hotline-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-black);
}

.pgtbd-hotline-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fef08a;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgtbd-hotline-text {
  display: flex;
  flex-direction: column;
}

.pgtbd-hotline-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
}

.pgtbd-hotline-number {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-black);
  letter-spacing: 0.5px;
}

/* Cart Icon Button */
.pgtbd-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.pgtbd-cart-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary-yellow);
}

.pgtbd-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary-yellow);
  color: var(--primary-black);
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Navigation Bar (Yellow with Black Words) */
.pgtbd-navbar {
  background-color: var(--primary-yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid var(--primary-yellow-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pgtbd-nav-wrap {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 52px;
}

/* ==========================================================================
   ALL CATEGORIES Header & Toggle (100% IDENTICAL SIZE & STYLING)
   ========================================================================== */
.pgtbd-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  height: 50px;
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

.pgtbd-sidebar-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 5px 5px 0 0;
  box-sizing: border-box;
}

.pgtbd-category-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 100;
  border-radius: 0 0 6px 6px;
}

.pgtbd-category-toggle:hover .pgtbd-category-menu,
.pgtbd-category-menu.active {
  display: flex;
}

.pgtbd-cat-item-wrap {
  position: relative;
  width: 100%;
}

.pgtbd-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
  cursor: pointer;
}

.pgtbd-cat-item-wrap:hover > .pgtbd-category-item {
  background-color: #F8B600;
  color: #000000;
  font-weight: 700;
}

.pgtbd-cat-item-wrap:hover > .pgtbd-category-item svg {
  stroke: #000000;
  transform: translateX(3px);
}

/* Subcategory Flyout Panel */
.pgtbd-subcat-menu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 2px solid #F8B600;
  box-shadow: 6px 12px 30px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 120;
  border-radius: 0 8px 8px 0;
  padding: 6px 0;
}

.pgtbd-cat-item-wrap:hover > .pgtbd-subcat-menu {
  display: flex;
}

.pgtbd-subcat-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
  transition: all 0.2s;
}

.pgtbd-subcat-link:hover {
  background-color: #fef9c3;
  color: #000000;
  font-weight: 700;
  padding-left: 24px;
}

/* Main Navigation Menu - Strict Single Horizontal Line */
.pgtbd-menu-items {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pgtbd-menu-items li {
  display: flex !important;
  align-items: stretch !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.pgtbd-menu-items li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  padding: 0 15px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  height: 100% !important;
  min-height: 50px !important;
  line-height: 50px !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.pgtbd-menu-items li a:hover,
.pgtbd-menu-items li.current-menu-item a {
  background-color: #000000 !important;
  color: #F8B600 !important;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .pgtbd-menu-items li a {
    padding: 0 8px !important;
    font-size: 11.5px !important;
    letter-spacing: -0.2px !important;
  }
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .pgtbd-menu-items li a {
    padding: 0 12px !important;
    font-size: 12.5px !important;
  }
}

/* Mobile Nav Toggle */
.pgtbd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-black);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Homepage Hero Layout with STILL / PERMANENT Category Sidebar
   Banner height matches Category Sidebar EXACTLY to the bottom of Petrol Engine
   ========================================================================== */
.pgtbd-home-hero-wrap {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding-top: 16px;
  position: relative;
}

.pgtbd-sidebar-categories {
  width: 280px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.pgtbd-sidebar-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 5px 5px 0 0;
  box-sizing: border-box;
}
}

.pgtbd-sidebar-categories-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pgtbd-slider-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.pgtbd-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 516px;
  overflow: hidden;
  background-color: #f3f4f6;
  border-radius: 6px;
}

.pgtbd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
}

.pgtbd-slide.active {
  opacity: 1;
  visibility: visible;
}

.pgtbd-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .pgtbd-sidebar-categories {
    display: none;
  }
}
.pgtbd-hero {
  position: relative;
  background-color: #f3f4f6;
  overflow: hidden;
  width: 100%;
}

.pgtbd-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 650;
  min-height: 280px;
  max-height: 650px;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .pgtbd-slider-container {
    aspect-ratio: 16 / 7;
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .pgtbd-slider-container {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
}

.pgtbd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

.pgtbd-slide.active {
  opacity: 1;
  visibility: visible;
}

.pgtbd-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pgtbd-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 70%);
}

.pgtbd-slide-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  color: #ffffff;
  padding: 40px;
}

.pgtbd-slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pgtbd-slide-desc {
  font-size: 16px;
  margin-bottom: 24px;
  color: #e5e7eb;
}

.pgtbd-btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-yellow);
  color: var(--primary-black) !important;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pgtbd-btn-yellow:hover {
  background-color: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Slider Controls */
.pgtbd-slider-arrows {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.pgtbd-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pgtbd-arrow-btn:hover {
  background: var(--primary-yellow);
  color: var(--primary-black);
}

/* ==========================================================================
   Section Header Styling
   ========================================================================== */
.pgtbd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.pgtbd-section-head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: var(--primary-yellow);
}

.pgtbd-section-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pgtbd-section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pgtbd-section-link:hover {
  color: var(--primary-yellow-dark);
}

/* ==========================================================================
   Product Card (Exact 4:3 Ratio, Floating Icons, Yellow Add to Cart)
   ========================================================================== */
.pgtbd-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 1536px) {
  .pgtbd-product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

.pgtbd-product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.pgtbd-product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-yellow);
}

/* Thumbnail wrapper with exact 4:3 Aspect Ratio */
.pgtbd-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pgtbd-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.pgtbd-product-card:hover .pgtbd-card-img {
  transform: scale(1.06);
}

/* Floating Action Badges */
.pgtbd-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.pgtbd-product-card:hover .pgtbd-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.pgtbd-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-black);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.pgtbd-action-icon-btn:hover {
  background: var(--primary-yellow);
  color: var(--primary-black);
  border-color: var(--primary-yellow);
}

/* Product Card Details */
.pgtbd-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.pgtbd-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.pgtbd-card-title:hover {
  color: var(--primary-yellow-dark);
}

.pgtbd-card-price-box {
  margin-bottom: 6px;
}

.pgtbd-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #b45309; /* Deep Golden Amber */
}

.pgtbd-card-price del {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 6px;
  font-weight: 500;
}

.pgtbd-card-emi {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pgtbd-card-emi strong {
  color: var(--primary-black);
}

/* Yellow Add to Cart Button */
.pgtbd-btn-add-cart {
  width: 100%;
  background-color: var(--primary-yellow);
  color: var(--primary-black) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--primary-yellow-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.pgtbd-btn-add-cart:hover {
  background-color: var(--primary-yellow-hover);
  border-color: var(--primary-black);
}

/* ==========================================================================
   Single Product Page Layout
   ========================================================================== */
.pgtbd-single-product-wrap {
  padding: 40px 0 60px;
}

.pgtbd-product-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* Gallery */
.pgtbd-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pgtbd-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pgtbd-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.pgtbd-thumb-item {
  width: 80px;
  height: 60px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
  background: #ffffff;
}

.pgtbd-thumb-item.active,
.pgtbd-thumb-item:hover {
  border-color: var(--primary-yellow-dark);
}

.pgtbd-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Meta & Buying */
.pgtbd-product-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pgtbd-product-brand-badge {
  display: inline-block;
  background: #fef08a;
  color: var(--primary-black);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.pgtbd-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.pgtbd-product-big-price {
  font-size: 32px;
  font-weight: 900;
  color: #b45309;
}

.pgtbd-emi-banner-box {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--primary-black);
}

/* Quantity & Action Buttons */
.pgtbd-buy-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.pgtbd-qty-input {
  width: 70px;
  height: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--border-color);
  border-radius: 6px;
}

.pgtbd-btn-single-cart {
  flex: 1;
  height: 48px;
  background-color: var(--primary-yellow);
  color: var(--primary-black) !important;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid var(--primary-yellow-dark);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.pgtbd-btn-single-cart:hover {
  background-color: var(--primary-yellow-hover);
  border-color: var(--primary-black);
}

/* Call to Order Box */
.pgtbd-call-order-card {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-yellow-dark);
  padding: 16px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* Product Tabs */
.pgtbd-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.pgtbd-tab-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.pgtbd-tab-btn.active {
  color: var(--primary-black);
  border-bottom-color: var(--primary-yellow-dark);
}

.pgtbd-tab-content {
  display: none;
  padding: 10px 0;
  line-height: 1.7;
}

.pgtbd-tab-content.active {
  display: block;
}

/* Specs Table */
.pgtbd-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.pgtbd-specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.pgtbd-specs-table th,
.pgtbd-specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
}

.pgtbd-specs-table th {
  width: 35%;
  background: #f9fafb;
  font-weight: 600;
  color: var(--primary-black);
}

/* ==========================================================================
   Standard Blog, Archive & Page Templates (SEO Preservation)
   ========================================================================== */
.pgtbd-page-wrap {
  padding: 40px 0 60px;
}

.pgtbd-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.pgtbd-post-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pgtbd-post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.pgtbd-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pgtbd-post-card:hover .pgtbd-post-thumb img {
  transform: scale(1.05);
}

.pgtbd-post-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pgtbd-post-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.pgtbd-post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pgtbd-post-title:hover {
  color: var(--primary-yellow-dark);
}

.pgtbd-post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pgtbd-post-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-yellow-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination */
.pgtbd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pgtbd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--primary-black);
}

.pgtbd-pagination .page-numbers.current,
.pgtbd-pagination .page-numbers:hover {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow-dark);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.pgtbd-footer {
  background-color: #ffffff !important;
  color: var(--text-dark);
  border: 2px solid #F8B600 !important;
  padding-top: 30px;
}

.pgtbd-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.pgtbd-footer-logo-wrap {
  width: 220px;
  margin-bottom: 18px;
}

.pgtbd-footer-headset {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.pgtbd-footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pgtbd-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--primary-black);
  transition: all 0.2s;
}

.pgtbd-social-btn:hover {
  transform: translateY(-3px);
  background: var(--primary-yellow);
}

.pgtbd-footer-col-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-black);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.pgtbd-footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--primary-yellow);
}

.pgtbd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pgtbd-footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
}

.pgtbd-footer-links li a:hover {
  color: var(--primary-yellow-dark);
  padding-left: 4px;
}

.pgtbd-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.pgtbd-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pgtbd-contact-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-yellow-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Payment Banner */
.pgtbd-payment-banner-wrap {
  padding: 30px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pgtbd-payment-banner-img {
  max-width: 900px;
  width: 100%;
  height: auto;
}

/* Newsletter Box */
.pgtbd-newsletter-wrap {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.pgtbd-newsletter-form {
  display: flex;
  width: 100%;
  max-width: 480px;
}

.pgtbd-newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
}

.pgtbd-newsletter-submit {
  background-color: var(--primary-yellow);
  color: var(--primary-black);
  font-weight: 800;
  padding: 0 24px;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  transition: background-color 0.2s;
}

.pgtbd-newsletter-submit:hover {
  background-color: var(--primary-yellow-hover);
}

.pgtbd-copyright-bar {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Slide-in Offcanvas Drawers (Cart & Mobile Menu)
   ========================================================================== */
.pgtbd-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pgtbd-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pgtbd-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 360px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
}

.pgtbd-drawer-left {
  left: 0;
  transform: translateX(-100%);
}

.pgtbd-drawer-left.active {
  transform: translateX(0);
}

.pgtbd-drawer-right {
  right: 0;
  transform: translateX(100%);
}

.pgtbd-drawer-right.active {
  transform: translateX(0);
}

.pgtbd-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-yellow);
  color: var(--primary-black);
}

.pgtbd-drawer-title {
  font-size: 18px;
  font-weight: 800;
}

.pgtbd-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--primary-black);
}

.pgtbd-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1400px) {
  .pgtbd-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .pgtbd-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pgtbd-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pgtbd-header-wrap {
    flex-wrap: wrap;
  }
  .pgtbd-search-form {
    order: 3;
    max-width: 100%;
    margin-top: 10px;
  }
  .pgtbd-hotline-box {
    display: none;
  }
  .pgtbd-navbar {
    display: none;
  }
  .pgtbd-mobile-toggle {
    display: block;
  }
  .pgtbd-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pgtbd-product-main-grid {
    grid-template-columns: 1fr;
  }
  .pgtbd-blog-grid {
    grid-template-columns: 1fr;
  }
  .pgtbd-footer-grid {
    grid-template-columns: 1fr;
  }
  .pgtbd-hero .pgtbd-slider-container {
    height: 320px;
  }
  .pgtbd-slide-title {
    font-size: 24px;
  }
  .pgtbd-slide-desc {
    display: none;
  }
}

/* ==========================================================================
   Category & Archive Page Structure (Matched to PGTBD Power)
   Shop by Sidebar + Product Grid + In-Depth Technical Article & Specs Table
   ========================================================================== */
.pgtbd-breadcrumb-wrap {
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  font-size: 13px;
  color: #4b5563;
}

.pgtbd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pgtbd-breadcrumb a {
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pgtbd-breadcrumb a:hover {
  color: #000000;
  text-decoration: underline;
}

.pgtbd-breadcrumb .separator {
  color: #9ca3af;
  font-size: 11px;
}

.pgtbd-breadcrumb .current {
  color: #111827;
  font-weight: 600;
}

/* Category Title Banner */
.pgtbd-cat-header {
  padding: 24px 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.pgtbd-cat-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}

.pgtbd-cat-header-count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* Shop Layout (Sidebar + Main) */
.pgtbd-shop-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Left Sidebar ("SHOP BY") */
.pgtbd-shop-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.pgtbd-filter-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pgtbd-filter-main-header {
  background-color: var(--primary-yellow);
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pgtbd-filter-section {
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 18px;
}

.pgtbd-filter-section:last-child {
  border-bottom: none;
}

.pgtbd-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

.pgtbd-filter-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
}

.pgtbd-filter-cats-item {
  margin-bottom: 6px;
  font-size: 13px;
}

.pgtbd-filter-cats-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  color: #374151;
  transition: all 0.2s;
}

.pgtbd-filter-cats-link:hover {
  background-color: #fef9c3;
  color: #000000;
}

.pgtbd-filter-cats-link.active {
  background-color: #fef08a;
  color: #000000;
  font-weight: 700;
  border-left: 3px solid #000000;
}

.pgtbd-filter-subcats {
  list-style: none;
  padding-left: 14px;
  margin-top: 4px;
  margin-bottom: 6px;
  border-left: 1px solid #e5e7eb;
}

.pgtbd-filter-subcats-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 12.5px;
  color: #4b5563;
  border-radius: 3px;
}

.pgtbd-filter-subcats-link:hover {
  color: #000000;
  font-weight: 600;
}

.pgtbd-filter-subcats-link.active {
  background-color: #fef9c3;
  color: #000000;
  font-weight: 700;
}

.pgtbd-cat-badge {
  color: #9ca3af;
  font-size: 11px;
}

/* Price Filter Slider */
.pgtbd-price-slider-wrap {
  padding-top: 6px;
}

.pgtbd-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pgtbd-price-inputs input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
}

.pgtbd-price-btn {
  width: 100%;
  background-color: var(--primary-yellow);
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pgtbd-price-btn:hover {
  background-color: var(--primary-yellow-hover);
}

/* Compare / Wishlist Boxes */
.pgtbd-sidebar-info-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.pgtbd-sidebar-info-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 6px;
}

.pgtbd-sidebar-info-text {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}

/* Shop Main Content */
.pgtbd-shop-main {
  flex: 1;
  min-width: 0;
}

.pgtbd-shop-toolbar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pgtbd-toolbar-left,
.pgtbd-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pgtbd-view-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
}

.pgtbd-view-mode-btn.active {
  background-color: var(--primary-yellow);
  color: #000000;
  border-color: var(--primary-yellow);
}

.pgtbd-items-count {
  font-size: 13px;
  color: #4b5563;
}

.pgtbd-sort-select,
.pgtbd-per-page-select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
}

/* Product Grid for Category Page (3 Columns with Sidebar) */
.pgtbd-cat-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Rich SEO Article Block (Bottom Section) */
.pgtbd-seo-article-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 36px 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pgtbd-seo-article-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-yellow);
}

.pgtbd-seo-article-wrap h2:first-child {
  margin-top: 0;
}

.pgtbd-seo-article-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 22px;
  margin-bottom: 8px;
}

.pgtbd-seo-article-wrap p {
  color: #374151;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  text-align: justify;
}

.pgtbd-seo-article-wrap ul,
.pgtbd-seo-article-wrap ol {
  margin-bottom: 18px;
  padding-left: 24px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.7;
}

.pgtbd-seo-article-wrap li {
  margin-bottom: 6px;
}

/* Responsive Technical Specifications Table */
.pgtbd-spec-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.pgtbd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
}

.pgtbd-spec-table th {
  background-color: #000000;
  color: var(--primary-yellow);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #1f2937;
}

.pgtbd-spec-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.pgtbd-spec-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.pgtbd-spec-table tbody tr:hover {
  background-color: #fef9c3;
}

.pgtbd-spec-table .spec-price {
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.pgtbd-spec-table .spec-link {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
}

.pgtbd-spec-table .spec-link:hover {
  color: #d97706;
}

/* Mobile Sidebar Toggle Button */
.pgtbd-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-yellow);
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

@media (max-width: 991px) {
  .pgtbd-shop-sidebar {
    display: none;
  }
  .pgtbd-mobile-filter-btn {
    display: inline-flex;
  }
  .pgtbd-cat-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgtbd-seo-article-wrap {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .pgtbd-cat-product-grid {
    grid-template-columns: 1fr;
  }
  .pgtbd-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ==========================================================================
   PGTBD YELLOW PRO - COMPREHENSIVE MOBILE RESPONSIVE ENGINE (v2.0)
   100% Responsive for Mobile (320px - 767px), Tablet (768px - 991px), Desktop (992px+)
   ========================================================================== */

/* Universal Fluid Media & Tables */
img, svg, video, canvas, audio, iframe {
  max-width: 100%;
  height: auto;
}

.pgtbd-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   DESKTOP VIEW (min-width: 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .pgtbd-home-hero-wrap {
    display: flex !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .pgtbd-sidebar-categories {
    width: 280px !important;
    flex-shrink: 0 !important;
    display: flex !important;
  }
  .pgtbd-slider-column {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .pgtbd-slider-container {
    height: 100% !important;
    min-height: 516px !important;
  }
  .pgtbd-product-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
  }
  .pgtbd-blog-layout-grid {
    display: flex !important;
    gap: 36px !important;
    align-items: flex-start !important;
  }
  .pgtbd-blog-posts-col {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .pgtbd-blog-sidebar-col {
    width: 320px !important;
    flex-shrink: 0 !important;
  }
  .pgtbd-blog-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

/* --------------------------------------------------------------------------
   TABLET & MOBILE SCREENS (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Navbar adjustments */
  .pgtbd-navbar .pgtbd-menu-items {
    display: none !important;
  }
  .pgtbd-navbar .pgtbd-nav-wrap {
    justify-content: flex-start;
  }
  .pgtbd-category-toggle {
    width: 100% !important;
    border-radius: 4px !important;
  }

  /* Hero Section: Slider takes 100% width on Mobile/Tablet */
  .pgtbd-home-hero-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-top: 12px !important;
  }
  .pgtbd-home-hero-wrap .pgtbd-sidebar-categories {
    display: none !important; /* Categories are accessible via Hamburger Menu & Top Toggle */
  }
  .pgtbd-slider-column {
    width: 100% !important;
    flex: none !important;
  }
  .pgtbd-slider-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 200px !important;
    max-height: 340px !important;
  }

  /* Single Product Page: Vertical Stack */
  .pgtbd-product-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .pgtbd-single-gallery-col,
  .pgtbd-single-summary-col {
    width: 100% !important;
  }

  /* Blog Layout: Vertical Stack */
  .pgtbd-blog-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  .pgtbd-blog-posts-col {
    width: 100% !important;
  }
  .pgtbd-blog-sidebar-col {
    width: 100% !important;
  }
  .pgtbd-blog-posts-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Category Page: Hide Desktop Sidebar, Show Filter Button */
  .pgtbd-cat-sidebar,
  .pgtbd-shop-sidebar {
    display: none !important;
  }
  .pgtbd-mobile-filter-btn {
    display: inline-flex !important;
  }
  .pgtbd-cat-content-col {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   SMARTPHONE VIEWPORTS (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Clean White Header on Mobile */
  .pgtbd-header-top {
    padding: 10px 0 !important;
  }
  .pgtbd-header-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .pgtbd-mobile-toggle {
    display: flex !important;
    order: 1 !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #111827 !important;
    padding: 0 !important;
    cursor: pointer !important;
  }
  .pgtbd-logo-area {
    order: 2 !important;
    margin: 0 !important;
  }
  .pgtbd-logo-img {
    max-height: 40px !important;
  }
  .pgtbd-header-actions {
    order: 3 !important;
    gap: 10px !important;
  }
  .pgtbd-hotline-box {
    display: none !important; /* Preserved in drawer & contact section */
  }
  .pgtbd-cart-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
  }

  /* Full-Width Search Bar on Row 2 */
  .pgtbd-search-form {
    order: 10 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin: 8px 0 0 !important;
    display: flex !important;
    height: 42px !important;
  }
  .pgtbd-search-category {
    display: none !important;
  }
  .pgtbd-search-input {
    width: 100% !important;
    flex: 1 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
  }
  .pgtbd-search-btn {
    padding: 0 16px !important;
    border-radius: 0 6px 6px 0 !important;
    flex-shrink: 0 !important;
  }

  /* Trust Badges: 2 Columns */
  .trust-badge-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 16px 0 !important;
  }
  .trust-badge-card {
    padding: 10px !important;
    gap: 10px !important;
  }
  .trust-badge-card h4 {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  .trust-badge-card p {
    font-size: 11px !important;
  }

  /* Product Cards: 2 Columns on Mobile */
  .pgtbd-product-grid,
  .pgtbd-cat-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 28px !important;
  }
  .pgtbd-card {
    padding: 10px !important;
  }
  .pgtbd-card-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    min-height: 36px !important;
    max-height: 36px !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
  }
  .pgtbd-card-price {
    font-size: 14.5px !important;
    margin-bottom: 2px !important;
  }
  .pgtbd-card-emi {
    font-size: 10.5px !important;
    margin-bottom: 8px !important;
  }
  .pgtbd-btn-add-cart {
    font-size: 11.5px !important;
    padding: 8px 6px !important;
    gap: 4px !important;
    border-radius: 4px !important;
  }

  /* Single Product Tabs: Touch Horizontal Scroll */
  .pgtbd-tabs-nav {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }
  .pgtbd-tab-btn {
    padding: 12px 16px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }
  .pgtbd-product-title-single {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  .pgtbd-product-actions-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .pgtbd-product-actions-row button {
    width: 100% !important;
  }

  /* Footer on Mobile */
  .pgtbd-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .pgtbd-footer-blog-section > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pgtbd-payment-banner-img {
    width: 100% !important;
    height: auto !important;
  }
  .pgtbd-newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
  }
  .pgtbd-newsletter-input,
  .pgtbd-newsletter-submit {
    width: 100% !important;
  }
}

/* Small Smartphone Viewports (max-width: 480px) */
@media (max-width: 480px) {
  .trust-badge-row {
    grid-template-columns: 1fr !important;
  }
  .pgtbd-cat-header-title {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   PGTBD Rich Article & Long Post Typography (.pgtbd-entry-content)
   Guarantees 100% beautiful rendering for articles of ANY length
   ========================================================================== */
.pgtbd-entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pgtbd-entry-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.pgtbd-entry-content h1,
.pgtbd-entry-content h2,
.pgtbd-entry-content h3,
.pgtbd-entry-content h4,
.pgtbd-entry-content h5,
.pgtbd-entry-content h6 {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 16px;
}

.pgtbd-entry-content h2 {
  font-size: 26px;
  border-left: 4px solid #F8B600;
  padding-left: 12px;
}

.pgtbd-entry-content h3 {
  font-size: 21px;
}

.pgtbd-entry-content h4 {
  font-size: 18px;
}

.pgtbd-entry-content ul,
.pgtbd-entry-content ol {
  margin: 0 0 24px 28px;
  padding: 0;
}

.pgtbd-entry-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.pgtbd-entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: #fdf8e6;
  border-left: 4px solid #F8B600;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1f2937;
  font-size: 17px;
}

.pgtbd-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.pgtbd-entry-content figure {
  margin: 24px 0;
}

.pgtbd-entry-content figcaption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 6px;
}

.pgtbd-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.pgtbd-entry-content th,
.pgtbd-entry-content td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.pgtbd-entry-content th {
  background: #111827;
  color: #ffffff;
  font-weight: 700;
}

.pgtbd-entry-content tr:nth-child(even) td {
  background: #f9fafb;
}

.pgtbd-entry-content pre,
.pgtbd-entry-content code {
  font-family: Consolas, Monaco, monospace;
  background: #f3f4f6;
  border-radius: 4px;
}

.pgtbd-entry-content code {
  padding: 2px 6px;
  color: #b45309;
  font-size: 14px;
}

.pgtbd-entry-content pre {
  padding: 16px;
  overflow-x: auto;
  margin: 24px 0;
  border-left: 4px solid #F8B600;
}

.pgtbd-entry-content .page-links {
  margin: 30px 0;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pgtbd-entry-content .page-links a,
.pgtbd-entry-content .page-links span {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  color: #111827;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.pgtbd-entry-content .page-links .current,
.pgtbd-entry-content .page-links a:hover {
  background: #F8B600;
  color: #000000;
}

/* ==========================================================================
   4-Column Product Highlights Section (BEST SELLER, TRENDS, MOST POPULAR, HOT PRODUCTS)
   ========================================================================== */
.pgtbd-highlight-widgets-section {
  padding: 36px 0 20px;
  background-color: #ffffff;
}

.pgtbd-highlight-widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pgtbd-widget-card {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.pgtbd-widget-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #fca5a5;
}

.pgtbd-widget-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
}

.pgtbd-widget-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pgtbd-widget-body {
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pgtbd-widget-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pgtbd-item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.pgtbd-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.pgtbd-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.pgtbd-widget-item:hover .pgtbd-item-thumb img {
  transform: scale(1.06);
}

.pgtbd-item-info {
  flex: 1;
  min-width: 0;
}

.pgtbd-item-name {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.pgtbd-item-name a {
  color: #1f2937;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.pgtbd-item-name a:hover {
  color: #d97706;
}

.pgtbd-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.pgtbd-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #d97706;
}

.pgtbd-item-old-price {
  font-size: 11.5px;
  color: #9ca3af;
  text-decoration: line-through;
}

.pgtbd-item-emi {
  margin: 2px 0 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .pgtbd-highlight-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .pgtbd-highlight-widgets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar & Mobile Category Accordion System
   ========================================================================== */
.pgtbd-mobile-bottom-nav {
  display: none;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 64px !important;
  }

  .pgtbd-mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-top: 2px solid #F8B600;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .pgtbd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    height: 100%;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .pgtbd-bottom-nav-item svg {
    margin-bottom: 3px;
    stroke: #374151;
    transition: stroke 0.2s ease, transform 0.2s ease;
  }

  .pgtbd-bottom-nav-item:hover,
  .pgtbd-bottom-nav-item.active {
    color: #000000;
  }

  .pgtbd-bottom-nav-item:hover svg,
  .pgtbd-bottom-nav-item.active svg {
    stroke: #000000;
    transform: translateY(-2px);
  }

  .pgtbd-bottom-nav-item.featured-cat {
    color: #000000;
  }

  .pgtbd-bottom-nav-item.featured-cat .icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F8B600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    box-shadow: 0 4px 10px rgba(248, 182, 0, 0.4);
    border: 2px solid #ffffff;
  }

  .pgtbd-bottom-nav-item.featured-cat .icon-circle svg {
    stroke: #000000;
    margin-bottom: 0;
  }

  .pgtbd-bottom-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: #F8B600;
    color: #000000;
    font-size: 10px;
    font-weight: 800;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
  }

  /* Mobile Drawer Layout */
  .pgtbd-drawer-left {
    width: 320px !important;
    max-width: 85vw !important;
  }

  .pgtbd-mobile-actions-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
  }

  .pgtbd-mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
  }

  .pgtbd-mobile-action-btn:hover {
    background: #F8B600;
    border-color: #F8B600;
    color: #000000;
  }

  .pgtbd-drawer-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #000000;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .pgtbd-drawer-cat-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .pgtbd-drawer-cat-item {
    border-bottom: 1px solid #f3f4f6;
  }

  .pgtbd-drawer-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .pgtbd-drawer-cat-link:hover,
  .pgtbd-drawer-cat-link:active {
    background: #fef9c3;
    color: #000000;
  }

  .pgtbd-drawer-cat-toggle-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #6b7280;
  }

  .pgtbd-drawer-subcat-list {
    display: none;
    background: #f9fafb;
    padding: 6px 0 8px 16px;
    border-top: 1px dashed #e5e7eb;
    list-style: none;
    margin: 0;
  }

  .pgtbd-drawer-cat-item.active .pgtbd-drawer-subcat-list {
    display: block !important;
  }

  .pgtbd-drawer-cat-item.active .pgtbd-drawer-cat-arrow {
    transform: rotate(90deg);
  }

  .pgtbd-drawer-cat-arrow {
    transition: transform 0.2s ease;
  }

  .pgtbd-drawer-subcat-link {
    display: block;
    padding: 8px 16px;
    font-size: 12.5px;
    color: #4b5563;
    text-decoration: none;
  }

  .pgtbd-drawer-subcat-link:hover {
    color: #000000;
    font-weight: 700;
    padding-left: 20px;
  }
}
