body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff5f2;
  color: #000;
  padding: 0 4px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 1100;
  box-shadow: 0 2px 6px rgb(0, 255, 162);
  border-bottom: 3px solid #00ff00;
}
.logo {
  font-size: 25px;
  font-weight: bold;
  white-space: nowrap;
  text-align: right;
  flex: 0;
}

@media (max-width: 768px) {
  .logo {
    text-align: center;
    flex: 100%;
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ff4747;
}

.menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000000;
  border-radius: 3px;
  transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    transition: color 0.3s, background 0.3s;
  }

  .nav-links a:hover {
    color: #ffffff;
    background-color: #007bff;
    border-radius: 5px;
    padding-left: 10px;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    background: #ffffff;
    flex-direction: column;
    width: 200px;
    height: 100vh;
    padding: 20px;
    transition: 0.3s;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn {
    display: flex;
    z-index: 99999;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

.site-footer {
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 48px 10px 10px;
  box-sizing: border-box;
}

:root {
  --ft-bg: #122539;
  --ft-muted: #1b263b;
  --ft-text: #f8f9fa;
  --ft-sub: #aebacb;
  --ft-accent: #ffd60a;
  --ft-border: #415a77;
  --ft-link: #ffd60a;
  --ft-link-hover: #ff4d4d;
}

.site-footer {
  background: var(--ft-bg);
  color: var(--ft-text);
  padding: 48px 10px 10px;
  border-top: 1px solid var(--ft-border);
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  width: 100%;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ft-accent);
}

.site-footer__top {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

.site-footer__brand .site-footer__logo {
  display: inline-block;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ft-accent), #ff2a55);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffff;
}

.site-footer__desc {
  color: var(--ft-sub);
  margin: 10px 0 16px;
  line-height: 1.8;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--ft-muted);
  border: 1px solid var(--ft-border);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  margin-inline-end: 8px;
}
.site-footer__social a:hover {
  transform: translateY(-2px);
  border-color: var(--ft-accent);
}
.site-footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer__links h3,
.site-footer__contact h3,
.site-footer__newsletter h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--ft-text);
}

.site-footer__links ul,
.site-footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li,
.site-footer__contact li {
  margin: 10px 0;
  color: var(--ft-sub);
}

.site-footer__newsletter p {
  color: var(--ft-sub);
  margin: 6px 0 12px;
}

.site-footer__form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--ft-muted);
  border: 1px solid var(--ft-border);
  padding: 8px;
  border-radius: 14px;
}
.site-footer__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ft-text);
  padding: 10px 8px;
  font-family: inherit;
}
.site-footer__form input::placeholder {
  color: #7f86a6;
}
.site-footer__form button {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ft-accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.site-footer__form button:hover {
  filter: brightness(1.05);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px dashed var(--ft-border);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer__bottom p {
  margin: 0;
  color: var(--ft-sub);
}

.site-footer__legal {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.site-footer__legal a {
  color: var(--ft-sub);
}
.site-footer__legal a:hover {
  color: var(--ft-accent);
}

@media (max-width: 992px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 40px 16px 16px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
  }

  .site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: center;
  }

  .site-footer__top > div {
    width: 100%;
  }

  .site-footer__social {
    display: flex;
    justify-content: center;
  }

  .site-footer__bottom {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 8px;
  }
}
.intro {
  min-height: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.intro {
  background: radial-gradient(
      400px 200px at 10% -10%,
      #f4f0ff 30%,
      transparent 31%
    ),
    radial-gradient(300px 150px at 110% 20%, #ccfffb 30%, transparent 31%),
    linear-gradient(135deg, #fff0f0, #ffcccc);
}

@media (max-width: 768px) {
  .intro {
    background: radial-gradient(
        300px 150px at 10% -10%,
        #fff7f0 30%,
        transparent 31%
      ),
      radial-gradient(225px 125px at 110% 20%, #ffe0cc 30%, transparent 31%),
      linear-gradient(135deg, #fff7f0, #ffe0cc);
  }
}

.fikra {
  font-weight: 1000;
  letter-spacing: 1.5px;
  line-height: 1.1;
  font-size: clamp(24px, 6vw, 60px);
  background: linear-gradient(90deg, #ff6161, #6de9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: floatText 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .intro {
    padding: 15px 10px;
    min-height: 50vh;
  }
  .fikra {
    font-size: clamp(22px, 10vw, 50px);
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 10px 5px;
    min-height: 40vh;
  }
  .fikra {
    font-size: clamp(18px, 12vw, 40px);
  }
}

.intro img {
  max-width: 80%;
  height: auto;
}

.doodle {
  position: absolute;
  pointer-events: none;
  stroke: #064232;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  animation: floatShape var(--dur, 6s) ease-in-out infinite;
}
@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

.doodle.ring {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 12%;
  --dur: 6s;
}
.doodle.star {
  width: 60px;
  height: 60px;
  bottom: 18%;
  right: 12%;
  --dur: 7s;
}
.doodle.tri {
  width: 50px;
  height: 50px;
  top: 22%;
  right: 20%;
  --dur: 5.5s;
}
.doodle.plus {
  width: 40px;
  height: 40px;
  bottom: 20%;
  left: 18%;
  --dur: 6.5s;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08) 0 2px,
    rgba(255, 255, 255, 0) 2px 4px
  );
  opacity: 0.25;
  pointer-events: none;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, minmax(162px, 1fr));
    gap: 12px;
    padding: 15px;
  }
}
@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, minmax(162px, 1fr));
    gap: 12px;
    padding: 15px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1201px) {
  .products {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: scale(1.05);
}
@media (hover: none) {
  .card:hover {
    transform: none !important;
  }
}
@media (max-width: 768px) and (max-width: 600px) {
  .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}
.card p {
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}
.card {
  overflow: hidden;
}

.card img {
  object-fit: cover;
  transition: transform 0.9s ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover img {
    transform: scale(1.02);
  }
}

.loading {
  display: none;
  text-align: center;
  font-size: 16px;
  color: #333;
}
.cart-icon {
  font-size: 20px;
  text-decoration: none;
  color: #000;
  position: absolute;
  top: 12px;
}

.cart-icon span {
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  margin-right: 4px;
}

@media (min-width: 769px) {
  .cart-icon {
    left: 20px;
    right: auto;
  }
}
.popup img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .popup img {
    max-height: 200px;
  }
}
.popup img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .cart-icon {
    right: 20px;
    left: auto;
  }
}
.related-products {
  margin-top: 20px;
}

.related-products h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.related-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.related-item img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 5px;
}

.related-item:hover {
  transform: scale(1.05);
  border-color: #ddd;
}
.back-btn {
  padding: 10px 20px;
  background: #f57c00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn:hover {
  background: #ff914d;
}

.share-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  text-align: right;
}

.share-title {
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
  font-weight: bold;
}

.share-icons {
  display: flex;
  gap: 8px;
}

.share-icons a img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.share-icons a:hover img {
  transform: scale(1.2);
}

.features {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.feature {
  text-align: center;
  max-width: 800px;
}

.feature img {
  width: 700px;
  height: 700px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .features {
    margin-bottom: 50px;
  }
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #333;
}
.card button {
  padding: 8px 15px;
  border: none;
  background: #ff6f91;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-page {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
  flex: 1;
}
.features img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.popup-details {
  overflow-y: auto;
}
.related-item:hover img {
  transform: scale(1.05);
}
.price {
  font-size: 20px;
  font-weight: bold;
  color: #27ae60;
  margin: 10px 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}

.quantity-control button {
  padding: 8px 15px;
  font-size: 18px;
  cursor: pointer;
}

.add-btn {
  position: relative;
  background: #4a6cf7 !important;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;

  margin-top: -11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.add-btn:hover {
  background: #3a57d6 !important;
}

@media (max-width: 768px) {
  .popup-grid {
    grid-template-columns: 1fr;
  }
  .popup-details {
    margin-top: 15px;
  }
}
.related-products {
  margin-top: 30px;
}

.related-products h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.related-item {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: scale(1.05);
}

.related-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .related-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .related-item img {
    height: 120px;
  }
  .related-item {
    border: 1px solid #ddd;
    padding: 5px;

    border-radius: 20zpx;
  }

  .related-item:hover {
    transform: none;
  }
}

.products .card a {
  text-decoration: none;
  color: inherit;
}

.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 9999;
}

.bottom-navbar .nav-item {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  text-align: center;
  flex: 1;
  position: relative;
}

.bottom-navbar .nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.bottom-navbar .cart-badge {
  position: absolute;
  top: 2px;
  right: 25%;
  background: #002244;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .bottom-navbar {
    display: none;
  }
}

.notification-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  padding: 14px 25px;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  font-weight: bold;
  z-index: 999999;
  text-align: center;
  min-width: 250px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.notification-bar .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #fff;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 7s linear;
}
.animated-underline {
  display: inline-block;
  position: relative;
  font-size: 28px;
  margin: 20px auto;
  color: #333;
  text-align: center;
}

.animated-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 4px;
  background-color: #ff7e5f;
  animation: moveColors 3s infinite;
}

@keyframes moveColors {
  0% {
    width: 0;
    background-color: #ff7e5f;
  }
  40% {
    width: 100%;
    background-color: #ff7e5f;
  }
  60% {
    background-color: #ffd1b3;
  }
  80% {
    background-color: #ffe680;
  }
  100% {
    width: 0;
    background-color: #ff7e5f;
  }
}
.intro {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(80px, 22vh, 160px) 16px;
  background: linear-gradient(
    135deg,
    #cce6ff 0%,
    #e3f0ff 35%,
    #ffe6eb 70%,
    #ffccd5 100%
  );
}

@keyframes floatText {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.intro {
  min-height: 25vh;
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.doodle {
  position: absolute;
  pointer-events: none;
  stroke: #064232;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  animation: floatShape var(--dur, 6s) ease-in-out infinite;
}
@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

.doodle.ring {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 12%;
  --dur: 6s;
}
.doodle.star {
  width: 90px;
  height: 90px;
  bottom: 18%;
  right: 12%;
  --dur: 7s;
}
.doodle.tri {
  width: 70px;
  height: 70px;
  top: 22%;
  right: 20%;
  --dur: 5.5s;
}
.doodle.plus {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 18%;
  --dur: 6.5s;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08) 0 2px,
    rgba(255, 255, 255, 0) 2px 4px
  );
  opacity: 0.25;
  pointer-events: none;
}

.discover-btn {
  margin-top: 14px;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 999px;
  background: #064232;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.discover-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.discover-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.discover-box {
  width: 380px;
  padding: 40px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  backdrop-filter: blur(12px);
  color: #222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: pop 1.5s ease forwards;
}

.discover-box:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.discover-box h1 {
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #ff4a70;
  font-family: "Cairo", sans-serif;
  font-weight: bold;
}

.discover-btn {
  padding: 14px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #ff6f91, #ff9671);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 105, 135, 0.4);
}

.discover-btn:hover {
  background: linear-gradient(45deg, #ff4a70, #ff6f91);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 75, 100, 0.5);
}
.add-to-cart {
  position: relative;
  background-color: #4a6cf7 !important;
  color: rgb(255, 255, 255);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: #3a57d6 !important;
  color: rgb(255, 255, 255);
}

@media (max-width: 768px) {
  .add-to-cart {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 5px;
  }
}
.quantity-box {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: sans-serif;
}

.box-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
}

.box-number {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 18px;
}

.fav-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}
.fav-btn.active {
  background: #ff4d4d;
  color: #fff;
}
.fav-text {
  text-align: right;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  margin-top: 10px;
}
.fav-text:hover {
  color: #ff4d4d;
}
.fav-text.active {
  color: #ff4d4d;
  font-weight: bold;
}
#popupImageMain {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}

.popup-image {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

#popupThumbnails {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 5px 0 !important;
  max-width: 90% !important;
  margin: 0 !important;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  color: #333;
}
.card {
  position: relative;
  overflow: hidden;
}

.discount-ribbon {
  position: absolute;
  top: 10px;
  right: -40px;
  background: #e60023;
  color: #fff;
  padding: 6px 50px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(45deg);
  pointer-events: none;
  transition: transform 0.9s ease;
  z-index: 5;
}
.card:hover .discount-ribbon {
  transform: rotate(45deg) scale(1.05);
}
.popup-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.popup-img-box .discount-ribbon {
  position: absolute;
  top: 10px;
  right: -40px;
  background: #e60023;
  color: #fff;
  padding: 6px 50px;
  font-size: 16px;
  font-weight: bold;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 5;
  transition: transform 0.3s ease;
}

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: none;
}

.popup-arrow.left {
  right: 10px;
}

.popup-arrow.right {
 
   left: 10px;
}
