:root {
  --main-bg: #fdf8f5;
  --card-bg: #fffaf8;
  --main-text: #281d35;
  --sub-text: #74687c;
  --purple: #542875;
  --purple-light: #8652a5;
  --soft-purple: #f0e1f6;
  --border: #f0e4ef;
  --shadow: 0 12px 30px rgba(65, 35, 82, .09);
}

.dark-mode {
  --main-bg: #17101e;
  --card-bg: #261a32;
  --main-text: #f8efff;
  --sub-text: #c3b2d0;
  --purple: #a66acb;
  --purple-light: #c28ce2;
  --soft-purple: #382347;
  --border: #453052;
  --shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color .3s ease, color .3s ease,
    border-color .3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--main-bg);
  color: var(--main-text);
  overflow-x: hidden;
}

button,
a,
.brand-card,
.benefit,
.review-card {
  transition: transform .25s ease, background-color .3s ease,
    color .3s ease, box-shadow .25s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5%;
  position: relative;
  z-index: 10;
  height: 80px;
}

.logo {
width: 150px;
height: 150px;
}

.header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header nav a {
  text-decoration: none;
  color: var(--main-text);
  font-size: 15px;
  font-weight: 500;
}

.header nav a:hover {
  color: var(--purple-light);
}

.header nav .active {
  background: var(--purple);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--soft-purple);
  color: var(--purple);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-3px);
}

#cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #d96bd4;
  color: white;
  font-size: 11px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.hero {
  min-height: 510px;
  display: flex;
  align-items: center;
  padding: 60px 7%;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.hero-label,
.eyebrow {
  display: inline-block;
  color: var(--purple-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.17;
  color: var(--main-text);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--purple-light);
}

.hero p {
  color: var(--sub-text);
  font-size: 17px;
  line-height: 1.7;
  max-width: 450px;
  margin-bottom: 28px;
}

.main-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--purple);
  color: white;
  padding: 15px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  gap: 8px;
  box-shadow: var(--shadow);
}

.main-btn:hover {
  transform: translateY(-4px);
}

.dark-mode .hero-bg-img {
  filter: brightness(.48) saturate(.8);
}

.trust-strip {
  position: relative;
  z-index: 5;
  width: 90%;
  margin: -45px auto 0;
  min-height: 125px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  cursor: default;
}

.trust-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft-purple);
  color: var(--purple);
  border: 1px solid var(--border);
}

.trust-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.trust-item strong {
  display: block;
  font-size: 13px;
  color: var(--main-text);
  margin-bottom: 6px;
}

.trust-item small {
  display: block;
  font-size: 11px;
  color: var(--sub-text);
  line-height: 1.4;
}

.trust-item:hover .trust-icon {
  transform: translateY(-5px) rotate(-6deg);
  background: var(--purple);
  color: white;
  box-shadow: 0 8px 18px rgba(100, 48, 145, .2);
}

.dark-mode .trust-strip {
  background: var(--card-bg);
  border-color: var(--border);
}

.section-heading {
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: 34px;
  color: var(--main-text);
}

.section-heading h2 span {
  color: var(--purple-light);
}

.brands-section,
.deals-section,
.why-section,
.reviews-section {
  padding: 85px 7%;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.brand-card {
  min-height: 125px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 20px;
  box-shadow: var(--shadow);
}

.brand-card img {
  max-width: 100%;
  max-height: 65px;
  object-fit: contain;
}

.brand-card:hover {
  transform: translateY(-7px);
}

.dark-mode .brand-card img {
  filter: brightness(.85);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.deal-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.deal-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px var(--shadow);
}

.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--purple-light);
  color: white;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.deal-img {
  width: 115px;
  height: 155px;
  object-fit: contain;
}

.deal-info {
  flex: 1;
}

.deal-info h3 {
  font-size: 16px;
  margin: 28px 0 12px;
}

.favorite-btn {
  position: absolute;
  right: 18px;
  top: 17px;
  border: none;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
}

.old-price {
  text-decoration: line-through;
  color: var(--sub-text);
  font-size: 13px;
}

.new-price {
  color: var(--purple-light);
  display: block;
  margin: 6px 0 12px;
  font-size: 18px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft-purple);
  border-radius: 20px;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.quantity button {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.qty {
  font-weight: 600;
}

.add-cart {
  width: 100%;
  border: none;
  background: var(--purple);
  color: white;
  padding: 11px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-cart:hover {
  background: var(--purple-light);
}

.dark-mode .deal-img {
  filter: brightness(.82) saturate(.85);
}

.why-section {
  background: var(--soft-purple);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit {
  text-align: center;
  padding: 35px 22px;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.benefit h3 {
  margin-bottom: 12px;
}

.benefit p {
  color: var(--sub-text);
  font-size: 14px;
  line-height: 1.6;
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.review-card {
  background: var(--card-bg);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.review-card svg {
  color: var(--purple-light);
  margin-bottom: 18px;
}

.review-card p {
  color: var(--main-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.review-card strong {
  color: var(--purple-light);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.newsletter-section {
  margin: 30px 7% 70px;
  padding: 35px;
  background: var(--soft-purple);
  border-radius: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.newsletter-section p {
  color: var(--sub-text);
  margin-top: 8px;
}

.newsletter-section form {
  display: flex;
  gap: 10px;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 6px;
  width: 50%;
}

.newsletter-section input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px;
  background: transparent;
  color: var(--main-text);
}

.newsletter-section button {
  border: none;
  border-radius: 25px;
  padding: 12px 22px;
  background: var(--purple);
  color: white;
  cursor: pointer;
}

.footer {
  background: #29143d !important;
  color: white !important;
  padding: 75px 7% 25px;
  margin-top: 30px;
}

.dark-mode .footer {
  background: #1b1027 !important;
  color: white !important;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.6fr;
  gap: 35px;
  padding-bottom: 50px;
}

.footer .logo {
  color: white;
}

.footer-brand p,
.footer-newsletter p {
  color: #d2c1df;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}

.footer-col,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer h3 {
  color: white !important;
  font-size: 17px;
  margin-bottom: 7px;
}

.footer-col a {
  color: #d2c1df;
  text-decoration: none;
  font-size: 13px;
}

.footer-col a:hover {
  color: white;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: white;
}

.footer-subscribe {
  display: inline-block;
  padding: 12px 17px;
  background: #8652a5;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: #c9b8d6;
  font-size: 12px;
}

.dark-mode .footer .logo {
  color: white;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(30, 15, 40, .45);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.coupon-popup {
  position: relative;
  width: 680px;
  max-width: 90%;
  min-height: 290px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(35, 15, 50, .25);
  transform: translateY(35px) scale(.88);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1),
    opacity .35s ease, background-color .3s ease;
}

.popup-overlay.active .coupon-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup-image-wrap {
  background: linear-gradient(145deg, #f9dce8, #f2c5df);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 15px;
}

.popup-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: contain;
  animation: popupFloat 3s ease-in-out infinite;
  transition: filter .3s ease;
}

@keyframes popupFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}

.popup-content {
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--main-text);
  font-size: 27px;
  cursor: pointer;
  z-index: 3;
}

.popup-close:hover {
  transform: rotate(90deg);
}

.popup-label {
  color: var(--purple-light);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 12px;
}

.popup-content h2 {
  color: var(--purple);
  font-size: 24px;
  margin-bottom: 12px;
}

.popup-content p {
  color: var(--sub-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.popup-discount {
  color: var(--purple-light);
  font-size: 27px;
  margin-bottom: 15px;
}

.popup-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 15px;
  background: var(--soft-purple);
  border: 1px dashed var(--purple-light);
  border-radius: 12px;
}

.popup-code span {
  color: var(--purple);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
}

.popup-code button {
  background: var(--purple);
  color: white;
  border: none;
  padding: 10px 17px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.popup-code button:hover {
  background: var(--purple-light);
}

.popup-hint {
  margin-top: 12px;
  color: var(--sub-text);
  font-size: 10px;
}

.dark-mode .popup-image-wrap img {
  filter: brightness(.82) saturate(.85);
}

.dark-mode .popup-image-wrap {
  background: linear-gradient(145deg, #39233f, #50304e);
}