/* ── GLOBAL TOKENS ── */
:root {
  --blue: #2874f0;
  --orange: #fb641b;
  --green: #388e3c;
  --red: #ff6161;
  --text-main: #212121;
  --text-grey: #878787;
  --bg-grey: #f1f3f6;
  --border-light: #f0f0f0;
  --white: #fff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-grey);
  color: var(--text-main);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
button {
  font-family: inherit;
}

/* ── COMMON COMPONENT: HEADER ── */
.app-header {
  background: var(--blue);
  color: var(--white);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Home Header Variant */
.home-header {
  padding: 8px 16px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.header-row .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-row .ham {
  font-size: 24px;
  cursor: pointer;
}

.header-row .logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-row .logo span {
  font-size: 10px;
  color: #ffe082;
  font-style: italic;
  margin-top: 4px;
}

.header-row .cart-icon {
  position: relative;
  font-size: 24px;
  text-decoration: none;
  color: #fff;
}

.header-row .badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
}

.header-search-box {
  background: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  color: var(--text-grey);
  font-size: 14px;
}

/* PDP Header Variant */
.pdp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdp-header .back {
  font-size: 22px;
  cursor: pointer;
}

.pdp-header .icons {
  display: flex;
  gap: 20px;
  font-size: 20px;
  align-items: center;
}

/* ── HOME PAGE COMPONENTS ── */
.category-strip {
  background: var(--white);
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 12px 16px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-light);
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  cursor: pointer;
}

.cat-btn .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cat-btn .label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.hero-banner {
  background: #e3f2fd;
  padding: 12px;
  margin-bottom: 10px;
}

.deals-day {
  background: var(--white);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px;
}

.deals-day .title {
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
}

.deals-day .timer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-grey);
  font-size: 16px;
}

.deals-day .sale-tag {
  border: 1px solid var(--border-light);
  color: var(--red);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
}

.product-card {
  background: var(--white);
  padding: 12px;
  cursor: pointer;
}

.product-card .img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.product-card .name {
  font-size: 14px;
  margin: 8px 0;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.product-card .discount {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.product-card .mrp {
  color: var(--text-grey);
  text-decoration: line-through;
  font-size: 12px;
}

.product-card .final {
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}

/* ── PRODUCT DETAIL COMPONENTS ── */
.pdp-main {
  background: var(--white);
}

.pdp-gallery {
  position: relative;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdp-gallery .main-img {
  font-size: 180px;
  margin: 20px 0;
}

.pdp-gallery .actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-gallery .circle {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #878787;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdp-gallery .dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pdp-gallery .dot {
  width: 8px;
  height: 8px;
  background: #dbdbdb;
  border-radius: 50%;
}

.pdp-gallery .dot.active {
  background: #878787;
}

.pdp-gallery .stock {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 700;
}

.pdp-gallery .stock span {
  color: var(--red);
}

.pdp-info {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.pdp-info .title {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
}

.pdp-info .assured {
  height: 22px;
  margin-bottom: 10px;
}

.pdp-info .price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-timer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.pdp-timer span {
  color: var(--orange);
  font-weight: 700;
}

.pdp-sold {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.pdp-sold .icon {
  width: 24px;
  height: 24px;
  background: #e8f5e9;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pdp-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
  gap: 10px;
  margin-top: 10px;
  border-top: 10px solid var(--bg-grey);
}

.trust-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.trust-box .icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fff;
}

.trust-box .text {
  font-size: 10px;
  font-weight: 500;
}

.pdp-warranty {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  border-top: 1px solid var(--border-light);
  border-bottom: 10px solid var(--bg-grey);
}

.warranty-icon {
  width: 34px;
  height: 34px;
  background: #fff200;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pdp-details {
  padding: 16px;
}

.pdp-details h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.pdp-details ul {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.pdp-details li {
  margin-bottom: 6px;
}

.pdp-sticky-btns {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  height: 56px;
  z-index: 1100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.pdp-sticky-btns button {
  flex: 1;
  border: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-white {
  background: var(--white);
  color: var(--text-main);
  border-top: 1px solid var(--border-light);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

/* ── CHECKOUT COMPONENTS ── */
.checkout-header {
  background: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.checkout-header .back {
  font-size: 24px;
  cursor: pointer;
}

.checkout-header .title {
  font-size: 18px;
  font-weight: 500;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-grey);
}

.step-item.active {
  color: var(--blue);
  font-weight: 700;
}

.step-item .circle {
  width: 24px;
  height: 24px;
  border: 1px solid #dbdbdb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item.active .circle {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.address-form {
  background: var(--white);
  padding: 20px 16px;
}

.input-group-border {
  position: relative;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 24px;
}

.input-group-border.focused {
  border-color: var(--blue);
}

.input-group-border label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: #fff;
  padding: 0 5px;
  font-size: 12px;
  color: var(--text-grey);
}

.input-group-border.focused label {
  color: var(--blue);
}

.input-group-border input,
.input-group-border select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── ORDER SUMMARY COMPONENTS ── */
.summ-delivery-box {
  background: var(--white);
  padding: 16px;
  margin-top: 10px;
  border-bottom: 1px solid var(--border-light);
}

.summ-delivery-box h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-grey);
}

.summ-delivery-box .info {
  font-weight: 500;
  line-height: 1.6;
}

.summ-product-card {
  background: var(--white);
  padding: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 15px;
}

.summ-img-box {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.summ-img-box .img {
  font-size: 40px;
}

.summ-img-box .qty {
  font-size: 12px;
  margin-top: 8px;
  color: var(--text-main);
}

.summ-content {
  flex: 1;
}

.summ-content .title {
  font-size: 14px;
  margin-bottom: 5px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.summ-content .price-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.summ-content .price-off {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.summ-content .price-mrp {
  color: var(--text-grey);
  text-decoration: line-through;
  font-size: 14px;
}

.summ-content .price-final {
  font-weight: 700;
  font-size: 16px;
}

.summ-price-details {
  background: var(--white);
  padding: 16px;
  margin-top: 10px;
}

.summ-price-details h3 {
  font-size: 16px;
  color: var(--text-grey);
  margin-bottom: 20px;
  font-weight: 500;
}

.summ-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.summ-row .green {
  color: var(--green);
  font-weight: 500;
}

.summ-total-row {
  border-top: 1px dashed #dbdbdb;
  padding-top: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.summ-savings-msg {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.summ-security-badge {
  background: #f9f9f9;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  color: var(--text-grey);
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--border-light);
}

.summ-security-badge .shield {
  font-size: 24px;
  color: #878787;
}

.checkout-footer-new {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  height: 56px;
  z-index: 1200;
}

.footer-price {
  flex: 1;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
}

.footer-price .mrp {
  font-size: 12px;
  color: var(--text-grey);
  text-decoration: line-through;
}

.footer-price .final {
  font-weight: 700;
  font-size: 16px;
}

.btn-continue-orange {
  width: 140px;
  height: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}

.sticky-bottom-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1200;
}

/* ── SNACKBAR ── */
.snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #212121;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2000;
  display: none;
}

.snackbar.show {
  display: block;
  animation: fadeInUp 0.3s;
}

/* ── PAYMENT STEP COMPONENTS ── */
.pay-promo-banner {
  background: #fffde7;
  border-top: 1px solid #f9e160;
  border-bottom: 1px solid #f9e160;
  padding: 12px;
  margin-top: 10px;
  text-align: center;
  position: relative;
}

.pay-promo-banner .title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.pay-promo-banner .detail {
  font-size: 12px;
  font-weight: 500;
}

.pay-promo-banner .dec1,
.pay-promo-banner .dec2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.pay-promo-banner .dec1 {
  left: 10px;
}

.pay-promo-banner .dec2 {
  right: 10px;
}

.pay-offer-timer {
  padding: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.pay-offer-timer span {
  color: var(--orange);
  font-weight: 700;
}

.pay-option-btn {
  background: var(--white);
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 18px;
  margin: 0 16px 16px;
  transition: border-color 0.2s;
}

.pay-option-btn.active {
  border-color: var(--blue);
}

.pay-option-btn .logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.pay-trust-badges {
  background: var(--white);
  padding: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
}

.pay-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-grey);
  font-weight: 500;
}

.pay-trust-item .icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #878787;
}

.pay-footer-logos {
  background: #f9f9f9;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0.7;
}

.pay-footer-logos span {
  font-size: 14px;
  font-weight: 700;
  color: #555;
}

.stepper-check {
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}