/* --- Font Imports --- (KEEP EXISTING) */
@font-face {
  font-family: "Bodyfont";
  src: url("../fonts/Bodyfont-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodyfont";
  src: url("../fonts/Bodyfont-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodyfont";
  src: url("../fonts/Bodyfont-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titlesfont";
  src: url("../fonts/Titlesfont-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titlesfont";
  src: url("../fonts/Titlesfont-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Global Styles & Variables --- */
:root {
  --primary-color: #0095da;
  --primary-color-hover: #007bbd;
  --secondary-color: #00558f;
  --secondary-color-hover: #004778;
  --light-gray: #f5f5f5;
  --light-cloud: #f0f4f9;
  --light-gray-hover: #e0e0e0;
  --dark-gray: #333;
  --dark-gray-hover: #1f1f1f;
  --text-color: #444;
  --text-color-hover: #222;
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-hover);
  --header-height-mobile: 65px;
  /* Compact header height */
  --header-height-desktop: 58px;
  /* Height of the desktop header when fixed/scrolled */
  --header-height-desktop-initial: 90px;
  /* NEW: Height of the desktop header at scroll position 0 */
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* For WebKit browsers (Chrome, Safari, newer Opera, etc.) */
::-webkit-input-placeholder {
  color: #999;
  font-size: 13px;
}

/* For Mozilla Firefox */
::-moz-placeholder {
  color: #999;
  font-size: 13px;
  opacity: 1;
  /* Firefox often reduces opacity by default, reset it if needed */
}

/* For Microsoft Edge */
::-ms-input-placeholder {
  color: #999;
  font-size: 13px;
}

/* For Internet Explorer 10 and 11 */
:-ms-input-placeholder {
  color: #999;
  font-size: 13px;
}

/* Fallback for older browsers (though less common to need these now) */
/* You might also see ::placeholder, but it's generally good to include the vendor prefixes */
::placeholder {
  color: #999;
  font-size: 13px;
}


body {
  font-family: "Bodyfont", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  direction: rtl;
  text-align: right;
  padding-top: var(--header-height-mobile);
  /* Default padding for fixed mobile header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: padding-top 0.3s ease;
  /* Smooth transition for body padding */
}

/* Prevent body scrolling when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}


a {
  text-decoration: none;
  color: var(--link-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Titlesfont", sans-serif;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex-grow: 1;
}

.enamad-box {
  margin-top: 0;
  margin-right: 0;
  /* Pushes to the left in RTL */
  flex-shrink: 0;
  /* Prevent it from shrinking */
  margin-left: 20px;
  /* Space between nav and this box */
}

/* --- Header & Navigation Styles (Desktop Defaults) --- */
.header {
  background-color: var(--secondary-color);
  color: #fff;
  /* REMOVED default padding: 8px 0; */
  width: 100%;
  position: relative;
  /* Default to relative for desktop */
  z-index: 100;
  transition: top 0.3s ease-in-out, height 0.3s ease;
  /* ADDED height to transition */
  height: var(--header-height-desktop);
  /* Default desktop height is the smaller one */
  display: flex;
  /* Make header a flex container */
  align-items: center;
  /* Vertically center content */
}

/* Initial Header State (at top of page, larger) */
.header.header-initial {
  height: var(--header-height-desktop-initial);
  /* Larger height when at top */
}

/* Sticky Header State (when scrolled, smaller) */
.header.header-fixed {
  position: fixed;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  height: var(--header-height-desktop);
  /* Ensure it's the smaller height when fixed */
}

.header.header-hidden {
  top: -100px;
  /* Hides the header */
}


.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  /* Ensure container fills header height */
  width: 100%;
  padding: 0 20px;
  /* Keep horizontal padding */
}

.logo-svg {
  display: inline-block;
  width: 100px;
  /* Smaller logo default */
  height: 42px;
  /* Smaller logo default */
  color: #fff;
  transition: width 0.3s ease, height 0.3s ease;
  /* Smooth resize for logo */
}

/* --- Contact Page --- */
.contact-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grid for the top row: Address (Right) and Map (Left) */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  text-align: right;
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

/* Styling for the info and map blocks */
.contact-info-block,
.contact-map-block,
.contact-form-container {
  padding: 30px;
  background-color: var(--light-cloud);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border: 1px solid #ddd;
}

/* Specific style for contact-item within contact-info-block */
.contact-info-block .contact-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 10px 0 10px;
  border-bottom: 1px solid #ddd;
}

.contact-info-block .contact-item:last-child {
  margin-bottom: 0;
  border-bottom: 0px solid #ddd;
}

.contact-info-block .contact-info-title {
  display: flex;
  align-items: center;
}

.contact-info-block .contact-data {
  display: block;
  text-align: right;
  padding-right: 5px;
  word-break: break-word;
  /* Allows long words/strings to break */
  hyphens: auto;
  /* Helps with hyphenation where appropriate */
}

.contact-map-block {
  text-align: center;
}

.map-img {
  border-radius: 8px;
  transition: 1s;
  margin-bottom: 15px;
}

.map-img:hover {
  filter: brightness(120%);
  -webkit-filter: brightness(120%);
  -moz-filter: brightness(120%);
}

.map-caption {
  margin: auto;
}

/* Divider Line */
.divider-line {
  width: 80%;
  max-width: 700px;
  height: 1px;
  background-color: var(--light-cloud);
  margin: 30px auto;
}

/* Telegram Chat Section (now a separate block, centered) */
.contact-telegram-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  background-color: var(--light-cloud);
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-telegram-area p {
  max-width: 600px;
  margin-bottom: 25px;
}

/* SVG Icon Styling */
.icon-small {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 8px;
  fill: var(--primary-color);
  flex-shrink: 0;
}

/* Ensure icons within links adopt primary color */
.contact-info-block .icon-small path {
  fill: var(--primary-color);
}

.contact-telegram-area a .icon-small {
  fill: #fff;
}

/* Logo size when header is in initial state */
.header.header-initial .logo-svg {
  width: 118px;
  height: 50px;
}

/* Desktop Navigation */
.main-nav {
  display: block;
  /* Default block for desktop */
  position: static;
  /* Default static for desktop */
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  overflow: visible;
  padding-top: 0;
  /* No padding-top for desktop */
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  position: relative;
  margin: 0 4px;
  /* Reduced margin */
}

.main-nav ul li a {
  display: flex;
  color: #fff;
  padding: 6px 6px 4px 6px;
  /* Reduced padding */
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 0.95em;
  /* Slightly smaller font */
  align-items: center;
}

.main-nav a .nav-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  fill: #fff;
  flex-shrink: 0;
}

.main-nav ul li a .arrow {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.main-nav ul li a:hover {
  color: #fff;
  border-color: var(--primary-color);
}

.main-nav ul li a.active {
  color: #fff;
  border-radius: 8px;
}

/* Sub-menu base styles (Desktop) */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--secondary-color);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 5px 5px;
  z-index: 110;
}

/* DESKTOP: Show submenu on hover */
.main-nav li.has-children:hover>.sub-menu {
  display: block;
}

.sub-menu li a {
  padding: 10px 18px;
  white-space: nowrap;
  border-bottom: none;
}

.sub-menu li a:hover {
  background-color: var(--primary-color);
}

.sub-menu li.sub-menu-divider {
  height: 1px;
  margin: 6px 0;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0;
}

.sub-menu li.sub-menu-divider hr {
  display: none;
}

/* --- Level 2+ Sub-menu Styles (Desktop) --- */
.main-nav .sub-menu .has-children>.sub-menu {
  top: 0;
  right: 100%;
  /* Positions to the left (for RTL layout) */
}

/* Arrow styling for sub-menus on DESKTOP (RTL) */
.main-nav .sub-menu .has-children>a>.arrow {
  transform: rotate(-90deg);
  /* Point left by default for RTL */
}

/* Rotate arrow on hover on DESKTOP (RTL) */
.main-nav .sub-menu .has-children:hover>a>.arrow {
  transform: rotate(90deg);
  /* Point right on hover for RTL */
}

/* Mobile menu specific elements - Hidden by default on desktop */
.menu-toggle,
.close-mobile-menu,
.mobile-menu-overlay {
  display: none;
}


/*
================================================================
MOBILE & RESPONSIVE STYLES (NEW FROM SCRATCH)
================================================================
*/
@media (max-width: 768px) {

  /* Header adjustments for mobile */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    /* Align left for mobile header */
    height: var(--header-height-mobile);
    padding: 0;
    /* Remove padding here, use container for internal spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for fixed header */
    z-index: 100;
  }

  .header .container {
    height: 100%;
    padding: 0 15px;
    /* Add internal padding to header container */
  }

  /* Show the hamburger menu toggle */
  .menu-toggle {
    display: flex;
    /* Show for mobile */
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    /* Above header content */
    background: none;
    border: none;
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .menu-toggle span:nth-child(1) {
    top: 5px;
  }

  .menu-toggle span:nth-child(2) {
    top: 12.5px;
  }

  .menu-toggle span:nth-child(3) {
    top: 20px;
  }

  /* Main Navigation Panel - OFF-CANVAS */
  .main-nav {
    display: block;
    /* Overrides desktop display flex */
    position: fixed;
    top: 0;
    /* Start from top of the viewport */
    right: -280px;
    /* Hidden off-screen to the right (RTL - same as width) */
    width: 280px;
    /* Fixed width for the sidebar */
    max-width: 80%;
    /* Ensure it doesn't get too wide on small screens */
    height: 100%;
    /* Full viewport height */
    background-color: var(--secondary-color);
    /* Menu background */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    /* Shadow on the left edge */
    z-index: 1002;
    /* Above the overlay */
    overflow-y: auto;
    /* Enable scrolling for long menus */
    transition: right 0.4s ease-in-out;
    padding-top: var(--header-height-mobile);
    /* Space for the header content in the menu */
  }

  /* State when mobile menu is open */
  .main-nav.open {
    right: 0;
    /* Slide in from the right */
  }

  /* Close button inside the mobile menu */
  .close-mobile-menu {
    display: block;
    /* Show for mobile */
    position: absolute;
    top: 15px;
    /* Adjust based on header height */
    left: 15px;
    /* Position on the left (RTL) */
    font-size: 35px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    /* Above menu items */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* For perfect centering of 'x' */
    transition: color 0.3s ease;
  }

  .close-mobile-menu:hover {
    color: var(--primary-color);
  }

  /* Mobile menu list styling */
  .main-nav ul {
    flex-direction: column;
    /* Stack items vertically */
    align-items: flex-start;
    padding: 20px 0;
    /* Padding inside the menu */
  }

  .main-nav ul li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator lines */
  }

  .main-nav ul li:has(+ li.sub-menu-divider) {
    border-bottom: none !important;
  }

  .main-nav ul li:last-child {
    border-bottom: none;
  }

  .main-nav ul li a {
    padding: 15px 20px;
    /* Increased clickable area */
    /* REMOVED: justify-content: space-between; from this general rule */
    border-bottom: none;
    /* No individual link border */
    font-size: 1.1em;
    /* Larger font size */
    font-weight: 500;
    color: #fff;
  }

  /* Apply justify-content: space-between to <a> that contains a .arrow (submenu-toggle) */
  .main-nav ul li.has-children>a {
    /* Target parent LI with has-children, then its direct <a> */
    justify-content: space-between;
  }

  /* This specifically targets the <a> elements that have a .nav-icon but NOT an .arrow */
  /* This ensures icons like home, compare, catalog are aligned to the right (due to RTL direction)
     without space-between pushing their text to the left.
  */
  .main-nav ul li:not(.has-children)>a {
    justify-content: flex-start;
    /* Align icon and text to the start (right in RTL) */
  }


  .main-nav a .nav-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    /* Space from text */
  }

  /* Mobile submenu accordion styling */
  .main-nav .sub-menu {
    position: static;
    /* Crucial for accordion behavior */
    display: block;
    /* Allow max-height transition */
    background-color: rgba(0, 0, 0, 0.2);
    /* Slightly darker background for submenus */
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    /* Start with no padding for transition */
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    overflow-x: hidden;
    /* Explicitly hide horizontal overflow in closed state */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    margin: 0;
    /* Remove any external margins */
  }

  .main-nav .sub-menu.open {
    max-height: 1000px;
    /* Sufficient height for content */
    /* padding: 10px 0; */
    padding: 0;
    /* Add padding when open */
    overflow: hidden;
    /* Prevents independent scrolling of submenu */
    overflow-x: hidden;
    /* Explicitly hide horizontal overflow */
  }

  .main-nav .sub-menu li {
    padding: 0;
    /* Reset padding from parent LI so child A controls it */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter separator */
  }

  .main-nav .sub-menu li:last-child {
    border-bottom: none;
  }

  .main-nav .sub-menu li a {
    padding: 12px 30px;
    /* Indent submenu items */
    font-size: 1em;
  }

  /* Nested submenu indentation */
  .main-nav .sub-menu .sub-menu li a {
    padding: 10px 45px;
    /* Further indent nested sub-items */
  }

  /* Mobile Arrow Rotation */
  .main-nav li.has-children>a>.arrow {
    transform: rotate(0deg);
    /* Point down by default */
    transition: transform 0.3s ease;
  }

  .main-nav li.has-children.open>a>.arrow {
    transform: rotate(180deg);
    /* Rotate up when open */
  }

  /* Mobile Overlay for when menu is open */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    z-index: 1001;
    /* Between main content and menu */
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
  }

  .mobile-menu-overlay.open {
    display: block;
    opacity: 1;
  }


  /* Existing responsive adjustments (kept for completeness) */
  .hero-section {
    min-height: 400px;
  }

  .slider-img {
    min-height: 400px;
    object-fit: cover;
  }

  .section-title {
    font-size: 2em;
  }

  .hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .hero-content h2 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .hero-content .btn {
    padding: 8px 18px;
    font-size: 0.9em;
  }

  .prev,
  .next {
    font-size: 16px;
    padding: 10px;
  }

  .promo .container {
    flex-direction: column;
  }

  .promo .promo-text {
    text-align: center;
  }

  .brand-page-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand-page-header .brand-logo-name {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 0;
    order: 1;
    width: 100%;
  }

  .brand-page-header .brand-logo-name img {
    margin-bottom: 0;
  }

  .brand-page-header h2 {
    font-size: 2em;
    margin-top: 5px;
    margin-bottom: 0;
  }

  .brand-page-header h2 span.english-name {
    margin-right: 0;
    text-align: center;
    margin-top: 0;
    order: 3;
  }

  .brand-page-header .brand-actions-left {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 15px;
  }

  .brand-page-header #brandqrButton {
    font-size: 0;
    padding: 8px;
  }

  .brand-page-header #brandqrButton .icon-small {
    width: 24px;
    height: 24px;
    margin-left: 0;
    vertical-align: middle;
  }

  .contact-top-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
  }

  .contact-info-block .contact-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .contact-info-block,
  .contact-map-block,
  .contact-form-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
  }

  .contact-info-block p {
    flex-direction: column;
    align-items: center;
  }

  .contact-info-block p strong {
    display: block;
    margin-left: 0;
  }

  .contact-info-block .icon-small {
    margin-bottom: 5px;
  }

  .contact-info-block .contact-data {
    padding-right: 0;
    text-align: center;
  }

  .contact-info-block ul {
    padding-right: 0;
    text-align: center;
  }

  .contact-info-block li {
    text-align: center;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-bottom: 20px;
  }

  .footer-nav ul,
  .footer-right p {
    justify-content: center;
    text-align: center;
  }

  .footer-nav ul li {
    margin: 0 10px 10px;
  }

  .enamad-box {
    margin: auto;
  }

  .brand-description {
    align-items: center;
    gap: 10px;
  }

  .brand-description .icon-only-btn {
    margin: 0;
  }

  .brand-description h3 {
    text-align: center;
  }
}

/* For screens 769px and larger, ensure desktop styles are active */
@media (min-width: 769px) {
  .header {
    position: relative;
    /* Default to relative on desktop */
    padding-top: 0;
    /* No explicit padding here, height handles it */
  }

  body {
    padding-top: 0 !important;
    /* Remove padding-top for desktop */
  }

  /* Ensure desktop nav is visible and correctly positioned */
  .main-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    padding: 0;
  }

  .menu-toggle,
  .close-mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }

  /* FIX: Isolate desktop hover effect for arrows */
  .main-nav ul li.has-children:hover>a .arrow {
    transform: rotate(180deg);
  }

  .contact-top-grid {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }

  .contact-info-block,
  .contact-map-block {
    background-color: var(--light-cloud);
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    color: var(--text-color);
  }

  .contact-info-block {
    align-items: flex-start;
  }

  .contact-telegram-area {
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: row;
    text-align: right;
  }

  .footer-right {
    margin-bottom: 0;
  }

  .enamad-box {
    margin-right: 0;
    margin-left: 20px;
  }
}


/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section:nth-of-type(even) {
  background-color: var(--light-cloud);
}

.brand-details.section {
  background-color: transparent;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Bodyfont", sans-serif;
  font-size: 1em;
}

.btn:hover {
  background-color: #007bbd;
  color: #fff;
}

.btn-sm {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Bodyfont", sans-serif;
  font-size: 0.85em;
}

.btn-sm:hover {
  background-color: #007bbd;
  color: #fff;
}

/* --- Footer --- */
.footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9em;
  margin-top: auto;
  /* Pushes footer to the bottom */
}

.footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: right;
}

.footer-right {
  flex-grow: 1;
  margin-bottom: 0;
  /* Reset default margin */
}

.footer-right p {
  margin-top: 15px;
  /* Space between copyright and navigation */
  padding-top: 5px;
  color: #f0f0f0;
  /* Lighter color for copyright text */
  font-size: 0.9em;
  border-top: solid 1px hsl(0deg 0% 100% / 35%);
  width: fit-content;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  /* Allow nav links to wrap */
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav ul li {
  margin-left: 20px;
  /* Space between links */
  margin-bottom: 5px;
  /* Slight margin for wrapping links */
}

.footer-nav ul li:last-child {
  margin-left: 0;
  /* No margin on the last item */
}

.footer-nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  /* Subtle underline effect */
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.footer-nav ul li a:hover {
  /* color: var(--primary-color); */
  border-color: var(--primary-color);
}

.footer-bottom-bar {
  /* Adds a separator line */
  padding: 5px 0;
  width: 100%;
  text-align: center;
  background: var(--secondary-color-hover);
}

.footer-bottom-bar p {
  margin: 0;
  padding: 0;
  color: hsl(0deg 0% 100% / 70%);
  font-size: 0.80em;
}

.footer-bottom-bar p a {
  color: hsl(0deg 0% 100% / 70%);
}

.footer-bottom-bar p a:hover {
  color: hsl(0deg 0% 100% / 100%);
}

/* --- Homepage Slider --- */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
}

.slider-img {
  width: 100%;
  height: auto;
  /* Maintain aspect ratio */
  display: block;
  object-fit: cover;
  /* Ensures image covers the area */
  max-height: 800px;
  /* Limit height on very large screens */
}

.hero-content {
  position: absolute;
  top: 50%;
  right: 50%;
  /* For RTL positioning */
  transform: translate(50%, -50%);
  /* Adjust for RTL transform */
  text-align: center;
  color: white;
  background: none;
  /* Removed background as requested */
  padding: 10px 20px;
  /* Reduced padding */
  border-radius: 10px;
  max-width: 90%;
  /* Allow more width for text */
  box-shadow: none;
  /* Removed shadow */
}

.hero-content h2 {
  font-family: "Titlesfont", sans-serif;
  /* Apply Titlesfont font */
  color: #fff;
  font-size: 2.2em;
  /* Decreased font size */
  margin-bottom: 5px;
  /* Reduced margin */
  font-weight: 700;
  white-space: nowrap;
  /* Keep text on one line */
  overflow: hidden;
  /* Hide overflow if text is too long */
  text-overflow: ellipsis;
  /* Add ellipsis if text is too long */
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.hero-content p {
  font-family: "Bodyfont", sans-serif;
  /* Keep Bodyfont for slider paragraph */
  font-size: 1.1em;
  /* Decreased font size */
  margin-bottom: 15px;
  /* Reduced margin */
  color: #fff;
  white-space: nowrap;
  /* Keep text on one line */
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/* Slider Navigation Arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  /* Default for LTR, will be overridden */
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

/* RTL specific arrow positioning */
.next {
  left: 0;
  border-radius: 0 8px 8px 0;
  /* Next button on left for RTL */
}

.prev {
  right: 0;
  border-radius: 8px 0 0 8px;
  /* Previous button on right for RTL */
}

/* On hover, add a black background with a little more opacity */
.prev:hover,
.next:hover {
  color: var(--primary-color);
}

/* Slider Dots */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot:hover {
  background-color: var(--primary-color);
}

.active {
  background-color: rgb(0 150 219 / 25%);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* --- Brand Showcase (Homepage) --- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Adjusted to 4 columns */
  gap: 30px;
  text-align: center;
  justify-content: center;
}

.brand-item {
  display: block;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  color: var(--text-color);
  position: relative;
  /* Crucial for positioning the absolute label */
  overflow: hidden;
  /* Ensures the label stays within the bounds if you position it outside */
}

.brand-label {
  position: absolute;
  top: 10px;
  /* Adjust as needed */
  right: 10px;
  /* Adjust as needed */
  /* Example background color for the label */
  color: #fff;
  /* Text color for the label */
  background: #aaa;
  padding: 0px 4px 2px;
  border-radius: 4px;
  font-size: 0.85em;
  /* Smaller font size for the label */
  display: flex;
  align-items: center;
  /* Vertically align icon and text */
  gap: 5px;
  /* Space between icon and text */
  z-index: 10;
  /* Ensure the label is above other content */
}

.brand-label .label-icon,
.brand-label .label-icon path {
  width: 14px;
  /* Size of the SVG icon */
  height: 14px;
  /* Size of the SVG icon */
  color: #fff;
  /* Icon color (should match label text color or be distinct) */
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-item img {
  width: 220px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 5px;
  border: 2px solid transparent;
  /* default border */
  transition: border-color 0.3s ease;
}

.brand-item:hover img {
  border-color: var(--light-cloud);
  /* background-color: var(--light-cloud); */
}

.brand-item h3 {
  font-family: "Titlesfont", sans-serif;
  /* Apply Titlesfont font */
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.brand-item p {
  font-family: "Bodyfont", sans-serif;
  /* Apply Bodyfont font */
  font-size: 0.9em;
  color: #666;
  margin-bottom: 0;
}

/* --- Promo Section --- */
.promo .container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse;
  /* Image below text on small screens */
}

.promo .promo-text {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.promo .promo-text h2 {
  color: var(--primary-color);
  font-size: 2.8em;
  margin-bottom: 20px;
}

.promo .promo-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
}

.promo .promo-image {
  flex: 1;
  min-width: 300px;
}

.promo .promo-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

/* --- Gallery (Homepage) --- */
.product-gallery {
  /* Show 4 columns on desktop */
  grid-template-columns: repeat(4, 1fr);
  /* Fixed 4 columns */
  gap: 20px;
  display: grid;
  /* Explicitly set display grid */
  justify-content: center;
  /* Center items in the grid */
}

/* Ensure it adapts well on smaller screens too */
@media (max-width: 992px) {

  /* Tablets and smaller */
  .product-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* More flexible on tablets */
  }
}

@media (max-width: 576px) {

  /* Mobile */
  .product-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* Even more flexible/single column on mobile */
  }
}

.product-gallery img {
  border-radius: 5px;
  cursor: pointer;
  /* Indicate clickability for lightbox */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  /* Ensure images fill their grid cell */
  height: 180px;
  /* Consistent height for gallery images */
  object-fit: cover;
  /* Cover the area, cropping if necessary */
}

.product-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Brand Details Page --- */
/* Brand-specific header for individual brand pages */
.brand-page-header {
  background: linear-gradient(to right, var(--brandcolor), #f2f2f2);
  /* Very light gray gradient background */
  color: var(--secondary-color);
  /* Ensure text is dark on light background */
  padding: 20px 0;
  /* Space from content below */
  border-bottom: 1px solid #ddd;
  /* Subtle border at bottom */
}

.brand-page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-page-header .brand-logo-name {
  /* Group for logo and Persian name */
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--secondary-color);
  /* Logo SVG text color */
}

.brand-page-header .brand-logo-name img {
  /* Actual Brand Logo */
  border-radius: 5px;
  /* Slight roundness for consistency */
  width: auto;
  /* Fixed width */
  height: 128px;
  /* Example fixed height for rectangular logo */
  object-fit: contain;
  /* Ensure entire logo is visible */

  /* White border for contrast on gradient */
  padding: 5px;
  /* Add some padding if logo has internal spacing */
}

.brand-page-header h2 {
  font-size: 3em;
  color: var(--secondary-color);
  margin: 0;
}

.brand-page-header .brand-actions-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qr-content {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

#brandqrButton>svg {
  fill: var(--link-color);
}

#copyLinkButton>svg {
  fill: #fff;
}

#qrcode>img {
  margin: auto;
}

.brand-page-header h2 span.english-name {
  font-family: "Bodyfont", sans-serif;
  font-size: 0.5em;
  display: block;
  color: #666;
  direction: ltr;
  text-align: right;
  margin-left: auto;
  margin-top: 5px;
}

/* Hiding original brand-details .brand-header elements which were moved */
.brand-details .brand-header {
  display: none;
}

/* Ensure the brand-description is a flex container */
.brand-description {
  display: flex;
  /* Make it a flex container */
  align-items: center;
  /* Vertically align items in the middle */
  gap: 15px;
  /* Add some space between the button and the heading */
  margin-bottom: 50px;
  /* Keep existing margin-bottom from .brand-details .brand-description */
  flex-wrap: wrap;
  /* Allow items to wrap on smaller screens if necessary */
  /* Remove position: relative; if it was there as float is removed */
}

.features-table h3 {
  margin: 0;
}

/* Adjustments for the icon-only share button */
.icon-only-btn {
  background-color: transparent;
  /* Make background transparent */
  /* Remove border */
  /* Remove padding */
  width: 29px;
  /* Set a fixed width for the icon button */
  height: 28px;
  /* Set a fixed height for the icon button */
  display: flex;
  /* Use flexbox to center the SVG */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  /* Make it round if desired */
  /* Remove float and margin-left as flexbox handles positioning */
  flex-shrink: 0;
  /* Prevent the button from shrinking */
  border: 1px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 5px;
}

.icon-only-btn:hover {
  /* Slight scale up on hover */
  opacity: 0.8;
  /* Slight fade on hover */
  background-color: var(--light-cloud);
  /* Subtle background on hover */
}

#brandqrButton .icon-small {
  width: 19px;
  /* Adjust SVG icon size */
  height: 19px;
}

.icon-only-btn .icon-small {
  fill: var(--secondary-color);
  /* Set icon color to secondary-color */
  width: 24px;
  /* Adjust SVG icon size */
  height: 24px;
  margin-left: 0;
  /* Remove any default margin */
}

.icon-only-btn:hover .icon-small {
  fill: var(--primary-color);
  /* Change icon color on hover */
}

/* Ensure the heading doesn't have conflicting margins */
.brand-description h3 {
  margin-bottom: 0;
  /* Remove default margin-bottom from h3 when inside flex container */
  /* Keep other h3 styles */
}

/* Remove the float clearing if it was added for this specific case */
.brand-description::after {
  content: none;
  /* No longer needed as floats are removed */
}

.brand-details .brand-description {
  /* Updated above to use flexbox */
}

.brand-details .features-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  margin-top: 20px;
  border: 1px solid #ddd;
}

.brand-details .features-table th,
.brand-details .features-table td {
  padding: 12px;
  border: 1px solid #ddd;
}

.brand-details .features-table thead tr {
  background-color: var(--secondary-color);
  color: #fff;
}

.brand-details .features-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.brand-details .features-table tbody tr:hover {
  background-color: #e6f7ff;
}

.product-showcase {
  margin-top: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  background-color: #fff;
  padding-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  cursor: pointer;
}

.product-item h4 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-family: "Titlesfont", sans-serif;
}

.product-item p {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Brand FAQ Section */
.brand-faq {
  margin-top: 50px;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 15px 20px;
  background-color: var(--light-cloud);
  cursor: pointer;
  font-weight: bold;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #e0e0e0;
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  transform: scaleY(1);
}

.faq-question.open .arrow {
  transform: scaleY(-1);
}

.faq-answer {
  padding: 0 20px;
  border-top: 1px solid #eee;
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
  /* This is the line to remove or comment out: */
  /* max-height: 1000px; */
  padding: 15px 20px;
  overflow: visible;
}

/* --- Catalogs Page --- */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.catalog-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.catalog-item .brand-logo-small {
  width: 220px;
  height: 80px;
  object-fit: cover;
  margin: 0 auto 15px;
}

.catalog-item h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-family: "Titlesfont", sans-serif;
}

.catalog-item p {
  margin-bottom: 20px;
  font-size: 0.95em;
  color: #666;
}

/* --- Private Label Page --- */
.private-label-page .search-container {
  text-align: center;
  margin-bottom: 30px;
}

#privateLabelSearchInput {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Bodyfont", sans-serif;
  text-align: right;
  direction: rtl;
}

/* Table styling for Private Label Page (mimics features-table) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  margin-bottom: 40px;
  border: 1px solid #ddd;
}

.data-table thead tr {
  background-color: var(--secondary-color);
  color: #fff;
}

.data-table th,
.data-table td {
  padding: 12px;
  border: 1px solid #ddd;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--light-cloud);
}


/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Close Button */
.close-lightbox {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: var(--primary-color);
  text-decoration: none;
}

/* Caption text */
.lightbox-caption {
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-family: "Bodyfont", sans-serif;
}

/* Lightbox Navigation Arrows */
.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  z-index: 1001;
}

.lightbox-next {
  left: 20px;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev {
  right: 20px;
  border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--primary-color);
}

/* Animation */
.lightbox-content,
.lightbox-caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0);
  }

  to {
    -webkit-transform: scale(1);
  }
}

@keyframes zoom {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}


/* New styles for the contact form */
#contactForm {
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
  /* Reduced margin between form groups */
}

.contact-form-container label {
  display: block;
  margin-bottom: 6px;
  /* Reduced margin */
  color: #555;
  font-weight: bold;
  font-size: 1em;
  /* Slightly smaller label font */
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
  width: 100%;
  padding: 10px;
  /* Reduced padding */
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95em;
  /* Slightly smaller input font */
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  font-family: "Bodyfont", sans-serif;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus,
.contact-form-container textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.contact-form-container textarea {
  resize: vertical;
  min-height: 100px;
  /* Reduced min-height */
}

.contact-form-container button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  /* Reduced padding */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  /* Slightly smaller button font */
  width: 100%;
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-top: 15px;
  /* Adjusted margin */
  font-family: "Bodyfont", sans-serif;
}

.contact-form-container button:hover {
  background-color: #007bbd;
  transform: translateY(-1px);
}

.contact-form-container button:active {
  transform: translateY(0);
}

.response-message {
  margin-top: 20px;
  /* Reduced margin */
  padding: 10px;
  /* Reduced padding */
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  /* Slightly smaller font */
  line-height: 1.4;
  /* Slightly tighter line height */
}

.response-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.response-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* New CSS for compare-brands.html (comparison table) */
.comparison-table {
  overflow-x: auto;
  /* Ensures table is scrollable on small screens */
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Added for consistency with other elements */
  background-color: #fff;
  /* Added for consistency with other elements */
  border-radius: 8px;
  /* Added for consistency with other elements */
  border: 1px solid #ddd;
  /* Added for consistency with other elements */
}

.comparison-table table {
  width: 100%;
  min-width: 700px;
  /* Ensures table doesn't collapse too much on small screens */
  border-collapse: collapse;
  text-align: right;
  /* Removed individual border here as it's on the container now */
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  border: 1px solid #eee;
  /* Light border between cells */
  /* vertical-align: top; */
}

#warranty-terms .comparison-table td {
  text-align: center;
}

.comparison-table thead th {
  background-color: var(--secondary-color);
  color: #fff;
  font-family: "Titlesfont", sans-serif;
  font-size: 1.1em;
  white-space: nowrap;
  /* Prevents column headers from wrapping */
  text-align: center;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--light-cloud);
}

.comparison-table tbody tr:hover {
  background-color: #e6f7ff;
  /* Light blue on hover for rows */
}

.comparison-table tbody td:first-child {
  font-weight: bold;
  color: var(--secondary-color);
  white-space: nowrap;
  /* Keep feature names on one line */
}

.comparison-table .brand-cell {
  /* display: flex; */
  align-items: center;
  gap: 10px;
  /* Space between logo and brand name */
  text-align: right;
  /* Ensure text aligns right within the cell */
  white-space: nowrap;
  /* Prevent brand name from wrapping if possible */
}

.comparison-table .brand-logo-table {
  width: 60px;
  /* Adjust logo width as needed */
  height: 40px;
  /* Adjust logo height as needed */
  object-fit: contain;
  /* Ensures the whole logo is visible */
  border: 1px solid #eee;
  /* Subtle border around logos */
  border-radius: 4px;
  /* Slightly rounded corners for logos */
  flex-shrink: 0;
  /* Prevent logo from shrinking */
  background: #fff;
}

.comparison-table a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.comparison-table a span {
  margin-right: 8px;
}

/* Adjust table header for brand column to match the flex alignment */
.comparison-table th.brand-column {
  text-align: center;
}

/* New CSS for after-sale-services.html (landing page sections) */
.after-sale-hero {
  background: linear-gradient(to right,
      var(--primary-color),
      var(--secondary-color));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.after-sale-hero .hero-content-small {
  max-width: 800px;
  margin: 0 auto;
}

.after-sale-hero h2 {
  color: #fff;
  font-size: 3em;
  margin-bottom: 20px;
}

.after-sale-hero p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.after-sale-hero .btn-group {
  display: flex;
  gap: 20px;
  /* Space between buttons */
  justify-content: center;
  flex-wrap: wrap;
  /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
  /* Space from paragraph above */
}

.after-sale-hero .btn-lg {
  padding: 15px 35px;
  font-size: 1.2em;
  background-color: white;
  color: var(--primary-color);
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.after-sale-hero .btn-lg:hover {
  background-color: var(--light-cloud);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.after-sale-hero .btn-lg svg {
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

.after-sale-hero .btn-lg:hover svg {
  fill: var(--secondary-color);
}

.service-features .feature-grid,
.how-it-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-item,
.step-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover,
.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3,
.step-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.step-item .step-number {
  font-size: 2.5em;
  font-family: "Titlesfont", sans-serif;
  color: var(--primary-color);
  margin-bottom: 15px;
  background-color: var(--light-cloud);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--primary-color);
}

/* Styles for the new warranty terms section and its image */
.warranty-terms-section .warranty-image-container {
  text-align: center;
  margin: 30px auto;
}

.warranty-terms-section .warranty-info-image {
  max-width: 90%;
  /* Max width for the image */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  /* To center with margin auto */
  margin: 0 auto;
}

/* New CSS for icons and links */

/* For the homepage icon in menu */
.main-nav ul li a .nav-icon {
  width: 18px;
  /* Adjust size as needed */
  height: 18px;
  vertical-align: middle;
  margin-left: 8px;
  /* Space between icon and text */
  fill: #fff;
  /* White icon color for menu */
  transition: fill 0.3s ease;
}

.main-nav ul li a:hover .nav-icon,
.main-nav ul li a.active .nav-icon {
  fill: #fff;
}

.warranty-terms-p-title {
  font-weight: bold;
  margin-bottom: 7px;
}

#warranty-terms h3 {
  margin-top: 30px;
  padding: 5px 10px 5px 5px;
  background: linear-gradient(to right,
      rgb(0 0 0 / 0%) 0%,
      rgb(0 149 218 / 25%) 100%);
  border-radius: 8px;
}

/* For the link icon in the compare table */
.comparison-table .brand-cell .brand-link-wrapper {
  display: flex;
  /* To align icon and text within the link */
  align-items: center;
  gap: 5px;
  /* Space between brand name/logo and link icon */
  color: var(--secondary-color);
  /* Link text color */
  text-decoration: none;
  /* No underline by default */
}

.comparison-table .brand-cell .brand-link-wrapper:hover {
  color: var(--primary-color);
}

.comparison-table .brand-cell .brand-link-wrapper .link-icon {
  width: 16px;
  /* Adjust size as needed */
  height: 16px;
  vertical-align: middle;
  fill: var(--primary-color);
  /* Primary color for link icon */
  transition: fill 0.3s ease;
}

.comparison-table .brand-cell .brand-link-wrapper:hover .link-icon {
  fill: var(--secondary-color);
  /* Change icon color on hover */
}

/* Responsive adjustments for new elements */
@media (max-width: 992px) {

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
    /* Slightly less padding on smaller screens */
  }

  .comparison-table .brand-logo-table {
    width: 50px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .comparison-table .brand-cell {
    align-items: center;
    text-align: center;
  }

  .comparison-table .brand-logo-table {
    margin-bottom: 5px;
    /* Add space below logo when stacked */
  }

  .after-sale-hero h2 {
    font-size: 2.5em;
  }

  .after-sale-hero p {
    font-size: 1.1em;
  }

  .after-sale-hero .btn-lg {
    padding: 12px 25px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 0.9em;
  }

  .hero-content .btn {
    padding: 8px 18px;
    font-size: 0.9em;
  }

  .section {
    padding: 40px 0;
  }

  .after-sale-hero h2 {
    font-size: 1.8em;
  }

  .after-sale-hero p {
    font-size: 0.9em;
  }

  .after-sale-hero .btn-lg {
    padding: 10px 20px;
    font-size: 1em;
  }

  .after-sale-hero .btn-group {
    flex-direction: column;
    /* Stack buttons vertically on very small screens */
    gap: 10px;
  }
}

/* Styling for the link that looks like an outlined button */
.btn-outline-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Reduced space between text and icon */
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  /* Thinner border */
  padding: 6px 12px;
  /* Smaller padding */
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Bodyfont", sans-serif;
  font-size: 0.9em;
  /* Smaller font size */
  text-decoration: none;
  /* Remove default underline from link */
}

.btn-outline-icon-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-outline-icon-link svg {
  fill: var(--primary-color);
  /* Default icon color matches link text */
  transition: fill 0.3s ease;
  width: 16px;
  /* Smaller icon size */
  height: 16px;
}

.btn-outline-icon-link:hover svg {
  fill: #fff;
  /* Icon color on hover matches link text on hover */
}

/* --- Floating Action Buttons --- */
.floating-buttons-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  /* Changed to left for RTL layout */
  z-index: 999;
  display: none;
  /* Hidden by default, shown by JS */
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  background-color: var(--primary-color);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-btn:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.1);
  color: #fff;
}

.floating-btn svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.error-page .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 250px);
  /* Adjust based on header/footer height */
  text-align: center;
}

.error-content {
  max-width: 600px;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
}

.error-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.error-title {
  font-size: 3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.error-message {
  font-size: 1.1em;
  color: var(--text-color);
  margin-bottom: 30px;
}

/* Wholesale Only Note */
.wholesale-only-note {
  display: flex;
  /* Always display as flex for all devices */
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: #fff3cd;
  /* Light yellow background */
  border: 1px solid #ffeeba;
  /* Yellow border */
  border-radius: 5px;
  color: #856404;
  /* Dark yellow text */
  font-weight: 500;
  font-size: 0.85em;
  margin: 0;
  /* Space from other text */
  flex-shrink: 0;
  /* Prevent from shrinking in flex container */
  max-width: fit-content;
  /* Only take up necessary width */
  direction: rtl;
  /* Ensure text direction is RTL */
  text-align: right;
  /* Align text to the right */
}

/* Icon for Wholesale Only Note */
.wholesale-icon {
  width: 20px;
  height: 20px;
  fill: #a18016;
  /* Set fill color to match lighter text */
  flex-shrink: 0;
  /* Prevent the SVG from shrinking */
}



/* --- Brand Carousel (NEW - Swiper.js related styles) --- */
.brand-carousel-section {
  margin-top: 50px;
  padding: 20px 0;
  background-color: var(--light-cloud);
  border-radius: 8px;
}

.brand-details section h3 {
  margin-bottom: 0;
  font-size: 2em;
}

/* Swiper container wrapper */
.swiper.brand-swiper {
  width: 100%;
  height: auto;
  /* Allow height to adjust based on content */
  padding-bottom: 30px;
  /* Space for pagination dots if enabled */
  /* Add padding to the swiper container if you want space on sides of the slides */
  padding: 20px 10px 35px;
  /* Example padding to make room for nav buttons if they are outside */
  box-sizing: border-box;
  /* Include padding in the width */
}

/* Swiper slide content */
.swiper-slide.brand-carousel-item {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align content to the top */
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  /* Internal padding for each item */
  height: auto;
  /* Allow height to be determined by content */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide.brand-carousel-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.swiper-slide.brand-carousel-item img {
  width: 100%;
  height: 180px;
  /* Maintain fixed height for consistent image size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  /* Space below image */
}

.swiper-slide.brand-carousel-item h4 {
  color: var(--secondary-color);
  font-family: "Titlesfont", sans-serif;
  /* font-size: 1.2em; */
  margin-bottom: 0;
  /* No bottom margin, as link itself might have */
}

.swiper-slide.brand-carousel-item a {
  text-decoration: none;
  color: inherit;
  /* Inherit color from parent */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* Make link fill the slide item */
}

/* Swiper Navigation Buttons (customize position for RTL) */
.swiper-button-prev,
.swiper-button-next {
  color: var(--primary-color);
  /* Color of the arrows */
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  /* Adjust size */
  height: 40px;
  /* Adjust size */
  background-color: rgba(255, 255, 255, 0.8);
  /* Semi-transparent background */
  border-radius: 4px;
  /* Make them round */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--primary-color);
  color: white;
  /* Arrow color on hover */
}

/* RTL positioning for Swiper buttons */
.swiper-button-prev {
  left: auto;
  /* Reset default LTR 'left' */
  right: 0px;
  /* Position 'prev' button on the right in RTL */
}

.swiper-button-next {
  right: auto;
  /* Reset default LTR 'right' */
  left: 0px;
  /* Position 'next' button on the left in RTL */
}

/* If you want to customize pagination dots */
.swiper-pagination-bullet {
  background: #bbb;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

/* Hide navigation buttons on mobile if desired (e.g., if only one item visible) */
@media (max-width: 768px) {

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
    /* Hide buttons on small screens */
  }

  .swiper.brand-swiper {
    padding: 20px 0 35px;
    /* Remove horizontal padding if buttons are hidden */
  }
}