:root {
  --primary-green: #2b5e2c;
  --accent-orange: #e67e22;
  --bg-light: #f9fafb;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
}

.products-page-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

/* ==============================
       SIDEBAR STYLING
       ============================== */
.catalog-sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 35px;
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-orange);
}

/* Search Box */
.sidebar-search {
  position: relative;
  display: flex;
}
.sidebar-search input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.sidebar-search input:focus {
  border-color: var(--primary-green);
}
.sidebar-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-search button:hover {
  background: var(--accent-orange);
}

/* Categories List */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-list li {
  border-bottom: 1px dashed #e0e0e0;
  padding: 12px 0;
}
.cat-list li:last-child {
  border-bottom: none;
}
.cat-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.cat-list a:hover,
.cat-list a.active {
  color: var(--primary-green);
  font-weight: 700;
}
.cat-list span {
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ==============================
       MAIN CONTENT STYLING
       ============================== */
.filter-bar {
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.filter-result-count {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.filter-result-count span {
  color: var(--text-dark);
  font-weight: 700;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-box select {
  padding: 8px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Cards */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(43, 94, 44, 0.2);
}
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.view-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s;
}
.product-img-wrapper:hover .view-details-overlay {
  opacity: 1;
}
.view-details-overlay span {
  background: white;
  color: var(--primary-green);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  transform: translateY(20px);
  transition: all 0.4s;
}
.product-img-wrapper:hover .view-details-overlay span {
  transform: translateY(0);
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text-dark);
  transition: color 0.3s;
  line-height: 1.4;
}
.product-title:hover {
  color: var(--primary-green);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}
.btn-quote-sm {
  flex-grow: 1;
  background: transparent;
  color: var(--primary-green);
  border: 1.5px solid var(--primary-green);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-quote-sm:hover {
  background: var(--primary-green);
  color: white;
}
.btn-call-sm {
  width: 38px;
  height: 38px;
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  flex-shrink: 0;
}
.btn-call-sm:hover {
  background: var(--accent-orange);
  color: white;
  transform: scale(1.1);
}

/* Pagination */
.k2k-pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 50px 0 0 0;
  gap: 8px;
  flex-wrap: wrap;
}
.k2k-pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 15px;
  background: #ffffff;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}
.k2k-pagination li a:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}
.k2k-pagination li.active a {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 5px 15px rgba(43, 94, 44, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.pd-section {
        padding: 80px 0;
        background-color: #ffffff;
    }

    /* Scroll Animation */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }
    .reveal.active { opacity: 1; transform: translateY(0); }

    /* ==============================
       1. PRODUCT GALLERY (LEFT SIDE)
       ============================== */
    .pd-image-gallery {
        position: sticky;
        top: 100px; /* Sticky effect when scrolling description */
    }

    .pd-main-img {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        background: #f9f9f9;
    }

    .pd-main-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/4;
        object-fit: contain; /* Pura product dikhne ke liye */
        transition: transform 0.4s ease;
    }

    .pd-main-img:hover img {
        transform: scale(1.05); /* Slight zoom on main image */
    }

    .pd-thumbnails {
        display: flex;
        gap: 10px;
    }

    .pd-thumb {
        width: calc(25% - 7.5px);
        aspect-ratio: 1/1;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid var(--border-color);
        background: #f9f9f9;
        transition: all 0.3s ease;
    }

    .pd-thumb.active {
        border-color: var(--primary-green);
        opacity: 0.7;
    }

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ==============================
       2. PRODUCT INFO (RIGHT SIDE)
       ============================== */
    .pd-category {
        color: var(--accent-orange);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 13px;
        margin-bottom: 10px;
        display: block;
    }

    .pd-title {
        font-size: 2.2rem;
        font-weight: 800;
        color: var(--text-dark);
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .pd-overview {
        font-size: 1.05rem;
        color: var(--text-muted);
        line-height: 1.7;
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px dashed var(--border-color);
    }

    /* Action Buttons */
    .pd-action-btns {
        display: flex;
        gap: 15px;
        margin-bottom: 30px;
    }

    .btn-lg-quote {
        background: var(--primary-green);
        color: #ffffff !important;
        padding: 15px 35px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s ease;
        border: 2px solid var(--primary-green);
    }

    .btn-lg-quote:hover {
        background: transparent;
        color: var(--primary-green) !important;
    }

    .btn-lg-call {
        background: transparent;
        color: var(--accent-orange) !important;
        padding: 15px 30px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s ease;
        border: 2px solid var(--accent-orange);
    }

    .btn-lg-call:hover {
        background: var(--accent-orange);
        color: #ffffff !important;
    }

    /* ==============================
       3. TABS SECTION (DETAILS)
       ============================== */
    .pd-tabs-section {
        margin-top: 60px;
    }

    .nav-tabs.custom-tabs {
        border-bottom: 2px solid #f0f0f0;
        gap: 20px;
    }

    .nav-tabs.custom-tabs .nav-link {
        border: none;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 1.1rem;
        padding: 15px 5px;
        position: relative;
        background: transparent;
    }

    .nav-tabs.custom-tabs .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0%;
        height: 3px;
        background-color: var(--primary-green);
        transition: width 0.3s ease;
    }

    .nav-tabs.custom-tabs .nav-link:hover {
        color: var(--primary-green);
    }

    .nav-tabs.custom-tabs .nav-link.active {
        color: var(--primary-green);
    }

    .nav-tabs.custom-tabs .nav-link.active::after {
        width: 100%;
    }

    .tab-content {
        padding: 30px 0;
        color: var(--text-muted);
        line-height: 1.8;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .pd-action-btns { flex-direction: column; }
        .btn-lg-quote, .btn-lg-call { justify-content: center; width: 100%; }
        .pd-title { font-size: 1.8rem; }
    }