/* Emul King tweaks on top of Hugo Universal theme */

/* Override theme CSS variables to Emul King blue */
:root {
  --primary-accent: #3A55A4;
  --navbar-border-top: #3A55A4;
  --button-border: #3A55A4;
  --link-focus: #3A55A4;
  --form-shadow: rgba(58, 85, 164, 0.4);
  --pagination-bg: #dbe2f5;
  --link-hover-bg: #e7ebf8;
  --navbar-focus: #d2daf3;
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

#all {
  overflow-x: hidden;
  max-width: 100%;
}

/* Modern Homepage Styles */
.modern-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3A55A4, #5b7bc7);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin-top: 20px;
  font-weight: 400;
}

.about-content {
  animation: fadeInLeft 1s ease-out;
}

.about-content .lead {
  font-size: 20px;
  line-height: 1.7;
  color: #34495e;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #5a6c7d;
}

.about-features {
  animation: fadeInRight 1s ease-out;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-item:hover {
  background: #ffffff;
  border-color: #3A55A4;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(58, 85, 164, 0.15);
}

.feature-item i {
  font-size: 36px;
  color: #3A55A4;
  margin-right: 20px;
  min-width: 50px;
  transition: transform 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.1);
}

.feature-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  margin-top: 5px;
}

.feature-content p {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Prevent any overflow on mobile */
  .container,
  .row,
  .col-md-12,
  .col-md-6,
  .col-sm-12 {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .modern-section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .section-title {
    font-size: 32px;
    word-wrap: break-word;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .about-content,
  .about-features {
    margin-bottom: 30px;
  }

  .feature-item {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .feature-item i {
    font-size: 28px;
    min-width: 40px;
    margin-right: 15px;
  }

  .feature-content h4 {
    word-wrap: break-word;
  }

  .feature-content p {
    word-wrap: break-word;
  }

  /* Category page cards on mobile */
  .page-content > .row {
    margin-bottom: -20px;
  }

  .page-content > .row > [class*="col-"] {
    margin-bottom: 20px;
  }

  .box-simple {
    padding: 25px 20px;
    margin-bottom: 0;
  }

  .box-simple h3 {
    font-size: 18px;
  }

  .box-simple .text-muted {
    font-size: 14px;
  }

  .page-content > h1 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .page-content {
    padding: 30px 0;
  }
}

/* Home carousel hero background using latest Emul King image */
.home-carousel {
  background-image: url("../img/cropped-20240812_090341.jpg");
  background-size: cover;
  background-position: center center;
  max-width: 100%;
  overflow: hidden;
}

/* Improve hero text visibility over image */
.home-carousel h1 {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 15px;
}

/* Animated tagline below EMUL KING */
.hero-tagline {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  margin: 0 0 20px 0;
  animation: slideInUp 1s ease-out 0.3s both, glow 2s ease-in-out 1.3s infinite alternate;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(58, 85, 164, 0.3);
  }
  to {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(58, 85, 164, 0.6),
                 0 0 30px rgba(58, 85, 164, 0.4);
  }
}

.home-carousel .item .col-sm-5 {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.35) 40%, transparent 75%);
  padding: 20px;
  border-radius: 12px;
}

/* Remove dark overlay + increase hero height */
.home-carousel .dark-mask {
  background: none;
  opacity: 1;
}

.home-carousel .owl-carousel {
  padding-top: 100px;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  .home-carousel {
    min-height: 70vh;
  }
}

/* Hide separate carousel image column on large screens, keep text overlay */
@media (min-width: 768px) {
  .home-carousel .item .col-sm-7 {
    display: none;
  }
  .home-carousel .item .col-sm-5 {
    float: none;
    margin: 80px auto;
    text-align: center;
    animation: heroFadeUp 0.8s ease-out 0.1s both;
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand img {
  max-height: 50px;
}

@media (min-width: 768px) {
  .navbar-affixed-top .navbar-brand.home {
    display: none;
  }
}

/* Align navbar accents and backgrounds with main brand color */
.navbar ul.nav > li > a {
  border-top: 5px solid transparent;
  background-color: transparent !important;
}

.navbar ul.nav > li > a:hover,
.navbar ul.nav > li.open > a:hover,
.navbar ul.nav > li > a:focus,
.navbar ul.nav > li.open > a:focus {
  border-top-color: #ffffff;
  background-color: #ffffff !important;
  color: #3A55A4 !important;
}

.navbar ul.nav > li.active > a,
.navbar ul.nav > li.open > a {
  border-top-color: #ffffff;
  background-color: transparent !important;
  color: #ffffff !important;
}

.navbar.navbar-light ul.nav > li.active > a,
.navbar.navbar-light ul.nav > li.active > a:hover {
  border-top-color: #3A55A4;
  background-color: transparent !important;
}

/* Product page heading spacing */
.page-header h1,
.page-header h2,
.page-header h3 {
  text-transform: none;
}

/* Header topbar styles similar to live site */
.topbar-area {
  background-color: #ffffff;
}

.topbar-area .row {
  display: flex;
  align-items: center;
}

.topbar-logo {
  display: inline-block;
}

.topbar-logo img {
  max-height: 80px;
  vertical-align: middle;
}

.topbar-contact {
  font-size: 13px;
  white-space: nowrap;
}

.topbar-contact-item {
  display: inline-block;
  margin-left: 20px;
}

.topbar-contact-item .icon {
  margin-right: 5px;
}

.topbar-contact-item .icon i {
  color: #3A55A4;
}

/* Mobile responsive topbar */
@media (max-width: 767px) {
  .topbar-area {
    padding: 10px 0;
  }

  .topbar-area .row {
    justify-content: center;
  }

  .topbar-logo {
    text-align: center;
  }

  .topbar-logo img {
    max-height: 60px;
  }

  /* Hide contact info completely on mobile */
  .topbar-contact {
    display: none !important;
  }

  /* Fix navbar width on mobile */
  .navbar-affixed-top,
  .navbar-affixed-top #navbar,
  .navbar-affixed-top #navbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  .navbar-header {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide navbar logo on mobile, keep only topbar logo */
  .navbar-brand {
    display: none !important;
  }

  /* Move hamburger button to the left */
  .navbar-buttons {
    float: left;
  }

  /* Fix content margins - ensure even padding on both sides */
  #content .container,
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide carousel text overlay and img-responsive image on mobile, keep only background */
  .home-carousel .item .col-sm-5,
  .home-carousel .item .col-sm-7 {
    display: none !important;
  }

  /* Ensure carousel doesn't overflow */
  .home-carousel {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .home-carousel .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Smaller tagline font on mobile */
  .hero-tagline {
    font-size: 16px;
    letter-spacing: 1px;
  }

  /* Center footer sections on mobile */
  .footer-about,
  .footer-links {
    text-align: center;
    margin-bottom: 40px;
  }

  #footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-menu-list {
    text-align: center;
  }

  .footer-menu-list a {
    justify-content: center;
  }

  .copyright-text {
    text-align: center;
    margin-bottom: 0;
  }

  .footer-content {
    padding: 40px 0 30px;
  }

  /* Reduce list padding on mobile */
  ul, ol {
    padding-left: 20px;
    margin-left: 0;
  }

  /* Fix mobile menu colors - keep white text always */
  .navbar-affixed-top #navbar .navbar-nav > li > a,
  .navbar-affixed-top #navbar .navbar-nav > li.active > a,
  .navbar-affixed-top #navbar .navbar-nav > li > a:hover,
  .navbar-affixed-top #navbar .navbar-nav > li > a:focus,
  .navbar-affixed-top #navbar .navbar-nav > li.open > a,
  .navbar-default .navbar-nav > li > a,
  .navbar-default .navbar-nav > li.active > a,
  .navbar-default .navbar-nav > li > a:hover,
  .navbar-default .navbar-nav > li > a:focus,
  .navbar-default .navbar-nav > li.open > a,
  .navbar-default .navbar-brand,
  .navbar-default .navbar-brand:hover,
  .navbar-default .navbar-brand:focus,
  .navbar-default .navbar-text,
  .navbar-affixed-top #navbar .navbar-nav .open .dropdown-menu > li > a,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #ffffff !important;
    background-color: transparent !important;
  }

  /* Remove active menu indicator on mobile */
  .navbar-affixed-top #navbar .navbar-nav > li > a,
  .navbar-affixed-top #navbar .navbar-nav > li.active > a,
  .navbar-default .navbar-nav > li > a,
  .navbar-default .navbar-nav > li.active > a {
    border-top: none !important;
  }
}

/* Navbar: semi-transparent black, solid accent when affixed */
.navbar-affixed-top #navbar {
  background: #333333;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-affixed-top.affix #navbar {
  background-color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}


/* Make header text white over Header.jpg background */
#heading-breadcrumbs h1,
#heading-breadcrumbs ul.breadcrumb li,
#heading-breadcrumbs ul.breadcrumb li a {
  color: #ffffff;
}

.navbar-affixed-top.affix #navbar {
  background-color: #3A55A4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.navbar-affixed-top #navbar .navbar-nav > li > a {
  color: #ffffff;
}

.navbar-affixed-top #navbar .navbar-nav > li.active > a,
.navbar-affixed-top #navbar .navbar-nav > li > a:hover,
.navbar-affixed-top #navbar .navbar-nav > li > a:focus {
  color: #ffffff;
}

.navbar-default .navbar-toggle {
  border-color: #ffffff;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

/* Site-wide accent color alignment */
a,
.btn-primary,
.btn-template-main,
.panel-default > .panel-heading {
  color: #3A55A4;
}

.btn-primary,
.btn-template-main,
.label-primary,
.bg-primary {
  background-color: #3A55A4;
  border-color: #3A55A4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-template-main:hover,
.btn-template-main:focus {
  background-color: #3A55A4;
  border-color: #3A55A4;
}

/* Product gallery images in Taśmy dylatacyjne article */
img[src*="FOLDER_"] {
  margin: 10px 0;
  border: 1px solid #ddd;
  padding: 4px;
  background-color: #fff;
}

/* Compact product cards: 4 per row, smaller icons */
.box-product {
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
}

.box-product .image img {
  max-height: 150px;
  width: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

/* Make product card text slightly smaller */
.box-product .product-title {
  font-size: 15px;
  line-height: 1.3;
}

.box-product .text-muted {
  font-size: 13px;
}

/* Hide "Szczegóły produktu" buttons in product gallery cards */
.page-content .box-product .btn-template-main {
  display: none;
}

/* Equal-height product/category cards in Produkty grids */
.page-content > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.page-content > .row > [class*="col-"] {
  display: flex;
}

/* Category Pages Layout */
#content {
  background: #ffffff;
}

.page-content {
  padding: 40px 0;
}

.page-content > h1 {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.page-content > h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3A55A4, #5b7bc7);
  border-radius: 2px;
}

/* Grid spacing for category items */
.page-content > .row {
  margin-bottom: -30px;
}

.page-content > .row > [class*="col-"] {
  margin-bottom: 30px;
}

/* Modern Card Design for Category Pages */
.box-simple {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 25px;
  margin-bottom: 0;
  transition: all 0.3s ease;
  border: 2px solid #e8ecf1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.box-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3A55A4, #5b7bc7);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.box-simple:hover {
  border-color: #3A55A4;
  box-shadow: 0 8px 25px rgba(58, 85, 164, 0.15);
  transform: translateY(-5px);
}

.box-simple:hover::before {
  transform: scaleX(1);
}

.box-simple h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.box-simple h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.box-simple:hover h3 a {
  color: #3A55A4;
}

.box-simple .text-muted {
  font-size: 15px;
  line-height: 1.6;
  color: #7f8c8d;
  margin-bottom: 0;
}

.page-content .box-product,
.page-content .box-simple {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.page-content .box-product .product-title,
.page-content .box-simple h3 {
  flex-grow: 1;
}

/* Product detail pages in Produkty: image left, content right */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 75%);
  grid-column-gap: 30px;
}

.product-page > *:first-child {
  grid-column: 1;
}

.product-page > *:not(:first-child) {
  grid-column: 2;
}

.product-page > p:first-of-type img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 15px 0;
}

@media (max-width: 767px) {
  .product-page {
    display: block;
  }

  .product-page > * {
    grid-column: auto;
  }

  .product-page > p:first-of-type img {
    max-width: 60%;
    margin: 0 auto 15px;
  }
}

/* Unified product detail sections */
.page-content .product-section {
  margin-top: 25px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

/* Kontakt page: people grid */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-left: -15px;
  margin-right: -15px;
}

.contact-card {
  padding: 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-card {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .contact-card {
    width: 33.3333%;
  }
}

.contact-card-inner {
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 4px;
  background: #ffffff;
  height: 100%;
}

.contact-card h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.contact-card .role {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.contact-card .phone,
.contact-card .email {
  font-size: 13px;
}

.contact-map {
  margin-top: 30px;
  border: 1px solid #e0e0e0;
}

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

/* Remove top divider for the first section on a product page */
.page-content .product-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content .product-section h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Modern Footer Design */
#footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3A55A4 0%, #5b7bc7 50%, #3A55A4 100%);
}

.footer-content {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

#footer h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

#footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #3A55A4;
  border-radius: 2px;
}

.footer-about p {
  color: #bdc3c7;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-contact {
  margin-top: 25px;
}

.footer-contact p {
  color: #ecf0f1;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: #3A55A4;
  font-size: 16px;
  margin-top: 2px;
  min-width: 18px;
}

.footer-contact a {
  color: #ecf0f1;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #3A55A4;
  text-decoration: none;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list li {
  margin-bottom: 12px;
}

.footer-menu-list a {
  color: #bdc3c7;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-menu-list a i {
  font-size: 10px;
  color: #3A55A4;
  transition: transform 0.3s ease;
}

.footer-menu-list a:hover {
  color: #ffffff;
  text-decoration: none;
  padding-left: 5px;
}

.footer-menu-list a:hover i {
  transform: translateX(3px);
}

.footer-menu-list li.active a {
  color: #3A55A4;
  font-weight: 600;
}

#copyright {
  background: rgba(0, 0, 0, 0.3);
  color: #bdc3c7;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#copyright .copyright-text {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

#copyright a {
  color: #ecf0f1;
  transition: color 0.3s ease;
}

#copyright a:hover {
  color: #3A55A4;
  text-decoration: none;
}

/* Make primary/template buttons readable on accent background */
.btn-primary,
.btn-template-main {
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-template-main:hover,
.btn-template-main:focus {
  color: #ffffff !important;
}

/* Keep active menu item text dark so it stays readable */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #555555;
  background-color: transparent !important;
}

/* Ensure footer stays at the bottom on short pages */
html,
body {
  height: 100%;
}

#all {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1 0 auto;
  padding-bottom: 40px;
}

/* Product detail layout: two columns, image left, text right */
.product-page {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-column-gap: 30px;
  align-items: flex-start;
}

/* Product feature layout (gallery + text) */
.product-feature {
  margin-top: 20px;
}

.product-gallery {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 4px;
}

.product-gallery-main {
  margin: 0;
}

.product-gallery-main img {
  width: 100%;
  border-radius: 4px;
}

.product-gallery-thumbs {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: none;
  display: block;
}

.product-feature-content {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 4px;
}

.product-feature-content ul {
  margin-left: 20px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.product-table caption {
  caption-side: top;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-table th,
.product-table td {
  border: 1px solid #d4d4d4;
  padding: 8px;
  text-align: center;
}

.product-table th[scope="row"] {
  text-align: left;
  background: #f4f6fb;
}

.product-note {
  margin-top: 15px;
  font-style: italic;
}

.product-page > p:first-of-type {
  margin: 0;
}

.product-page > p:first-of-type img {
  display: block;
  max-width: 240px;
  height: auto;
}

/* Place all textual content into a single right-hand column when wrapped */
.product-page > .product-text {
  grid-column: 2;
}

/* Fallback: if there is no wrapper, put all following siblings into the right column */
.product-page > *:not(:first-of-type):not(.product-text) {
  grid-column: 2;
}

@media (max-width: 767px) {
  .product-page {
    display: block;
  }

  .product-page > p:first-of-type img {
    max-width: 60%;
    margin: 0 auto 15px;
  }
}

/* Product Breadcrumb Navigation */
#heading-breadcrumbs .product-breadcrumb {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

#heading-breadcrumbs .breadcrumb-item a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

#heading-breadcrumbs .breadcrumb-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.breadcrumb-home-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

#heading-breadcrumbs .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  user-select: none;
  font-weight: 300;
}

#heading-breadcrumbs .breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
  .product-breadcrumb {
    font-size: 13px;
  }

  .breadcrumb-item a {
    padding: 5px 8px;
    gap: 4px;
  }

  .breadcrumb-home-icon {
    width: 12px;
    height: 12px;
  }

  .breadcrumb-separator {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  #heading-breadcrumbs {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* Lightbox styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-gallery-thumbs a {
  cursor: pointer;
  display: block;
  transition: opacity 0.2s ease;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.product-gallery-thumbs a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    font-size: 30px;
    padding: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
