:root {
  --srph-bg: #f5f7fb;
  --srph-card: #ffffff;
  --srph-border: #e5e7eb;
  --srph-text: #111827;
  --srph-muted: #64748b;
  --srph-pink: #ec008c;
  --srph-pink-dark: #c80077;
  --srph-green: #08b85a;
  --srph-green-dark: #058d46;
  --srph-blue: #0969ff;
  --srph-shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

.srph-home-active #secondary,
.srph-home-active .site-sidebar,
.srph-home-active .widget-area:not(.footer-widget-area),
.srph-tracking-active #secondary,
.srph-tracking-active .site-sidebar,
.srph-tracking-active .widget-area:not(.footer-widget-area) {
  display: none !important;
}

.srph-home-active .sr-commerce-shell,
.srph-home-active .site-main,
.srph-home-active main,
.srph-tracking-active .site-main,
.srph-tracking-active main {
  max-width: none !important;
  width: 100% !important;
}

.srph-homepage {
  background: var(--srph-bg);
  min-height: 70vh;
  padding-bottom: 48px;
}

.srph-container {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
}

/* Categories */
.srph-category-strip {
  background: #fff;
  border-top: 1px solid var(--srph-border);
  border-bottom: 1px solid var(--srph-border);
}

.srph-category-scroll {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
}

.srph-category-card {
  min-width: 0;
  height: 112px;
  border: 1px solid var(--srph-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--srph-text);
  transition: .2s ease;
}

.srph-category-card:hover {
  transform: translateY(-3px);
  border-color: #f9a8d4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.srph-category-image {
  width: 66px;
  height: 62px;
  border-radius: 10px;
  background: #f8fafc center/contain no-repeat;
  display: grid;
  place-items: center;
  color: var(--srph-blue);
}

.srph-category-image b { font-size: 28px; }
.srph-category-card strong { font-size: 13px; line-height: 1.2; }

/* Sections */
.srph-section { padding: 24px 0 0; }
.srph-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.srph-title-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.srph-section h2 { margin: 0; font-size: 25px; line-height: 1.1; color: var(--srph-text); font-weight: 750; }
.srph-view-all { display: inline-flex; gap: 8px; align-items: center; color: var(--srph-text); font-size: 14px; font-weight: 750; }
.srph-view-all span { font-size: 25px; line-height: 1; }

.srph-countdown { display: flex; gap: 6px; }
.srph-countdown > span {
  min-width: 43px;
  height: 40px;
  border: 1px solid #ff4d6d;
  border-radius: 7px;
  background: #fff;
  color: #e11d48;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.srph-countdown strong { font-size: 12px; line-height: 1; }
.srph-countdown small { font-size: 9px; line-height: 1.2; }

.srph-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Product card */
.srph-product-card {
  min-width: 0;
  background: var(--srph-card);
  border: 1px solid var(--srph-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
  transition: .2s ease;
}
.srph-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, .1); }
.srph-product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #fff; }
.srph-product-media a { display: block; width: 100%; height: 100%; }
.srph-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.srph-discount-badge { position: absolute; z-index: 3; top: 0; left: 0; padding: 8px 12px; background: var(--srph-green); color: #fff; font-size: 12px; font-weight: 850; border-radius: 0 0 13px 0; }
.srph-discount-badge--hot { background: #ef4444; }
.srph-heart { position: absolute; z-index: 3; top: 10px; right: 12px; font-size: 31px; line-height: 1; color: var(--srph-green); font-family: Arial, sans-serif; }
.srph-product-body { padding: 12px 14px 14px; }
.srph-product-body h3 { margin: 0 0 9px; min-height: 42px; font-size: 14px; line-height: 1.45; font-weight: 750; }
.srph-product-body h3 a { color: var(--srph-text); }
.srph-rating-row { display: flex; align-items: center; gap: 5px; min-height: 20px; margin-bottom: 9px; color: var(--srph-muted); font-size: 12px; }
.srph-rating-row .star-rating { margin: 0; color: #f7b500; font-size: .82em; }
.srph-empty-stars { color: #f7b500; letter-spacing: 2px; font-size: 16px; }

.srph-price-cart-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.srph-price-row { min-width: 0; flex: 1 1 auto; }
.srph-price-row .price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; color: var(--srph-pink); font-size: 19px; font-weight: 850; }
.srph-price-row del { color: #94a3b8; font-size: 12px; font-weight: 500; }
.srph-price-row ins { text-decoration: none; }

/* Strong selectors prevent the active theme from turning this into a large blue button. */
body .srph-product-card .srph-cart-btn,
body .srph-product-card button.srph-cart-btn,
body .srph-product-card a.srph-cart-btn {
  appearance: none !important;
  width: auto !important;
  min-width: 82px !important;
  max-width: 105px !important;
  min-height: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  border: 1px solid var(--srph-pink) !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #ff1b9c, var(--srph-pink)) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(236, 0, 140, .20) !important;
  padding: 0 11px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: .2s ease !important;
}
body .srph-product-card .srph-cart-btn:hover { background: var(--srph-pink-dark) !important; transform: translateY(-1px); }
body .srph-product-card .srph-cart-btn.is-added { background: #0f9f56 !important; border-color: #0f9f56 !important; }
body .srph-product-card .srph-cart-btn:disabled { cursor: wait !important; opacity: .8 !important; }
.srph-cart-icon { font-size: 13px; }
.srph-cart-text { white-space: nowrap; }

body .srph-product-card .srph-buy-btn,
body .srph-product-card button.srph-buy-btn,
body .srph-product-card a.srph-buy-btn,
.srph-stockout {
  appearance: none !important;
  width: 100% !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #08bf60, #069b4d) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(8, 184, 90, .18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  margin: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: .2s ease !important;
}
body .srph-product-card .srph-buy-btn:hover { background: var(--srph-green-dark) !important; transform: translateY(-1px); }
.srph-stockout { background: #e5e7eb !important; color: #475569 !important; box-shadow: none !important; }
.srph-empty-section { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 30px; text-align: center; color: #64748b; }

/* Toast */
.srph-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100010;
  max-width: min(360px, calc(100vw - 30px));
  padding: 13px 17px;
  border-radius: 11px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--srph-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: .22s ease;
}
.srph-toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.srph-toast.is-error { background: #b91c1c; }

.srph-btn-spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: srph-spin .7s linear infinite;
}
@keyframes srph-spin { to { transform: rotate(360deg); } }

/* Order popup */
body.srph-modal-open { overflow: hidden !important; }
.srph-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.srph-modal.is-open { opacity: 1; visibility: visible; }
.srph-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .63);
  backdrop-filter: blur(4px);
}
.srph-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .32);
  transform: translateY(24px) scale(.98);
  transition: .22s ease;
  scrollbar-width: thin;
}
.srph-modal.is-open .srph-modal-dialog { transform: translateY(0) scale(1); }
.srph-modal-close {
  appearance: none;
  position: absolute;
  right: 16px;
  top: 11px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.srph-modal-close:hover { background: #f1f5f9; color: #111827; }
.srph-modal-loading { min-height: 310px; display: grid; place-items: center; color: #64748b; font-weight: 700; }
.srph-modal-header { padding: 20px 58px 18px 24px; border-bottom: 1px solid #e5e7eb; text-align: center; }
.srph-modal-header h2 { margin: 0; color: #111827; font-size: 22px; line-height: 1.2; font-weight: 800; }
.srph-order-form { padding: 20px 24px 24px; }
.srph-modal-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #f8fafc;
}
.srph-modal-product img { width: 72px; height: 72px; border-radius: 10px; object-fit: contain; background: #fff; }
.srph-modal-product strong { display: block; margin-bottom: 6px; font-size: 14px; line-height: 1.35; }
.srph-modal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #94a3b8; font-size: 13px; }
.srph-modal-price > div { color: #ff5a1f; font-size: 23px; font-weight: 850; }
.srph-modal-price del { color: #94a3b8; font-size: 13px; }
.srph-modal-price ins { text-decoration: none; color: #ff5a1f; }

.srph-field { display: block; margin-bottom: 15px; }
.srph-field > span,
.srph-delivery-field legend,
.srph-attribute-group > span { display: block; margin-bottom: 7px; color: #172033; font-size: 13px; font-weight: 650; }
.srph-field b,
.srph-delivery-field b { color: var(--srph-pink); }
.srph-field input,
.srph-field textarea,
.srph-coupon-row input {
  appearance: none;
  width: 100% !important;
  min-height: 43px !important;
  border: 1px solid var(--srph-pink) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  padding: 10px 13px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  outline: none !important;
}
.srph-field textarea { resize: vertical; }
.srph-field input:focus,
.srph-field textarea:focus,
.srph-coupon-row input:focus { box-shadow: 0 0 0 4px rgba(236, 0, 140, .08) !important; }
.srph-phone-field { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--srph-pink); border-radius: 8px; overflow: hidden; }
.srph-phone-field > span { min-width: 83px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #e5e7eb; color: #111827; font-size: 13px; }
.srph-phone-field input { border: 0 !important; border-radius: 0 !important; }

.srph-variation-fields { margin-bottom: 15px; }
.srph-attribute-group { margin-bottom: 13px; }
.srph-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.srph-option-btn {
  appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  cursor: pointer;
}
.srph-option-btn:hover,
.srph-option-btn.is-selected { border-color: var(--srph-pink); background: #fff1f8; color: #be006f; box-shadow: 0 0 0 2px rgba(236, 0, 140, .08); }

.srph-delivery-field { margin: 0 0 15px; padding: 0; border: 0; }
.srph-delivery-field label {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  background: #fff;
  cursor: pointer;
}
.srph-delivery-field label:first-of-type { border-radius: 9px 9px 0 0; }
.srph-delivery-field label:last-of-type { border-bottom: 1px solid #e2e8f0; border-radius: 0 0 9px 9px; }
.srph-delivery-field input { accent-color: var(--srph-pink); width: 19px; height: 19px; }
.srph-delivery-field span { font-size: 13px; }
.srph-delivery-field strong { font-size: 13px; color: #111827; }

.srph-order-qty-row { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 13px; align-items: end; margin-bottom: 15px; }
.srph-field--qty { margin: 0; }
.srph-live-total { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.srph-live-total span { color: #64748b; font-size: 12px; }
.srph-live-total strong { color: #ff5a1f; font-size: 20px; }

.srph-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) 107px; gap: 9px; margin-bottom: 8px; }
.srph-coupon-row button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--srph-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.srph-coupon-row button:hover { background: var(--srph-pink-dark); }
.srph-coupon-row button:disabled { opacity: .65; cursor: wait; }
.srph-coupon-message,
.srph-form-alert { margin: 8px 0 13px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.srph-coupon-message.is-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.srph-coupon-message.is-error,
.srph-form-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.srph-place-order-btn {
  appearance: none;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #08bf60, #059447);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 25px rgba(8, 184, 90, .22);
  cursor: pointer;
}
.srph-place-order-btn:hover { background: #058d46; }
.srph-place-order-btn:disabled { opacity: .75; cursor: wait; }
.srph-order-note { margin: 10px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; text-align: center; }

.srph-order-success { padding: 44px 28px 32px; text-align: center; }
.srph-success-icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 36px; font-weight: 900; }
.srph-order-success h3 { margin: 0 0 8px; color: #111827; font-size: 25px; }
.srph-order-success p { color: #64748b; font-size: 13px; line-height: 1.55; }
.srph-success-order-number { margin: 20px 0; padding: 16px; border: 1px dashed #86efac; border-radius: 12px; background: #f0fdf4; }
.srph-success-order-number span { display: block; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.srph-success-order-number strong { display: block; margin-top: 4px; color: #15803d; font-size: 29px; }
.srph-track-order-btn,
.srph-success-close { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; font-size: 13px; font-weight: 800; cursor: pointer; }
.srph-track-order-btn { margin-top: 16px; background: #0969ff; color: #fff; }
.srph-success-close { margin-top: 9px; background: #f1f5f9; color: #334155; }

/* Tracking */
.srph-tracking-page { min-height: 70vh; padding: 55px 0 75px; background: #f5f7fb; }
.srph-tracking-container { width: min(940px, calc(100% - 30px)); margin-inline: auto; }
.srph-tracking-hero { margin-bottom: 24px; text-align: center; }
.srph-tracking-hero > span { color: #0969ff; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.srph-tracking-hero h1 { margin: 8px 0 10px; color: #0f172a; font-size: clamp(31px, 5vw, 47px); line-height: 1.15; letter-spacing: -.04em; }
.srph-tracking-hero p { max-width: 620px; margin: 0 auto; color: #64748b; font-size: 14px; }
.srph-track-card,
.srph-track-result { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.07); }
.srph-track-card { padding: 22px; }
.srph-track-form { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 13px; align-items: end; }
.srph-track-form label > span { display: block; margin-bottom: 7px; color: #334155; font-size: 12px; font-weight: 700; }
.srph-track-form input { width: 100%; min-height: 47px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px 12px; outline: none; }
.srph-track-form input:focus { border-color: #0969ff; box-shadow: 0 0 0 4px rgba(9,105,255,.08); }
.srph-track-phone { display: grid; grid-template-columns: 54px minmax(0,1fr); border: 1px solid #cbd5e1; border-radius: 9px; overflow: hidden; }
.srph-track-phone span { display: grid; place-items: center; background: #f8fafc; border-right: 1px solid #e2e8f0; font-size: 12px; }
.srph-track-phone input { border: 0; border-radius: 0; }
.srph-track-form button { min-height: 47px; border: 0; border-radius: 9px; background: #0969ff; color: #fff; padding: 0 22px; font-size: 13px; font-weight: 800; cursor: pointer; }
.srph-track-error { margin-top: 14px; padding: 11px 13px; border: 1px solid #fecaca; border-radius: 9px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.srph-track-result { margin-top: 20px; padding: 25px; }
.srph-track-result-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.srph-track-result-head span { color: #64748b; font-size: 12px; font-weight: 700; }
.srph-track-result-head h2 { margin: 4px 0 0; font-size: 25px; }
.srph-track-result-head > strong { color: #0969ff; font-size: 23px; }
.srph-status-timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 28px 0; }
.srph-status-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94a3b8; text-align: center; font-size: 11px; font-weight: 700; }
.srph-status-step::before { content: ''; position: absolute; left: -50%; right: 50%; top: 17px; height: 3px; background: #e2e8f0; }
.srph-status-step:first-child::before { display: none; }
.srph-status-step i { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 3px solid #e2e8f0; border-radius: 50%; background: #fff; font-style: normal; }
.srph-status-step.is-done { color: #15803d; }
.srph-status-step.is-done::before { background: #22c55e; }
.srph-status-step.is-done i { border-color: #22c55e; background: #dcfce7; color: #15803d; }
.srph-status-step.is-current i { box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.srph-special-status { margin: 22px 0; padding: 14px; border-radius: 10px; text-align: center; font-weight: 800; }
.srph-special-status--cancelled,
.srph-special-status--failed { background: #fef2f2; color: #b91c1c; }
.srph-special-status--refunded { background: #eff6ff; color: #1d4ed8; }
.srph-order-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.srph-order-details-grid > div { padding: 13px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; }
.srph-order-details-grid span { display: block; color: #64748b; font-size: 11px; }
.srph-order-details-grid strong { display: block; margin-top: 4px; color: #111827; font-size: 13px; line-height: 1.45; }
.srph-track-items { margin-top: 24px; }
.srph-track-items h3 { margin: 0 0 12px; font-size: 17px; }
.srph-track-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e5e7eb; }
.srph-track-item img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; background: #f8fafc; }
.srph-track-item strong { display: block; font-size: 13px; }
.srph-track-item span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.srph-track-item b { font-size: 13px; }

@media (max-width: 1180px) {
  .srph-category-scroll { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .srph-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .srph-category-scroll { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  .srph-category-scroll::-webkit-scrollbar { display: none; }
  .srph-category-card { flex: 0 0 125px; scroll-snap-align: start; }
  .srph-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .srph-track-form { grid-template-columns: 1fr 1fr; }
  .srph-track-form button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .srph-container { width: min(100% - 20px, 1320px); }
  .srph-section-head { align-items: flex-start; }
  .srph-title-wrap { gap: 9px; }
  .srph-section h2 { font-size: 21px; }
  .srph-view-all { font-size: 12px; }
  .srph-countdown > span { min-width: 38px; height: 37px; }
  .srph-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .srph-product-body { padding: 9px; }
  .srph-product-body h3 { min-height: 38px; font-size: 12px; }
  .srph-price-row .price { font-size: 14px; }
  body .srph-product-card .srph-cart-btn,
  body .srph-product-card button.srph-cart-btn,
  body .srph-product-card a.srph-cart-btn { min-width: 61px !important; max-width: 76px !important; height: 34px !important; min-height: 34px !important; padding: 0 7px !important; font-size: 9px !important; gap: 3px !important; }
  .srph-cart-icon { font-size: 11px; }
  body .srph-product-card .srph-buy-btn,
  body .srph-product-card button.srph-buy-btn,
  body .srph-product-card a.srph-buy-btn,
  .srph-stockout { min-height: 38px !important; font-size: 12px !important; }

  .srph-modal { padding: 0; align-items: flex-end; }
  .srph-modal-dialog { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .srph-modal-header { padding: 17px 52px 15px 18px; }
  .srph-modal-header h2 { font-size: 19px; }
  .srph-order-form { padding: 16px 15px 22px; }
  .srph-modal-product { grid-template-columns: 58px minmax(0,1fr); padding: 9px; }
  .srph-modal-product img { width: 58px; height: 58px; }
  .srph-modal-price > div { font-size: 19px; }
  .srph-order-qty-row { grid-template-columns: 94px minmax(0,1fr); }
  .srph-live-total strong { font-size: 16px; }
  .srph-coupon-row { grid-template-columns: minmax(0,1fr) 83px; }

  .srph-tracking-page { padding: 36px 0 55px; }
  .srph-track-card,
  .srph-track-result { padding: 16px; }
  .srph-track-form { grid-template-columns: 1fr; }
  .srph-track-form button { grid-column: auto; }
  .srph-track-result-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .srph-status-timeline { overflow-x: auto; grid-template-columns: repeat(4, 115px); padding-bottom: 8px; }
  .srph-order-details-grid { grid-template-columns: 1fr; }
  .srph-track-item { grid-template-columns: 50px minmax(0,1fr); }
  .srph-track-item img { width: 50px; height: 50px; }
  .srph-track-item > b { grid-column: 2; }
}

/* ===== SR Prime v2.2 modern fast cart ===== */
.srph-cart-active #secondary,
.srph-cart-active .site-sidebar,
.srph-cart-active .widget-area:not(.footer-widget-area) { display: none !important; }
.srph-cart-active main { max-width: none !important; width: 100% !important; }
.srph-fast-cart-page { min-height: 72vh; background: linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%); padding: 42px 0 68px; color: #0f172a; }
.srph-cart-container { width: min(1240px, calc(100% - 30px)); }
.srph-cart-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.srph-cart-page-head span { color: #ec008c; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.srph-cart-page-head h1 { margin: 4px 0 5px; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; }
.srph-cart-page-head p { margin: 0; max-width: 700px; color: #64748b; }
.srph-cart-page-head > a { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 1px solid #dbe3ef; border-radius: 11px; background: #fff; display: inline-flex; align-items: center; font-weight: 800; color: #0f172a; }
.srph-cart-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr); gap: 22px; align-items: start; }
.srph-cart-products-card,
.srph-cart-order-card,
.srph-cart-empty { background: #fff; border: 1px solid #e4eaf2; border-radius: 24px; box-shadow: 0 18px 55px rgba(15,23,42,.08); }
.srph-cart-products-card { padding: 24px; }
.srph-cart-card-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #edf2f7; }
.srph-cart-card-title h2 { margin: 0; font-size: 24px; }
.srph-cart-card-title span { color: #64748b; font-size: 13px; }
.srph-cart-items { display: grid; }
.srph-cart-item { position: relative; display: grid; grid-template-columns: 118px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid #edf2f7; transition: opacity .2s ease; }
.srph-cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.srph-cart-item.is-loading { opacity: .55; }
.srph-cart-item-image { width: 118px; height: 118px; border: 1px solid #e8edf4; border-radius: 16px; overflow: hidden; background: #f8fafc; }
.srph-cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.srph-cart-item-info { min-width: 0; }
.srph-cart-item-info h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.35; }
.srph-cart-item-info h3 a { color: #0f172a; }
.srph-cart-variation { color: #64748b; font-size: 12px; margin-bottom: 6px; }
.srph-cart-variation dl { margin: 0; display: flex; gap: 6px; }
.srph-cart-unit-price { color: #64748b; font-size: 12px; }
.srph-cart-item-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.srph-cart-qty { display: inline-grid; grid-template-columns: 34px 46px 34px; border: 1px solid #dbe3ef; border-radius: 10px; overflow: hidden; background: #fff; }
.srph-cart-qty button,
.srph-cart-qty input { height: 36px; border: 0 !important; background: #fff !important; color: #111827 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; text-align: center; }
.srph-cart-qty button { font-size: 19px !important; cursor: pointer; }
.srph-cart-qty input { width: 46px !important; border-left: 1px solid #edf2f7 !important; border-right: 1px solid #edf2f7 !important; font-weight: 800; -moz-appearance: textfield; }
.srph-cart-qty input::-webkit-outer-spin-button,
.srph-cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.srph-cart-remove { border: 0 !important; background: transparent !important; color: #ef4444 !important; font-size: 12px !important; font-weight: 800 !important; padding: 6px !important; cursor: pointer; box-shadow: none !important; }
.srph-cart-line-total { align-self: center; white-space: nowrap; color: #ec008c; font-size: 18px; }

.srph-cart-order-card { position: sticky; top: 18px; padding: 24px; overflow: hidden; }
.srph-cart-order-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #edf2f7; }
.srph-cart-order-head span { color: #ec008c; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.srph-cart-order-head h2 { margin: 4px 0 0; font-size: 24px; }
.srph-cart-order-head > b { display: grid; place-items: center; width: 52px; height: 34px; border-radius: 9px; background: #ecfdf3; color: #079650; font-size: 12px; }
.srph-cart-field { display: block; margin-bottom: 13px; }
.srph-cart-field > span,
.srph-cart-delivery legend { display: block; margin-bottom: 7px; color: #0f172a; font-size: 13px; font-weight: 800; }
.srph-cart-field b,
.srph-cart-delivery legend b { color: #ec008c; }
.srph-cart-field small { color: #94a3b8; font-weight: 600; }
.srph-cart-field input,
.srph-cart-field textarea { width: 100%; min-height: 45px; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; padding: 10px 12px; outline: none; font: inherit; color: #0f172a; }
.srph-cart-field textarea { resize: vertical; }
.srph-cart-field input:focus,
.srph-cart-field textarea:focus { border-color: #ec008c; box-shadow: 0 0 0 4px rgba(236,0,140,.08); }
.srph-cart-phone { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: stretch; }
.srph-cart-phone i { min-width: 84px; display: flex; align-items: center; justify-content: center; border: 1px solid #dbe3ef; border-right: 0; border-radius: 10px 0 0 10px; background: #f8fafc; color: #334155; font-style: normal; font-size: 13px; }
.srph-cart-phone input { border-radius: 0 10px 10px 0; }
.srph-cart-delivery { margin: 0 0 13px; padding: 0; border: 0; }
.srph-cart-delivery label { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #dbe3ef; border-bottom: 0; background: #fff; cursor: pointer; }
.srph-cart-delivery label:first-of-type { border-radius: 11px 11px 0 0; }
.srph-cart-delivery label:last-of-type { border-bottom: 1px solid #dbe3ef; border-radius: 0 0 11px 11px; }
.srph-cart-delivery label.is-selected { position: relative; z-index: 1; border-color: #ec008c; background: #fff5fb; }
.srph-cart-delivery input { width: 18px; height: 18px; accent-color: #ec008c; }
.srph-cart-delivery span { display: flex; flex-direction: column; }
.srph-cart-delivery span strong { font-size: 13px; }
.srph-cart-delivery span small { color: #64748b; font-size: 10px; }
.srph-cart-delivery > label > b { color: #0f172a; font-size: 13px; }
.srph-cart-totals { margin-top: 16px; padding: 15px; border-radius: 14px; background: #f8fafc; border: 1px solid #e8edf4; }
.srph-cart-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: #64748b; font-size: 13px; }
.srph-cart-totals strong { color: #0f172a; }
.srph-cart-totals .srph-cart-grand-total { margin-top: 8px; padding-top: 13px; border-top: 1px dashed #cbd5e1; font-size: 17px; font-weight: 900; color: #0f172a; }
.srph-cart-grand-total strong { color: #ec008c; font-size: 21px; }
.srph-cart-confirm { width: 100% !important; min-height: 50px !important; margin-top: 14px !important; border: 0 !important; border-radius: 11px !important; background: linear-gradient(135deg,#0bbc61,#078f49) !important; color: #fff !important; box-shadow: 0 12px 24px rgba(8,184,90,.22) !important; font-size: 14px !important; font-weight: 900 !important; cursor: pointer; }
.srph-cart-confirm:disabled { opacity: .7; cursor: wait; }
.srph-cart-safe-note { margin: 9px 0 0; text-align: center; color: #64748b; font-size: 11px; }
.srph-cart-form-alert { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 9px; background: #fff1f2; color: #b91c1c; font-size: 12px; font-weight: 700; }
.srph-cart-success { text-align: center; padding: 28px 12px 18px; }
.srph-cart-success > div { width: 66px; height: 66px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #079650; font-size: 34px; font-weight: 900; }
.srph-cart-success h2 { margin: 0 0 7px; }
.srph-cart-success p { color: #64748b; }
.srph-cart-success > strong { display: block; margin: 10px 0 18px; color: #ec008c; font-size: 34px; }
.srph-cart-success a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #0969ff; color: #fff; font-weight: 850; }
.srph-cart-empty { max-width: 760px; margin: 0 auto; padding: 70px 24px; text-align: center; }
.srph-cart-empty > div { font-size: 54px; }
.srph-cart-empty h2 { margin: 10px 0 5px; }
.srph-cart-empty p { color: #64748b; }
.srph-cart-empty a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; padding: 0 18px; border-radius: 10px; background: #0969ff; color: #fff; font-weight: 850; }
.srph-cart-toast { position: fixed; left: 50%; bottom: 26px; z-index: 99999; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; max-width: calc(100% - 30px); padding: 11px 17px; border-radius: 10px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 750; transition: .2s ease; }
.srph-cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.srph-cart-toast.is-error { background: #b91c1c; }

@media (max-width: 980px) {
  .srph-cart-layout { grid-template-columns: 1fr; }
  .srph-cart-order-card { position: static; }
}
@media (max-width: 640px) {
  .srph-fast-cart-page { padding-top: 24px; }
  .srph-cart-page-head { align-items: flex-start; flex-direction: column; }
  .srph-cart-page-head > a { display: none; }
  .srph-cart-products-card,
  .srph-cart-order-card { padding: 15px; border-radius: 18px; }
  .srph-cart-item { grid-template-columns: 82px minmax(0,1fr); gap: 12px; align-items: start; }
  .srph-cart-item-image { width: 82px; height: 82px; }
  .srph-cart-item-info h3 { font-size: 14px; }
  .srph-cart-line-total { grid-column: 2; justify-self: start; font-size: 16px; }
  .srph-cart-item-controls { align-items: flex-start; flex-direction: column; gap: 5px; }
  .srph-cart-order-head h2 { font-size: 21px; }
}

/* Make category/shop/tag/archive pages use the same card and grid design */
.srph-listing-active .woocommerce ul.products,
.srph-listing-active ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.srph-listing-active .woocommerce ul.products::before,
.srph-listing-active .woocommerce ul.products::after,
.srph-listing-active ul.products::before,
.srph-listing-active ul.products::after { display: none !important; }

.srph-listing-active .woocommerce ul.products li.product,
.srph-listing-active ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.srph-listing-active .woocommerce ul.products li.product::before,
.srph-listing-active .woocommerce ul.products li.product::after { display:none !important; }
.srph-listing-active .woocommerce ul.products li.product a img,
.srph-listing-active ul.products li.product a img {
  margin: 0 !important;
  width: 100% !important;
}
.srph-listing-active .woocommerce ul.products li.product .button,
.srph-listing-active .woocommerce ul.products li.product .added_to_cart { display: none !important; }
.srph-listing-active .woocommerce span.onsale,
.srph-listing-active .sr-product-label { display: none !important; }
.srph-listing-active .woocommerce .woocommerce-ordering { margin-bottom: 18px; }
.srph-listing-active .woocommerce .woocommerce-result-count { margin-bottom: 18px; }

@media (max-width: 1199px) {
  .srph-listing-active .woocommerce ul.products,
  .srph-listing-active ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .srph-listing-active .woocommerce ul.products,
  .srph-listing-active ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .srph-listing-active .woocommerce ul.products,
  .srph-listing-active ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px !important; }
}

/* Unified smart single-product layout */
body.srfo-active.single-product .sr-commerce-shell { padding-top: 30px; }
body.srfo-active.single-product .woocommerce-breadcrumb { margin-bottom: 16px; }
body.srfo-active.single-product div.product {
  display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 34px; row-gap: 34px;
  padding: clamp(14px, 2.4vw, 28px); border-radius: 26px; overflow: visible;
}
body.srfo-active.single-product div.product > .woocommerce-product-gallery {
  float: none !important; width: calc(42% - 17px) !important; margin: 0 !important; position: sticky; top: 120px;
}
body.srfo-active.single-product div.product > .summary {
  float: none !important; width: calc(58% - 17px) !important; margin: 0 !important;
}
body.srfo-active.single-product div.product > .woocommerce-tabs,
body.srfo-active.single-product div.product > .related,
body.srfo-active.single-product div.product > .upsells { width: 100%; flex: 0 0 100%; clear: both; }
body.srfo-active.single-product .woocommerce-product-gallery__wrapper {
  background: #f8fafc; border: 1px solid #e8edf4; border-radius: 22px; overflow: hidden;
}
body.srfo-active.single-product .woocommerce-product-gallery__image a {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 16px;
}
body.srfo-active.single-product .woocommerce-product-gallery__image img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 15px;
}
body.srfo-active.single-product .flex-control-thumbs {
  display: flex; gap: 8px; margin-top: 10px !important; overflow-x: auto;
}
body.srfo-active.single-product .flex-control-thumbs li {
  width: 62px !important; flex: 0 0 62px; border: 1px solid #e2e8f0; border-radius: 11px; overflow: hidden; background: #fff;
}
body.srfo-active.single-product .summary .product_title {
  font-size: clamp(25px, 3vw, 38px); line-height: 1.18; letter-spacing: -.035em; margin: 12px 0;
}
body.srfo-active.single-product .summary .woocommerce-product-rating { margin: 0 0 10px; }
body.srfo-active.single-product .summary p.price,
body.srfo-active.single-product .summary span.price {
  color: #0f172a; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 900; margin: 10px 0;
}
body.srfo-active.single-product .summary .woocommerce-product-details__short-description {
  color: #64748b; font-size: 14px; line-height: 1.75; padding-bottom: 15px; border-bottom: 1px solid #eef2f7;
}
.srfo-product-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.srfo-badge {
  display: inline-flex; align-items: center; min-height: 25px; padding: 5px 9px; color: #64748b;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 10px; line-height: 1; font-weight: 800; text-transform: uppercase;
}
.srfo-badge--brand, .srfo-badge--trust { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.srfo-delivery-box {
  display: grid; gap: 9px; margin: 18px 0 6px; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px;
}
.srfo-info-row { display: flex; align-items: flex-start; gap: 9px; color: #475569; font-size: 12px; line-height: 1.65; }
.srfo-info-row strong { color: #0f766e; }
.srfo-info-icon { flex: 0 0 auto; font-size: 16px; }
body.srfo-active.single-product .product-type-simple form.cart {
  display: grid !important; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 18px 0 0 !important;
}
body.srfo-active.single-product .product-type-simple form.cart .quantity { grid-column: 1; }
body.srfo-active.single-product .product-type-simple form.cart .single_add_to_cart_button { grid-column: 3; grid-row: 1; }
body.srfo-active.single-product .product-type-simple form.cart .srfo-buy-now-button { grid-column: 2; grid-row: 1; }
body.srfo-active.single-product .product-type-variable form.variations_form { display: block !important; margin-top: 18px; }
body.srfo-active.single-product form.variations_form table.variations { margin-bottom: 8px; }
body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart {
  display: grid !important; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch;
}
body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .quantity { grid-column: 1; }
body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button { grid-column: 3; grid-row: 1; }
body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .srfo-buy-now-button { grid-column: 2; grid-row: 1; }
body.srfo-active.single-product form.cart .quantity .qty { width: 100%; height: 50px; text-align: center; }
body.srfo-active.single-product form.cart .single_add_to_cart_button,
body.srfo-active.single-product form.cart .srfo-buy-now-button {
  width: 100%; min-height: 50px; padding: 0 12px !important; border: 0; border-radius: 12px;
  font-size: 12px; font-weight: 900; line-height: 1.25; text-align: center; white-space: normal;
}
body.srfo-active.single-product form.cart .single_add_to_cart_button { background: #0f172a !important; }
body.srfo-active.single-product form.cart .single_add_to_cart_button:hover { background: #1e293b !important; }
body.srfo-active.single-product form.cart .srfo-buy-now-button {
  order: -1; background: #059669 !important; box-shadow: 0 10px 22px rgba(5, 150, 105, .18);
}
body.srfo-active.single-product form.cart .srfo-buy-now-button:hover { background: #047857 !important; }
.srfo-support-box { margin-top: 18px; padding-top: 15px; border-top: 1px solid #eef2f7; }
.srfo-support-box p {
  margin: 0 0 8px; color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.srfo-support-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.srfo-support-link {
  display: flex; align-items: center; justify-content: center; min-height: 41px; padding: 8px; color: #334155;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px; font-size: 11px; font-weight: 850;
}
.srfo-support-link--whatsapp { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
body.srfo-active.single-product .product_meta { display: none; }

@media (max-width: 980px) {
  body.srfo-active.single-product div.product > .woocommerce-product-gallery,
  body.srfo-active.single-product div.product > .summary { width: 100% !important; }
  body.srfo-active.single-product div.product > .woocommerce-product-gallery { position: static; max-width: 620px; margin-inline: auto !important; }
}
@media (max-width: 680px) {
  body.srfo-active.single-product .sr-commerce-shell { padding-top: 18px; }
  body.srfo-active.single-product div.product { gap: 22px; padding: 10px; border-radius: 18px; }
  body.srfo-active.single-product .summary .product_title { font-size: 25px; }
  body.srfo-active.single-product .product-type-simple form.cart,
  body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart { grid-template-columns: 72px 1fr; }
  body.srfo-active.single-product .product-type-simple form.cart .quantity,
  body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .quantity { grid-column: 1; grid-row: 1 / span 2; }
  body.srfo-active.single-product .product-type-simple form.cart .srfo-buy-now-button,
  body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .srfo-buy-now-button { grid-column: 2; grid-row: 1; }
  body.srfo-active.single-product .product-type-simple form.cart .single_add_to_cart_button,
  body.srfo-active.single-product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button { grid-column: 2; grid-row: 2; }
  .srfo-support-actions { grid-template-columns: 1fr; }
}

/* v3.1: keep the hidden order modal from blocking footer/header links. */
.srph-modal {
  pointer-events: none;
}
.srph-modal.is-open {
  pointer-events: auto;
}


/* v3.2: force hidden modal states to stay hidden across themes/browsers. */
#srph-order-modal [hidden],
#srph-order-modal .srph-modal-loading[hidden],
#srph-order-modal .srph-modal-content[hidden],
#srph-order-modal .srph-order-success[hidden],
#srph-order-modal .srph-form-alert[hidden],
#srph-order-modal .srph-coupon-message[hidden],
#srph-order-modal .srph-variation-fields[hidden] {
  display: none !important;
}
#srph-order-modal .srph-modal-loading:not([hidden]) {
  display: grid !important;
}
#srph-order-modal .srph-modal-content:not([hidden]) {
  display: block !important;
}

/* v3.3: single-product description/tabs and related-card fixes. */
body.srfo-active.single-product div.product > .woocommerce-product-gallery {
  position: static !important;
  top: auto !important;
  align-self: flex-start !important;
}

body.srfo-active.single-product div.product > .woocommerce-tabs,
body.srfo-active.single-product div.product > .related.products,
body.srfo-active.single-product div.product > .upsells.products {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  clear: both !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.srfo-active.single-product div.product > .woocommerce-tabs {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #eef2f7;
}

body.srfo-active.single-product div.product .woocommerce-tabs ul.tabs {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.srfo-active.single-product div.product .woocommerce-tabs .panel {
  position: static !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  color: #334155;
  line-height: 1.8;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.srfo-active.single-product div.product .woocommerce-tabs .panel > * {
  max-width: 100% !important;
}

body.srfo-active.single-product div.product .woocommerce-tabs .panel img {
  max-width: 100%;
  height: auto;
}

body.srfo-active.single-product .related.products,
body.srfo-active.single-product .upsells.products {
  margin-top: 18px !important;
  padding-top: 22px !important;
  border-top: 1px solid #eef2f7;
}

body.srfo-active.single-product .related.products > h2,
body.srfo-active.single-product .upsells.products > h2 {
  margin: 0 0 18px !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.2;
}

body.srfo-active.single-product .related.products ul.products,
body.srfo-active.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.srfo-active.single-product .related.products ul.products::before,
body.srfo-active.single-product .related.products ul.products::after,
body.srfo-active.single-product .upsells.products ul.products::before,
body.srfo-active.single-product .upsells.products ul.products::after {
  display: none !important;
}

body.srfo-active.single-product .related.products ul.products li.product,
body.srfo-active.single-product .upsells.products ul.products li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.srfo-active.single-product .related.products ul.products li.product > a,
body.srfo-active.single-product .upsells.products ul.products li.product > a,
body.srfo-active.single-product .related.products ul.products li.product > .button,
body.srfo-active.single-product .upsells.products ul.products li.product > .button {
  display: none !important;
}

body.srfo-active.single-product .related.products .srph-product-card,
body.srfo-active.single-product .upsells.products .srph-product-card {
  height: 100%;
}

body.srfo-active.single-product .related.products .srph-product-body,
body.srfo-active.single-product .upsells.products .srph-product-body {
  display: flex;
  flex-direction: column;
  min-height: 205px;
}

body.srfo-active.single-product .related.products .srph-price-cart-row,
body.srfo-active.single-product .upsells.products .srph-price-cart-row {
  margin-top: auto;
}

@media (max-width: 1100px) {
  body.srfo-active.single-product .related.products ul.products,
  body.srfo-active.single-product .upsells.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.srfo-active.single-product .related.products ul.products,
  body.srfo-active.single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  body.srfo-active.single-product div.product > .woocommerce-tabs {
    padding-top: 0 !important;
  }
  body.srfo-active.single-product div.product .woocommerce-tabs ul.tabs {
    gap: 7px !important;
  }
}

/* v3.5 — consistent product-card button alignment */
.srph-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.srph-product-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.srph-product-body h3 {
  min-height: 42px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.srph-rating-row { min-height: 22px; }
.srph-price-cart-row {
  margin-top: auto;
  min-height: 54px;
  align-items: flex-end;
}
.srph-buy-btn,
.srph-stockout { flex: 0 0 auto; }

/* v3.5 — contact page */
.srps-contact-page,
.srps-404-page { background: #f4f7fb; color: #0f172a; }
.srps-page-kicker {
  display: inline-block;
  color: #0b6cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.srps-contact-hero {
  padding: 72px 0 110px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(14,165,233,.12), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(37,99,235,.11), transparent 28%),
    linear-gradient(180deg, #fff, #eef5ff);
}
.srps-contact-hero h1 {
  margin: 10px auto 14px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.srps-contact-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1.8;
}
.srps-contact-main { margin-top: -62px; padding-bottom: 80px; }
.srps-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.srps-contact-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15,23,42,.07);
  transition: .2s ease;
}
.srps-contact-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 18px 45px rgba(15,23,42,.11); }
.srps-contact-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #0b6cff;
  font-size: 23px;
}
.srps-contact-card div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srps-contact-card strong { font-size: 15px; color: #0f172a; }
.srps-contact-card span:last-child { color: #64748b; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srps-contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.srps-contact-info-panel,
.srps-contact-form-panel {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
}
.srps-contact-info-panel { background: linear-gradient(145deg, #071426, #0b2b64); color: #fff; }
.srps-contact-info-panel .srps-page-kicker { color: #67e8f9; }
.srps-contact-info-panel h2,
.srps-contact-form-panel h2 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.srps-contact-info-panel > p { color: #cbd5e1; line-height: 1.8; }
.srps-contact-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.srps-contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.srps-contact-list li > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.09); }
.srps-contact-list div { display: flex; flex-direction: column; gap: 3px; }
.srps-contact-list strong { font-size: 14px; color: #fff; }
.srps-contact-list p,
.srps-contact-list a { margin: 0; color: #a9bad0; font-size: 13px; line-height: 1.55; }
.srps-contact-list a:hover { color: #fff; }
.srps-contact-shop-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
  color: #0b2b64;
  font-weight: 850;
}
.srps-contact-form-head { margin-bottom: 22px; }
.srps-contact-form { display: grid; gap: 16px; }
.srps-contact-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.srps-contact-form label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 750; }
.srps-contact-form label b { color: #ef4444; }
.srps-contact-form label small { color: #94a3b8; font-weight: 500; }
.srps-contact-form input,
.srps-contact-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  outline: none;
  color: #0f172a;
  font: inherit;
}
.srps-contact-form textarea { resize: vertical; min-height: 150px; }
.srps-contact-form input:focus,
.srps-contact-form textarea:focus { border-color: #0b6cff; box-shadow: 0 0 0 4px rgba(11,108,255,.09); background: #fff; }
.srps-contact-form button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b6cff, #0755cc);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(11,108,255,.22);
}
.srps-contact-form button:hover { transform: translateY(-1px); }
.srps-contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.srps-contact-privacy { margin: -4px 0 0; text-align: center; color: #94a3b8; font-size: 11px; }
.srps-contact-notice { margin-bottom: 16px; padding: 13px 15px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.srps-contact-notice--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.srps-contact-notice--error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* v3.5 — custom 404 */
.srps-404-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 76px 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(14,165,233,.12), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(59,130,246,.12), transparent 26%),
    linear-gradient(180deg, #fff, #f2f7ff);
}
.srps-404-inner { text-align: center; }
.srps-404-number {
  margin-bottom: -24px;
  color: rgba(11,108,255,.09);
  font-size: clamp(120px, 23vw, 260px);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.08em;
}
.srps-404-inner h1 { margin: 10px auto 13px; max-width: 820px; font-size: clamp(38px, 6vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.srps-404-inner > p { max-width: 720px; margin: 0 auto 28px; color: #64748b; font-size: 16px; line-height: 1.8; }
.srps-404-search { max-width: 720px; margin: 0 auto 20px; display: grid; grid-template-columns: 1fr auto; padding: 6px; border: 1px solid #dbe3ee; border-radius: 15px; background: #fff; box-shadow: 0 14px 35px rgba(15,23,42,.08); }
.srps-404-search input { min-width: 0; height: 48px; border: 0; outline: 0; padding: 0 14px; font-size: 14px; }
.srps-404-search button { min-width: 130px; border: 0; border-radius: 11px; background: #0b6cff; color: #fff; font-weight: 850; cursor: pointer; }
.srps-404-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.srps-404-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 11px; font-weight: 850; }
.srps-404-primary { background: #0f172a; color: #fff; }
.srps-404-secondary { background: #fff; color: #0f172a; border: 1px solid #dbe3ee; }
.srps-404-products { padding: 68px 0 82px; }
.srps-404-products-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.srps-404-products-head h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.srps-404-products-head > a { color: #0b6cff; font-weight: 850; }

@media (max-width: 900px) {
  .srps-contact-cards { grid-template-columns: 1fr; }
  .srps-contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .srph-product-body h3 { min-height: 36px; }
  .srph-price-cart-row { min-height: 50px; }
  .srps-contact-hero { padding: 52px 0 92px; }
  .srps-contact-main { margin-top: -48px; padding-bottom: 54px; }
  .srps-contact-card { padding: 15px; }
  .srps-contact-field-grid { grid-template-columns: 1fr; }
  .srps-contact-info-panel,
  .srps-contact-form-panel { padding: 22px 18px; border-radius: 18px; }
  .srps-404-hero { min-height: 560px; padding: 54px 0; }
  .srps-404-number { margin-bottom: -12px; }
  .srps-404-search { grid-template-columns: 1fr; gap: 6px; }
  .srps-404-search button { height: 46px; }
  .srps-404-actions { flex-direction: column; }
  .srps-404-actions a { width: 100%; }
  .srps-404-products { padding: 48px 0 60px; }
  .srps-404-products-head { align-items: flex-start; flex-direction: column; }
}
