/* =========================================================
   Store Detail Page
   ========================================================= */

/* Main Layout */

.store-layout {
  display: grid;
  grid-template-columns: minmax(235px, 278px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* =========================================================
   Left Store Sidebar
   ========================================================= */

.store-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: none;
  overflow: visible;
  overflow-y: visible;
  overscroll-behavior: auto;
  scrollbar-width: none;
}

/* Store Logo */

.store-sidebar-logo {
  width: 100%;
  height: 142px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(255, 140, 66, 0.12),
      transparent 42%
    ),
    linear-gradient(145deg, #fffaf5, #f8fafc);
  border: 1px solid #f0e8e0;
  border-radius: 14px;

  overflow: hidden;
}

.store-sidebar-logo img {
  max-width: 82%;
  max-height: 100px;
  object-fit: contain;
}

.store-sidebar-logo-placeholder {
  padding: 18px;
  color: #313b49;
  font-size: 19px;
  font-weight: 800;
  overflow-wrap: anywhere;

  text-align: center;
}

/* Store Name */

.store-sidebar-name {
  margin: 0 0 15px;

  color: #111827;

  font-size: 21px;
  line-height: 1.35;
}

/* Visit Store */

.store-visit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #f36b16;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff7a1a, #f15b13);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(243, 107, 22, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.store-visit-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(243, 107, 22, 0.24);
  filter: saturate(1.05);
}

/* Sidebar Divider */

.store-sidebar-divider {
  height: 1px;
  margin: 18px 0;
  background: #edf0f4;
}

/* Sidebar Heading */

.store-sidebar h3 {
  margin: 0 0 10px;
  color: #222b38;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Sidebar Description */

.store-sidebar-description {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Sidebar Statistics */

.store-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
}

.store-stat span {
  color: #6b7280;
  font-size: 12px;
}

.store-stat strong {
  color: #273244;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

/* =========================================================
   Main Store Header
   ========================================================= */

.store-main-content {
  min-width: 0;
}

.store-main-header {
  position: relative;
  margin: 0 0 22px;
  padding: 30px 30px 25px;
  overflow: hidden;
  border: 1px solid #f2e7dd;
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(255, 122, 26, 0.13),
      transparent 42%
    ),
    linear-gradient(125deg, #fffaf6 0%, #ffffff 58%, #fff8f2 100%);
}

/* Breadcrumb */

.store-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #7b8492;
  font-size: 13px;
}

.store-page-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}

.store-page-breadcrumb a:hover {
  color: #f36b16;
}

.store-page-breadcrumb span:last-child {
  color: #f36b16;
  font-weight: 700;
}

/* Main Heading */

.store-main-header h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 10px;
  color: #172033;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -1.35px;
  overflow-wrap: anywhere;
}

.store-main-header > p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   Summary Statistics
   ========================================================= */

.store-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.store-summary-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 92px;
  padding: 17px 16px;
  border: 1px solid #e8edf2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.store-summary-item:hover {
  transform: translateY(-2px);
  border-color: #fbd0b0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.store-summary-item > div {
  min-width: 0;
}

.store-summary-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffeadb;
  border-radius: 12px;
  background: #fff5ec;
  color: #ed6818;
  font-size: 19px;
  font-weight: 650;
}

.store-summary-item strong {
  display: block;
  color: #202b3b;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.store-summary-item small {
  display: block;
  margin-top: 4px;
  color: #7a8493;
  font-size: 11px;
  font-weight: 550;
}

/* =========================================================
   Codes / Deals Tabs
   ========================================================= */

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
  box-sizing: border-box;
}

.store-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 15px;
  border-radius: 9px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.store-tabs a:hover {
  background: #fff;
  color: #d95d12;
  text-decoration: none;
}

.store-tabs a.active {
  background: #fff;
  color: #e85d04;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

/* =========================================================
   Latest Offers heading
   ========================================================= */

.store-offers-heading-copy {
  min-width: 0;
  margin: 7px 0 0;
  color: #7b8492;
  font-size: 13px;
  line-height: 1.6;
}

.store-section-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #e96818;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.35px;
}

/* =========================================================
   Offer Search and Sort
   ========================================================= */

.store-offers-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 330px;
  padding: 11px 13px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
  color: #697586;
  font-size: 11px;
  line-height: 1.55;
}

.store-offers-trust-note > span:first-child {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8ee;
  color: #16834a;
  font-weight: 900;
}

.store-offer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e8edf2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
}

.store-offer-search {
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
  min-height: 44px;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fafbfc;
}

.store-offer-search:focus-within {
  border-color: #fb923c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.09);
}

.store-offer-search-icon {
  color: #8a94a3;
  font-size: 21px;
  line-height: 1;
}

.store-offer-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 13px;
}

.store-offer-sort-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7b8492;
  font-size: 12px;
  white-space: nowrap;
}

.store-offer-sort-label select {
  min-height: 44px;
  max-width: 190px;
  padding: 0 32px 0 12px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background-color: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   Offer Section Heading
   ========================================================= */

.store-offers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  scroll-margin-top: 140px;
}

.store-offers-header h2 {
  margin: 0;
  color: #1d2736;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 850;
  letter-spacing: -0.7px;
  line-height: 1.2;
}

/* =========================================================
   Offer List
   ========================================================= */

.store-offers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================================================
   Individual Offer Card
   ========================================================= */

.store-offer-card {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 145px;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.store-offer-card:hover {
  transform: translateY(-2px);
  border-color: #f7c9a8;
  box-shadow: 0 13px 30px rgba(15, 23, 42, 0.075);
}

/* =========================================================
   Discount Block
   ========================================================= */

.store-offer-discount {
  width: 112px;
  min-width: 112px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  box-sizing: border-box;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  color: #ea580c;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: -0.55px;
  text-align: center;
}

.store-offer-discount strong,
.store-offer-discount b {
  color: #d6530b;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.store-offer-discount span {
  margin-top: 7px;
  color: #9a5b32;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* =========================================================
   Offer Content
   ========================================================= */

.store-offer-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-offer-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.store-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.store-code-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

/* Offer Title */

.store-offer-content h3 {
  margin: 0 0 8px;
  color: #111827;
  color: #202b3b;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.25px;
  overflow-wrap: anywhere;
}

/* Offer Meta */

.store-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: auto;
  padding-top: 8px;
  color: #8a94a3;
  font-size: 11px;
}

.store-offer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.store-offer-meta strong {
  color: #667085;
  font-weight: 750;
}

/* =========================================================
   Offer Actions
   ========================================================= */

.store-offer-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

/* Main Action */

.store-show-code-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 43px;
  padding: 11px 17px;
  border: 1px solid #f36b16;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a1a, #f15b13);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(243, 107, 22, 0.16);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.store-show-code-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(243, 107, 22, 0.24);
  filter: saturate(1.05);
}

.store-show-code-button:active {
  transform: translateY(0);
}

/* =========================================================
   View More Buttons
   ========================================================= */

.store-more-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.store-more-button {
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.store-more-button:hover {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

/* =========================================================
   Empty State
   ========================================================= */

.store-empty-state {
  padding: 42px 22px;
  border: 1px dashed #dfe5ec;
  border-radius: 17px;
  background: #fbfcfd;
  text-align: center;
}

.store-empty-state h3 {
  margin: 0 0 8px;
  color: #273244;
  font-size: 18px;
}

.store-empty-state p {
  max-width: 480px;
  margin: 0 auto;
  color: #7b8492;
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   Back Link
   ========================================================= */

.store-back-link {
  margin-top: 24px;
}

.store-back-link a {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.store-back-link a:hover {
  color: #f97316;
}

/* =========================================================
   Store Not Found
   ========================================================= */

.store-not-found {
  max-width: 650px;
  margin: 50px auto;
  padding: 42px 28px;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.055);
  text-align: center;
}

.store-not-found h1 {
  color: #202b3b;
  font-size: 28px;
  font-weight: 850;
}

.store-not-found p {
  color: #697586;
  line-height: 1.7;
}

.store-back-button {
  display: inline-block;
  padding: 11px 18px;
  background: #f97316;
  border: 1px solid #f97316;
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.store-back-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   Verified Label
   ========================================================= */

.store-verified-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid #ccebd7;
  background: #f0fbf4;
  color: #177245;
}

.store-seo-content {
  margin-top: 32px;
  padding: 25px;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  background: #fff;
}

.store-seo-content h2 {
  margin: 0 0 12px;
  color: #202b3b;
  font-size: 20px;
  font-weight: 850;
}

.store-seo-description {
  color: #697586;
  font-size: 13px;
  line-height: 1.8;
}

/* Keyboard focus */
.store-visit-button:focus-visible,
.store-tabs a:focus-visible,
.store-show-code-button:focus-visible,
.store-more-button:focus-visible,
.store-back-link a:focus-visible,
.store-back-button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* =========================================================
   Store Detail — balanced page gutters
   ========================================================= */

.store-page-main {
  width: auto;
  max-width: none;
  margin-left: 78px;
  margin-right: 72px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* =========================================================
   Store Detail — distinguish coupon and deal actions
   ========================================================= */

.store-show-code-button.offer-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  width: 100%;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

/* Orange = coupon code action */
.store-show-code-button.offer-action-button.coupon-action {
  background: #f97316;
  border-color: #f97316;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.14);
}

.store-show-code-button.offer-action-button.coupon-action:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 7px 16px rgba(249, 115, 22, 0.27);
  transform: translateY(-1px);
}

/* Blue = direct deal action */
.store-show-code-button.offer-action-button.deal-action {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.14);
}

.store-show-code-button.offer-action-button.deal-action:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.store-show-code-button.offer-action-button .offer-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.store-show-code-button.offer-action-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

.store-show-code-button.offer-action-button:hover .offer-action-icon {
  transform: translateX(2px);
}

.store-show-code-button.offer-action-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.12);
}

.store-offer-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

/* Recently Viewed Stores */
.store-recently-viewed {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.store-recently-viewed h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--store-text, #172033);
}

.store-recently-viewed ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-recently-viewed li {
  margin: 0;
}

.store-recently-viewed a {
  display: block;
  padding: 9px 11px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  color: #4b5563;
  font-size: 12px;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.store-recently-viewed a:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  text-underline-offset: 3px;
}

.store-recently-viewed a:focus-visible {
  outline: 2px solid #ff6a00;
  outline-offset: 3px;
  border-radius: 3px;
}

.store-recently-viewed-empty {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}
.store-recently-viewed-empty[hidden] {
  display: none !important;
}

/* =========================================================
   Stores Hero Section
   ========================================================= */

.store-hero-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.store-hero-verified,
.store-hero-offer-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid #e7ebf0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #526071;
  font-size: 11px;
  font-weight: 750;
}

.store-hero-verified {
  border-color: #ccebd7;
  background: #f0fbf4;
  color: #177245;
}

.store-hero-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.store-hero-inline-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #e2e7ed;
  border-radius: 10px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.store-hero-inline-actions button:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

/* =========================================================
   Responsive Store Detail Layout
   ========================================================= */
@media (max-width: 1100px) {
  .store-page-main {
    margin-left: 28px;
    margin-right: 28px;
  }

  .store-layout {
    grid-template-columns: minmax(210px, 245px) minmax(0, 1fr);
    gap: 20px;
  }

  .store-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-offer-card {
    grid-template-columns: 100px minmax(0, 1fr) 130px;
    gap: 14px;
  }

  .store-offer-discount {
    width: 100px;
    min-width: 100px;
  }
}

@media (max-width: 760px) {
  .store-page-main {
    margin-left: 16px;
    margin-right: 16px;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .store-sidebar {
    position: static;
    top: auto;
  }

  .store-sidebar-logo {
    height: 110px;
  }

  .store-main-header {
    padding: 24px 20px 20px;
  }

  .store-main-header h1 {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -0.7px;
  }

  .store-offers-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .store-offer-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .store-offer-sort-label {
    justify-content: space-between;
  }

  .store-offer-sort-label select {
    max-width: 70%;
  }

  .store-offer-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .store-offer-discount {
    width: 84px;
    min-width: 84px;
    min-height: 72px;
    font-size: 17px;
  }

  .store-offer-action {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin-top: 0;
  }

  .store-show-code-button.offer-action-button {
    width: 100%;
  }

  .store-hero-inline-actions {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .store-page-main {
    margin-left: 10px;
    margin-right: 10px;
  }

  .store-summary {
    gap: 8px;
  }

  .store-summary-item {
    gap: 8px;
    padding: 12px 10px;
  }

  .store-summary-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .store-offer-card {
    grid-template-columns: 1fr;
  }

  .store-offer-discount {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }
}

/* =========================================================
   Store Detail — compact offer-first layout
   ========================================================= */

.store-offers-header {
  align-items: center;
  margin: 0 0 12px;
}

.store-offers-heading-copy {
  margin: 0;
}

.store-offers-header h2 {
  margin: 0;
}

.store-offer-tools {
  margin-bottom: 12px;
}

.store-sidebar .store-stat:last-of-type {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .store-offers-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .store-offer-tools {
    margin-bottom: 12px;
  }
}

/* How to Use Offers — sidebar guide */
.store-how-to-use {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.store-how-to-use h3 {
  margin: 0 0 11px;
  color: #222b38;
  font-size: 14px;
  font-weight: 800;
}

.store-how-to-use ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-how-to-use li {
  position: relative;
  padding-left: 14px;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.store-how-to-use li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff6a00;
}

.store-how-to-use strong {
  color: #344054;
  font-weight: 750;
}

.store-how-to-use em {
  color: #d95d12;
  font-style: normal;
  font-weight: 700;
}

/* Improvement 3: clear copy success/failure feedback in the offer popup */
.offer-popup-copy.is-copied {
  border-color: #15803d !important;
  background: #15803d !important;
  color: #ffffff !important;
}

.offer-popup-copy.copy-failed {
  border-color: #b91c1c !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.offer-popup-copy:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.35);
  outline-offset: 3px;
}

.offer-copy-status {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.offer-copy-status:empty {
  display: none;
}

/* Improvement 5: customer coupon-code feedback */
.offer-code-feedback {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #f8fafc;
}

.offer-code-feedback-question {
  margin: 0 0 10px;
  color: #202939;
  font-size: 13px;
  font-weight: 800;
}

.offer-code-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-code-feedback-button {
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.offer-code-feedback-button:hover:not(:disabled) {
  border-color: #ff6a00;
  background: #fff7ed;
  color: #c2410c;
}

.offer-code-feedback-button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.3);
  outline-offset: 2px;
}

.offer-code-feedback-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.offer-code-feedback-status {
  margin: 9px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
}

.offer-code-feedback-status:empty {
  display: none;
}

/* Store offer popup: keep long coupon codes readable without squeezing Copy. */
.offer-popup-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.offer-popup-code-row .offer-popup-code {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-wrap: normal;
    word-break: normal;
    scrollbar-width: thin;
}

.offer-popup-code-row .offer-popup-copy {
    flex: 0 0 auto;
    min-width: 88px;
    white-space: nowrap;
}

.offer-popup-conditions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.offer-popup-condition-column,
.offer-popup-exclusion-column {
    min-width: 0;
}

.offer-popup-conditions-title,
.offer-popup-exclusions-label {
    display: block;
    margin: 0 0 10px;
    color: #202939;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.offer-popup-condition-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-popup-condition-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
}

.offer-popup-condition-check {
    flex: 0 0 auto;
    color: #15803d;
    font-weight: 800;
}

.offer-popup-exclusions-text {
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .offer-popup-code-row {
        gap: 7px;
    }

    .offer-popup-code-row .offer-popup-copy {
        min-width: 76px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .offer-popup-conditions-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}




/* FINAL FIX: long coupon codes must not create an inner horizontal scrollbar.
   The code is visually clipped; the copy handler still copies the full code. */
.offer-modal-dialog .offer-popup-code-row,
.offer-popup-code-row {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden !important;
}

.offer-modal-dialog .offer-popup-code-row .offer-popup-code,
.offer-popup-code-row .offer-popup-code {
    display: block !important;
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    scrollbar-width: none !important;
}

.offer-modal-dialog .offer-popup-code-row .offer-popup-code::-webkit-scrollbar,
.offer-popup-code-row .offer-popup-code::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.offer-modal-dialog .offer-popup-code-row .offer-popup-copy,
.offer-popup-code-row .offer-popup-copy {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
