/* =========================================================
   RUDRA GLOBAL FOODS — PRODUCT DETAIL PAGE
   ========================================================= */


/* =========================================================
   BREADCRUMB BAR
   ========================================================= */

   .product-crumb-bar {
    background: var(--white);
    padding: 50px 50px 0 0;
  }
  
  .product-crumb-bar .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
  }
  
  .product-crumb-bar .breadcrumb a {
    color: var(--green);
    font-weight: 600;
    transition: color .15s ease;
  }
  
  .product-crumb-bar .breadcrumb a:hover {
    color: var(--dark-green);
  }
  
  .product-crumb-bar .breadcrumb .sep {
    opacity: .5;
  }
  
  .product-crumb-bar .breadcrumb .current {
    color: var(--text);
    font-weight: 500;
  }
  
  .product-crumb-bar .breadcrumb .crumb-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 8px;
  }
  
  
  /* =========================================================
     PRODUCT DETAIL SECTION
     ========================================================= */
  
  .product-detail {
    background: var(--white);
    padding-top: 50px;
    /* border-bottom: 1px solid #e8eeeb; */
  }
  
  
  /* =========================================================
     PRODUCT DETAIL ROW
     ========================================================= */
  
  /*
     Desktop:
  
     Product 1:
     IMAGE | CONTENT
  
     Product 2:
     CONTENT | IMAGE
  
     Product 3:
     IMAGE | CONTENT
  
     Product 4:
     CONTENT | IMAGE
  */
  
  .product-detail-row {
    display: grid;
  
    /* Smaller image | Larger content */
    grid-template-columns: 32% minmax(0, 1fr);
  
    grid-template-areas:
      "image content";
  
    align-items: center;
  
    gap: 35px;
  
    width: 100%;
  
    /* margin-bottom: 90px; */
  
    box-sizing: border-box;
  }
  
  
  /* =========================================================
     EVEN PRODUCTS — IMAGE RIGHT
     ========================================================= */
  
  .product-detail-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 32%;
  
    grid-template-areas:
      "content image";
  }
  
  
  /* =========================================================
     ASSIGN GRID AREAS
     ========================================================= */
  
  .product-detail-row .product-image {
    grid-area: image;
  }
  
  .product-detail-row .product-content {
    grid-area: content;
  
    width: 100%;
    min-width: 0;
  }
  
  
  /* =========================================================
     PRODUCT IMAGE
     ========================================================= */
  
  .product-image {
    grid-area: image;
  
    width: 100%;
    height: 320px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: #f7faf8;
  
    border: none;
  
    border-radius: 20px;
  
    overflow: hidden;
  
    box-sizing: border-box;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
  
    object-fit: cover;
  
    display: block;
  
    transition: transform .4s ease;
  }
  
  .product-image:hover img {
    transform: scale(1.03);
  }
  
  /* =========================================================
     PRODUCT CONTENT
     ========================================================= */
  
  .product-content {
    width: 100%;
    min-width: 0;
  }
  
  .product-category {
    display: block;
  
    margin-bottom: 8px;
  
    font-size: 12px;
    font-weight: 700;
  
    letter-spacing: 1px;
  
    text-transform: uppercase;
  
    color: #18794e;
  }
  
  .product-title {
    margin: 0 0 12px;
  
    font-size: 42px;
    line-height: 1.15;
  
    font-weight: 700;
  
    color: #D4AF37 ;
  }
  
  .product-description {
    margin: 0 0 22px;
  
    font-size: 15px;
    line-height: 1.7;
  
    color: #5d7184;
  }
  
  .pro-title{
    display: flex;
    align-items: center;
    gap: 18px;
    
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 22px;
  }
  .pro-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
  }
  /* =========================================================
     PRODUCT BENEFITS
     ========================================================= */
  
  .product-benefits {
    margin-bottom: 32px;
  }
  
  .product-benefits li {
    display: flex;
    align-items: flex-start;
  
    gap: 12px;
  
    font-size: 14.5px;
  
    color: var(--text);
  
    padding: 7px 0;
  }
  
  .product-benefits .check-icon {
    width: 20px;
    height: 20px;
  
    border-radius: 50%;
  
    background: var(--green);
    color: #fff;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    flex-shrink: 0;
  
    margin-top: 1px;
  }
  
  .product-benefits .check-icon svg {
    width: 11px;
    height: 11px;
  }
  
  
  /* =========================================================
     SPECIFICATIONS
     ========================================================= */
  
  .product-specifications {
    margin-top: 24px;
  }
  
  .product-specifications h4 {
    margin: 0 0 12px;
  
    font-size: 18px;
  
    font-weight: 700;
  
    color: #173f63;
  }
  
  
  /* =========================================================
     SPECIFICATION TABLE
     ========================================================= */
  
  
  
  .specification-table {
    width: 100%;
  
    background: #fff;
  
    /* TABLE OUTER BORDER */
    border: 1px solid #cfdad5;
  
    border-radius: 10px;
  
    overflow: hidden;
  
    box-sizing: border-box;
  }
  
  .specification-row {
    display: grid;
    grid-template-columns: 38% 62%;
  
    width: 100%;
  
    box-sizing: border-box;
  
    /* TABLE ROW BORDER */
    border-bottom: 1px solid #dce4e0;
  }
  
  .specification-row:last-child {
    border-bottom: none;
  }
  
  .specification-label,
  .specification-value {
    padding: 10px 13px;
  
    font-size: 13.5px;
    line-height: 1.5;
  
    box-sizing: border-box;
  }
  
  .specification-label {
    background: #f4f8f6;
  
    color: #58718a;
  
    font-weight: 600;
  
    /* COLUMN DIVIDER */
    border-right: 1px solid #dce4e0;
  }
  
  .specification-value {
    background: #fff;
    color: #294967;
  }
  
  
  /* =========================================================
     TABLE CORNER FIX
     ========================================================= */
  
  .specification-row:first-child
  .specification-label {
    border-top-left-radius: 9px;
  }
  
  .specification-row:first-child
  .specification-value {
    border-top-right-radius: 9px;
  }
  
  .specification-row:last-child
  .specification-label {
    border-bottom-left-radius: 9px;
  }
  
  .specification-row:last-child
  .specification-value {
    border-bottom-right-radius: 9px;
  }
  
  /* =========================================================
     SPECIFICATION ROW
     ========================================================= */
  
  .specification-row {
    display: grid;
  
    grid-template-columns: 38% 62%;
  
    width: 100%;
  
    box-sizing: border-box;
  
    border: 1px solid #dce4e0;
  }
  
  
  /* Remove border from last row */
  .specification-row:last-child {
    border-bottom: none;
  }
  
  
  /* =========================================================
     SPECIFICATION CELLS
     ========================================================= */
  
  .specification-label,
  .specification-value {
    padding: 10px 13px;
  
    font-size: 13.5px;
  
    line-height: 1.5;
  
    box-sizing: border-box;
  }
  
  
  /* =========================================================
     LABEL
     ========================================================= */
  
  .specification-label {
    background: #f4f8f6;
  
    color: #58718a;
  
    font-weight: 600;
  
    /* Vertical divider */
    border-right: 1px solid #dce4e0;
  }
  
  
  /* =========================================================
     VALUE
     ========================================================= */
  
  .specification-value {
    background: #fff;
  
    color: #294967;
  }
  
  
  /* =========================================================
     TABLE CORNER FIX
     ========================================================= */
  
  /* First row */
  .specification-row:first-child
  .specification-label {
    border-top-left-radius: 9px;
  }
  
  .specification-row:first-child
  .specification-value {
    border-top-right-radius: 9px;
  }
  
  
  /* Last row */
  .specification-row:last-child
  .specification-label {
    border-bottom-left-radius: 9px;
  }
  
  .specification-row:last-child
  .specification-value {
    border-bottom-right-radius: 9px;
  }
  .specification-list{
    border-bottom: 1px solid #dce4e0;
  }
  
  /* =========================================================
     VIEW MORE / VIEW LESS
     ========================================================= */
  
  .extra-spec {
    display: none;
  }
  
  .specification-row.extra-spec {
    display: none;
  }
  
  
  /* Show hidden rows */
  .product-specifications.show-all
  .specification-row.extra-spec {
    display: grid;
  }
  
  
  /* View more button */
  .view-more-btn {
    display: flex;
  
    align-items: center;
    justify-content: center;
  
    gap: 8px;
  
    margin: 18px auto 0;
  
    padding: 10px 20px;
  
    background: transparent;
  
    border: 1px solid #18794e;
  
    border-radius: 5px;
  
    color: #18794e;
  
    cursor: pointer;
  
    font-size: 14px;
  
    font-weight: 600;
  
    transition: all .3s ease;
  }
  
  
  /* Hover */
  .view-more-btn:hover {
    background: #18794e;
    color: #fff;
  }
  
  
  /* Arrow */
  .view-more-icon {
    display: inline-flex;
  
    transition: transform .3s ease;
  }
  
  
  /* Rotate arrow */
  .product-specifications.show-all
  .view-more-icon {
    transform: rotate(180deg);
  }
  
  
  /* =========================================================
     CTA
     ========================================================= */
  
  .product-cta {
    display: inline-flex;
  
    align-items: center;
    justify-content: center;
  
    gap: 10px;
  
    margin-top: 24px;
  
    padding: 12px 22px;
  
    background: #18794e;
  
    color: #fff;
  
    border-radius: 6px;
  
    font-size: 14px;
  
    font-weight: 600;
  
    text-decoration: none;
  
    transition: .3s ease;
  }
  
  
  /* CTA arrow */
  .product-cta span {
    font-size: 18px;
  
    transition: .3s ease;
  }
  
  
  /* CTA hover */
  .product-cta:hover {
    background: #12623f;
  
    color: #fff;
  }
  
  
  /* CTA arrow movement */
  .product-cta:hover span {
    transform: translateX(4px);
  }
  
  
  /* =========================================================
     RELATED PRODUCTS
     ========================================================= */
  
  .product-related {
    background: var(--cream);
  
    padding: 88px 0;
  }
  
  
  /* =========================================================
     PRODUCT NOT FOUND
     ========================================================= */
  
  .product-not-found {
    max-width: 480px;
  
    margin: 0 auto;
  
    text-align: center;
  
    padding: 60px 0;
  }
  
  .product-not-found h1 {
    font-size: 30px;
  
    font-weight: 700;
  
    margin-bottom: 14px;
  }
  
  .product-not-found p {
    color: var(--text-muted);
  
    font-size: 15.5px;
  
    margin-bottom: 26px;
  }
  
  
  
  
  
  
  .product-detail-row.image-first {
    grid-template-columns: 32% minmax(0, 1fr);
    grid-template-areas: "image content";
  }
  
  .product-detail-row.content-first {
    grid-template-columns: minmax(0, 1fr) 32%;
    grid-template-areas: "content image";
  }
  
  
  
  
  /* =========================================================
     TABLET
     ========================================================= */
  
  @media (max-width: 900px) {
  
    /* Image LEFT */
    .product-detail-row {
      grid-template-columns: 40% minmax(0, 1fr);
  
      grid-template-areas:
        "image content";
  
      gap: 35px;
    }
  
  
    /* Image RIGHT */
    .product-detail-row:nth-child(even) {
      grid-template-columns: minmax(0, 1fr) 40%;
  
      grid-template-areas:
        "content image";
    }
  
  
    /* Image */
    .product-image {
      height: 330px;
    }
  
  
    /* Heading */
    .product-title {
      font-size: 36px;
    }
  
  
    /* Description */
    .product-description {
      font-size: 14px;
    }
  
  
    /* Table */
    .specification-row {
      grid-template-columns: 40% 60%;
    }
  
  
    /* Table cells */
    .specification-label,
    .specification-value {
      padding: 10px;
  
      font-size: 11px;
    }
  }
  
  /* =========================================================
     MOBILE
     ========================================================= */
  
  @media (max-width: 767px) {
  
    /* Breadcrumb */
    .product-crumb-bar {
      padding: 30px 20px 0;
    }
  
  
    .product-crumb-bar .breadcrumb {
      font-size: 13px;
    }
  
  
    .product-crumb-bar .breadcrumb .crumb-rule {
      display: none;
    }
  
  
    /* Section */
    .product-detail {
      padding: 50px 0;
    }
  
  
    /*
       IMPORTANT:
       On mobile every product is:
  
       IMAGE
       CONTENT
  
       This overrides the desktop alternating layout.
    */
  
    .product-detail-row,
    .product-detail-row:nth-child(even),
    .product-detail-row:nth-child(odd) {
  
      display: grid;
  
      grid-template-columns: 1fr;
  
      grid-template-areas:
        "image"
        "content";
  
      gap: 30px;
  
      margin-bottom: 60px;
    }
  
  
    /* Image */
    .product-image {
      width: 100%;
  
      height: 300px;
  
      border-radius: 16px;
    }
  
  
    /* Content */
    .product-content {
      width: 100%;
    }
  
  
    /* Category */
    .product-category {
      font-size: 11px;
    }
  
  
    /* Title */
    .product-title {
      font-size: 32px;
  
      line-height: 1.2;
    }
  
  
    /* Description */
    .product-description {
      font-size: 14px;
  
      line-height: 1.7;
    }
  
  
    /* Specifications */
    .product-specifications {
      margin-top: 20px;
    }
  
  
    .product-specifications h4 {
      font-size: 17px;
    }
  
  
    /* Table */
    .specification-row {
      grid-template-columns: 42% 58%;
    }
  
  
    /* Cells */
    .specification-label,
    .specification-value {
      padding: 9px 10px;
  
      font-size: 11px;
  
      line-height: 1.5;
    }
  
  
    /* CTA */
    .product-cta {
      width: 100%;
    }
  
  
    /* View more */
    .view-more-btn {
      width: auto;
    }
  }
  
  
  /* =========================================================
     SMALL MOBILE
     ========================================================= */
  
  @media (max-width: 560px) {
  
    /* Breadcrumb */
    .product-crumb-bar {
      padding-left: 15px;
      padding-right: 15px;
    }
  
  
    /* Section */
    .product-detail {
      padding: 40px 0;
    }
  
  
    /* Title */
    .product-title {
      font-size: 30px;
    }
  
  
    /* Image */
    .product-image {
      height: 260px;
    }
  
  
    /* Table */
    .specification-row {
      grid-template-columns: 40% 60%;
    }
  
  
    /* Cells */
    .specification-label,
    .specification-value {
      padding: 8px;
  
      font-size: 10.5px;
    }
  
  
    /* View more */
    .view-more-btn {
      font-size: 13px;
  
      padding: 9px 16px;
    }
  }
/* =========================================================
   PRODUCT PAGE LAYOUT
   FULL-WIDTH HERO/BANNER + CENTERED CONTENT BELOW
   ========================================================= */

/*
   The green "About Rudra Global Foods" banner remains outside
   this layout, so it always spans the full browser width.
*/
.page-banner {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/*
   Everything BELOW the full-width banner sits inside one centered
   container. This creates equal left and right spacing.
*/
.product-page-layout {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  box-sizing: border-box;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.product-category-sidebar {
  position: sticky;
  top: 125px;
  width: 100%;
  max-height: calc(100vh - 145px);
  overflow-y: auto;
  padding: 50px 0 24px;
  z-index: 10;
  box-sizing: border-box;
}

.product-sidebar-inner {
  width: 100%;
  box-sizing: border-box;
  background: var(--white, #fff);
  border: 1px solid var(--border, #dce4e0);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 8px 30px rgba(18, 59, 93, .06);
}

.product-sidebar-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border, #dce4e0);
  margin-bottom: 12px;
}

.product-sidebar-heading .eyebrow {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #18794e;
  font-weight: 700;
}

.product-sidebar-heading h2 {
  margin: 0;
  color: #123b5d;
  font-size: 25px;
  line-height: 1.15;
}

.product-sidebar-group {
  border-bottom: 1px solid #edf1ef;
}

.product-sidebar-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
  color: #173f63;
  font-size: 14px;
  font-weight: 700;
}

.product-sidebar-group summary::-webkit-details-marker {
  display: none;
}

.product-sidebar-group summary:hover {
  color: #18794e;
}

.sidebar-chevron {
  color: #18794e;
  font-size: 19px;
  font-weight: 400;
  transition: transform .2s ease;
}

.product-sidebar-group[open] .sidebar-chevron {
  transform: rotate(45deg);
}

.product-sidebar-subcategories {
  list-style: none;
  margin: 0;
  padding: 0 0 12px 10px;
}

.product-sidebar-subcategories li a {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: #5d7184;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: all .2s ease;
}

.product-sidebar-subcategories li a:hover,
.product-sidebar-subcategories li a.active {
  color: #18794e;
  border-left-color: #18794e;
  background: #f4f8f6;
  border-radius: 0 6px 6px 0;
}

/* =========================================================
   MAIN CONTENT BELOW THE FULL-WIDTH BANNER
   ========================================================= */

.product-page-main {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.product-page-main > .product-detail,
.product-page-main > .product-related {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* The outer layout is already the centered container. */
.product-page-main > .product-detail > .container,
.product-page-main > .product-related > .container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.product-page-main img,
.product-page-main table {
  max-width: 100%;
}

.product-page-main .product-detail-row,
.product-page-main .product-detail-grid {
  min-width: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

  .product-page-layout {
    width: min(100% - 40px, 1100px);
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .product-category-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    padding-top: 50px;
  }

  .product-sidebar-inner {
    padding: 20px 15px;
  }

  .product-sidebar-heading h2 {
    font-size: 22px;
  }

  .product-sidebar-group summary {
    font-size: 13px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .product-page-layout {
    width: calc(100% - 30px);
    margin: 0 auto;
    display: block;
  }

  .product-category-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 18px 0 0;
  }

  .product-sidebar-inner {
    padding: 18px 15px;
  }

  .product-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-sidebar-heading h2 {
    font-size: 22px;
  }

  .product-page-main {
    width: 100%;
    margin-top: 24px;
    overflow: visible;
  }

  .product-page-main > .product-detail > .container,
  .product-page-main > .product-related > .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

  .product-page-layout {
    width: calc(100% - 24px);
  }

  .product-category-sidebar {
    padding-top: 14px;
  }

  .product-page-main {
    margin-top: 20px;
  }
}


/* =========================================================
   PAGE RESET FOR THIS LAYOUT
   ========================================================= */
html,
body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   FULL-WIDTH FOOTER — TRUE PAGE-LEVEL FOOTER
   ========================================================= */

/*
   IMPORTANT:
   The footer is a sibling of .product-page-layout in product.php.
   These rules also protect it if a global stylesheet makes the page
   shell a grid/flex layout.
*/
.product-full-width-footer {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  min-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  box-sizing: border-box !important;

  /* Works if a global page wrapper uses CSS Grid. */
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  align-self: stretch !important;

  /* Works if a global page wrapper uses Flexbox. */
  flex: 0 0 100% !important;
}

/* The actual footer/background must also occupy the entire page row. */
.product-full-width-footer > footer,
.product-full-width-footer > .site-footer,
.product-full-width-footer > div,
.product-full-width-footer > section {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none !important;
}

/*
   Keep ONLY the footer's inner content centered.
   This does not limit the dark-green footer background.
*/
.product-full-width-footer .container {
  width: min(1400px, calc(100% - 48px)) !important;
  max-width: 1400px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Prevent any global container rule from shifting footer columns. */
.product-full-width-footer .footer-content,
.product-full-width-footer .footer-inner,
.product-full-width-footer .footer-main,
.product-full-width-footer .footer-bottom {
  box-sizing: border-box;
}

/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .product-full-width-footer .container {
    width: min(100% - 40px, 1100px) !important;
    max-width: 1100px !important;
  }
}

@media (max-width: 767px) {
  .product-full-width-footer {
    width: 100vw !important;
    min-width: 100vw !important;
  }

  .product-full-width-footer .container {
    width: calc(100% - 30px) !important;
    max-width: none !important;
  }
}

@media (max-width: 560px) {
  .product-full-width-footer .container {
    width: calc(100% - 24px) !important;
  }
	.product-detail-row, .product-detail-row:nth-child(even), .product-detail-row:nth-child(odd){
		margin-bottom:0px;
	}
}
/* Prevent page content from going underneath header */
body {
    padding-top: 113px;
}
