/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Baloo 2";
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  background: transparent;
  color: #dc143c;
  line-height: 1;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: -1;
}

.main-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== LOADING & ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scrollHorizontal {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-column: 1 / -1;
  min-height: 300px;
  width: 100%;
  text-align: center;
  color: #dc143c;
}

.loading-spinner {
  font-size: 2rem;
  margin-bottom: 15px;
}

.loading-text {
  font-size: 1rem;
  font-weight: 500;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(220, 20, 60, 0.2);
  border-top: 2px solid #dc143c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== NAVBAR & NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: #dc143c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  padding: 0 25px;
  border-radius: 0 0 2px 2px;
  border-bottom: 1px solid rgba(220, 20, 60, 0.5);
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #dc143c 0%, #a80d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0;
}

.login-logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0;
}

.felix-img {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  border-radius: 50%;
}

/* ===== CUSTOM IMAGE STYLES ===== */

.nav-options {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: 40px;
  margin-right: auto;
}

.nav-options li {
  padding: 10px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: none;
}

.nav-options li:hover {
  color: #dc143c;
  background: rgba(220, 20, 60, 0.2);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.15);
}

.nav-options li i {
  margin-right: 6px;
  font-size: 0.9rem;
}

.navbar-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-size: 9.2px;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-btn i {
  font-size: 14px;
}

.playstore-btn {
  background: linear-gradient(45deg, #34a853, #4285f4);
}

.playstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.appstore-btn {
  background: #000000;
}

.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== NAVBAR BUTTONS & DROPDOWNS ===== */
.menu-btn {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border: none;
  color: #444444;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.mobile-app-btn,
.country-btn {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border: none;
  color: #dc143c;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-app-btn:hover,
.country-btn:hover,
.menu-btn:hover {
  background: rgba(220, 20, 60, 0.2);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.15);
}

.country-dropdown {
  position: relative;
  display: inline-block;
}

.country-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.country-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.country-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.country-menu a:hover {
  background: rgba(220, 20, 60, 0.08);
  color: #dc143c;
  padding-left: 15px;
}

.country-menu a i {
  font-size: 0.9rem;
  color: #000000;
  width: 16px;
  text-align: center;
}

.country-menu a:hover i {
  color: #dc143c;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #333;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 220px;
  display: none;
  overflow: hidden;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(220, 20, 60, 0.05);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(220, 20, 60, 0.08);
  color: #dc143c;
  padding-left: 25px;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* ===== LOGIN MODAL ===== */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.login-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-modal-content {
  position: relative;
  z-index: 3001;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(220, 20, 60, 0.1);
  animation: modalSlideUp 0.4s ease;
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(220, 20, 60, 0.1);
  color: #dc143c;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3002;
}

.login-modal-close:hover {
  background: rgba(220, 20, 60, 0.2);
  transform: scale(1.1);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h2 {
  color: #dc143c;
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-header p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.login-option-btn {
  padding: 18px 24px;
  border: 2px solid rgba(220, 20, 60, 0.15);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: white;
}

.login-option-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.google-btn {
  color: #333;
  border-color: rgba(66, 133, 244, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.google-btn:hover {
  background: rgba(66, 133, 244, 0.05);
  border-color: rgba(66, 133, 244, 0.4);
}

.google-btn i {
  color: #4285f4;
  font-size: 1.2rem;
}

.apple-btn {
  color: #333;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.apple-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.3);
}

.apple-btn i {
  color: #000000;
  font-size: 1.2rem;
}

.login-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 20, 60, 0.1);
}

.login-footer p {
  color: #888;
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-footer a {
  color: #dc143c;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ===== CONTENT AREA & LAYOUT ===== */
.content-area {
  flex: 1;
  min-width: 0;
}

.content-container {
  padding: 8px 25px 25px 5px;
  min-height: calc(100vh - 150px);
  width: calc(100% - 380px);
}

.scroll-container-wrapper {
  display: flex;
  align-items: stretch;
  margin-bottom: 20px;
  height: 100dvh;
}

.blank-sidebar {
  width: 190px;
  margin-right: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 520px;
  max-height: 680px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px 20px 20px 20px;
  border: 1px solid rgba(220, 20, 60, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scroll-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 95dvh;
  max-height: 98dvh;
  flex: 1;
}

.sticky-heading {
  background: rgb(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  color: #dc143c;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 20, 60, 0.1);
}

.sticky-heading i {
  font-size: 1.1rem;
}

.vertical-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: flex-start;
  scroll-behavior: smooth;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  padding: 20px;
  box-shadow:
    0 10px 30px rgba(220, 20, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  height: 320px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(220, 20, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card:hover .card-label {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px 10px 10px;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 70%,
    transparent 100%
  );
}

.merchant-header {
  font-weight: 700;
  color: #dc143c;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 20, 60, 0.1);
}

.page-no {
  background: rgba(255, 255, 255, 0.8);
  color: #dc143c;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(241, 241, 241, 0.3);
  display: flex;
  align-items: center;
  user-select: none;
  gap: 4px;
}

.page-no i {
  font-size: 0.8rem;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  transition: all 0.4s ease;
  z-index: 1;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 12px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid rgba(220, 60, 20, 0.8);
  opacity: 0;
}

.info-row {
  margin-bottom: 12px;
  border: none;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  border: none;
}

.info-icon {
  width: 16px;
  color: #dc143c;
  font-size: 0.9rem;
  text-align: center;
}

.merchant-name {
  font-weight: 700;
  color: #dc143c;
  font-size: 0.95rem;
  line-height: 1.3;
}

.state {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.3;
}

.expiry-date {
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.3;
}

.card-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #dc143c;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 3;
  transition: all 0.3s ease;
  opacity: 0.9;
  border: 1px solid rgba(220, 20, 60, 0.1);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
  white-space: nowrap;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
  position: fixed;
  right: 0;
  top: 75px;
  height: calc(100vh - 72px);
  width: 380px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* border-left: 1px solid rgba(220, 20, 60, 0.1); */
  border-radius: 5px 5px 5px 5px;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  max-height: 100%;
}

.chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-header {
  background: #ffffff;
  backdrop-filter: blur(15px);
  color: #dc143c;
  padding: 10px 5px;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid rgba(220, 20, 60, 0.1);
  flex-shrink: 0;
  height: 60px;
}

.chat-header h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.2rem;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.chat-clear-btn {
  background: transparent;
  border: none;
  color: #dc143c;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.chat-clear-btn:hover {
  transform: scale(1.1);
}

.chat-clear-btn:active {
  transform: scale(0.5);
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 40px;
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.chat-body {
  padding: 25px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(220, 20, 60, 0.05);
  border-radius: 8px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(220, 20, 60, 0.15);
  border-radius: 8px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.message.received {
  align-items: flex-start;
}

.message.sent {
  margin-left: auto;
  align-items: flex-end;
}

.message-content {
  padding: 14px 18px;
  border-radius: 20px;
  word-wrap: break-word;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.message.received .message-content {
  background: rgba(240, 245, 255, 0.7);
  color: #333;
  border-bottom-left-radius: 6px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

.message.sent .message-content {
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: #dc143c;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 20px;
  text-align: right;
}

.message-time {
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
  padding: 0 6px;
}

.bullet-point {
  margin: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  color: #444;
}

.bullet-point:before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #dc143c;
  font-weight: bold;
  font-size: 1.2em;
}

.deal-alert {
  font-weight: 700;
  color: #dc143c;
  margin-bottom: 12px;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-footer {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(220, 20, 60, 0.1);
  font-style: italic;
  color: #666;
  font-size: 0.9em;
}

.suggestion {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(220, 20, 60, 0.15);
  font-weight: 500;
  color: #333;
  font-size: 0.95em;
}

.regular-text {
  margin-bottom: 8px;
  line-height: 1.5;
}

.valid-till {
  color: #dc143c !important;
  font-weight: 500;
}

.chat-input {
  padding: 15px 25px;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(220, 20, 60, 0.1);
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.chat-input input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid rgba(220, 20, 60, 0.08);
  border-radius: 40px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.chat-input input:focus {
  border-color: #dc143c;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.chat-input button {
  background: rgba(220, 20, 60, 0.08);
  backdrop-filter: blur(10px);
  color: #dc143c;
  border: 1px solid rgba(220, 20, 60, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-input button:hover {
  background: rgba(220, 20, 60, 0.3);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
}

/* ===== FULL WIDTH SECTION & FEATURES ===== */
.full-width-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #dc143c;
  padding: 0;
  margin: 0;
  border-radius: 25px;
  text-align: center;
  scroll-behavior: smooth;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.full-width-section h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 800;
}

.full-width-section p {
  max-width: 900px;
  margin: 0 auto 35px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.image-scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding: 10px 20px;
  width: 100%;
}

[dir="rtl"] .image-scroll-wrapper {
  direction: rtl;
}

.image-scroll {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollHorizontal 40s linear infinite;
}

.image-scroll img {
  width: fit-content;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-scroll img:hover {
  transform: scale(1.08);
}

.image-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.image-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.feature {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px 25px;
  border-radius: 22px;
  width: 260px;
  transition: all 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.feature:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 35px rgba(220, 20, 60, 0.15);
}

.feature i {
  font-size: 2.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #dc143c 0%, #a80d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #dc143c;
}

.feature p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  color: #888;
  text-align: center;
  padding: 23.5px 20px;
  font-size: 0.95rem;
  margin-top: 35px;
  border-top: 1px solid rgba(220, 20, 60, 0.1);
  width: calc(100% - 380px);
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  position: relative;
  color: #a80d2d;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.footer-links a:hover {
  transform: scale(1.05);
  color: #dc143c;
}

.footer-text {
  margin: 4px 0;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2001;
  background: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 10px;
  max-width: 95%;
  height: 100%;
  max-height: 100%;
  width: 92%;
  display: flex;
  flex-direction: row;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(220, 20, 60, 0.2);
  animation: modalSlideIn 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(220, 20, 60, 0.9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2002;
}

.modal-close:hover {
  background: #dc143c;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.modal-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(220, 20, 60, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2002;
  opacity: 0.7;
}

.modal-nav:hover {
  background: rgba(220, 20, 60, 1);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.prev-btn {
  left: 0px;
  justify-content: center;
  align-items: center;
  top: 35%;
}

.next-btn {
  right: calc(20px + 60px);
  justify-content: center;
  align-items: center;
  top: 35%;
}

.image-container {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 15px;
  background: rgb(255, 255, 255);
  padding: 5px;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 20, 60, 0.3) rgba(0, 0, 0, 0.05);
}

.image-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.image-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.image-container::-webkit-scrollbar-thumb {
  background: rgba(220, 20, 60, 0.3);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.image-container::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 20, 60, 0.5);
}

.image-container::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0 15px 0 0;
}

#modalImage {
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  transform-origin: top;
  user-select: none;
  pointer-events: none;
}

.controls-panel {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  margin-left: 10px;
}

.image-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgb(255, 255, 255);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 15px;
  padding: 20px 15px;
  width: 100%;
  text-align: center;
}

#imageCounter {
  font-weight: 600;
  color: #dc143c;
}

.zoom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-radius: 15px;
  padding: 20px 15px;
  width: 100%;
}

#zoomLevel {
  color: #dc143c;
}

.zoom-btn {
  color: #dc143c;
  background-color: white;
  width: 50px;
  border-radius: 30%;
  box-shadow: 0 8px 20px rgb(228 228 228);
  border: none;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.zoom-btn:hover {
  background: rgba(220, 20, 60, 0.05);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.sticky-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-button {
  background: rgba(220, 20, 60, 0.1);
  border: none;
  color: #dc143c;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(220, 20, 60, 0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.heading-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vertical-scroll {
  padding: 0;
  display: block;
  overflow-x: hidden;
}

.deals-search-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  position: relative;
  margin-right: 20px;
}

.deals-search-input {
  padding: 8px 15px 8px 40px;
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 25px;
  background: #ffffff;
  color: #333;
  font-size: 0.9rem;
  width: 250px;
  transition: all 0.3s ease;
  outline: none;
}

.deals-search-input:focus {
  border-color: rgba(220, 20, 60, 0.4);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
  width: 300px;
}

.deals-search-container .search-icon {
  position: absolute;
  left: 15px;
  color: #dc143c;
  font-size: 0.9rem;
}

.deal-card.high-match {
  border-left: 3px solid #dc143c;
  background: linear-gradient(to right, rgba(220, 20, 60, 0.04), #ffffff);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
}

.deal-card.mid-match {
  border-left: 3px solid #ff9800;
  background: linear-gradient(to right, rgba(214, 161, 95, 0.04), #ffffff);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.08);
}

.deal-card.low-match {
  border-left: 3px solid #d1d5db;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.02), #ffffff);
  opacity: 0.9;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  font-weight: 300;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.7rem;
  color: #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.suggestion-item:hover {
  background-color: rgba(220, 20, 60, 0.08);
  color: #dc143c;
}

.suggestion-popularity {
  font-size: 0.8rem;
  color: #888;
  background: rgba(220, 20, 60, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ddd;
}

.no-results h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #666;
}

.no-results p {
  color: #888;
}

.sticky-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-button {
  background: rgba(220, 20, 60, 0.1);
  border: none;
  color: #dc143c;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(220, 20, 60, 0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.heading-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.deals-search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9em;
  color: #444;
}

.suggestion-item:hover {
  background-color: rgba(220, 20, 60, 0.08);
  color: #dc143c;
}

.deals-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 15px;
  padding: 20px 0;
  width: 100%;
}

.deal-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(220, 20, 60, 0.1);
  display: flex;
  flex-direction: row;
  height: 150px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  gap: 20px;
  width: 100%;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(220, 20, 60, 0.05);
}

.deal-image-container {
  flex: 0 0 90px 0;
  height: fit-content;
  border-radius: 12px;
  overflow: hidden;
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-image {
  width: 100%;
  max-width: 180px;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.deal-card:hover .deal-image {
  transform: scale(1.05);
}

.no-deal-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 20, 60, 0.3);
  font-size: 2.5rem;
}

@keyframes slideToDeals {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.deal-alert {
  animation: slideToDeals 0.5s ease-in-out;
  cursor: pointer;
}

.deal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 5px 0;
}

.deal-merchant {
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc143c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.deal-product-name {
  font-size: 0.8rem;
  max-width: 88%;
  color: #444;
  line-height: 1;
  margin-bottom: 10px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.offer-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #2ecc71;
  display: flex;
  align-items: center;
  gap: 8px;
}

.regular-price {
  font-size: 0.85rem;
  color: #888;
  text-decoration: line-through;
}

.deal-expiry {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.deal-expiry i {
  color: #dc143c;
  font-size: 0.9rem;
}

.deal-favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.deal-favorite-btn:hover {
  transform: scale(1.1);
  border-color: rgba(220, 20, 60, 0.4);
}

.deal-favorite-btn.favorited {
  border-color: #dc143c;
}

.deal-favorite-btn.favorited i {
  color: #dc143c;
}

.deal-favorite-btn i {
  font-size: 1.2rem;
  color: #999;
  transition: all 0.3s ease;
}

.deal-favorite-btn:hover i {
  color: #dc143c;
}

.deal-details-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

.price-weight-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.price-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.deal-weight {
  background: rgba(220, 20, 60, 0.08);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #dc143c;
  font-weight: 500;
  margin-left: 10px;
  white-space: nowrap;
  align-self: flex-start;
}

/* ===== DEAL MODAL ===== */
.deal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  animation: fadeIn 0.3s ease;
}

.deal-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.deal-modal-content {
  position: relative;
  z-index: 2501;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(220, 20, 60, 0.1);
  animation: modalSlideUp 0.4s ease;
  padding: 30px;
}

.deal-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deal-modal-image-container {
  position: relative;
  background: #f5f5f5;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-image-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 70%;
  height: 100%;
  opacity: 0.5;
  z-index: 1;
}

.deal-image-wrapper {
  position: absolute;
  right: 8%;
  top: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
}

.deal-modal-flyer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.deal-modal-image {
  width: 80%;
  height: 70%;
  object-fit: contain;
  background: transparent;
}

@keyframes slideInRight {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.deal-image-wrapper.full-width {
  width: 100% !important;
  right: auto;
  left: 0;
}

.deal-modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-modal-merchant {
  font-size: 0.9rem;
  font-weight: 600;
  color: #dc143c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deal-modal-product {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.deal-modal-price-section {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
}

.deal-modal-offer-price {
  font-size: 1rem;
  font-weight: 500;
  color: #2ecc71;
}

.deal-modal-regular-price {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
}

.deal-modal-weight {
  padding: 0;
  margin-left: auto;
  font-size: 0.9rem;
  color: #dc143c;
  display: inline-block;
  align-self: flex-start;
}

.deal-modal-expiry {
  font-size: 0.95rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.deal-modal-expiry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #666;
}

.deal-modal-page {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666666;
  font-size: 0.95rem;
}

.deal-modal-page i {
  color: #dc143c;
}

.deal-modal-expiry i {
  color: #dc143c;
}

.deal-modal-favorite-btn {
  background: rgb(255, 255, 255);
  color: #dc143c;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 25px 60px rgba(91, 91, 91, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.deal-modal-favorite-btn:hover {
  color: #dc143c;
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(220, 20, 60, 0.15);
}

.deal-modal-favorite-btn.favorited {
  background: #dc143c;
  color: white;
}

.wishlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
}

.empty-wishlist {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #dc143c;
}

.empty-wishlist i {
  font-size: 3rem;
  opacity: 0.8;
}

.empty-wishlist h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.empty-wishlist p {
  color: #666;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.back-to-flyers-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(220, 20, 60, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 14px;
  font-weight: 500;
}

.back-to-flyers-btn i {
  font-size: 14px;
  line-height: 1;
}

.fa-solid,
.fas {
  font-size: 1rem;
  font-weight: 900;
}

.vertical-scroll:has(.deals-container) {
  grid-template-columns: 1fr;
  padding: 0;
}

.vertical-scroll:not(:has(.deals-container)):not(:has(.wishlist-container)) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .deals-container,
  .wishlist-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .right-sidebar {
    width: 340px;
  }

  .navbar {
    width: 100%;
  }

  .content-container {
    width: calc(100% - 340px);
  }

  footer {
    width: calc(100% - 340px);
  }

  .vertical-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .deals-container,
  .wishlist-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .deal-card {
    height: auto;
    gap: 8px;
  }

  .deal-image-container {
    flex: 0 0 90px;
    height: fit-content;
  }

  .main-wrapper {
    flex-direction: column;
  }

  .right-sidebar {
    position: static;
    width: 100%;
    height: 500px;
    margin-top: 30px;
  }

  .navbar {
    width: 100%;
    padding: 0 20px;
    height: 60px;
  }

  .content-container {
    width: 100%;
    padding: 8px;
  }

  .nav-options {
    gap: 12px;
  }

  .nav-options li {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .vertical-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .card {
    min-width: 260px;
    padding: 22px;
    height: 350px;
  }

  .full-width-section {
    margin: 0;
    padding: 0;
  }

  .features {
    gap: 20px;
  }

  .feature {
    width: 100%;
    max-width: 320px;
  }

  footer {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 8px;
  }

  .image-container {
    min-height: 300px;
  }

  #modalImage {
    max-height: 55vh;
  }
}

@media (max-width: 768px) {
  .deals-container,
  .wishlist-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .deal-card {
    height: auto;
    padding: 8px;
  }

  .deal-image-container {
    flex: 0 0 80px;
    height: fit-content;
  }

  .deal-product-name {
    font-size: 1rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .offer-price {
    font-size: 1.2rem;
  }

  .deals-search-input {
    width: 180px;
  }

  .deals-search-input:focus {
    width: 220px;
  }

  .deals-search-container {
    margin-right: 10px;
  }

  .nav-options {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
  }

  .sticky-heading {
    font-size: 1.3rem;
    padding: 8px 22px;
  }

  .content-container {
    padding: 15px;
  }

  .card {
    min-width: 250px;
    height: 340px;
  }

  .full-width-section h2 {
    font-size: 1.8rem;
  }

  .right-sidebar {
    height: 450px;
  }

  .vertical-scroll {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .modal-content {
    width: 98%;
    padding: 5px;
  }

  .zoom-btn {
    width: 45px;
    height: 45px;
  }

  .image-container {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .deal-card {
    height: auto;
    gap: 12px;
    padding: 6px;
  }

  .deal-image-container {
    flex: 0 0 70px;
    height: fit-content;
  }

  .deal-product-name {
    font-size: 0.95rem;
  }

  .deal-favorite-btn {
    width: 35px;
    height: 35px;
    top: 12px;
    right: 12px;
  }

  .deal-favorite-btn i {
    font-size: 1rem;
  }

  .navbar {
    padding: 0 15px;
    height: 60px;
    width: 100%;
  }

  .logo {
    font-size: 1.4rem;
    gap: 8px;
  }

  .menu-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .content-container {
    padding: 12px;
  }

  .sticky-heading {
    font-size: 1.2rem;
    padding: 6px 20px;
  }

  .vertical-scroll {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .card {
    min-width: 240px;
    padding: 20px;
    height: 330px;
  }

  .right-sidebar {
    height: 420px;
  }

  .chat-body {
    padding: 20px;
  }

  .full-width-section {
    padding: 0;
  }

  .feature {
    padding: 25px 20px;
  }
}
