/* ================= RST MEDICS - Main Stylesheet ================= */
:root {
  --purple: #5b2a86;
  --purple-dark: #401d61;
  --green: #7cb342;
  --green-dark: #649a2e;
  --pink: #e6197f;
  --pink-light: #fdeef6;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --bg-light: #faf8fc;
  --border: #ececec;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(91,42,134,0.08);
  --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 800; margin: 0 0 12px; color: var(--purple-dark); }
p { margin: 0 0 12px; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: 0.25s;
  font-size: 15px;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------------- TOPBAR ---------------- */
.topbar { background: var(--purple-dark); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-contact a { margin-right: 6px; color: #fff; }
.topbar-contact a:hover { text-decoration: underline; }

/* ---------------- HEADER ---------------- */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 20px; }
.logo img { height: 58px; }
.main-nav { display: flex; gap: 28px; font-weight: 700; align-items: center; }
.main-nav a { color: var(--text); padding: 8px 0; }
.main-nav a:hover { color: var(--pink); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: var(--shadow); border-radius: 10px;
  padding: 10px 0; min-width: 230px; z-index: 50;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--pink-light); color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link, .account-link { font-weight: 700; white-space: nowrap; }
.cart-count { background: var(--pink); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 50%; margin-left: 4px; }
.mobile-toggle { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--purple); }

/* ---------------- HERO SLIDER (full width, 3 slides) ---------------- */
.hero-slider { position: relative; width: 100%; height: 560px; overflow: hidden; color: #fff; }
.hero-slider .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease; display: flex; align-items: center; justify-content: flex-start;
}
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, transparent 100%); }
.hero-slider .slide-content { position: relative; z-index: 2; max-width: 620px; padding-left: 64px; text-align: left; }
.hero-slider .eyebrow { color: #f0e3fa; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; display: block; text-transform: uppercase; font-size: 13px; }
.hero-slider h1 { color: #fff; font-size: 42px; line-height: 1.25; margin-bottom: 14px; }
.hero-slider p { color: #f2ecf8; font-size: 17px; max-width: 520px; margin-bottom: 26px; }
.hero-outline-btn { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; backdrop-filter: blur(2px); }
.hero-outline-btn:hover { background: #fff; color: var(--purple); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,0.2); border: none; color: #fff; width: 46px; height: 46px;
  border-radius: 50%; font-size: 26px; cursor: pointer; transition: 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider-dots .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; transition: 0.2s; }
.slider-dots .dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
  .hero-slider { height: 460px; }
  .hero-slider h1 { font-size: 28px; }
  .hero-slider .slide-content { padding-left: 24px; padding-right: 24px; }
  .slider-arrow { display: none; }
}

/* ---------------- PROMOTIONAL BANNER ---------------- */
.promo-banner { width: 100%; line-height: 0; }
.promo-banner img { width: 100%; height: auto; display: block; }
.promo-banner a { display: block; }

/* ---------------- CATEGORY GRID ---------------- */
.section { padding: 70px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 45px; }
.section-title span.tag { color: var(--pink); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-card {
  background: var(--bg-light); border-radius: var(--radius); text-align: center;
  padding: 28px 16px; transition: 0.25s; border: 1px solid var(--border);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--purple); }
.category-card img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 14px; }
.category-card h3 { font-size: 16px; margin-bottom: 10px; }
.category-card a.shop-now { color: var(--green-dark); font-weight: 700; font-size: 13px; }

/* ---------------- ABOUT SECTION ---------------- */
.about-flex { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-flex .about-img { flex: 1; min-width: 300px; }
.about-flex .about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-flex .about-text { flex: 1; min-width: 300px; }
.stats-row { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-box .num { font-size: 34px; font-weight: 900; color: var(--purple); }
.stat-box .label { font-size: 13px; color: var(--muted); }

/* ---------------- MISSION & VISION ---------------- */
.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: 0.25s; }
.mv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.mv-card .mv-icon { width: 72px; height: 72px; margin: 0 auto 18px; }
.mv-card h3 { font-size: 20px; margin-bottom: 12px; }
.mv-card p { margin: 0; }

/* ---------------- PRODUCT CARDS ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: 0.25s; position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .badge {
  position: absolute; top: 12px; left: 12px; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 2;
}
.product-card .thumb { aspect-ratio: 1/1; background: var(--bg-light); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px; }
.product-card .cat { font-size: 12px; color: var(--green-dark); font-weight: 700; text-transform: uppercase; }
.product-card h3 { font-size: 15px; margin: 6px 0 10px; min-height: 40px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-row .price { font-size: 18px; font-weight: 800; color: var(--purple); }
.price-row .old-price { text-decoration: line-through; color: #aaa; font-size: 14px; }

/* ---------------- SHOP LAYOUT ---------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.shop-filters { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; height: fit-content; }
.shop-filters h4 { font-size: 15px; margin-bottom: 14px; }
.shop-filters a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text); border-bottom: 1px solid #f2f2f2; }
.shop-filters a.active, .shop-filters a:hover { color: var(--pink); font-weight: 700; }

/* ---------------- PRODUCT DETAIL ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-detail .gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1/1; }
.product-detail .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: 0.2s; opacity: 0.75; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--purple); opacity: 1; }
.product-detail .info h1 { font-size: 28px; }
.qty-box { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.qty-box button { width: 38px; height: 38px; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 18px; cursor: pointer; }
.qty-box input { width: 60px; text-align: center; height: 38px; border: 1px solid var(--border); border-radius: 8px; }

/* ---------------- TESTIMONIALS ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px; }
.testimonial-card .stars { color: #f5b400; margin-bottom: 12px; }
.testimonial-card h4 { margin-bottom: 6px; font-size: 16px; }
.testimonial-card .who { color: var(--pink); font-weight: 700; font-size: 13px; margin-bottom: 12px; display: block; }

/* ---------------- CTA STRIP ---------------- */
.cta-strip { background: var(--pink); color: #fff; text-align: center; padding: 50px 0; }
.cta-strip h2 { color: #fff; }

/* ---------------- FORMS ---------------- */
.form-box { max-width: 520px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #eafbe7; color: #237804; border: 1px solid #b7eb8f; }
.alert-error { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }

/* ---------------- CART / CHECKOUT TABLE ---------------- */
table.cart-table { width: 100%; border-collapse: collapse; }
table.cart-table th, table.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; }
table.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary .total-row { font-weight: 800; font-size: 18px; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; }
.summary-wrap { max-width: 400px; margin-left: auto; margin-top: 30px; }

/* ---------------- PAGE HEADER (inner pages) ---------------- */
.page-header { background: var(--bg-light); padding: 40px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 6px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--pink); }

/* ---------------- RESPONSIVE TWO-COLUMN LAYOUTS (Contact, Checkout) ---------------- */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }

/* ---------------- RESPONSIVE TABLE WRAPPER (Cart, Orders) ---------------- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 480px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--purple-dark); color: #d9c9ea; padding: 60px 0 0; }
.site-footer p { color: #d9c9ea; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: #d9c9ea; }
.footer-col a:hover { color: var(--pink); }
.footer-col p a { display: inline; padding: 0; color: #d9c9ea; text-decoration: underline; }
.footer-col p a:hover { color: var(--pink); }
.footer-social a { display: inline-block; margin-right: 14px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 13px; }

.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); z-index: 200;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; top: 0; right: -280px; width: 260px; height: 100vh; background: #fff; flex-direction: column; padding: 80px 24px; box-shadow: -6px 0 20px rgba(0,0,0,0.15); transition: 0.3s; }
  .main-nav.open { right: 0; }
  .mobile-toggle { display: block; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .about-flex { flex-direction: column; }
  .hero-text h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; gap: 30px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 30px; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .form-box { padding: 24px 18px; }
  .cart-summary, .summary-wrap { max-width: 100% !important; margin-left: 0 !important; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
}
/* Add this to your main stylesheet (replaces/extends any existing .promo-banner rule) */

.promo-banner {
  padding: 30px 0;
}

.promo-banner .banner-grid {
  display: flex;
  gap: 20px;
}

.promo-banner .banner-col {
  flex: 1 1 50%;
  min-width: 0; /* prevents flex overflow */
}

.promo-banner .banner-col a {
  display: block;
}

.promo-banner .banner-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .promo-banner .banner-grid {
    flex-direction: column;
  }
}