:root {
  --light-bg: #f4f1f1;
  --light-header: #fdfefe;
  --light-text: black;

  --dark-bg: #1b1515;
  --dark-header: #362f2f;
  --dark-text: white;
  --hover-color: red;
}


/* Light Theme (default) */
[data-theme="light"] {
  --header-bg: var(--light-header);
  --text-color: var(--light-text);
  --bg-color: var(--light-bg);
}

/* Dark Theme */
[data-theme="dark"] {
  --header-bg: var(--dark-header);
  --text-color: var(--dark-text);
  --bg-color: var(--dark-bg);
}


/* Transitions */
#mainContent {
  transition: opacity 0.3s ease;
}

#mainContent.fade-out {
  opacity: 0;
}

#mainContent.fade-in {
  opacity: 1;
}

/* Active nav styling */
.navbar a.active {
  font-weight: bold;
  color: var(--hover-color);
}

.navbar a {
  cursor: pointer;
  text-decoration: none;
  /* Optional: removes underline */
  color: inherit;
  /* Optional: matches theme text color */
}


html {
  font-size: 16px;
  /* Default desktop size */
  font-family: 'Lato', sans-serif;
}


h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  /* ~40px */
}

h2 {
  font-size: 2rem;
  /* ~32px */
}

h3 {
  font-size: 1.5rem;
  /* ~24px */
}

p,
li,
a {
  font-size: 1rem;
  /* ~16px */
}


@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
    /* ~32px */
  }

  h2 {
    font-size: 1.5rem;
    /* ~24px */
  }

  h3 {
    font-size: 1.25rem;
    /* ~20px */
  }

  p,
  li,
  a {
    font-size: 0.95rem;
    /* ~15px */
  }
}


[data-theme="light"] {
  background-color: var(--light-bg);
  color: var(--light-text);
}

[data-theme="light"] .footer {
  background-color: var(--light-header);
}

[data-theme="dark"] {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

[data-theme="dark"] .footer {
  background-color: var(--dark-header);
}



[data-theme="light"] {
  background-color: var(--light-bg);
  color: var(--light-text);
}

[data-theme="light"] .product-card {
  background-color: var(--light-bg);
}

[data-theme="dark"] {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

[data-theme="dark"] .product-card {
  background-color: var(--dark-bg);
}

[data-theme="light"] .floating-btn {
  background-color: var(--light-header);
}

[data-theme="dark"] .floating-btn {
  background-color: var(--dark-header);
}

[data-theme="light"] .big-box {
  background-color: var(--light-header);
}

[data-theme="dark"] .big-box {
  background-color: var(--dark-header);
}

[data-theme="light"] .small-box {
  background-color: var(--light-header);
}

[data-theme="dark"] .small-box {
  background-color: var(--dark-header);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}


a {
  text-decoration: none;
  color: inherit;
}

.header-wrapper {
  display: flex;
  justify-content: space-around;
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  transition: all 0.3s ease;
  position: relative;
  background-color: transparent;
}




/* Default header (non-floating) */


/* Sticky floating header (already in your CSS) */
.sticky {
  position: fixed;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light-header);
  color: var(--light-text);
}

[data-theme="dark"] .sticky {
  background-color: var(--dark-header);
  color: var(--dark-text);
}

.shop-now-btn {
  position: absolute;
  bottom: 200px;
  padding: 12px 28px;
  background-color: #ffffff;
  color: red;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.button {



  background-color: #fc0000;
  color: red;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;

}

.shop-now-left {
  left: 260px;
}

.shop-now-right {
  right: 260px;
}

.shop-now-btn.active {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInUp 1s ease forwards;
}

.shop-now-btn:hover {
  background-color: #ff1a1a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .shop-now-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    bottom: 40px;
  }

  .shop-now-left {
    left: 50px;
  }

  .shop-now-right {
    right: 50px;
  }
}

@media (max-width: 480px) {
  .shop-now-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    bottom: 45px;
  }

  .shop-now-left {
    left: 50px;
  }

  .shop-now-right {
    right: 50px;
  }
}


.icon-btn.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex: 1;
}

.navbar a {
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.navbar a:hover {
  color: var(--hover-color);
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
}


.icon-btn {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide buttons smoothly */
.icon-btn.hide-on-scroll {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* When buttons are hidden, shift the theme toggle right */
.controls.scrolled #themeToggleIcon {
  margin-left: auto;
  /* Push it to the right */
}


.icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: inherit;
}

/* Content */
.content {

  animation: fadeIn 1s ease-in-out;
}

.content section {

  max-height: 1600px;
  margin: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.logo {
  font-size: 1.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-family: 'Cabin', serif;
  /* Elegant & modern */
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Raleway', sans-serif;
}

.logo-text sup {
  font-size: 1.2em;
  margin-right: 2px;
}

.logo-text sub {
  font-size: 0.7em;
  letter-spacing: 1px;
  color: red;
}

.logo-img {
  display: none;
  height: 36px;
}

/* MOBILE VIEW: Show image, hide text */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }

  .logo-img {
    display: inline-block;
  }
}



.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  cursor: pointer;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline-block;
  }

  .mobile-only {
    display: none;
  }
}




/* Floating buttons for scrolled navbar */
.floating-btn {
  position: fixed;
  top: 10px;
  z-index: 999;
  width: 55px;
  height: 55px;
  background-color: var(--btn-bg);
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.floating-btn.left {
  left: 26px;
}

.floating-btn.right {
  right: 26px;
}

.floating-btn.hidden {
  display: none;
}


.icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 20px;
  display: inline-block;
}

.icon-btn {
  /* width: 40px;
  height: 40px; */
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* Fade-in/out animation for floating buttons */
.floating-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}




/* Sticky header */
.sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: floatIn 0.3s ease-in-out;
}

/* Desktop sticky */
@media (min-width: 769px) {
  .sticky {

    width: 80%;
    border-radius: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .fade-slider {
    height: 100vh;
  }
}

/* === MOBILE === */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .header-wrapper {
    position: relative;
    padding-bottom: 10px;
  }

  .mobile-only {
    display: inline-block;
  }

  .header {
    top: 20px;
    width: 90%;
    border-radius: 35px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .sticky {
    bottom: 20px;
    top: auto;
    width: calc(100% - 30px);
    border-radius: 36px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background-color: var(--light-header);
  }

  [data-theme="dark"] .sticky {
    background-color: var(--dark-header);
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--light-header);
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
    transition: bottom 0.4s ease;
    z-index: 10000;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
  }

  .mobile-drawer a {
    font-size: 1.1rem;
    flex: 1 1 40%;
    text-align: center;
    padding: 10px;
    z-index: 1000;
  }

  .mobile-drawer.show {
    bottom: 0;
  }

  .drawer-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
  }

  .overlay.show {
    display: block;
  }

  [data-theme="dark"] .mobile-drawer {
    background-color: var(--dark-header);
    color: var(--dark-text);
  }
}

/* Hide mobile-only in desktop */
@media (min-width: 769px) {

  .mobile-only,
  .mobile-drawer,
  .overlay {
    display: none !important;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateX(-50%);
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(-50%);
  }
}


/* main section */


/* Main Section Layout */
.custom-section {

  margin-left: 20px;
  margin-right: 20px;
}

.main-layout {
  display: flex;
  flex-direction: row;
  gap: 0px;
  top: 0;
  /* height: 480px; */
}

/* Big Box */
.big-box {
  flex: 2;
  background-color: var(--card-bg, #f4f4f4);
  padding: 0px;

  display: flex;
  justify-content: center;
}

/* Small Boxes Container */
.small-box-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Each Small Box */
.small-box {
  background-color: var(--card-bg, #f4f4f4);
  padding: 20px;
  border-radius: 10px;
  flex: 1;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .big-box,
  .small-box-container {
    width: 100%;
  }
}


@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .big-box {
    width: 100%;
  }

  .small-box-container {
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .small-box {
    flex: 1;
  }
}


.category-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 7999;
  display: none;
}

.category-overlay.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.floating-close {
  position: fixed;
  top: 16px;
  left: 420px;
  z-index: 9000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating-close.show {
  display: flex;
  animation: popIn 0.3s ease;
}




/* Overlay for the popup */
#loginPopup {
  width: 100%;
  height: 100%;
  background-color: rgba(61, 61, 61, 0.409);
  /* semi-transparent dark overlay */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Popup content */
#loginPopup .popup-content {
  background-color: var(--bg-color);
  /* theme-based background */
  color: var(--text-color);
  /* theme-based text color */
  padding: 30px 25px;
  border-radius: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  transition: background-color 0.3s, color 0.3s;
}

/* Popup heading */
#loginPopup .popup-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

/* Buttons */
#loginPopup .popup-content button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px 0;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  color: #fff;
}




/* Button icons */
#loginPopup .popup-content button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* space between icon and text */
  width: 100%;
  margin: 10px 0;
  padding: 12px 0;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  color: #000000;
}

/* Icon size */
#loginPopup .popup-content .btn-icon {
  width: 20px;
  height: 20px;
}

/* Specific brand colors */
#loginPopup .popup-content button:nth-of-type(1) {
  background-color: #ffffff;
  /* Google */
}

#loginPopup .popup-content button:nth-of-type(2) {
  background-color: #ffffff;
  /* Facebook */
}

/* Close Button */
#loginPopup .popup-content button:last-of-type {
  background-color: var(--light-header);
  color: var(--light-text);
}

/* Hover effect */
#loginPopup .popup-content button:hover {
  opacity: 0.9;
}


/* Close Button */
#loginPopup .popup-content button:last-of-type {
  background-color: var(--light-header);
  color: var(--light-text);
}

/* Paragraph */
#loginPopup .popup-content p {
  font-size: 14px;
  color: var(--text-color);
  margin: 15px 0 10px;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive for mobile */
@media (max-width: 480px) {
  #loginPopup .popup-content {
    padding: 20px 15px;
  }

  #loginPopup .popup-content h2 {
    font-size: 20px;
  }

  #loginPopup .popup-content button {
    font-size: 14px;
  }
}







.profile-header {
  display: grid;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
}

.button-group{
      display: flex
;
    justify-content: center;
    align-items: center;
}

.drawer-cintent {
  display: flex;
  justify-content: center;
  align-items: center;
}

#categoryDrawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 90vw;
  max-width: 400px;
  height: 100vh;
  background: var(--header-bg);
  /* Updated */
  color: var(--text-color);
  /* Updated */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#categoryDrawer.show {
  transform: translateX(0);
}

#categoryDrawer header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

#closeCategoryDrawer {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  /* Ensure visibility in both modes */
}

.category-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#subcategoryHeader {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--text-color);
}

#subcategoryHeader button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--hover-color);
}

#subcategoryHeader span {
  cursor: pointer;
  color: var(--hover-color);
}

#mainCategoryList,
#subcategoryList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mainCategoryList li,
#subcategoryList li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#mainCategoryList li:hover,
#subcategoryList li:hover {
  background-color: var(--hover-color);
  transform: translateX(5px);
  color: white;
}

#mainCategoryList li.active {
  background-color: var(--hover-color);
  color: white;
  font-weight: bold;
}

/* Desktop layout (two columns) */
@media (min-width: 769px) {

  #mainCategoryList,
  #subcategoryList {
    width: 50%;
  }

  #mainCategoryList {
    display: block !important;
  }

  #subcategoryHeader {
    display: none !important;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .category-content {
    flex-direction: column;
  }

  .category-content.two-column #mainCategoryList {
    display: none;
  }

  .category-content.two-column #subcategoryHeader {
    display: flex;
  }
}

.floating-close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--hover-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 9500;
  display: none;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay.show {
  opacity: 1;
  pointer-events: auto;
}






/* Footer Base */
.site-footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 40px 20px 20px;
  transition: all 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

/* Branding */
.footer-brand {
  text-align: center;
  margin-bottom: 30px;
}

.footer-brand h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* 4 Columns */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1 1 22%;
  min-width: 220px;
  justify-content: center;
  display: grid;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--footer-text);
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

/* Social Icons */
.social-icons a {
  margin-right: 10px;
  font-size: 20px;
  color: var(--icon-color);
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Newsletter */
.footer-newsletter {
  text-align: center;
  margin-top: 20px;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-newsletter input {
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  background: var(--input-bg);
  color: var(--input-text);
  border-radius: 20px;
  width: 280px;
}

.footer-newsletter button {
  padding: 8px 15px;
  background-color: var(--primary-color);
  border: 2px solid red;
  color: red;
  border-radius: 20px;
  box-shadow: 20px;
  cursor: pointer;
}

.footer-newsletter button:hover {
  opacity: 0.9;
  color: white;
  background-color: red;
  border: 20px solid --bg-color;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  margin-bottom: 100px;
}

/* ✅ Responsive Design */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .footer-col {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .footer-col {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
  }
}






.fade-slider {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  aspect-ratio: 16/9;
  margin: 0px auto;
  overflow: hidden;
}

.fade-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-slide.active {
  opacity: 1;
}


/* === Responsive for Mobile === */
@media (max-width: 768px) {
  .image-slider {
    aspect-ratio: 4 / 3;
  }
  .big-box{
    margin-top: 20px;
  }
}





.product-card h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 6px 0 8px;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* max 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 36px; /* ensures price never jumps */
}







/* 
  .slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
  }

  .product-card {
    min-width: 250px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s;
  }

  .product-card:hover {
    transform: scale(1.05);
    cursor: pointer;
  }

  .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }

  .card-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
  }

  .card-buttons button {
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
  }

  .card-buttons button:hover {
    background: #0056b3;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  } */



/* === Product Slider Section === */
.product-slider {
  overflow: hidden;
  position: relative;
  padding: 1rem;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* === Product Card === */
.product-card {
  position: relative;
  background: var(--light-header);
  border-radius: 20px;
  overflow: hidden;
  min-width: 12.66%;
  /* 6 per row desktop */
  margin: 15px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 250px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* Zoom & shadow on hover/touch */
.product-card:hover,
.product-card:active {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* === Product Image === */
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

/* === Heart Icon === */
.product-card .heart-icon {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 20px;
  height: auto;
  font-size: 1.0rem;
  color: #fa9dab;
  /* background: var(--light-header); */
  /* padding: 4px; */
  border-radius: 100%;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card .heart-icon:hover {
  color: red;
}

/* === Product Name and Cart === */
.card-body {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 10px;
  flex: 1;
}

/* .card-body .cart-icon {
  font-size: 1.3rem;
  color: #555;
  margin-right: 20px;
} */

/* === Price Row === */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  margin-top: 6px;
  font-size: 0.95rem;
}

.price-row s {
  color: var(--text-color);
  font-size: 0.9rem;
}

.price-row strong {
  color: #e53935;
  font-weight: 400;
}


.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}


/* === Responsive Layouts === */
@media (max-width: 1024px) {
  .product-card {
    min-width: 25%;
    /* 4 per row (tablet) */
  }
}

@media (max-width: 768px) {
  .product-card {
    min-width: 33.33%;
    /* 3 per row (mobile) */
  }
}

@media (max-width: 480px) {
  .product-card {
    min-width: 35%;
    max-height: 300px;
    /* 1 per row on very small screens */
    margin: 10px;

  }

  .product-card img {
    height: 100px;
  }
}







.service-section.compact {
  padding: 1.5rem 1rem;

  text-align: center;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);

}

.service-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.service-item {
  max-width: 300px;
  padding: 1rem;
  border-radius: 10px;
  background: var(--header-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.service-icon {
  font-size: 1.8rem;
  color: var(--primary-color, #e60023);
  margin-bottom: 0.3rem;
}

.service-item p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .service-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .service-item {
    padding: 0.8rem 1rem;
    max-width: 100%;
  }

  .service-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }
}





.counter-section {
  padding: 2rem 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  text-align: center;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.counter-item {
  padding: 1rem;

  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

.counter-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.counter-item p {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

@media (max-width: 768px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-item p {
    font-size: 1.6rem;
  }


}



.counter-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
  transition: color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.counter-title img.inline-icon {
  height: 184px;
  width: 184px;
  object-fit: contain;
  display: inline-block;
  transition: width 0.3s, height 0.3s;
}

@media (max-width: 768px) {
  .counter-title {
    font-size: 1.0rem;
    font-weight: 400;
  }

  .counter-title img.inline-icon {
    height: 84px !important;
    width: 84px !important;
  }
}








.category-section {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 0 1rem;
  /* Add horizontal padding for mobile */
}

.masonry-grid {
  display: grid;
  /* Auto-fit columns with minimum 140px width on mobile, 200px on desktop */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.category-tile {
  height: 140px;
  /* smaller height on mobile */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-tile:hover {
  transform: scale(1.05);
}

.tile-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem;
}

.tile-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  color: white;
}

.tile-action {
  font-size: 13px;
  color: white;
}

#showMoreBtn {
  padding: 10px 25px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#showMoreBtn:hover {
  background: darkred;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .category-tile {
    height: 180px;
  }

  .tile-title {
    font-size: 18px;
  }

  .tile-action {
    font-size: 14px;
  }
}

@media (min-width: 900px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
  }

  .category-tile {
    height: 200px;
  }
}




/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content button {
  margin: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.modal-content .close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 25px;
  cursor: pointer;
}