/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: "Poppins", "Cairo", Arial, sans-serif;
  background: #f9f9f9;
  color: #0e0d0d;
  padding-top: 0;
}

/* ===== HERO (Shopify-Style) ===== */
.hero-section {
  background: linear-gradient(
    135deg,
    #061934 0%,
    #1c2f4a 40%,
    #0a6586 100%
  );
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  padding: 13px 20px 18px;
  margin-bottom: 0px;
}

.logo {
  height: 70px;
  margin-bottom: 0px;
  padding-right: 34px;
}
.shop-title {
  margin-top: 0px;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #0b1a2a;
  text-align: center;
}

.shop-tagline {
  margin-top: 1px;
  font-family: "Cairo", sans-serif;
  font-size: 1.0rem;
  font-weight: 500;
  color: #4a5568;
  text-align: center;
  direction: rtl;
  letter-spacing: 0.3px;
}
h3 {
  margin: 0px 1px;
  font-size: 1.4rem;
  font-weight: 550;
  color: #000409;
  text-align: center;
  margin-top: 1px;
}

p {
  margin: 0px 1px;
  padding: 1px;
  font-size: 1.2rem;
  color: #0c0a0a;
  text-align: center;
  margin-top: 6px;
}

/* ===== PRODUCT GRID ===== */
.product-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 28px 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-price {
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.discount-label {
  color: #e11d48;
  font-size: 13px;
  font-weight: 550;
}

.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.details-price {
  font-weight: 520;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 1.3rem;
}

.details-discount-label {
  color: #e11d48;
  font-size: 14px;
  font-weight: 550;
}

.details-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}


.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h3 {
  color: black;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 6px 0;
}

.product-card p {
  font-size: 0.9rem;
  margin: 4px 0;
  color: #444;
}

/* ===== BUTTONS ===== */
button {
  padding: 8px 15px;
  font-size: 1.0rem;
  border-radius: 7px;
  border: 1px solid #010101;
  background: #ffffff;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin: 0px 4px;
}

button:hover {
  background: #05a0e8;
  color: #060303;
}

/* ===== DETAILS PAGE ===== */

.details-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

.details-container h1,
.details-container p,
.details-container .price {
  text-align: center;
}


.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

#carousel-image {
  width: 100%;
  max-width: 380px;
  height: 380px;
  object-fit: contain;
  border-radius: 12px;
  background: #f7f7f7;
}
.carousel button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.info-card {
  margin-top: 20px;
  color: #111;
  text-align: center;
}
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;

  background: linear-gradient(
    135deg,
    #061934 0%,
    #1c2f4a 40%,
    #0a6586 100%
  );

  text-align: center;
  padding: 13px 22px 1px;
  margin-bottom: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero-right {
  position: absolute;
  top: 16px;
  left: 20px;
}

.cart-icon {
  position: absolute;
  top: 10px;
  left: 18px;
  text-decoration: none;
}

.cart-icon img {
  width: 37px;
  height: auto;
  display: block;
  border-radius: 30px;
}

#cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cart-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  background: white;
  text-align: center;
}

.cart-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.cart-card h4 {
  font-size: 0.95rem;
  margin: 6px 0;
}

.cart-card p {
  font-size: 0.85rem;
  margin: 3px 0;
}

.cart-card {
  position: relative;
}

.remove-btn {
  position: absolute;
  top: 5px;
  left: 20px;

  background: #ffffff;
  color: #ff0000;

  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 29px;
  font-weight: 550;

  cursor: pointer;
  transition: all 0.2s ease;
  
}

.remove-btn:hover {
  background: #ffffff;
  transform: scale(1.10);
  color: red;
}

#total {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 10px 10px 10px 10px;
}

/* ===== CART ACTION BUTTONS ===== */




.buy-btn {
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  background: #0c68ab;
  color: rgb(255, 255, 255);
  border: none;
  padding: 7px 56px;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
}
.buy-btn:hover {
  background: #0cbbda;
}
#back-btn {
  display: block;
  margin: 0 auto;
    padding: 4px 16px;
    padding-bottom: 6px;
  font-size: 0.99rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 30px;
}
.back-btn:hover {
  background: red;
  }



.quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.variants button.active {
  background: black;
  color: white;
  border-color: black;
}
.product-card {
  cursor: pointer;
}
.menu-icon {
  position: fixed;
  top: 18px;
  right: 35px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 2001;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: min(32vw, 320px); /* ca. 1/3 der Seite, max 320px */
  height: 100vh;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.35s ease;
  z-index: 2002;
}

.side-menu.open {
  transform: translateX(0);
}


.side-menu a {
  font-size: 1.15rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.side-menu a:hover {
  color: #079cd3;
}

.close-menu {
  align-self: flex-end;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.close-menu {
  padding: 3px 6px 3px 6px;
  
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: all;
}
/* ===== STICKY HEADER SHRINK ===== */

.hero-section {
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.hero-section.shrink {
  padding: 8px 20px 1px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Logo schrumpft leicht */
.hero-section.shrink .logo {
  height: 62px;
  transition: height 0.25s ease;
}

.logo {
  transition: height 0.25s ease;
}
/* ===== HEADER FIX AUFHEBEN BEI OFFENEM MENU ===== */

body.menu-open .hero-section {
  position: relative;
  z-index: auto;
}

body.menu-open {
  padding-top: 0;
}
/* ===== CHECKOUT ===== */
.checkout-container {
  max-width: 420px;
  margin: 40px auto;
  background: white;
  padding: 28px 26px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#checkout-form input,
#checkout-form textarea {
  width: 94%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#checkout-form textarea {
  min-height: 90px;
  resize: vertical;
}

#checkout-form input:focus,
#checkout-form textarea:focus {
  border-color: #079cd3;
  box-shadow: 0 0 0 3px rgba(7,156,211,0.15);
}

/* ===== CHECKOUT RTL INPUT FIX (ARABIC) ===== */

#checkout-form input,
#checkout-form textarea {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", sans-serif;
}

/* Placeholder ebenfalls rechts */
#checkout-form input::placeholder,
#checkout-form textarea::placeholder {
  direction: rtl;
  text-align: right;
  color: #797f89; /* Shopify-like Grau */
}


/* Buttons */
.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.checkout-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

/* Confirm */
.checkout-actions button[type="submit"] {
  background: #079cd3;
  color: rgb(5, 5, 5);
}

.checkout-actions button[type="submit"]:hover {
  background: #0bb4e3;
}

/* Cancel */
#cancel-btn {
  background: #f3f4f6;
  color: #111;
}

#cancel-btn:hover {
  background: #f77070;
}
/* ===== SUCCESS PAGE ===== */

.success-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(
    180deg,
    #f5f7fa 0%,
    #eef2f6 100%
  );
}

.success-card {
  background: white;
  max-width: 460px;
  width: 100%;
  padding: 36px 30px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  animation: fadeUp 0.6s ease;
}

/* Check Icon */
.success-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(34,197,94,0.4);
}

.success-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #0b1a2a;
}

.success-text {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.success-info {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.success-info p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #111;
}

.success-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.success-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 16px;
  background: #079cd3;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.success-btn:hover {
  background: #0bb4e3;
  transform: translateY(-1px);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== SUCCESS ORDER SUMMARY ===== */

.order-box {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.order-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0b1a2a;
}

.order-number {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #4a5568;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
}

.order-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.order-item div {
  flex: 1;
  font-size: 0.9rem;
}

.order-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

.order-total {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
}
/* ===============================
   MOBILE COMPATIBILITY FIX
   (kein Design-Change)
================================ */
@media (max-width: 768px) {

  /* verhindert Mini-Skalierung */
  html {
    font-size: 16px;
  }

  body {
    padding-top: 110px; /* bleibt wie Desktop */
  }

  /* PRODUKTGRID:
     verhindert 30 Produkte auf einmal */
  .product-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* DETAILS: verhindert Überlaufen */
  .details-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Checkout bleibt zentriert */
  .checkout-container {
    width: calc(100% - 32px);
  }

  /* Side Menu bleibt nutzbar */
  .side-menu {
    width: min(50vw, 320px);
  }
}

/* EXTRA KLEINE HANDYS */
@media (max-width: 420px) {

  .product-container {
    grid-template-columns: 2fr;
  }

}



/* Preis-Zeilen */
#product-description .price-line {
  font-weight: 700;
  color: #065f46;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .product-description {
    padding: 16px;
  }


}
.quantity {
  padding:1px 10px 1px 63px;
  }





#product-price {
  margin-top: 1px;
  margin-bottom: 1px;
  color: #065f46;
}

/* Beschreibung Wrapper */
#product-description {
  margin: 18px auto;
  padding: 10px;
  max-width: 327px;
  background: linear-gradient(180deg, #f9fafb, #ffffff);
  border-radius: 18px;
  text-align: center;   /* BLOCK zentriert */
}

/* Text */
#product-description p {
  margin: 0 0 12px;
  line-height: 1.9;
  font-size: 0.95rem;
  color: #111;    /* Text bleibt arabisch korrekt */
}


#product-description .price-new {
  font-size: 1.05rem;
  font-weight: 700;
  color: #065f46 !important;

}

#product-description .price-old {
  display: inline-block;          /* 👈 extrem wichtig */
  font-size: 0.95rem;
  color: #b91c1c !important;
  line-height: 1.6;
  opacity: 0.85;

  background-image: linear-gradient(
    to bottom,
    transparent 50%,
    #b91c1c 50%,
    #b91c1c 56%,
    transparent 56%
  );
}

body {
  padding-top: 93px;
}


/* Feature Lines ✔️ */
.feature {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  padding: 10px 14px;
  border-radius: 12px;
  border-right: 2px solid #06b6d4;
  border-left: 2px solid #06b6d4;
  font-weight: 500;
}
/* ===== SHOPIFY-STYLE ANNOUNCEMENT BAR (FINAL) ===== */

.announcement-bar {
  width: 100%;
  background: linear-gradient(90deg, #7dd3fc, #c084fc);
}

/* innerer Streifen – DAS ist der Banner */
.announcement-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 6px 16px;          /* 🔑 Höhe ~1,3–1,5 cm */
  min-height: 42px;           /* Shopify-typisch */

  background: linear-gradient(90deg, #93c5fd, #a050f7);
  color: #fff;

  position: relative;
  font-size: 13px;
  line-height: 1.2;
}

/* Countdown links */
.announcement-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 600;
}

.announcement-timer span {
  font-size: 14px;
}

.announcement-timer small {
  font-size: 13px;
  opacity: 0.85;
}

/* Text rechts */
.announcement-text {
  flex: 1;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  font-size: 14px;
}

/* Close */
.announcement-close {
  position: absolute;
  top: 0px;
  left: 0px;
  background: none;
  border: none;
  color: #0a0a0a;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 5px;
}

/* RTL */
.announcement-rtl {
  direction: rtl;
}

/* Mobile – Shopify-like Wrap */
@media (max-width: 600px) {
  .announcement-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
  }

  .announcement-text {
    width: 100%;
    text-align: center;
  }

  .announcement-timer {
    justify-content: center;
    width: 100%;
  }

}
@media (max-width: 600px) {

  /* Carousel insgesamt etwas schmaler */
  .carousel {
    max-width: 380px;
  }

  /* Bild minimal verkleinern */
  #carousel-image {
    max-width: 380px;
    height: 380px;
  }

  /* Pfeile auf das Bild legen */
  .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    padding: 6px;
    border-radius: 50%;
    z-index: 2;
  }

  /* linker Pfeil */
  .carousel button:first-of-type {
    left: 5px;
  }

  /* rechter Pfeil */
  .carousel button:last-of-type {
    right: 5px;
  }
}


/* ===== DUFTNOTEN BILD ===== */

.notes-image {
  display: block;
  margin: 1px auto;
  max-width: 345px;
  width: 90%;
  height: auto;
  border-radius: 16px;
  padding: 10px;
  background-color: #ffffff;
}
.notes-image {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

/* ===== CART SUCCESS TOAST ===== */

.cart-toast {
  position: fixed;
  top: 79px;
  left: 20px;

  width: 300px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);

  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: "Cairo", sans-serif;
}

.cart-toast {
  pointer-events: none;   /* blockiert nichts */
}

.cart-toast.show {
  pointer-events: auto;   /* nur sichtbar klickbar */
}


.toast-message {
  font-size: 1.0rem;
  font-weight: 550;
  color: #1f2937;
}

.toast-check {
  width: 26px;
  height: 26px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.toast-x {
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
}

/* 🔥 Sichtbare Progress Bar */
.toast-progress {
  height: 3px;
  width: 100%;
  background:  #07d4df;
}

/* ===== TOAST CART BUTTON – PROPORTIONAL FIX ===== */

.toast-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;

  margin: 1px 14px 14px 14px;
  padding: 1px 1px;

  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 10px;

  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;

  transition: background 0.2s ease, transform 0.15s ease;
}

.toast-cart-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.toast-cart-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.variant-error {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1px;
  display: none;
  text-align: center;
  font-family: "Cairo", sans-serif;
}
