/* ===== Benquin re-skin (ported from benquin.ph css/style.css) ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--benquin-primary-dark);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--benquin-primary); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--benquin-secondary); }

.btn { border-radius: 4px; letter-spacing: 0.03em; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26, 58, 82, 0.12); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { position: relative; display: inline-block; padding-bottom: 1rem; }
.section-header h2::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--benquin-secondary) 0%, var(--benquin-accent) 100%);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s ease-out; }

/* ===== Navigation (ported from style.css lines 101-241) ===== */
#site-menu { background: #fff; box-shadow: 0 2px 8px rgba(26,58,82,0.08); position: sticky; top: 0; z-index: 1000; padding: 0.75rem 0; }
.site-logo { height: 60px; width: auto; display: block; }
.quick-access { display: flex; align-items: center; flex-shrink: 0; }

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo-section { flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.logo-link:hover { opacity: 0.8; }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-toggle span {
  display: block; width: 25px; height: 3px;
  background: var(--benquin-primary); margin: 5px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu { display: flex; list-style: none; justify-content: flex-end; align-items: center; gap: 0.5rem; flex: 1; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 1.25rem 1rem;
  color: var(--benquin-text-dark);
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--benquin-primary); background: var(--benquin-bg-light); }

/* Dropdown Menus */
.nav-menu .dropdown {
  position: absolute; top: 100%; left: 0;
  background: white; min-width: 240px; list-style: none;
  margin: 0; padding: 0;
  box-shadow: 0 4px 20px rgba(26, 58, 82, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 2px solid var(--benquin-secondary);
  z-index: 1001;
}
.nav-menu .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .dropdown li a {
  display: block; padding: 0.875rem 1.5rem;
  color: var(--benquin-text-dark); font-size: 0.9rem;
  border-bottom: 1px solid var(--benquin-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
}
.nav-menu .dropdown li:last-child a { border-bottom: none; }
.nav-menu .dropdown li a:hover { background: var(--benquin-bg-light); color: var(--benquin-primary); padding-left: 2rem; }

/* Mobile nav (ported from style.css lines 883-973) */
@media (max-width: 968px) {
  .mobile-menu-toggle { display: block; position: relative; z-index: 1001; }
  .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

  .nav-wrapper { flex-wrap: wrap; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.08);
    z-index: 1000; justify-content: flex-start;
  }
  .nav-menu.active { max-height: 100vh; overflow-y: auto; }
  .nav-menu > li > a { border-bottom: 1px solid var(--benquin-border); padding: 1rem 1.5rem; }
  .nav-menu > li.has-dropdown > a::after {
    content: '\25BC'; font-size: 0.7rem; margin-left: 0.5rem;
    transition: transform 0.3s ease; display: inline-block;
  }
  .nav-menu > li.has-dropdown.active > a::after { transform: rotate(180deg); }
  .nav-menu .dropdown {
    position: static; opacity: 0; visibility: hidden; transform: none;
    box-shadow: none; border-top: none;
    max-height: 0; overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    background: var(--benquin-bg-light);
  }
  .nav-menu > li.has-dropdown.active .dropdown { opacity: 1; visibility: visible; max-height: 1000px; }
}

/* ===== Footer (ported from style.css lines 747-846) ===== */
.site-footer {
  background: #d3d3d3;
  color: #1f2937;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-column h3,
.footer-column h4 { color: #1f2937; margin-bottom: 1.5rem; font-size: 1.25rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1f2937;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links a:hover { background: var(--benquin-secondary); transform: translateY(-3px); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #1f2937; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.footer-links a:hover { color: var(--benquin-accent); padding-left: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #1f2937;
}
.footer-disclaimer { margin-top: 0.5rem; font-size: 0.85rem; color: #5a5e66; }
#copyright { background: var(--copyright-background-color); color: var(--copyright-text-color); padding: 1rem 0; text-align: center; font-size: 0.9rem; }

/* ===== Product cards (ported from style.css lines 467-567) ===== */
.listing.products.columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 58, 82, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(26, 58, 82, 0.12);
}
.product-card > .link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-card .product-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--benquin-bg-light);
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.1); }
.product-card .product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3.name { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--benquin-primary-dark); }
.product-card .product-description {
  color: var(--benquin-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-card .product-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--benquin-border);
}
.product-card .product-price { display: flex; align-items: baseline; gap: 0.35rem; }
.product-card .price { font-weight: 700; font-size: 1.35rem; color: var(--benquin-primary-dark); }
.product-card .btn-view { display: block; width: 100%; padding: 0.7rem 1.5rem; font-size: 0.9rem; text-align: center; background: var(--primary-button-background-color); color: #fff; }
.price-prefix {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--benquin-primary-light);
}
.product-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--benquin-secondary);
  color: var(--benquin-primary-dark);
  padding: 0.4rem 1rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 2px;
}

/* ===== Category cards (ported from style.css lines 569-630) ===== */
.listing.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.category-card {
  background: white;
  padding: 2rem;
  border-radius: 4px;
  border: 2px solid var(--benquin-border);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: inherit;
  display: block;
}
.category-card:hover {
  border-color: var(--benquin-secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 58, 82, 0.08);
}
.category-icon {
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}
.category-icon-image { width: auto; height: 80px; object-fit: contain; display: block; }
.category-icon-letter {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--benquin-primary); color: #fff;
}
.category-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.category-card p { font-size: 0.9rem; margin-bottom: 0; color: var(--benquin-primary); }

/* ===== Product detail variant gallery ===== */
#box-product .extra-image { border-radius: 4px; border: 1px solid var(--benquin-border); overflow: hidden; }
#box-product .extra-image:hover { border-color: var(--benquin-secondary); }
#box-product .inquire-block { padding: 1.5rem; background: linear-gradient(135deg, var(--benquin-primary) 0%, var(--benquin-primary-light) 100%); border-radius: 4px; color: #fff; }
#box-product .inquire-block p { color: rgba(255,255,255,0.9); }

/* ===== Hero slider (ported from style.css lines 244-336) ===== */
.hero-slider { position: relative; height: 500px; overflow: hidden; background: var(--benquin-bg-light); }
.hero-slider .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  display: flex; align-items: stretch;
}
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.slide-content {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem;
  background: rgb(109, 122, 144);
  z-index: 2;
  overflow-y: auto;
}
.slide-image-wrapper { flex: 1; overflow: hidden; background: var(--benquin-bg-light); }
.slide-image { width: 100%; height: 100%; object-fit: cover; }
.slide-content h2 { color: #ffffff; font-size: 3rem; margin-bottom: 1rem; }
.slide-content p { color: #ffffff; font-size: 1.25rem; margin-bottom: 2rem; }
.slide-content .btn { align-self: flex-start; padding: 0.875rem 2rem; }
.slider-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.75rem; z-index: 3;
  background: rgba(65, 93, 133, 0.3);
  padding: 0.75rem 1.5rem; border-radius: 50px;
}
.slider-dots .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}
.slider-dots .dot.active { background: var(--benquin-secondary); border-color: white; transform: scale(1.2); }
@media (max-width: 968px) {
  .hero-slider { height: auto; min-height: 480px; }
  .hero-slider .slide { flex-direction: column; }
  .slide-content { flex: 0 0 auto; padding: 2rem; }
  .slide-image-wrapper { flex: 0 0 auto; height: 300px; }
  .slide-content h2 { font-size: 2rem; }
  .slide-content p { font-size: 1rem; }
}

/* ===== Home sections (welcome/FAQ/map, ported from style.css lines 391-465, 632-705) ===== */
#content > section { padding: 4rem 0; }
.fb-banner { padding: 2rem 0 !important; background: #fff; }
.welcome-section { background: var(--benquin-bg-light); }
.welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.welcome-image { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 32px rgba(26, 58, 82, 0.12); }
.welcome-image img { width: 100%; height: 400px; object-fit: cover; }
.faq-preview { background: var(--benquin-bg-light); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: white;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(26, 58, 82, 0.08);
  overflow: hidden;
}
.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
  color: var(--benquin-primary-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
}
.faq-question:hover { background: var(--benquin-bg-light); }
.faq-toggle {
  width: 24px; height: 24px;
  background: var(--benquin-primary);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); background: var(--benquin-secondary); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 500px; }
.map-container { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 20px rgba(26, 58, 82, 0.12); height: 450px; }
.map-container iframe { width: 100%; height: 100%; border: none; }
@media (max-width: 968px) {
  .welcome-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== Form pages (inquiry/careers) ===== */
.benquin-form-page { max-width: 720px; margin: 0 auto; padding: 2rem 0 4rem; }
.benquin-form-card { box-shadow: 0 4px 20px rgba(26,58,82,0.08); }
.benquin-form-card .card-body { padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--benquin-text-dark); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--benquin-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--benquin-primary); box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1); }
.form-group textarea { resize: vertical; min-height: 150px; }

/* ===== Info page hero + full-width content (matches benquin.ph page headers) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--benquin-primary-dark) 0%, var(--benquin-primary) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-content { padding-bottom: 4rem; }

/* Page hero subtitle (gold, matches benquin.ph) + 1200px content cap */
.page-hero h1 { font-size: 3rem; }
.page-hero-subtitle { color: var(--benquin-secondary-light); font-size: 1.25rem; max-width: 900px; margin: 1rem auto 0; }
.page-content { max-width: 1200px; margin: 0 auto; }

/* Categories page: 3-column grid capped at 1200px + product counts (matches benquin.ph) */
#box-categories .listing.categories {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
}
@media (max-width: 992px) { #box-categories .listing.categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { #box-categories .listing.categories { grid-template-columns: 1fr; } }
.category-product-count { margin-top: 1rem; color: var(--benquin-primary); font-weight: 600; font-size: 0.95rem; }

/* Category listing page: full width capped 1200px, 3 columns, variant thumbs on cards */
.category-listing { max-width: 1200px; margin: 0 auto; padding-bottom: 4rem; }
/* Card image sits inside whitespace padding at its natural ratio (matches benquin.ph) */
.category-listing .product-card .product-image {
  height: auto;
  padding: 1.5rem 1.5rem 0.5rem;
  background: #fff;
}
.category-listing .product-card .product-image img { height: auto; }
.product-card .product-image .sticker { display: none; }
.category-listing .product-card:hover .product-image img { transform: scale(1.03); }
.category-listing .listing.products.columns { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .category-listing .listing.products.columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .category-listing .listing.products.columns { grid-template-columns: 1fr; } }
.product-category {
  font-size: 0.8rem;
  color: var(--benquin-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.product-variants { margin: 1rem 0; }
.product-variants-title { font-size: 0.9rem; font-weight: 600; color: var(--benquin-primary); margin-bottom: 0.5rem; }
.product-variants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 0.5rem; }
.product-variants-grid img { width: 100%; height: 80px; object-fit: contain; background: #f5f5f5; padding: 0.25rem; border-radius: 4px; }
.product-card .product-footer .btn-view { width: 100%; text-align: center; }
.btn-outline { background: transparent; color: var(--benquin-primary); border: 2px solid var(--benquin-primary); }
.btn-outline:hover { background: var(--benquin-primary); color: #fff; }
#box-featured-products .product-variants { display: none; }

/* Option → image sync: cross-fade the main artwork and mark the active thumb */
#box-product .main-image img { transition: opacity .18s ease-in-out; }
#box-product .main-image.bq-swapping img { opacity: 0.25; }
#box-product .images .thumbnail.bq-active { outline: 2px solid var(--benquin-accent, #337ab7); outline-offset: 2px; }
