/*
Theme Name: Barondoor
Theme URI: https://gighoster.com/
Author: Gighoster
Author URI: https://gighoster.com/
Description: Barondoor is a clean, modern Bootstrap-based WordPress theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barondoor
Tags: bootstrap, business, responsive
*/

/*--------------------------------------------------------------
# Header Logo Fix — vertical alignment fix for sitename (h1)
# Fixes the logo dropping below the menu caused by WordPress
# h1 margin and body class differences.
--------------------------------------------------------------*/

/* Logo wrapper: vertically centered with flex */
.header .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.header .logo img {
  max-height: 42px;
  width: auto;
  margin-right: 0;
  display: block;
}

/* h1 reset: clears browser and Bootstrap margin/padding */
.header .logo h1.sitename,
.header .logo h1 {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--heading-color, #fff);
  /* Behaves like inline-flex to prevent vertical shifting */
  display: inline-flex;
  align-items: center;
}

/*--------------------------------------------------------------
# Revon Hero Slider Reset
# The theme's global "section, .section { padding: 60px 0; }" rule
# was pushing the hero slider 60px down, leaving a black gap on top.
--------------------------------------------------------------*/
section.rhs-hero-slider,
.rhs-hero-slider {
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
}

/* Padding for top-positioned content under the fixed (fixed-top) header */
.rhs-hero-slider .rhs-slide__content--top-left,
.rhs-hero-slider .rhs-slide__content--top-center,
.rhs-hero-slider .rhs-slide__content--top-right {
  padding-top: calc(90px + 2rem) !important;
}

/*--------------------------------------------------------------
# SEO Text Section — collapsible "read more" block
# Swaps the toggle button label based on aria-expanded state
--------------------------------------------------------------*/
.seo-text .seo-toggle[aria-expanded="false"] .seo-label-less,
.seo-text .seo-toggle[aria-expanded="true"] .seo-label-more {
  display: none;
}

.seo-text .seo-toggle[aria-expanded="true"] .bi-chevron-down {
  display: inline-block;
  transform: rotate(180deg);
}

/*--------------------------------------------------------------
# White Background preset — light content sections
# (single post details, product catalog)
--------------------------------------------------------------*/
.white-background {
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #1b1a1a;
  --surface-color: #f6f6f6;
}

/*--------------------------------------------------------------
# Single Post — spec tables render as dark-headed spec sheets
--------------------------------------------------------------*/
.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

/* Dark section header bar (thead rows) */
.single .entry-content table thead th,
.single .entry-content table thead td {
  background-color: #1b1a1a;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
}

.single .entry-content table th,
.single .entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  vertical-align: top;
}

/* Label column: row headers and first td */
.single .entry-content table tbody th,
.single .entry-content table td:first-child {
  font-weight: 600;
  width: 30%;
}

.single .entry-content table ul {
  margin: 0;
  padding-left: 1.2rem;
}

.single .post-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 85%);
}

/*--------------------------------------------------------------
# Product Catalog — shop-style grid (no cart)
--------------------------------------------------------------*/
.catalog-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.catalog-nav a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 30px;
  color: var(--default-color);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.catalog-nav a:hover,
.catalog-nav a.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.product-card {
  /* Light palette — keeps card text readable on dark sections */
  --default-color: #444444;
  --heading-color: #1b1a1a;
  --surface-color: #f6f6f6;
  position: relative;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #198754;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.post-image {
  position: relative;
}

.product-card .product-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6f6f6;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s;
}



.product-card .product-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 48px;
  color: #cccccc;
}

.product-card .product-info {
  padding: 18px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .product-cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.product-card .product-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.product-card .product-title a {
  color: var(--heading-color);
}

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

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.product-card .product-btn {
  margin-top: auto;
  align-self: center;
}

.post-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 20px;
}

.post-price .price-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777777;
}

.post-price .price-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-color);
}


/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination {
  margin-top: 45px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 6px;
  color: var(--default-color);
  font-weight: 500;
  transition: all 0.3s;
}

.pagination a.page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}

/*--------------------------------------------------------------
# Contact Map
--------------------------------------------------------------*/
.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* Contact info cards side by side */
.contact .contact-info-section .contact-info-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
  .contact .contact-info-section .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .contact .contact-info-section .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Featured Products Carousel
--------------------------------------------------------------*/

/* Light band on the dark landing page — dark text for readability */
.featured-products {
  --background-color: #e1e1e1;
  --default-color: #333333;
  --heading-color: #111111;
}

/* Smaller heading on phones so it fits on one line */
@media (max-width: 575px) {
  .featured-products .section-title h2 {
    font-size: 24px;
  }
}

/* Features — same light band: dark headings/body text, white cards */
.features {
  --background-color: #e1e1e1;
  --default-color: #333333;
  --heading-color: #111111;
  --surface-color: #ffffff;
}

/* Stat labels use a 40% transparent mix that gets too pale on light gray */
.features .intro-content .feature-stats .stat-item .stat-label {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* CTA feature item labels — force black for readability */
.call-to-action .features .feature-item span {
  color: #000;
}

.featured-products .featured-controls {
  gap: 12px;
}

.featured-products .featured-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.featured-products .featured-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.featured-products .featured-slider {
  padding: 10px 5px 50px;
}

.featured-products .featured-slider .swiper-wrapper {
  height: auto !important;
}

.featured-products .swiper-slide {
  height: auto;
  display: flex;
}

.featured-products .swiper-slide > .product-card {
  width: 100%;
}

.featured-products .swiper-pagination-bullet {
  background: var(--accent-color);
  opacity: 0.3;
}

.featured-products .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Page title band background image */
.page-title {
  background-image: url('assets/img/header-inner-back.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Old price — struck through next to the sale price */
.product-card .product-price .old-price {
  font-size: 15px;
  font-weight: 400;
  color: #999999;
  margin-right: 8px;
}

.post-price .price-value .old-price {
  font-size: 18px;
  font-weight: 400;
  color: #999999;
  margin-right: 10px;
}

/* Product image lightbox — zoom hint */
.post-image a.glightbox {
  display: block;
  cursor: zoom-in;
}

/*--------------------------------------------------------------
# Related Products Carousel (single.php)
--------------------------------------------------------------*/
.related-products .related-controls {
  gap: 12px;
}

.related-products .related-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.related-products .related-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
}

.related-products .related-slider {
  padding: 10px 5px 50px;
}

.related-products .related-slider .swiper-wrapper {
  height: auto !important;
}

.related-products .swiper-slide {
  height: auto;
  display: flex;
}

.related-products .swiper-slide > .product-card {
  width: 100%;
}

.related-products .swiper-pagination-bullet {
  background: var(--accent-color);
  opacity: 0.3;
}

.related-products .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Bootstrap button active state override */
.btn {
  --bs-btn-active-bg: #A8A492;
  --bs-btn-active-border-color: #A8A492;
}

.btn-primary {
  --bs-btn-bg: #A8A492;
  --bs-btn-border-color: #A8A492;
  --bs-btn-hover-bg: color-mix(in srgb, #A8A492, #000 12%);
  --bs-btn-hover-border-color: color-mix(in srgb, #A8A492, #000 12%);
}

/*--------------------------------------------------------------
# Catalog Toolbar
--------------------------------------------------------------*/
.catalog-toolbar {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 10px 15px;
}

.catalog-toolbar .toolbar-label {
  font-size: 14px;
  font-weight: 600;
  color: #555555;
}

.catalog-toolbar .view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.catalog-toolbar .view-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.catalog-toolbar .view-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.catalog-toolbar .form-select {
  width: auto;
  min-width: 190px;
  cursor: pointer;
}

/* Product excerpt — list view only */
.product-card .product-excerpt {
  display: none;
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
}

.catalog-list .product-card .product-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List view — horizontal product rows */
.catalog-list .product-card {
  flex-direction: row;
  align-items: stretch;
}

.catalog-list .product-card .product-image {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: auto;
  align-self: stretch;
}

.catalog-list .product-card .product-info {
  text-align: left;
  align-items: flex-start;
}

.catalog-list .product-card .product-title {
  font-size: 19px;
}

.catalog-list .product-card .product-btn {
  align-self: flex-start;
}

@media (max-width: 575px) {
  .catalog-list .product-card .product-image {
    width: 110px;
  }
}

/* Category description — rendered after the product list, kept calm
   and readable so long texts do not tire the eye. Collapsed by
   default with a "read more" toggle so the page does not sag. */
.category-description {
  max-width: 900px;
  margin-inline: auto;
  padding-top: 35px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  font-size: 15px;
  line-height: 1.75;
}

.category-description-content {
  overflow: hidden;
}

.category-description-content.collapsed {
  max-height: 240px;
  position: relative;
}

/* Fade the clipped text out towards the toggle */
.category-description-content.collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--background-color));
  pointer-events: none;
}

.category-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 8px 24px;
  border: 1px solid var(--accent-color);
  border-radius: 30px;
  background: transparent;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.category-description-toggle:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.category-description-toggle i {
  font-size: 13px;
  line-height: 0;
}

.category-description :is(h1, h2, h3, h4, h5, h6) {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.category-description p {
  margin-bottom: 1rem;
}

.category-description p:last-child {
  margin-bottom: 0;
}

.category-description ul,
.category-description ol {
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

.category-description a {
  color: var(--accent-color);
}

/* Hide header call button on mobile nav breakpoint */
@media (max-width: 1199px) {
  .header .btn-getstarted {
    display: none;
  }
}

/* DeaMobileMenu — match theme mobile breakpoint (1199px) and dark header */
@media (max-width: 1199px) {
  body .dea-mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1200px) {
  body .dea-mobile-menu-toggle {
    display: none;
  }
}

body .dea-mobile-menu-toggle span {
  background: #ffffff;
}

/* Hide Max Mega Menu's own mobile toggle — DeaMobileMenu covers mobile */
@media (max-width: 1199px) {
  #navmenu .mega-menu-toggle {
    display: none !important;
  }
}

/* Google Sans (Product Sans) — self-hosted @font-face mapping to CDN woff files */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Light.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-LightItalic.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Italic.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Medium.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-MediumItalic.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-BoldItalic.woff') format('woff');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/14955/ProductSans-Black.woff') format('woff');
}

/* Out of stock label */
.product-outofstock {
  color: #dc3545;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Contact banner on product detail page */
.contact-banner img {
  border-radius: 8px;
}

/*--------------------------------------------------------------
# Cookie Consent (GDPR / ePrivacy)
--------------------------------------------------------------*/
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100000;
  background-color: #1b1a1a;
  color: color-mix(in srgb, #ffffff, transparent 15%);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1 1 420px;
}

.cookie-consent-text h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cookie-consent-text p {
  margin-bottom: 0;
}

.cookie-consent-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.cookie-btn-accept:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* Equal prominence with "accept" — required for valid EU consent */
.cookie-btn-reject {
  background-color: transparent;
  border-color: color-mix(in srgb, #ffffff, transparent 50%);
  color: #ffffff;
}

.cookie-btn-reject:hover {
  border-color: #ffffff;
  background-color: color-mix(in srgb, #ffffff, transparent 90%);
}

.cookie-btn-settings {
  background-color: transparent;
  border-color: transparent;
  color: color-mix(in srgb, #ffffff, transparent 30%);
  text-decoration: underline;
}

.cookie-btn-settings:hover {
  color: #ffffff;
}

.cookie-consent-details {
  flex-basis: 100%;
  border-top: 1px solid color-mix(in srgb, #ffffff, transparent 85%);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-category-name {
  color: #ffffff;
  font-weight: 600;
}

.cookie-category p {
  margin: 6px 0 0;
  color: color-mix(in srgb, #ffffff, transparent 35%);
  font-size: 13px;
}

.cookie-category .form-check-input {
  background-color: color-mix(in srgb, #ffffff, transparent 75%);
  border-color: color-mix(in srgb, #ffffff, transparent 60%);
}

.cookie-category .form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.cookie-consent-save {
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 575px) {
  .cookie-consent-inner {
    padding: 18px 15px;
  }

  .cookie-consent-buttons {
    flex-basis: 100%;
    justify-content: stretch;
  }

  .cookie-consent-buttons .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
