/* Products Page Specific Styles */
.header {
  position: relative;
  z-index: 100;
  background: #f5f5f5;
  height: auto;
}
.container {
  height: auto;
}
.info {
  margin-bottom: 15px;
  height: auto;
}
.header_p1 {
  font-size: 50px;
  min-width: auto !important;
  width: auto;
}

/* Search animation styles */
.header_search_input {
  opacity: 0 !important;
  transform: translateX(-20px) !important;
  transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
}

.info_right.search-mode .header_search_input {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Burger search input styles - matching other pages */
.burger_search_input {
  display: none;
  width: 200px;
  opacity: 0;
  padding-left: 10px;
  font-size: 18px;
  transition: width 0.3s ease, opacity 0.3s ease;
  border: 2px solid #c5c5c5;
  border-radius: 2px;
  outline: none;
  background: white;
}

.burger_search_input.active {
  display: inline-block;
  opacity: 1;
}

/* Burger icons bottom container */
.burger_icons_bottom {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 50px;
  transition: margin-top 0.3s ease;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Burger search button */
.burger_search {
  transition: opacity 0.3s ease;
}

/* Burger icons - ensure they are always visible */
.burger_tg_btn,
.burger_change_language,
.burger_theme_btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override search-active styles to keep icons visible */
.burger_icons.search-active .burger_icons_bottom {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 5px !important;
}

.burger_icons.search-active .burger_tg_btn,
.burger_icons.search-active .burger_change_language,
.burger_icons.search-active .burger_theme_btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Dropdown menu for desktop */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: white;
  min-width: 350px;
  box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 10px 0;
  margin-top: 5px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  color: black;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-size: 18px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-bottom: none !important;
}

.dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #802a34;
  padding-left: 24px;
}

.dropdown-container:hover .dropdown-menu {
  display: block;
}
.submenu{
  display: none;
}

/* Products intro section */
.products-hero {
  position: relative;
  height: 400px;
  background-image: url('../img/cnVzc29zLnJ1L2ltZy90cmlwLzIwMTYtMDYtbmVmb3J1bS9rdnotMDEuanBnP19faWQ9ODAyMTU=.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 16px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff6b7a;
}

.breadcrumb .separator {
  margin: 0 15px;
  color: #ffffff;
  opacity: 0.7;
}

.breadcrumb .current {
  color: #ffffff;
  opacity: 0.9;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Product sections */
.product-section {
  padding: 100px 250px;
  background-color: white;
}

body.dark-theme .product-section {
  background-color: #0d1117 !important;
}

/* Product hero images */
.product-image-header {
  margin-bottom: 50px;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-hero-image {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-hero-image:hover {
  transform: scale(1.02);
}

.product-section.sap-section {
  background-color: #fbfbfb;
}

body.dark-theme .product-section.sap-section {
  background-color: #0d1117 !important;
}

.product-section.interior-section {
  background-color: white;
}

body.dark-theme .product-section.interior-section {
  background-color: #0d1117 !important;
}

.product-content {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 50px;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 120%;
}

.subsection-title {
  font-size: 38px;
  font-weight: 300;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #802a34;
}

.product-description {
  font-size: 24px;
  font-weight: 300;
  line-height: 150%;
  margin-bottom: 30px;
  color: #000;
}

/* Features list */
.features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.features-list li {
  font-size: 22px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.features-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #47bbc2;
  font-size: 28px;
  line-height: 180%;
}

/* Tables */
.variants-table,
.specs-table {
  margin: 30px 0;
  overflow-x: auto;
}

.variants-table table,
.specs-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f9f9;
}

body.dark-theme .variants-table table,
body.dark-theme .specs-table table {
  background-color: #161b22 !important;
}

.variants-table th,
.specs-table th {
  background-color: #802a34;
  color: white;
  padding: 15px;
  text-align: left;
  font-size: 22px;
  font-weight: 600;
}

.variants-table td,
.specs-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 20px;
  font-weight: 300;
}

.variants-table tr:hover,
.specs-table tr:hover {
  background-color: #f0f0f0;
}

body.dark-theme .variants-table tr:hover,
body.dark-theme .specs-table tr:hover {
  background-color: #21262d !important;
}

/* Advantage blocks */
.advantage-block {
  margin: 30px 0;
  padding: 25px;
  background-color: #e5f1ff;
  border-left: 5px solid #47bbc2;
  border-radius: 5px;
}

body.dark-theme .advantage-block {
  background-color: #161b22 !important;
  border-left-color: #47bbc2 !important;
}

.advantage-title {
  font-size: 26px;
  font-weight: 600;
  color: #802a34;
  margin-bottom: 15px;
}

.advantage-block p {
  font-size: 20px;
  font-weight: 300;
  line-height: 160%;
}

/* Installation info */
.installation-info {
  background-color: #fbfbfb;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

body.dark-theme .installation-info {
  background-color: #161b22 !important;
}

.installation-info p {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 15px;
}

.installation-info ul {
  list-style: none;
  padding-left: 20px;
  margin: 10px 0;
}

.installation-info li {
  font-size: 20px;
  font-weight: 300;
  line-height: 160%;
  margin-bottom: 8px;
}

/* Warning box */
.warning-box {
  background-color: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 20px;
  margin: 30px 0;
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dark-theme .warning-box {
  background-color: #2d2a1a !important;
  border-left-color: #ffc107 !important;
}

.warning-box p {
  font-size: 20px;
  font-weight: 400;
  line-height: 160%;
  color: #856404;
  margin: 0;
  word-wrap: break-word;
}

/* Note */
.note {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: #505050;
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 3px solid #47bbc2;
}

body.dark-theme .note {
  background-color: #161b22 !important;
  border-left-color: #47bbc2 !important;
  color: #8b949e !important;
}

/* Advantages grid for SAP */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.advantage-item {
  background-color: #e5f1ff;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

body.dark-theme .advantage-item {
  background-color: #161b22 !important;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.advantage-item h4 {
  font-size: 22px;
  font-weight: 600;
  color: #802a34;
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 19px;
  font-weight: 300;
  line-height: 150%;
}

/* Components list */
.components-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.components-list li {
  font-size: 21px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.components-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #47bbc2;
  font-size: 24px;
  font-weight: bold;
}

/* Target audience */
.target-audience {
  font-size: 22px;
  font-weight: 400;
  margin: 30px 0 15px 0;
}

.target-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.target-list li {
  font-size: 21px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}

.target-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #802a34;
  font-size: 20px;
  font-weight: bold;
}

/* Feature grid for interior */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
}

.feature-card {
  background-color: #fbfbfb;
  padding: 25px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

body.dark-theme .feature-card {
  background-color: #0d1117 !important;
  border: none !important;
}

.feature-card:hover {
  border-color: #47bbc2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.feature-card p {
  font-size: 19px;
  font-weight: 300;
  line-height: 150%;
  color: #505050;
  margin: 0;
}

/* Custom list */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.custom-list li {
  font-size: 21px;
  font-weight: 300;
  line-height: 180%;
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}

.custom-list li:before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #802a34;
  font-size: 16px;
}

.highlight-text {
  font-size: 24px;
  font-weight: 400;
  color: #802a34;
  margin: 30px 0;
  padding: 20px;
  background-color: #e5f1ff;
  border-radius: 8px;
  text-align: center;
}

/* Content with side image layout */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse > * {
  direction: ltr;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.text-content p {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  max-width: 100%;
}

.text-content ul {
  margin: 15px 0;
  padding-left: 0;
  max-width: 100%;
}

.text-content li {
  font-size: 20px;
  line-height: 1.8;
}

.side-image {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.side-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Furniture sections (chair and table) - special layout */
.furniture-section {
  gap: 40px;
}

.furniture-section .side-image {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.furniture-section .side-image img {
  object-fit: contain;
  max-height: 600px;
  width: 100%;
}

/* Chair section - taller image, text left, image right */
.chair-section {
  grid-template-columns: 1.6fr 0.8fr;
  gap: 40px;
}

.chair-section .side-image {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.chair-section .side-image img {
  max-height: 700px;
  width: 100%;
  object-fit: cover;
}

/* Small image sections */
.small-image-section .side-image img {
  max-height: 400px;
}

/* Simplified Header Styles for Products Page */
.header {
  min-height: auto !important;
  height: auto !important;
  background: #fbfbfb !important;
}

.header .container {
  min-height: auto !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

/* Responsive Design */

/* Tablets and smaller desktops */
@media (max-width: 1520px) {
  .products-intro {
    padding: 80px 140px;
  }

  .product-section {
    padding: 80px 140px;
  }

  .intro-title {
    font-size: 42px;
  }

  .intro-subtitle {
    font-size: 28px;
  }

  .section-title {
    font-size: 38px;
  }

  .subsection-title {
    font-size: 30px;
  }
}

@media (max-width: 1200px) {
  .dropdown-menu {
    min-width: 280px;
  }

  .dropdown-menu a {
    font-size: 16px;
    padding: 10px 14px;
  }

  .products-intro {
    padding: 60px 80px;
  }

  .product-section {
    padding: 60px 80px;
  }

  .intro-title {
    font-size: 36px;
  }

  .intro-subtitle {
    font-size: 24px;
  }

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

  .subsection-title {
    font-size: 26px;
  }

  .product-description {
    font-size: 20px;
  }

  .content-with-image {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Furniture sections - keep side-by-side on tablets */
  .furniture-section {
    grid-template-columns: 1fr 0.8fr;
    gap: 25px;
    align-items: start;
  }

  .furniture-section .side-image {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .furniture-section .side-image img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
  }

  .furniture-section.reverse {
    grid-template-columns: 0.8fr 1fr;
  }

  /* Chair section - adjust on tablets, keep side-by-side */
  .chair-section {
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
  }

  .chair-section .side-image {
    position: sticky;
    top: 100px;
  }

  .chair-section .side-image img {
    max-height: 600px;
    width: 100%;
  }

  /* Small image sections - reduce size on tablets */
  .small-image-section .side-image img {
    max-height: 300px;
  }
}

/* Mobile devices */
@media (max-width: 992px) {
  .header, .container {
    height: auto;
    min-height: auto;
  }
  .burger{
    display: flex;
  }
  .header {
    background: transparent !important;
  }

  .container {
    background: transparent !important;
  }
  
  .products-hero {
    height: 300px;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Disable hover on mobile but allow JavaScript control */
  .dropdown-container:hover .dropdown-menu:not(.show) {
    display: none !important;
  }
  
  /* Ensure JavaScript-controlled dropdown works on mobile */
  .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .dropdown-menu a:hover {
    background-color: transparent;
    color: black;
    padding-left: 18px;
  }

  .product-hero-image:hover {
    transform: none;
  }

  .variants-table tr:hover,
  .specs-table tr:hover {
    background-color: transparent;
  }

  .advantage-item:hover {
    transform: none;
    box-shadow: none;
  }

  .feature-card:hover {
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
  }

  .side-image img:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  /* Disable dropdown hover on mobile but allow JavaScript control */
  .dropdown-container:hover .dropdown-menu:not(.show) {
    display: none !important;
  }
  
  /* Disable dropdown menu item hover effects on mobile */
  .dropdown-menu a:hover {
    background-color: transparent !important;
    color: inherit !important;
    padding-left: 18px !important;
  }
  
  /* Keep burger menu borders but disable other hover effects */
  .info_left button:hover,
  .info_right button:hover,
  .info_right img:hover {
    color: inherit !important;
    filter: none !important;
  }
  .dropdown-menu a:active,
  .dropdown-menu a:focus,
  .dropdown-menu a:hover{
    border-bottom: none !important;
    color: black !important;
    padding-left: 14px !important;
  }
  .products-intro {
    padding: 40px 20px;
  }

  .product-section {
    padding: 40px 20px;
  }

  .product-image-header {
    margin-bottom: 30px;
  }

  .product-hero-image {
    max-height: 300px;
  }

  .content-with-image {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .content-with-image img{
    height: 300px;
  }
  .side-image {
    order: -1;
    position: relative;
    top: 0;
  }

  .content-with-image.reverse {
    direction: ltr;
  }

  /* Furniture sections - keep side-by-side on large mobile/small tablets */
  .furniture-section {
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
    align-items: start;
  }

  .furniture-section .side-image {
    position: sticky;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .furniture-section .side-image img {
    width: 100%;
    object-fit: contain;
  }

  .furniture-section .text-content {
    direction: ltr;
    padding-right: 10px;
  }

  /* Compact feature cards in furniture sections */
  .furniture-section .feature-card {
    padding: 12px;
  }

  .furniture-section .feature-card h4 {
    font-size: 14px;
  }

  .furniture-section .feature-card p {
    font-size: 13px;
  }

  .furniture-section .feature-grid {
    gap: 12px;
    margin: 15px 0;
  }

  .furniture-section .note {
    font-size: 14px;
  }

  .furniture-section.reverse {
    grid-template-columns: 0.7fr 1fr;
  }

  /* Chair section - keep side-by-side on mobile tablets */
  .chair-section {
    direction: rtl;
    grid-template-columns: 0.8fr 1fr;
    gap: 25px;
  }

  .chair-section .side-image {
    position: sticky;
    top: 10px;
  }

  .chair-section .side-image img {
    width: 100%;
  }
  .furniture-section .side-image img{
    height: auto;
  }

  /* Small image sections - smaller on mobile */
  .small-image-section .side-image img {
    max-height: 500px;
  }

  .text-content {
    gap: 15px;
    width: 100%;
  }

  .text-content p {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .warning-box {
    padding: 15px;
    margin: 20px 0;
  }

  .warning-box p {
    font-size: 15px;
  }

  .intro-title {
    font-size: 28px;
  }

  .intro-subtitle {
    font-size: 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .subsection-title {
    font-size: 22px;
  }

  .product-description {
    font-size: 18px;
  }

  .features-list li {
    font-size: 17px;
  }

  .variants-table,
  .specs-table {
    font-size: 14px;
  }

  .variants-table th,
  .specs-table th {
    font-size: 16px;
    padding: 10px;
  }

  .variants-table td,
  .specs-table td {
    font-size: 15px;
    padding: 10px;
  }

  .advantage-block {
    padding: 20px;
  }

  .advantage-title {
    font-size: 20px;
  }

  .advantage-block p {
    font-size: 16px;
  }

  .installation-info p {
    font-size: 18px;
  }

  .installation-info li {
    font-size: 16px;
  }

  .warning-box p {
    font-size: 16px;
  }

  .advantage-item h4 {
    font-size: 18px;
  }

  .advantage-item p {
    font-size: 15px;
  }

  .components-list li {
    font-size: 17px;
  }

  .target-list li {
    font-size: 17px;
  }

  .feature-card h4 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 15px;
  }

  .custom-list li {
    font-size: 17px;
  }

  .highlight-text {
    font-size: 18px;
    padding: 15px;
  }
  .footer{
      background: none;
      padding-top: 0;
      margin-top: 0px;
      width: 100% !important;
      max-width: 100% !important;
  }
}

/* Small mobile devices */
@media (max-width: 768px) {
  .products-intro {
    padding: 30px 15px;
  }

  .product-section {
    padding: 30px 15px;
  }

  .intro-title {
    font-size: 24px;
  }

  .intro-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .subsection-title {
    font-size: 20px;
  }

  .product-description {
    font-size: 16px;
  }

  .features-list li {
    font-size: 15px;
  }

  .variants-table th,
  .specs-table th {
    font-size: 14px;
    padding: 8px;
  }

  .variants-table td,
  .specs-table td {
    font-size: 13px;
    padding: 8px;
  }

  .advantage-block {
    padding: 15px;
  }

  .advantage-title {
    font-size: 18px;
  }

  .advantage-block p {
    font-size: 15px;
  }

  .installation-info {
    padding: 20px;
  }

  .installation-info p {
    font-size: 16px;
  }

  .installation-info li {
    font-size: 14px;
  }

  .warning-box {
    padding: 15px;
  }

  .warning-box p {
    font-size: 14px;
  }

  .note {
    font-size: 15px;
    padding: 12px;
  }

  .advantage-item {
    padding: 15px;
  }

  .advantage-item h4 {
    font-size: 16px;
  }

  .advantage-item p {
    font-size: 14px;
  }

  .components-list li {
    font-size: 15px;
  }

  .target-audience {
    font-size: 17px;
  }

  .target-list li {
    font-size: 15px;
  }

  .feature-card {
    padding: 15px;
  }

  .feature-card h4 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .custom-list li {
    font-size: 15px;
  }

  .highlight-text {
    font-size: 16px;
    padding: 12px;
  }

  .side-image img {
    border-radius: 8px;
  }

  /* Furniture sections - adjust for small tablets, still side-by-side */
  .furniture-section {
    grid-template-columns: 0.5fr 0.8fr;
    gap: 15px;
  }

  .furniture-section .side-image {
    position: sticky;
    top: 10px;
  }

  .furniture-section .side-image img {
    max-height: unset;
  }

  .furniture-section .text-content {
    padding-right: 5px;
  }

  /* Even more compact furniture cards */
  .furniture-section .feature-card {
    padding: 10px;
  }

  .furniture-section .feature-card h4 {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .furniture-section .feature-card p {
    font-size: 12px;
  }

  .furniture-section .feature-grid {
    gap: 10px;
    margin: 12px 0;
  }

  .furniture-section .note {
    font-size: 13px;
    padding: 10px;
  }

  .furniture-section .text-content p {
    font-size: 14px;
  }

  .furniture-section.reverse {
    grid-template-columns: 0.6fr 1fr;
  }

  .furniture-section.reverse .text-content {
    padding-right: 0;
    padding-left: 5px;
  }

  /* Chair section - keep side-by-side on small tablets */
  .chair-section {
    grid-template-columns: 0.8fr 1fr;
    gap: 20px;
  }

  .chair-section .side-image {
    position: sticky;
    top: 10px;
  }

  .chair-section .side-image img {
    max-height: unset;
    width: 100%;
  }

  /* Small image sections - smaller on small tablets */
  .small-image-section .side-image img {
    max-height: 220px;
  }

  .text-content {
    gap: 12px;
    width: 100%;
  }

  .text-content p {
    font-size: 15px;
  }

  .warning-box {
    padding: 12px;
    margin: 15px 0;
  }

  .warning-box p {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 20px;
  }

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

  .section-title {
    font-size: 20px;
  }

  .subsection-title {
    font-size: 18px;
  }

  .product-description {
    font-size: 15px;
  }

  .features-list li {
    font-size: 14px;
  }

  .variants-table th,
  .specs-table th {
    font-size: 12px;
    padding: 6px;
  }

  .variants-table td,
  .specs-table td {
    font-size: 12px;
    padding: 6px;
  }

  .text-content {
    gap: 10px;
    width: 100%;
  }

  .text-content p {
    font-size: 14px;
  }

  .warning-box {
    padding: 10px;
    margin: 12px 0;
  }

  .warning-box p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Furniture sections - vertical on very small phones */
  .furniture-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .furniture-section .side-image {
    order: -1;
    justify-content: center;
    align-items: center;
  }

  .furniture-section .side-image img {
    max-height: 220px;
    width: auto;
    max-width: 90%;
  }

  .furniture-section .text-content {
    padding-right: 0;
  }

  /* Chair section - side-by-side on phones with sticky */
  .chair-section {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
  }

  .chair-section .side-image {
    position: sticky;
    order: -1;
    justify-content: center;
    align-items: center;
    top: 10px;
  }

  .chair-section .side-image img {
    max-height: 220px;
    width: auto;
    max-width: 90%;
  }

  .chair-section .text-content {
    padding-right: 0;
  }

  /* Small image sections - smallest on mobile phones */
  .small-image-section .side-image img {
    max-height: 180px;
  }
}

/* ===== DARK THEME STYLES ===== */

/* Dark theme for header */
body.dark-theme .header {
  background-color: #0d1117 !important;
  box-shadow: inset 0 0 0 1000px rgba(13, 17, 23, 0.8);
}

body.dark-theme .header .inner_image {
  opacity: 0.2;
}

/* Dark theme for main content */
body.dark-theme .main {
  background-color: #0d1117;
}

/* Dark theme for production section */
body.dark-theme .production {
  background-color: #0d1117;
}

body.dark-theme .production_text h1,
body.dark-theme .production_text h2 {
  color: #c9d1d9;
}

/* Dark theme for main content sections */
body.dark-theme .main-content {
  background-color: #0d1117;
}

body.dark-theme .section {
  background-color: #0d1117;
}

body.dark-theme .section h1,
body.dark-theme .section h2,
body.dark-theme .section h3 {
  color: #c9d1d9;
}

body.dark-theme .section p {
  color: #8b949e;
}

/* Dark theme for text content */
body.dark-theme .furniture-section .text-content {
  background-color: #161b22;
  border: 1px solid #30363d;
}

body.dark-theme .text-content h1,
body.dark-theme .text-content h2,
body.dark-theme .text-content h3 {
  color: #c9d1d9;
}

body.dark-theme .text-content p {
  color: #8b949e;
}

/* Dark theme for image sections */
body.dark-theme .image-section {
  background-color: #161b22;
}

body.dark-theme .side-image {
  background-color: #0d1117;
  border: 1px solid #30363d;
}

/* Dark theme for lists */
body.dark-theme ul,
body.dark-theme ol {
  color: #8b949e;
}

body.dark-theme li {
  color: #8b949e;
}

/* Dark theme for links */
body.dark-theme a {
  color: #58a6ff;
}

body.dark-theme a:hover {
  color: #ff6b7a;
}

/* Dark theme for all text elements */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #c9d1d9;
}

body.dark-theme p,
body.dark-theme span,
body.dark-theme div {
  color: #8b949e;
}

/* Dark theme for containers and wrappers */
body.dark-theme .container,
body.dark-theme .wrapper,
body.dark-theme .content,
body.dark-theme .main-content,
body.dark-theme .page-content {
  background-color: #0d1117;
}

/* Dark theme for specific product page elements */
body.dark-theme .product-section,
body.dark-theme .product-info,
body.dark-theme .product-description {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .product-section h1,
body.dark-theme .product-section h2,
body.dark-theme .product-section h3 {
  color: #c9d1d9;
}

body.dark-theme .product-section p {
  color: #8b949e;
}

/* Dark theme for product cards */
body.dark-theme .card_1_text,
body.dark-theme .card_2_text,
body.dark-theme .card_3_text,
body.dark-theme .second_card_text {
  background-color: #0d1117 !important;
  border: none;
}

body.dark-theme .card_1_text h1,
body.dark-theme .card_2_text h1,
body.dark-theme .card_3_text h1,
body.dark-theme .second_card_text h1 {
  color: #c9d1d9 !important;
}

body.dark-theme .card_1_text h2,
body.dark-theme .card_2_text h2,
body.dark-theme .card_3_text h2,
body.dark-theme .second_card_text h2 {
  color: #8b949e !important;
}

body.dark-theme .card_1_text:hover,
body.dark-theme .card_2_text:hover,
body.dark-theme .card_3_text:hover,
body.dark-theme .second_card_text:hover {
  background-color: #21262d !important;
  border-color: #58a6ff;
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.2);
}

body.dark-theme .card_1_text:hover h1,
body.dark-theme .card_1_text:hover h2,
body.dark-theme .card_2_text:hover h1,
body.dark-theme .card_2_text:hover h2,
body.dark-theme .card_3_text:hover h1,
body.dark-theme .card_3_text:hover h2,
body.dark-theme .second_card_text:hover h1,
body.dark-theme .second_card_text:hover h2 {
  color: #c9d1d9 !important;
}

/* Dark theme for card buttons */
body.dark-theme .card1_btn,
body.dark-theme .card2_btn,
body.dark-theme .card3_btn {
  color: #58a6ff !important;
}

body.dark-theme .card1_btn:hover,
body.dark-theme .card2_btn:hover,
body.dark-theme .card3_btn:hover {
  color: #79c0ff !important;
}

body.dark-theme .more_text {
  color: #58a6ff !important;
}

body.dark-theme .second_card_btn p {
  color: #58a6ff !important;
}

body.dark-theme .second_card_btn:hover p {
  color: #79c0ff !important;
}

/* Dark theme for slider */
body.dark-theme .slider {
  background-color: #161b22;
}

body.dark-theme .card {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .card h1,
body.dark-theme .card h2 {
  color: #c9d1d9 !important;
}

body.dark-theme .card .more {
  color: #58a6ff !important;
}

body.dark-theme .card .more:hover {
  color: #ff6b7a !important;
}

/* Dark theme for controls */
body.dark-theme .controls label {
  background-color: #30363d;
}

body.dark-theme .controls label:hover {
  background-color: #ff6b7a;
}

/* Dark theme for arrows */
body.dark-theme .arrow {
  color: #c9d1d9;
  background-color: #0d1117;
  border: none;
}

body.dark-theme .arrow:hover {
  background-color: #ff6b7a;
  color: #ffffff;
}

/* Dark theme for search input */
body.dark-theme .header_search_input {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

body.dark-theme .header_search_input::placeholder {
  color: #8b949e;
}

body.dark-theme .burger_search_input {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

body.dark-theme .burger_search_input::placeholder {
  color: #8b949e;
}

/* Dark theme for scroll to top button */
body.dark-theme .scroll-to-top {
  background-color: #0d1117;
  border: none;
}

body.dark-theme .scroll-to-top:hover {
  background-color: #ff6b7a;
  border-color: #ff6b7a;
}

body.dark-theme .scroll-to-top svg {
  fill: #c9d1d9;
}

body.dark-theme .scroll-to-top:hover svg {
  fill: #ffffff;
}

