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

body {
  font-family: var(--main-font);
  color: var(--text-color);
  background-color: var(--bg-color);
}

.navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 87.5rem;
  padding: 0 1rem;
  transition: all 0.5s ease;
}

.custom-navbar {
  background-color: var(--bg-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.5s ease;
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.custom-navbar.scrolled {
  border: 1px solid #e5e7eb;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.12);
}

.menu-items {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.menu-items li {
  position: relative;
}

.menu-items a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.375rem 0.625rem;
  display: block;
  border-radius: 0.5rem;
}

.menu-items a:hover {
  color: var(--main-color);
  transform: translateY(-1px);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 1.5625rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--text-color);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1500;
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.top-sheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  border-radius: 0 0 1.5625rem 1.5625rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  max-height: 80vh;
  overflow: hidden;
}

.top-sheet.active {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.close-btn-menu {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.close-btn-menu:hover {
  background: var(--bg-light-hover);
}

.sheet-content {
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  max-height: calc(80vh - 5rem);
}

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

.mobile-menu-list li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-list li:last-child {
  border-bottom: none;
}

.mobile-menu-list li a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu-list li a:active {
  color: var(--main-color);
  transform: scale(0.98);
}

.social-dropdown-desktop {
  position: relative;
}

.social-toggle-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-weight: 600;
}

.social-toggle-desktop:hover {
  background-color: var(--main-color);
  color: var(--text-white);
}

.social-toggle-desktop .arrow-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.social-toggle-desktop .arrow-icon.open {
  transform: rotate(180deg);
}

.social-links-desktop {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-color);
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.12);
  padding: 1rem;
  display: none;
  gap: 0.75rem;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

.social-links-desktop.open {
  display: flex;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-light-hover);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--text-color);
  transition: fill 0.3s ease;
}

/* Instagram - Radial Gradient with Official Brand Colors */
.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  position: relative;
}

.social-instagram svg {
  fill: var(--text-white);
}

.social-instagram:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

/* WhatsApp - Solid Green Background */
.social-whatsapp {
  background-color: #25D366;
}

.social-whatsapp svg {
  fill: var(--text-white);
}

.social-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Facebook - Solid Blue Background */
.social-facebook {
  background-color: #1877F2;
}

.social-facebook svg {
  fill: var(--text-white);
}

.social-facebook:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* TikTok - Black Background */
.social-tiktok {
  background-color: #000000;
}

.social-tiktok svg {
  fill: var(--text-white);
}

.social-tiktok:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Phone - Gray Background */
.social-phone {
  background-color: #6B7280;
}

.social-phone svg {
  fill: var(--text-white);
}

.social-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* Facebook Group - Darker Blue */
.social-facebook-group {
  background-color: #166fe5;
}

.social-facebook-group svg {
  fill: var(--text-white);
}

.social-facebook-group:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(22, 111, 229, 0.4);
}

/* WhatsApp Group - Dark Teal */
.social-whatsapp-group {
  background-color: #075e54;
}

.social-whatsapp-group svg {
  fill: var(--text-white);
}

.social-whatsapp-group:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(7, 94, 84, 0.4);
}


.social-dropdown {
  position: relative;
}

.social-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.social-toggle:active {
  color: var(--main-color);
  transform: scale(0.98);
}

.social-toggle .arrow-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.social-toggle .arrow-icon.open {
  transform: rotate(180deg);
}

.social-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-right: 1rem;
}

.social-links.open {
  max-height: 300px;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.social-links-grid .social-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links-grid .social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .menu-items {
    display: flex;
  }

  .navbar-wrapper {
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .menu-items {
    gap: 1.5rem;
  }

  .menu-items a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  .custom-navbar {
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 768px) {
  .action-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 0.5rem;
  }

  /* Mobile status badge - only visible on mobile */
  .mobile-status-badge {
    display: flex !important;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.75rem;
    border-radius: 1.25rem;
  }

  .mobile-status-badge .status-text {
    gap: 0.25rem;
    text-align: center;
  }

  .mobile-status-badge .status-label {
    font-size: 0.75rem;
    white-space: nowrap;
    line-height: 1.2;
  }

  .mobile-status-badge .status-time {
    font-size: 0.65rem;
    opacity: 0.9;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobile-status-badge .status-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  /* Hide hero badge on mobile (keep header badge only) */
  .hero-only-status-badge {
    display: none !important;
  }

  .menu-items {
    display: none;
  }

  .action-buttons .lang-toggle {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .menu-overlay,
  .top-sheet {
    display: block;
  }

  .custom-navbar {
    padding: 0.625rem 1rem;
  }

  .navbar-wrapper {
    padding: 0 0.5rem;
  }

  .social-links-grid {
    gap: 0.75rem;
  }

  .social-links-grid .social-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .social-links-grid .social-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (max-width: 480px) {
  .custom-navbar {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
  }

  .navbar-wrapper {
    top: 0.5rem;
    padding: 0 0.5rem;
  }

  .sheet-header {
    padding: 1rem 1rem;
  }

  .sheet-title {
    font-size: 1.1rem;
  }

  .sheet-content {
    padding: 0.75rem 1rem 1.5rem;
  }

  .mobile-menu-list li a {
    font-size: 1rem;
    padding: 0.875rem 0;
  }

  .mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}


/* Hero Section */
.hero-section {
  /* min-height: 60vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0rem 2rem;
}

.hero-container {
  max-width: 87.5rem;
  width: 100%;
  padding: 0 1rem;
}

.hero-main-card {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  border-radius: 2.5rem;
  overflow: hidden;
}

.hero-main-image {
  width: 100%;
  height: 27rem;
  object-fit: cover;
  display: block;
}


.hero-bottom-info {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
}

.hero-restaurant-info {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.hero-restaurant-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--bg-color);
  border: 4px solid var(--bg-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.hero-restaurant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-restaurant-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  max-width: 300px;
  min-width: 0;
  flex: 1;
}

.hero-restaurant-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-restaurant-desc {
  font-size: 0.95rem;
  color: var(--accent-gray);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.4;
}


.hero-status-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1.5rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.hero-status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-status-badge:active {
  transform: translateY(0);
}

.hero-status-badge.open {
  background: rgba(209, 250, 229, 1);
  color: #15803D;
}

.hero-status-badge.open:hover {
  background: rgba(199, 245, 219, 1);
}

.hero-status-badge.closed {
  background: #FDE3E3;
  color: #AB2121;
}

.hero-status-badge.closed:hover {
  background: rgba(255, 226, 226, 1);
}

.status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hero-status-badge.open .status-dot {
  background: var(--accent-green);
}

.hero-status-badge.closed .status-dot {
  background: var(--accent-red);
}

.hero-status-badge:hover .status-dot {
  transform: scale(1.2);
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.status-label {
  font-weight: 600;
}

/* Hide mobile status badge on desktop */
.mobile-status-badge {
  display: none;
  font-size: 0.95rem;
  line-height: 1;
}

.status-time {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1;
  color: var(--accent-gray)
}


/* dialog */

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  padding: 1rem;
}

.dialog-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dialog-box {
  background: var(--bg-color);
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.dialog-header {
  background: var(--main-color);
  color: var(--text-white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title {
  font-size: 1.2rem;
  margin: 0;
}

.close-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}


.dialog-content {
  padding: 2.5rem;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none
}


.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-light);
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.day-row:hover {
  background: var(--bg-light-hover);
  transform: translateX(-5px);
  border-color: var(--main-color);
}

.day-row.closed {
  background: #fff5f5;
}

.day-row.closed:hover {
  background: #ffe5e5;
}

.day-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.day-hours {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.day-hours.closed-text {
  color: var(--accent-red);
  font-weight: 600;
}


.dialog-content::-webkit-scrollbar {
  display: none;
  /* width: 8px; */
}

/* .dialog-content::-webkit-scrollbar-track {
  background: var(--bg-track);
  border-radius: 10px;
}

.dialog-content::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
} */

@media (max-width: 991px) {
  .hero-section {
    padding: 5.5rem 0.5rem 1rem;
  }


  .hero-main-card {
    border-radius: 2rem;
  }

  .hero-main-image {
    height: 28rem;
  }

  .hero-bottom-info {
    align-items: flex-end;
    padding: 0 1rem;
  }

  .hero-restaurant-info {
    align-items: flex-start;
  }
}



@media (max-width: 768px) {
  .hero-section {
    padding: 5.5rem 0.5rem 2rem;
    /* min-height: 45vh; */
  }

  .hero-main-card {
    border-radius: 1.5rem;
  }

  .hero-main-image {
    height: 22rem;
  }

  .hero-bottom-info {
    margin-top: -2rem;
    padding: 1rem;
  }

  .hero-restaurant-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    border: 3px solid var(--bg-color);
  }

  .hero-restaurant-name {
    font-size: 1.25rem;
  }

  .hero-restaurant-desc {
    font-size: 0.95rem;
  }

  .hero-restaurant-details {
    padding-top: 1.5rem;
  }

  .hero-closed-badge {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
  }


  .hero-status-badge {
    padding: 0.6rem 1.15rem;
    gap: 0.65rem;
  }

  .status-label {
    font-size: 0.875rem;
  }

  .status-time {
    font-size: 0.8rem;
  }


  .dialog-box {
    border-radius: 1.25rem;
    margin: 0.5rem;
  }

  .dialog-header {
    padding: 1.25rem;
  }

  .dialog-title {
    font-size: 1.25rem;
  }

  .dialog-content {
    padding: 1rem;
    max-height: calc(90vh - 350px);
  }

  .day-row {
    padding: 1rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .day-name {
    font-size: 1rem;
  }

  .day-hours {
    font-size: 0.9rem;
  }
}


@media (max-width: 480px) {
  .hero-section {
    padding: 5.5rem 0.5rem 1rem;
    align-items: flex-start;
    /* min-height: 25vh; */
  }

  .hero-main-card {
    border-radius: 1.25rem;
  }

  .hero-main-image {
    height: 9rem;
  }

  .hero-bottom-info {
    margin-top: -1.5rem;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-restaurant-avatar {
    width: 3.5rem;
    height: 3.5rem;
  }

  .hero-restaurant-name {
    font-size: 1rem;
  }

  .hero-restaurant-desc {
    font-size: 0.95rem;
  }

  .hero-restaurant-details {
    padding-bottom: 0;
    padding-top: 1rem;
    max-width: 250px;
    min-height: auto;
    /* Let content determine height to accommodate slogan */
  }

  .hero-restaurant-desc {
    font-size: 0.9rem;
  }

  .hero-closed-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }


  .hero-status-badge {
    padding: 0.6rem 1rem;
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .status-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .status-label {
    font-size: 0.8rem;
  }

  .status-time {
    font-size: 0.75rem;
  }
}


/* Offers Section */
.offers-section {
  padding: 1rem 0;
}

.offers-container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.offers-header {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  align-items: center;
}

.offers-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.offers-title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  right: 5%;
  width: 60%;
  height: 3px;
  background: var(--main-color);
  border-radius: 50%;
  transform: scaleY(0.5);
}

.fire-emoji {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.offers-cards {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.offer-card {
  position: relative;
  width: 260px;
  height: 300px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.offer-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.94) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.offer-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 0.6rem;
  right: 0rem;
  background: linear-gradient(135deg, var(--accent-red-hot) 0%, var(--accent-red-hot-hover) 100%);
  color: var(--text-white);
  padding: 0.3rem 0.9rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.80rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%);
  padding-left: 1.1rem;
  transform: rotate(30deg);
}


.offer-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1;
}

.offer-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  margin: 0;
}

.offer-card-description {
  font-size: 0.8rem;
  color: var(--text-white-transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  /* background: var(--bg-color); */
  /* padding: 0.25rem 0.5rem; */
  border-radius: 0.4rem;
  display: flex;
  /* margin-top: 0.3rem; */
  /* width: fit-content; */
  gap: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-container {
  background: var(--bg-color);
  border-radius: 1.5rem;
  max-width: 700px;
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(50px);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-product-title-top {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.5rem 1rem 1rem;
  margin: 0;
  background: var(--bg-color);
  border-radius: 1.5rem 1.5rem 0 0;
  flex-shrink: 0;
}

.close-btn-model {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--bg-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.close-btn-model:hover {
  background: var(--main-color);
  color: var(--text-white);
  transform: rotate(90deg);
}

.modal-image-container {
  width: 100%;
  height: 300px;
  border-radius: 1.5rem 1.5rem 0 0;
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent-red-hot) 0%, var(--accent-red-hot-hover) 100%);
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.modal-tagline {
  font-family: 'Brush Script MT', cursive, 'Dancing Script', cursive;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  text-align: center;
  margin: -1rem 0 1rem;
  padding: 0 1rem;
}

.modal-content {
  padding: 1.2rem;
  padding-bottom: 1.2rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Removed - product title now at top of modal */

.product-description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.additions_section {
  margin-top: 1rem;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.price-left {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
}

.product-name-right {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-align: right;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.info-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: var(--bg-light);
  border-radius: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.info-icon {
  font-size: 1.2rem;
}

.accordion {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  background: var(--bg-light);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: var(--bg-light-hover);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-light-hover);
}

.accordion-content.active {
  max-height: 300px;
}

.accordion-list {
  padding: 1rem 1.25rem;
  list-style: none;
}

.accordion-list li {
  display: inline-block;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
}

.accordion-list li:not(:last-child)::after {
  display: none;
}

.accordion-list li::before {
  content: '⚠️';
  margin-left: 0.25rem;
  font-size: 0.875rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.variant-group-section {
  margin-bottom: 1.1rem;
}

.variant-section-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  padding-right: 0.5rem;
}

.variant-section-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--main-color);
  margin-top: 0.25rem;
}

.variant-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.variant-pill,
.choice-pill,
.extra-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-color);
  border: 1.5px solid var(--main-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.variant-pill:hover,
.choice-pill:hover,
.extra-pill:hover {
  border-color: var(--main-color);
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.variant-pill.selected,
.choice-pill.selected,
.extra-pill.selected {
  background: var(--main-color);
  border-color: var(--main-color);
  color: white;
}

.variant-pill input[type="radio"],
.variant-pill input[type="checkbox"],
.choice-pill input[type="checkbox"],
.extra-pill input[type="checkbox"] {
  display: none;
}

.pill-text {
  font-weight: 500;
}

.variant-pill.selected .pill-text,
.variant-pill.selected .pill-price,
.choice-pill.selected .pill-text,
.choice-pill.selected .pill-price,
.extra-pill.selected .pill-text,
.extra-pill.selected .pill-price {
  color: white;
}

.pill-price {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================
   PREMIUM LIST DESIGN FOR OPTIONS & EXTRAS
   ============================================ */

/* Container - vertical stack */
.option-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  width: 100%;
}

/* List Item Base */
.option-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-height: 56px;
  position: relative;
}

/* Hover State */
.option-list-item:hover {
  background: linear-gradient(135deg, #fffaf6 0%, #fff8f3 100%);
  border-color: var(--main-color);
  box-shadow: 0 4px 12px rgba(248, 131, 54, 0.12);
  transform: translateX(4px);
}

[dir="rtl"] .option-list-item:hover {
  transform: translateX(-4px);
}

/* Selected State */
.option-list-item.selected {
  background: linear-gradient(135deg, #fff5ed 0%, #ffedd5 100%);
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 16px rgba(248, 131, 54, 0.2);
}

/* Accent Bar (left for LTR, right for RTL) */
.option-list-item.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--main-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px 0 0 12px;
}

[dir="rtl"] .option-list-item.selected::before {
  left: auto;
  right: 0;
  border-radius: 0 12px 12px 0;
}

/* Left Section */
.option-list-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

/* Custom Checkbox/Radio */
.option-list-item input[type="checkbox"],
.option-list-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  background: var(--bg-color);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0;
  position: relative;
}

.option-list-item input[type="checkbox"] {
  border-radius: 6px;
}

.option-list-item input[type="radio"] {
  border-radius: 50%;
}

/* Checked State */
.option-list-item input:checked {
  background: var(--main-color);
  border-color: var(--main-color);
  transform: scale(1.05);
}

/* Checkbox Checkmark */
.option-list-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Radio Dot */
.option-list-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

/* Text */
.option-list-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.option-list-item.selected .option-list-text {
  color: var(--main-color);
}

/* Price */
.option-list-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main-color);
  white-space: nowrap;
  margin-left: 1rem;
  flex-shrink: 0;
}

[dir="rtl"] .option-list-price {
  margin-left: 0;
  margin-right: 1rem;
}

.option-list-price.free {
  color: var(--accent-green);
}

/* Focus (Accessibility) */
.option-list-item:focus-within {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

/* Staggered Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-list-item {
  animation: slideInUp 0.3s ease-out backwards;
}

.option-list-item:nth-child(1) {
  animation-delay: 0s;
}

.option-list-item:nth-child(2) {
  animation-delay: 0.05s;
}

.option-list-item:nth-child(3) {
  animation-delay: 0.1s;
}

.option-list-item:nth-child(4) {
  animation-delay: 0.15s;
}

.option-list-item:nth-child(5) {
  animation-delay: 0.2s;
}

/* ============================================
   RESPONSIVE - PREMIUM LIST
   ============================================ */

@media (max-width: 768px) {
  .option-list-item {
    padding: 0.875rem 1rem;
  }

  .option-list-container {
    gap: 0.65rem;
  }

  .option-list-text {
    font-size: 0.95rem;
  }

  .option-list-price {
    font-size: 0.9rem;
  }

  .option-list-item input {
    width: 20px;
    height: 20px;
  }

  /* No hover transform on mobile */
  .option-list-item:hover {
    transform: none;
  }

  /* Active state for touch */
  .option-list-item:active {
    transform: scale(0.98);
  }
}

@media (max-width: 480px) {
  .option-list-item {
    padding: 0.8rem 0.9rem;
  }

  .option-list-container {
    gap: 0.6rem;
  }

  .option-list-text {
    font-size: 1rem;
  }

  .option-list-price {
    font-size: 0.85rem;
    margin-left: 0.75rem;
  }

  [dir="rtl"] .option-list-price {
    margin-right: 0.75rem;
  }

  .option-list-left {
    gap: 0.85rem;
  }
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-item:hover {
  background: var(--bg-light-hover);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--main-color);
}

.checkbox-label {
  flex: 1;
  font-weight: 500;
  color: var(--secondary-color);
}

.checkbox-price {
  font-weight: 700;
  color: var(--main-color);
  font-size: 0.95rem;
}

.quantity-section {
  margin-bottom: 1.2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-light);
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  width: fit-content;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-color);
  color: var(--main-color);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
  background: var(--main-color);
  color: var(--text-white);
  transform: scale(1.1);
}

.quantity-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  min-width: 35px;
  text-align: center;
}

.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-color);
}


.go-to-cart-btn {
  width: 100%;
  background: var(--cart-button-color);
  color: var(--text-white);
  border: none;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.go-to-cart-btn:hover:not(:disabled) {
  filter: brightness(0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Disabled State */
.go-to-cart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Hide go to cart button on mobile and tablet — desktop only (≥992px) */
@media (max-width: 991px) {
  .go-to-cart-btn {
    display: none;
  }
}

/* Fixed Bottom Action Bar */
.modal-action-bar {
  position: relative;
  bottom: auto;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 100;
  margin-top: 0;
  flex-shrink: 0;
}

.add-to-cart-btn-new {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--cart-button-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn-new.price-only {
  justify-content: center;
  cursor: default;
}

.add-to-cart-btn-new:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn-new.price-only:hover {
  background: var(--cart-button-color);
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn-new:active {
  transform: translateY(0);
}

.quantity-selector-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: 25px;
  border: 1px solid var(--border-color);
}

.quantity-selector-inline .quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-selector-inline .quantity-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.quantity-selector-inline .quantity-value {
  min-width: 40px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.info-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-text {
  margin: 0;
  font-size: 0.9rem;
  color: #856404;
  line-height: 1.6;
}

.info-text strong {
  font-weight: 700;
}


.total-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: var(--bg-track);
  margin: 20px 0;
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
  min-height: 40px;
}



/* Responsive */
/* Duplicate media query removed - consolidated into single media query block below */

@media (max-width: 480px) {
  .offers-title {
    font-size: 1.75rem;
  }

  .fire-emoji {
    width: 2rem;
    height: 2rem;
  }

  .offer-card {
    width: 190px;
    height: 280px;
  }

  .modal-image-container {
    height: 250px;
  }
}



/* Floating Cart Button */
.floating-cart {
  position: fixed;
  right: 2rem;
  bottom: 0px;
  transform: translateY(-50%);
  background: var(--secondary-color);
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow-color);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-cart:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px var(--shadow-color-heavy);
}

.cart-icon {
  font-size: 1.8rem;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-red);
  color: var(--text-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--bg-color);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-sidebar-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.cart-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent-red);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  margin-right: auto;
}

.cart-clear-btn:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: var(--accent-red);
  transform: scale(1.05);
}

.cart-clear-btn:active {
  transform: scale(0.95);
}

/* Reusable Dialog Actions */
.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-direction: row-reverse;
  /* RTL: danger button on right */
}

.dialog-btn-cancel,
.dialog-btn-danger,
.dialog-btn-success,
.dialog-btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dialog-btn-cancel {
  background: var(--bg-light);
  color: var(--text-color);
}

.dialog-btn-cancel:hover {
  background: var(--bg-light-hover);
  transform: translateY(-2px);
}

.dialog-btn-danger {
  background: var(--accent-red);
  color: var(--text-white);
}

.dialog-btn-danger:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.dialog-btn-success {
  background: var(--accent-green);
  color: var(--text-white);
}

.dialog-btn-success:hover {
  background: #388e3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.dialog-btn-primary {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
}

.dialog-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Cart Items */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  /* border: 2px solid transparent; */
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: var(--main-color);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  flex: 1;
}

.cart-item-remove {
  background: var(--accent-red);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background: var(--accent-red-hover);
  transform: scale(1.1);
}

.cart-item-details {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.cart-item-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
}

.cart-item-quantity {
  font-weight: 600;
  color: var(--secondary-color);
}

.cart-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
}


.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-light);
  border-radius: 1.5rem;
  padding: 0.25rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--main-color);
  color: var(--text-white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.cart-item-quantity {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
}


.cart-item-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-color);
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-item-edit:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--text-white);
}

.cart-item-edit svg {
  width: 16px;
  height: 16px;
}


.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-color);
}


.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}


.cart-sidebar-footer {
  padding: 1.5rem;
  border-top: 2px solid var(--border-color);
  background: var(--bg-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.cart-total span:last-child {
  color: var(--main-color);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
    height: auto;
    bottom: 80px;
  }

  .cart-sidebar-header {
    padding: 0.75rem 1rem;
  }

  .cart-sidebar-header h2 {
    font-size: 1.1rem;
  }

  .cart-items-container {
    padding: 0.4rem;
  }

  .cart-item {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.4rem;
    border-radius: 0.5rem;
  }

  .cart-item-header {
    margin-bottom: 0.3rem;
  }

  .cart-item-title {
    font-size: 0.95rem;
  }

  .cart-item-details {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .cart-item-detail {
    padding: 0.1rem 0;
  }

  .cart-item-footer {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
  }

  .cart-item-price {
    font-size: 0.95rem;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .cart-item-edit {
    padding: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
  }

  .cart-total {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .cart-sidebar-footer {
    padding: 0.6rem 0.75rem;
  }

  .floating-cart {
    /* width: 55px;
    height: 55px;
    right: 1.5rem; */
    display: none;
  }
}




/* ############### */


/* Categories */
.categories-section {
  padding: 1.5rem 0;
  background: var(--bg-color);
  position: sticky;
  top: 70px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.categories-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-wrapper {
  margin: 1rem 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  max-width: 400px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--main-color);
  box-shadow: 0 4px 12px var(--shadow-color-light);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--main-font);
  font-size: 1rem;
  color: var(--text-color);
  padding: 0.5rem;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  transition: transform 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.1);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* Categories Header */
.categories-header {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--main-color) transparent;
  -ms-overflow-style: auto;
}

.categories-header::-webkit-scrollbar {
  height: 6px;
}

.categories-header::-webkit-scrollbar-track {
  background: transparent;
}

.categories-header::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 3px;
}

.categories-header::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}


.category-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 2rem;
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border-color: var(--main-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.category-btn.has-children {
  position: relative;
}

.category-btn.has-children .children-indicator {
  font-size: 0.8rem;
  margin-left: 0.25rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.category-btn.has-children.active .children-indicator {
  transform: rotate(180deg);
}

/* Child Categories Styling */
.child-categories-container {
  margin-top: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
}

.category-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.category-text {
  font-weight: 600;
}

.category-count {
  font-size: 0.85rem;
  opacity: 0.7;
}


.categories-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--text-color);
  border-radius: 2rem;
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}



.categories-toggle-btn svg {
  width: 18px;
  height: 18px;
}


.categories-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2500;
  backdrop-filter: blur(4px);
}

.categories-overlay.active {
  opacity: 1;
  visibility: visible;
}

.categories-bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  border-radius: 1.5625rem 1.5625rem 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3000;
  max-height: 85vh;
  overflow: hidden;
}

.categories-bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.bottom-sheet-handle {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
}

.bottom-sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  padding-top: 0.5rem;
}

.bottom-sheet-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.bottom-sheet-close:hover {
  background: var(--bg-light-hover);
}

.categories-toggle-btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.bottom-sheet-content {
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 5rem);
  scrollbar-width: thin;
}



.bottom-sheet-category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.bottom-sheet-category-item:hover {
  background: var(--bg-light-hover);
  border-color: var(--main-color);
  transform: translateX(-5px);
}

.bottom-sheet-category-item.active {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border-color: var(--main-color);
}

.bottom-sheet-category-item:last-child {
  margin-bottom: 0;
}

.bottom-sheet-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bottom-sheet-name {
  flex: 1;
  font-size: 1rem;
}

.bottom-sheet-count {
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.bottom-sheet-category-item.active .bottom-sheet-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

/* Responsive */
@media (max-width: 991px) {
  .categories-section {
    top: 60px;
  }

  .category-btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .category-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .categories-section {
    padding: 1rem 0;
    top: 58px;
    position: static;
  }

  .search-box {
    max-width: 100%;
    padding: 0.4rem 0.875rem;
  }

  .search-input {
    font-size: 0.95rem;
  }

  .categories-toggle-btn {
    max-width: 100%;
  }


  .categories-toggle-btn svg {
    width: 16px;
    height: 16px;
  }

  .bottom-sheet-category-item {
    padding: 0.875rem 1rem;
  }

  .bottom-sheet-icon {
    font-size: 1.3rem;
  }

  .bottom-sheet-name {
    font-size: 0.95rem;
  }

  /* Child Categories Mobile Styles - Tablet */
  .child-categories-container {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .categories-section {
    padding: 0.75rem 0;
    position: static;
  }

  .search-box {
    padding: 0.35rem 0.75rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  .categories-toggle-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    padding: 0.75rem 0.875rem;
  }

  .bottom-sheet-icon {
    font-size: 1.2rem;
  }

  .bottom-sheet-name {
    font-size: 0.9rem;
  }

  .bottom-sheet-count {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  /* Child Categories Mobile Styles - Mobile */
  .child-categories-container {
    margin-top: 0.25rem;
  }

  .category-btn.has-children .children-indicator {
    font-size: 0.7rem;
  }
}



/* ============= Products Section ============= */
.products-section {
  padding: 3rem 0;
  background: var(--bg-color);
  min-height: 60vh;
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.products-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.products-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.products-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
}


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


.product-card {
  display: block;
  background: var(--bg-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  animation: fadeIn 0.5s ease;
  cursor: pointer;
}

.product-card.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--main-color);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--accent-red-hot) 0%, var(--accent-red-hot-hover) 100%);
  color: var(--text-white);
  padding: 0.3rem 0.8rem;
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 3px 10px var(--shadow-color);
  /* z-index: 2; */
}

.product-info {
  padding: 0.75rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}


.product-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-icon {
  font-size: 1.1rem;
}


.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
  flex-shrink: 1;
  min-width: 0;
}

.price-range {
  font-size: inherit;
}


.add-product-btn {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.add-product-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow-color);
}

.add-product-btn:active {
  transform: translateY(0);
}

/* Empty State */
.products-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.empty-text {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 991px) {
  .products-title {
    font-size: 2.2rem;
  }

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

  .product-image-wrapper {
    height: 200px;
  }
}

/* Tablet Layout - Keep traditional vertical card layout */
@media (max-width: 768px) and (min-width: 481px) {
  .products-section {
    padding: 2rem 0;
  }

  .products-container {
    margin-bottom: 6rem;
  }

  .products-header {
    margin-bottom: 2rem;
  }

  .products-title {
    font-size: 2.2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .products-subtitle {
    font-size: 1rem;
  }

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

  .product-card {
    border-radius: 1rem;
  }

  .product-image-wrapper {
    height: 200px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1.2rem;
  }

  .product-desc {
    font-size: 0.9rem;
  }

  .product-meta {
    gap: 1rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .add-product-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .products-title {
    font-size: 1.6rem;
  }

  .products-subtitle {
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile Layout: Enhanced side-by-side image and content */
  .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    height: auto;
    min-height: 120px;
    padding: 12px;
    gap: 12px;
    margin-bottom: 0;
    border-radius: 16px;
  }

  /* Ensure hidden products stay hidden on mobile */
  .product-card.hidden {
    display: none !important;
  }

  .product-image-wrapper {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
  }

  .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
  }

  .product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text-color);
  }

  .product-desc {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-light);
    flex-grow: 1;
  }

  .product-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
  }

  .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color);
    flex-shrink: 0;
  }

  .product-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    top: 6px;
    right: 0px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
    transform: rotate(30deg);
  }

  .add-product-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .products-empty {
    padding: 3rem 1.5rem;
  }
}

/* Extra small screens - compact layout */
@media (max-width: 360px) {
  .product-card {
    min-height: 110px;
    padding: 10px;
    gap: 10px;
  }

  .product-image-wrapper {
    width: 70px;
    min-width: 70px;
    height: 70px;
  }

  .product-info {
    min-height: 70px;
  }

  .product-name {
    font-size: 1.05rem;
    margin-bottom: 5px;
  }

  .product-desc {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .add-product-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .product-badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    top: 4px;
    right: 4px;
    border-radius: 6px;
  }

  .empty-icon {
    font-size: 4rem;
  }

  .empty-title {
    font-size: 1.5rem;
  }

  .empty-text {
    font-size: 1rem;
  }
}






/* ########################################################### */




.toast {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  font-family: var(--main-font);
  overflow: hidden;
  margin-bottom: 0.75rem;
  direction: rtl;
}

.toast-header {
  background-color: var(--bg-light);
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-header strong {
  margin-left: auto;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.toast-body {
  padding: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  background-color: var(--bg-color);
}


.toast-success .toast-header {
  border-bottom-color: var(--accent-green);
}

.toast-success .status-icon {
  color: var(--accent-green);
}

.toast-error .toast-header {
  border-bottom-color: var(--accent-red);
}

.toast-error .status-icon {
  color: var(--accent-red);
}

.toast-warning .toast-header {
  border-bottom-color: var(--secondary-color);
}

.toast-warning .status-icon {
  color: var(--secondary-color);
}



/* ######################## */


.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-top: 1px solid #f0f0f0;
  z-index: 2001;
  padding: 0.5rem 0 0.75rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: var(--text-light);
  gap: 0.35rem;
  position: relative;
}

.nav-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 2.25rem;
}

.bottom-nav-item svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-light);
}


.bottom-nav-item.active .nav-icon-wrapper {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  border-radius: 2rem;
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.bottom-nav-item.active svg {
  fill: var(--bg-color);
  transform: scale(1.1);
}

.bottom-nav-item.active span {
  color: var(--main-color);
  font-weight: 600;
}


.cart-badge-bottom {
  position: absolute;
  top: -0.25rem;
  right: 0.25rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.75rem;
  min-width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 42, 42, 0.4);
  border: 2px solid #ffffff;
}

.bottom-nav-item.active .cart-badge-bottom {
  background: var(--bg-color);
  color: var(--main-color);
  border-color: var(--main-color);
}






@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .bottom-nav {
    padding: 0.4rem 0 0.6rem;
  }

  .nav-icon-wrapper {
    width: 3rem;
    height: 2rem;
  }

  .bottom-nav-item svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .bottom-nav-item span {
    font-size: 0.7rem;
  }

  .cart-badge-bottom {
    font-size: 0.6rem;
    padding: 0.125rem 0.35rem;
    min-width: 1rem;
    height: 1rem;
  }
}




/* welcome modal */
.welcome-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.welcome-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.welcome-modal-container {
  background: var(--bg-color);
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(50px);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.welcome-modal-overlay.active .welcome-modal-container {
  transform: translateY(0);
}

.welcome-modal-content {
  padding: 0;
}

.welcome-modal-header {
  position: relative;
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.welcome-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.welcome-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--main-color);
  transform: scale(1.08);
}

.welcome-modal-close:active {
  transform: scale(0.96);
}

.welcome-modal-close-icon {
  width: 1.25rem;
  height: 1.25rem;
}

[dir="rtl"] .welcome-modal-close {
  right: auto;
  left: 1rem;
}

.welcome-modal-title {
  color: var(--main-color);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.welcome-modal-body {
  padding: 0 2rem 1.5rem;
  text-align: center;
}

.welcome-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.welcome-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  z-index: 10;
}

.welcome-offer-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.welcome-offer-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.welcome-modal-footer {
  padding: 0 2rem 2rem;
}

.welcome-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.welcome-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-modal-container {
    max-width: 95%;
  }

  .welcome-modal-title {
    font-size: 1.5rem;
  }

  .welcome-modal-body {
    padding: 0 1.5rem 1.5rem;
  }

  .welcome-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .welcome-modal-footer {
    padding: 0 1.5rem 1.5rem;
  }

  .welcome-offer-title {
    font-size: 1.5rem;
  }

  .welcome-offer-desc {
    font-size: 0.95rem;
  }

  .welcome-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .welcome-modal-title {
    font-size: 1.3rem;
  }

  .welcome-offer-title {
    font-size: 1.3rem;
  }

  .welcome-badge {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .welcome-btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .welcome-image-wrapper {
    height: 160px;
  }
}

/* Free Badge Styling for Zero-Price Extras */
.free-badge {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025rem;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
  display: inline-block;
  line-height: 1.2;
}

.free-badge:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Mobile Responsiveness for New Modal Design */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    top: 0;
    bottom: 80px;
    height: auto;
  }

  .modal-container {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 1rem 1rem 0 0;
    margin: 0;
    box-shadow: none;
  }

  .modal-product-title-top {
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 0.6rem 1rem 0.5rem;
  }

  .modal-tagline {
    font-size: 1rem;
    margin: -0.5rem 0 0.75rem;
  }

  .modal-price-row {
    padding: 0.5rem 1rem;
    margin: 1rem 0;
  }

  .price-left,
  .product-name-right {
    font-size: 1.1rem;
  }

  .modal-content {
    padding: 0.75rem;
  }

  .variant-pills-container {
    gap: 0.4rem;
  }

  .variant-pill,
  .choice-pill,
  .extra-pill {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .modal-action-bar {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .add-to-cart-btn-new {
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
  }

  .quantity-selector-inline {
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
  }

  .quantity-selector-inline .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .quantity-selector-inline .quantity-value {
    min-width: 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-product-title-top {
    font-size: 1.2rem;
  }

  .variant-pill,
  .choice-pill,
  .extra-pill {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  .pill-price {
    font-size: 0.8rem;
  }
}