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

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}





/* HEADER & NAVIGATION BAR */
header {
  background: #022c19ea;
  color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
}

.logo{
  font-size: 1.7rem;
}



nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #FFD700;
}


/* Auth buttons */
.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn.primary-btn {
  background: #FF7A00;
  color: #fff;
}



.btn.primary-btn:hover {
  background: #022c19ea;
}

/* MOBILE MENU (SLIDE DRAWER) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Overlay behind drawer */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

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

/* Drawer container */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: #022c19ea;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 60px 25px;
  transition: right 0.67s ease;
  z-index: 999;
  border-radius: 10px;
}

.nav-drawer.active {
  right: 0;
}

/* Drawer Links */
.nav-drawer a {
  text-decoration: none;
  color: #fff;
  padding: 11px 0;
  font-weight: 400;
  font-size: 1.4rem;
  transition: color 0.3s;
  background-color: #022c19ea;
}

.nav-drawer a:hover {
  color: #FF7A00;
  transition: color 0.5s;
}

.close-drawer {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

.drawer-auth {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgb(255, 255, 255);
  font-size: 1.3rem;
  font-family: 'Gill Sans';
}

.drawer-auth .logout-btn{
  width: 200px;
}


/* Hide normal nav on mobile */
@media (max-width: 768px) {
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
  }

  .contact-info1 {
    display: none; /* hide contact on small screens */
  }

  .header-nav {
    display: none; /* hide default nav */
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo{
    font-size: 1rem;
  }
  
}


/* HERO SECTION */
.hero {
  width: 100%;
  height: 55vh;
  background-image: url("Img/delivery gut hero.jpg");
  background-repeat: repeat;       /* make image repeat */
  background-size: contain;        /* no zoom */
  background-position: top center;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Content inside hero */
.hero-content {
  width: 90%;
  max-width: 600px;
  margin: auto;
  color: #fff;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .hero {
    background-repeat: no-repeat;
    background-size: cover;     /* fill screen */
    background-position: center;
    height: 32vh;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }
}


/* SEARCH BOX INSIDE HERO */
.search-box {
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 21px;
  width: 80%;
  margin: 15px auto;
  text-shadow: 
    0 0 5px rgba(8, 8, 8, 0.8),
    0 0 10px rgba(221, 10, 10, 0.6),
    0 0 20px rgba(8, 223, 158, 0.4);

}



.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.2rem;
  background: transparent;
}

/* Make hero smaller on phones */
@media (max-width: 720px){
  .hero {
    padding: 12px;
    background-size: cover;
  }

  .hero-content h2 {
    font-size: 1.3rem;
    color: #131212;
    font-weight: 600;
    text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.4);

  }

  .hero-content p {
    font-size: 0.679rem;
    color: #fff;
  }

  .search-box {
    width: 60%;
    height: 30px;
    padding: 6px 8px;
  }

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


/* ================= CATEGORIES ================= */
.categories {
  margin-top: 1rem;
}

.category-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.8rem;
}


.cat-btn {
  background: #022c19ea;
  color: #fff;
  padding: 6px 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 200;
}

@media (max-width: 720px){
  .section-title {
    font-size: 1rem;
    
  }

  .cart-btn{
    font-size: 2rem;
    margin-top: -2rem;
  }
}

.categories {
  margin-top: 1rem;
}

.menu-grid {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.8rem;
}

/* CATEGORY BUBBLE */
.cat-btn {
  cursor: pointer;
  padding: 6px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;

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

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* IMAGE */
.cat-btn img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  border-radius: 50%;
}

/* HIDE TEXT BUT KEEP FOR JS */
.cat-btn span {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* HOVER EFFECT */
.cat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}

/* MOBILE */
@media (max-width: 720px) {
  .cat-btn {
    width: 58px;
    height: 58px;
  }

  .section-title {
    font-size: 1rem;
  }
}




/* CART BADGE */
#cartCount, #cartcountMobile {
  background: red;
  padding: 3px 7px;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
}


.add-to-cart {
  background: #fff;
  border: 1px solid green;
  padding: 8px 12px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}




/* MOBILE TikTok-Style Add to Cart BUTTON */
@media (max-width: 600px) {
  .add-to-cart {
    background: #fff;          /* TikTok orange */
    border: 1px solid green;
    padding: 4px 0;              /* Taller button */
    width: 30%;                  /* Full width inside card */
    font-size: 1rem;
    border-radius: 30px;          /* TikTok rounded pill shape */
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: 10px;
    transition: all 0.25s ease;
    box-shadow: 0px 4px 10px rgba(3, 3, 3, 0.3);
  }

  .add-to-cart:hover {
    background: #f2f2f2;
    box-shadow: 0px 6px 14px rgba(172, 171, 171, 0.5);
  }

  .add-to-cart:active {
    transform: scale(0.95);
  }
}


/* ================= MENU HORIZONTAL SCROLL ================= */

.menu-grid {
  display: flex;
  flex-wrap: nowrap;             /* Prevent wrapping */
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

/* Hide scrollbar */
.menu-grid::-webkit-scrollbar {
  display: none;
}



/* PRODUCT CARD */
.product-card {
  flex: 0 0 260px;               /* Required for scrolling */
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* PRODUCT IMAGE */
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 14px;
  background: #fafafa;
}

/* PRODUCT NAME */
.product-card h4 {
  margin: 12px 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* PRICE ROW */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.price {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
}

.old-price {
  color: #999;
  text-decoration: line-through;
}

/* BOTTOM ROW (stars + cart icon) */
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.stars {
  color: #ff9f0a;
  font-size: 14px;
}

/* CART BUTTON */
.cart-btn {
  background: #f2f2f2;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.shopping-bag {
  background-color: #FF7A00;
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: #FF7A00;
}

/* MAKE PRODUCT CARDS SMALLER ON MOBILE */
@media (max-width: 600px) {
  .product-card {
    flex: 0 0 160px;   /* Smaller width */
    padding: 10px;
    border-radius: 16px;
  }

  .product-card img {
    height: 100px;     /* Smaller image */
    border-radius: 12px;
  }

  .product-card h4 {
    font-size: 0.85rem;  /* Smaller name */
  }

  .price-row {
    gap: 5px;
  }

  .price {
    font-size: 0.9rem;
  }

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

  .stars {
    font-size: 16px;
  }

}


/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.about-text h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #022c19ea;
}

.about-text p {
  margin-bottom: 1rem;
  color: #444;
}

.about-img img {
  width: 87%;
  height: 300px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img img{
    width: 350px;
  }
}


/* ================= SERVICES ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  border-left: 6px solid #FF7A00; /* Orange accent */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-icon {
  font-size: 2.3rem;
  display: block;
  margin-bottom: 14px;
  color: #022c19ea;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* ================= TEAM ================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  background: #fff;
  text-align: center;
  padding: 1.2rem;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.role {
  font-size: 0.9rem;
  color: #0BAB64;
}

/* =======================
   MODAL BASE STYLES
======================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

/* Modal content box */
.modal-content {
  background: #fff;
  width: 95%;
  max-width: 420px;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  position: relative;
  animation: popIn .25s ease-out;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #444;
}

/* Title */
.modal-content h3 {
  margin-top: 0;
  text-align: center;
  font-size: 1.4rem;
  color: #022c19;
}

/* Form spacing */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #0c0c0c;
  border-radius: 8px;
  font-size: 1rem;
}

.error-text {
  color: red;
  font-size: .85rem;
  margin-top: 3px;
}

/* Submit button */
.btn-primary {
  width: 100%;
  background: #022c19ea;
  padding: 12px;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #e96d00;
}

/* Link-like button */
.linklike {
  background: none;
  border: none;
  color: #FF7A00;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

/* Animation */
@keyframes popIn {
  from {
    transform: scale(.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}




.logout-btn {
  background: #FF7A00;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.logout-btn:hover {
  background: #e46b00;
}

.btn{
  background-color: #FF7A00;
  text-decoration: none;
  color: #fff;
  padding: 10px;
}

.btn:hover{
  background-color: #022c19ea;
  color: #fff;
}





/* ================= FOOTER ================= */
.footer {
  background: #022c19ea;
  color: #fff;
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
}

.footer h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 6px;
}

.footer ul li a {
  color: #fff;
  text-decoration: none;
}

.subscribe-btn {
  background: #FF7A00;
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

footer input {
  padding: 10px;
  width: 90%;
  border-radius: 8px;
  border: none;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Slide From Left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide From Right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom In */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.9s ease;
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}



/* ================= CART DRAWER ================= */
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 330px;
  height: 100%;
  background: #022c19; /* Al-Madina green */
  color: #fff;
  padding: 1rem;
  box-shadow: -3px 0 6px rgba(0,0,0,0.3);
  transition: right .35s ease;
  z-index: 99999;

  overflow-y: hidden;     /* <-- STOP cart from scrolling */
  display: flex;          /* <-- ENABLE layout */
  flex-direction: column;
}

.cart.open {
  right: 0;
}

/* CART TITLE */
.cart h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid #FF7A00;
  padding-bottom: 5px;
}

/* ================= SCROLLABLE ITEMS ================= */
#cart-items {
  flex: 1;
  overflow-y: auto;        /* <-- ONLY items scroll */
  padding-right: 5px;
}

/* ================= CART ITEM BOX ================= */
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  align-items: start;
  gap: 10px;
  background: #033925;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,122,0,0.5);
}

/* PRODUCT IMAGE */
.cart-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #FF7A00;
}

/* PRODUCT INFO */
.cart-info p {
  margin: 2px 0;
  font-size: 14px;
  color: #e9e9e9;
}

/* ================= QUANTITY CONTROLS ================= */
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 5px;
  height: 100%;
}

.cart-actions .qty-btn {
  width: 34px;
  height: 34px;
  background: #FF7A00;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: .15s ease;
}

.cart-actions .qty-btn:hover {
  background: #d66a00;
}

/* DELETE BUTTON */
.cart-actions .delete-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #ff4b4b;
  cursor: pointer;
  font-size: 20px;
  transition: .15s ease;
}
.cart-actions .delete-btn:hover {
  background: #d63b3b;
}

/* ================= CART TOTAL + CHECKOUT ================= */
.cart-total {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  border-top: 2px solid #FF7A00;
  padding-top: 8px;
}

#checkout {
  width: 100%;
  background: #FF7A00;
  padding: 14px;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

#checkout:hover {
  background: #e46b00;
}

#close-cart {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #033925;
  color: #fff;
  border: 2px solid #FF7A00;
  cursor: pointer;
}



/* Cart drawer animation */
.cart {
  transform: translateX(100%);
}
.cart.open {
  transform: translateX(0);
  animation: cartSlideIn .35s ease forwards;
}

@keyframes cartSlideIn {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}


.cart-row {
  animation: cartItemIn .35s ease;
}

@keyframes cartItemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qty-btn:active {
  transform: scale(0.85);
  transition: transform .12s;
}

.delete-btn:active {
  animation: shake .25s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

#cart-items {
  scroll-behavior: smooth;
}

#cart-items::-webkit-scrollbar {
  width: 6px;
}
#cart-items::-webkit-scrollbar-thumb {
  background: #FF7A00;
  border-radius: 6px;
}


#checkout:hover {
  box-shadow: 0 0 12px rgba(255,122,0,0.6);
}

#close-cart:hover {
  box-shadow: 0 0 10px rgba(255,122,0,0.4);
}

#modal-checkout .modal-content {
  animation: checkoutPop .35s ease;
}

@keyframes checkoutPop {
  from {
    transform: scale(.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* ================= CHECKOUT MODAL (RESPONSIVE) ================= */

#modal-checkout {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 9999;
}

/* Modal box */
#modal-checkout .modal-content {
  background: #fff;
  width: 100%;
  max-width: 380px;        /* Perfect width for mobile + desktop */
  max-height: 90vh;        /* Never runs off screen */
  overflow-y: auto;        /* Scrolls internally */
  padding: 20px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  position: relative;
  animation: popIn .25s ease-out;
}

/* Close button */
#modal-checkout .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

/* Title */
#modal-checkout h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #022c19;
}

/* Inputs + fieldsets */
#modal-checkout fieldset {
  border: 1px solid #ccc;
  padding: 38px;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #fafafa;
}

#modal-checkout legend {
  font-weight: 700;
  margin-left: 8px;
  color: #022c19;
}

#modal-checkout label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.872rem;
}

#modal-checkout input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #bbb;
  background: white;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Radio buttons */
#modal-checkout .method-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#modal-checkout input[type="radio"] {
  margin-right: 8px;
}

/* Payable amount */
#checkout-payable {
  font-weight: bold;
  color: #FF7A00;
  font-size: 1.2rem;
}

/* Place Order Button */
#modal-checkout button[type="submit"] {
  width: 100%;
  background: #FF7A00;
  padding: 12px;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
}

#modal-checkout button[type="submit"]:hover {
  background: #e46b00;
}

/* Error message */
#checkout-error {
  color: red;
  text-align: center;
  margin-top: 5px;
  font-size: 0.9rem;
}

#modal-checkout {
  z-index: 200000 !important;
}


.profile-block, .orders-block { margin-top: 1rem; }
.profile-row { 
  margin: 0.25rem 0;
   font-family: 'Gill Sans';
   font-size: 1.3rem; 
}
.muted {
   color: #0f0f0f;
   }


.orders-table { 
  width: 100%;
  border-collapse: collapse;
 margin-top: 0.5rem;
 }

.orders-table th, .orders-table td { 
  border: 1px solid #0e0d0d;
  padding: 0.5rem;
  text-align: left; 
  }

.orders-table th { background: #022c19ea; 
  color: #fff;
  font-family:  monospace;
  font-size: 1rem;

 }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 1100;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-content {
  background: #dad7d7; width: 100%; max-width: 420px; border-radius: 10px; padding: 1rem 1.25rem; position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  border: none;
  background: transparent; 
  font-size: 1.4rem;
  cursor: pointer;
  color: #000;
}
.profile-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

#orders-tbody {
  display: block;
  max-height: 180px;
  overflow-y: auto;
}

.orders-table thead,
.orders-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  font-size: 0.76rem;
  color: #000;
  font-weight: 500;
}



/* SUCCESS MODAL */
.success-modal {
  text-align: center;
  max-width: 360px;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  background: #22c55e;
  color: white;
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-sub {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.success-box {
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1.2rem;
  text-align: left;
  font-size: 0.9rem;
}

.success-box div {
  margin-bottom: 6px;
}
