@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden; /* Prevent horizontal scroll */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif; /* System font stack */
}

body {
  display: flex;
  flex-direction: column;
}

/* Main content wrapper */
.main-content {
  margin-top: 60px; /* Match header height */
  overflow-x: hidden;
  line-height: 0;
  font-family: inherit; /* Inherit from body */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 20;
  width: 100%;
  background: #333;
  margin: 0;
  padding: 0.5rem 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit; /* Inherit from body */
}

.header .logo img {
  height: 40px;
}

/* Navigation */
.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: white;
}

/* Product Container */
.product-container {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  justify-content: flex-start;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Product Card */
.product-card {
  background: white;
  height: auto;
  min-height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e2e2e2;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow: hidden;
  width: calc(25% - 20px);
  margin: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product Image */
.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.product-meta .brand {
  font-weight: 500;
  color: #333;
}

.product-meta .separator {
  color: #ccc;
  margin: 0 0.25rem;
}

.product-meta .series,
.product-meta .category {
  color: #666;
}

.product-name {
  font-size: 1rem;
  margin: 0;
  color: #333;
  line-height: 1.4;
}

.product-tagline {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Price */
.price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  min-height: 1.5rem;
}

.selling-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  display: inline-block;
}

.original-price {
  text-decoration: line-through;
  color: #666;
  font-size: 0.9rem;
  display: inline-block;
}

.discounted-price {
  color: #e31e24;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
}

/* Tags */
.tags {
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  background-color: #efefef;
  border-radius: 4px;
  font-size: 0.6rem;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #e31e24;
  color: white;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e31e24;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .product-card {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 992px) {
  .product-card {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .product-card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .product-card {
    width: calc(50% - 20px);
  }
  .product-container {
    padding: 10px;
  }
}

/* Extra small devices (phones) */
@media (max-width: 380px) {
  .product-card {
    width: calc(50% - 6px); /* Even smaller margin */
    margin: 3px;
  }
  .product-container {
    margin: -3px;
    padding: 3px;
  }
}

/* Backdrop */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10;
}

.backdrop.show {
  display: block;
}

/* Hide the center menu on all screens */
.center-menu {
  display: none;
}

/* Reset the menu button styles */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0; /* Hide any text content */
}

/* Style the icon */
.hamburger-menu::before {
  content: "☰";
  font-size: 1.5rem;
  line-height: 1;
}

/* Transform hamburger to X */
.hamburger-menu.open::before {
  content: "×";
}

/* Sidebars */
.sidebar {
  position: fixed;
  top: 60px;
  bottom: 0;
  width: 250px;
  background: #f4f4f4;
  overflow-y: auto;
  z-index: 15;
  padding: 1rem;
  transition: left 0.3s ease;
}

.sidebar.left {
  left: -250px;
}

.sidebar.left.open {
  left: 0;
}

/* Footer Styles */
.footer {
  background-color: white;
  border-top: 1px solid #e5e5e5;
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-info {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.company-info {
  text-align: left;
  color: #333;
}

.company-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.company-info p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.company-info address {
  font-style: normal;
  color: #666;
  line-height: 1.5;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.contact-link:hover {
  color: #e31e24;
}

.contact-link.whatsapp {
  color: #25d366;
}

.contact-link.whatsapp:hover {
  color: #128c7e;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: #666;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #e31e24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-info {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .company-info {
    text-align: center;
  }

  .contact-social {
    align-items: center;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Close Button */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 0.5rem;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.main-nav .close-button {
  display: none;
  color: white;
}

/* Sidebar Toggle */
.sidebar-toggle {
  display: none; /* Hide it completely */
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: -250px;
    width: 250px;
    height: calc(100% - 60px);
    background: #333;
    padding: 1rem;
    transition: right 0.3s ease;
    z-index: 15;
  }

  .main-nav.open {
    display: block;
    right: 0;
  }

  /* Remove the separate close button styles */
  .main-nav .close-button {
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    color: white;
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
  }
}

/* Update card footer styles */
.card-footer {
  padding: 0 1rem 1rem;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.75rem; /* Add space between tags and button */
}

.details-button {
  justify-self: center;
  display: block;
  width: 75%;
  padding: 8px;
  background-color: #e31e24;
  border: 1px solid #c51318;
  border-radius: 100px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 2px 3px 0 #9b070b;
}

.details-button:hover {
  background-color: #9b070b;
  border-color: #9b070b;
  color: white;
  box-shadow: 0px 0px 0 #e31e24 inset;
}

/* Add these new styles */
.properties {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.property {
  font-size: 1.2rem;
  cursor: help;
}

/* Filter section styles */
.filter-section {
  background: #f4f4f4;
  padding: 1rem;
  width: 100%;
}

.filters-container {
  max-width: 1400px;
  margin: 0 auto;
}

.filters-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.filter-group label {
  font-size: 0.8rem;
  color: #333;
  font-weight: 500;
  position: relative;
  z-index: 1;
  background: #f4f4f4;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.filter-group select {
  padding: 0.35rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 0.8rem;
  width: 100%;
  position: relative;
  z-index: 0;
}

.reset-link {
  color: #e31e24;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.35rem;
  white-space: nowrap;
  align-self: end;
  margin-bottom: 2px;
}

.reset-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filters-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 0.75rem;
  }

  .reset-link {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Small screen adjustments */
@media (max-width: 576px) {
  .filters-container {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .filters-wrapper {
    min-width: auto;
  }
}

/* Add this to your existing CSS */
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffd700;
  color: #000;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-results-message {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

/* Product Container */
.product-container {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  justify-content: flex-start;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.5;
}

.product-card .card-footer .tags .tag {
  cursor: pointer;
}

/* Slider styles */
.main-slider {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: #f5f5f5;
  overflow: hidden;
}

.swiper-slide {
  height: auto;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 350px;
}

/* Mobile styles - show center 60% */
@media (max-width: 768px) {
  .swiper-slide img {
    width: 166.67%; /* 100/60 * 100 to make center 60% visible */
    margin-left: -33.335%; /* Half of the extra width (66.67/2) */
  }
}

/* Slider Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  width: 30px !important;
  height: 30px !important;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: white !important; /* Force white color */
}

/* Make the arrows smaller but bolder */
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
  font-weight: 900 !important; /* Bolder arrows */
}

/* Remove default button backgrounds */
.swiper-button-next,
.swiper-button-prev {
  margin: 0 10px; /* Add some margin from edges */
}

/* Swiper pagination styles - with higher specificity */
.swiper-container .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1 !important;
}

.swiper-container .swiper-pagination-bullet-active {
  background: #ffffff !important;
  opacity: 1 !important;
}

.swiper-container .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Override any Swiper default colors */
:root {
  --swiper-theme-color: #ffffff !important;
}

/* Remove debug styles */
.swiper {
  /* Remove the red border */
}

.swiper-slide {
  /* Remove the blue border */
}

/* Center Menu Button */
.center-menu {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.center-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 2rem 0;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #e31e24;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.3rem;
    margin: 1rem 0;
  }
}

/* About Section Styles */
.about-section {
  padding: 2rem 1rem;
  background: #fff;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  line-height: 1.6;
  color: #333;
}

.about-content p {
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.image-text-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.image-text-block.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.inline-image {
  width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-text-block {
    flex-direction: column;
    gap: 1rem;
  }

  .image-text-block.reverse {
    flex-direction: column;
  }

  .inline-image {
    width: 100%;
    max-width: 400px;
  }

  .about-content p {
    font-size: 1rem;
  }
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(227, 30, 36, 0.9);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  padding: 0 0 4px 0; /* Add slight bottom padding */
  z-index: 99;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: rotate(90deg) translateX(-2px); /* Adjust position slightly */
  font-weight: bold;
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top:hover {
  background: #c51318;
  transform: translateY(-3px) rotate(90deg) translateX(-2px);
}

/* When modal is open */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  padding-right: var(--scrollbar-width) !important; /* Prevent layout shift */
}

/* Modal buttons */
.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  color: #333;
  padding: 0.5rem;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-nav.prev {
  left: 1rem;
}

.modal-nav.next {
  right: 1rem;
}

/* Modal base */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal content */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 5vh auto;
  background: white;
  border-radius: 8px;
  overflow: hidden; /* Prevent content overflow */
}

/* Modal body */
.modal-body {
  padding: 2rem;
  max-height: 90vh; /* Limit height */
  overflow-y: auto; /* Enable scrolling within modal body */
}

/* Product container layout */
.modal-product-container {
  display: grid;
  grid-template-columns: minmax(200px, 400px) 1fr;
  gap: 2rem;
  align-items: start;
}

/* Modal product left section */
.modal-product-left {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Make image gallery sticky */
.modal-product-gallery {
  position: sticky;
  top: 2rem;
  width: 100%;
  max-width: 400px;
}

.modal-product-gallery img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .product-modal {
    overflow: hidden;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .modal-body {
    height: 100vh;
    max-height: none;
    padding: 1rem;
    overflow-y: auto;
  }

  .modal-product-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-product-gallery {
    position: relative;
    top: 0;
    max-width: 100%;
  }

  .modal-product-gallery img {
    max-height: 40vh;
  }

  .modal-product-info {
    padding-bottom: 2rem;
  }
}

/* Product info section */
.modal-product-info {
  min-height: 100%;
  padding-bottom: 2rem;
}

.brand-info {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-info .brand {
  color: #e31e24;
  font-weight: 500;
}

.brand-info .separator {
  color: #ccc;
  margin: 0 0.25rem;
}

.brand-info .series {
  color: #e31e24;
  font-weight: 500;
}

.brand-info .category {
  color: #666;
}

/* Contact section container */
.modal-contact-buttons-container {
  position: sticky;
  top: calc(70vh + 3rem); /* Adjust this value based on your image height */
  background: white;
  padding-top: 1rem;
  z-index: 1;
}

/* Contact buttons container */
.modal-contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.5rem;
}

/* Base button styles */
.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  font-size: 0.9rem;
}

/* WhatsApp button */
.contact-button.whatsapp {
  background-color: #25d366;
  color: white;
}

.contact-button.whatsapp:hover {
  background-color: #128c7e;
}

/* Phone button */
.contact-button.phone {
  background-color: #007aff;
  color: white;
}

.contact-button.phone:hover {
  background-color: #0056b3;
}

/* Messenger button */
.contact-button.messenger {
  background-color: #0099ff;
  color: white;
}

.contact-button.messenger:hover {
  background-color: #006aff;
}

/* Contact section title */
.contact-section-title {
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-contact-buttons {
    gap: 0.5rem; /* Smaller gap on mobile */
  }

  .contact-button {
    padding: 0.6rem 0.5rem; /* Reduced horizontal padding */
    font-size: 0.8rem; /* Slightly smaller font */
    flex-direction: column; /* Stack icon and text */
    gap: 0.3rem;
  }

  .contact-button i {
    font-size: 1.2rem; /* Slightly larger icons */
  }
}

/* Product sections and grid */
.product-section {
  margin-bottom: 3rem;
}

.product-section:last-child {
  margin-bottom: 0;
}

.series-header {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e31e24;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .series-header {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}
