@charset "UTF-8";

/* AMAZIN'SAVER CLEAN SITE STYLE */

:root {
  --pink: #ff4ba0;
  --purple: #7156e8;
  --blue: #2be7ff;
  --yellow: #fff173;
  --orange: #e88c41;

  --bg: #f7f5fb;
  --white: #ffffff;
  --soft-pink: #fff0f8;
  --soft-purple: #f0ecff;
  --soft-orange: #ffe5ca;
  --soft-blue: #eefdff;

  --shadow-soft: 0 16px 34px rgba(113, 86, 232, 0.12);
  --shadow-hover: 0 26px 55px rgba(113, 86, 232, 0.22);

  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
  overflow-x: hidden;
}

/* HEADER */

.top-strip {
  height: 24px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 28px rgba(113, 86, 232, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 24px 50px;
}

.logo {
  width: 250px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 30px;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  color: var(--purple);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

.search-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-area input {
  width: 340px;
  padding: 15px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid #111;
  font-size: 16px;
  background: white;
}

.search-area button,
.browse-btn {
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-area button {
  background: var(--pink);
  color: #fff;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
}

.search-area button:hover,
.browse-btn:hover,
.hero-deal-button:hover,
.live-button:hover,
.load-more-button:hover,
.modal-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* PAGE */

.page-wrap {
  padding: 42px 50px;
}

/* HERO */

.hero-grid {
  display: grid;
  grid-template-columns: 1.75fr 1.05fr 0.78fr;
  gap: 26px;
  align-items: stretch;
}

.hero-panel,
.deal-card,
.live-deals-section,
.category-module,
.newest-module,
.trust-card,
.page-hero {
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 241, 115, 0.75), transparent 25%),
    linear-gradient(135deg, var(--soft-pink), #ffffff);
  border-radius: var(--radius-lg);
  padding: 56px;
  min-height: 390px;
  border: 3px solid rgba(255, 75, 160, 0.12);
}

.hero-panel h1 {
  margin: 0 0 24px;
  color: var(--purple);
  font-size: 70px;
  line-height: 0.92;
  letter-spacing: -2.5px;
}

.hero-panel h1 span {
  color: var(--pink);
}

.hero-panel p {
  max-width: 590px;
  color: var(--purple);
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 34px;
  font-weight: 600;
}

.browse-btn {
  background: var(--pink);
  color: white;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
}

/* HERO DEAL CARDS */

.deal-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.deal-card:hover,
.category-module:hover,
.newest-module:hover,
.trust-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

.purple-card {
  background: linear-gradient(180deg, var(--soft-purple), #ffffff);
  border: 3px solid rgba(113, 86, 232, 0.15);
}

.orange-card {
  background: linear-gradient(180deg, var(--soft-orange), #ffffff);
  border: 3px solid rgba(232, 140, 65, 0.18);
}

.section-icon {
  width: 42px;
  display: block;
  margin-bottom: 12px;
}

.deal-card h2 {
  color: var(--purple);
  font-size: 23px;
  margin: 0 0 18px;
}

.orange-card h2 {
  color: var(--orange);
}

.hero-product-image {
  width: calc(100% + 60px);
  height: 290px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, rgba(255, 255, 255, 0.9) 48%, transparent 75%);
  border-radius: 0;
  padding: 22px;
  margin: -10px -30px 18px;
  box-shadow: none;
  filter: drop-shadow(0 18px 24px rgba(113, 86, 232, 0.16));
  transition: transform 0.28s ease;
}

.deal-card:hover .hero-product-image {
  transform: scale(1.06);
}

.hero-product-title {
  color: var(--purple);
  font-size: 22px;
  line-height: 1.2;
  min-height: 60px;
  max-height: 60px;
  margin: 0 0 18px;
  font-weight: 800;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.orange-card .hero-product-title {
  color: var(--orange);
}

.discount {
  color: var(--purple);
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.orange-card .discount {
  color: var(--orange);
}

.coupon-box {
  display: inline-block;
  border: 3px dashed var(--purple);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--purple);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 18px;
  background: white;

  /* Make the coupon box interactive */
  cursor: pointer;
}

/* Coupon values inside live cards and new-deal list also act like buttons */
.coupon-value,
.new-deal-code {
  cursor: pointer;
}

/* Visual feedback when a code has been copied */
.coupon-box.copied,
.coupon-value.copied,
.new-deal-code.copied {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

/* Instruction text displayed near promo codes to encourage copying */
.copy-instruction {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  margin-top: 4px;
  line-height: 1.2;
}

/* When the coupon box appears inside the orange hero card (ending soon),
   the instruction should match the orange color for better contrast */
#endingSoonHero .coupon-box .copy-instruction {
  color: var(--orange);
}

/* Hide the copy instruction after a code has been copied */
.copied + .copy-instruction {
  display: none;
}

/* Throbbing animation for the view deal button or row after a code is copied */
@keyframes throb {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.throbbing {
  animation: throb 1s ease-in-out infinite;
}

.orange-card .coupon-box {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-end-date {
  color: var(--orange);
  font-weight: 900;
  margin: 0 0 20px;
}

.hero-deal-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--purple);
  color: white;
  text-decoration: none;
  padding: 18px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 16px;
  margin-top: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-deal-button:hover {
  background: var(--pink);
}

.orange-button {
  background: var(--orange);
}

#topDealHero {
  min-height: 620px;
}

#topDealHero .hero-product-image {
  height: 340px;
}

#topDealHero .discount {
  font-size: 60px;
}

#topDealHero .hero-product-title {
  font-size: 24px;
  min-height: 72px;
  max-height: 72px;
}

#endingSoonHero {
  min-height: 540px;
}

#endingSoonHero .hero-product-image {
  height: 230px;
}

#endingSoonHero .discount {
  font-size: 40px;
}

#endingSoonHero .coupon-box {
  font-size: 15px;
}

#endingSoonHero .hero-product-title {
  font-size: 18px;
  min-height: 44px;
  max-height: 44px;
}

/* HOMEPAGE MODULES */

.homepage-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 42px;
}

.category-module,
.newest-module {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 3px solid rgba(113, 86, 232, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-module h2,
.newest-module h2 {
  color: var(--purple);
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.8px;
}

.category-module p,
.newest-module p {
  color: var(--purple);
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
}

.compact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.category-pill {
  background: var(--soft-pink);
  color: var(--purple);
  border: 2px solid #f0d8ff;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.category-pill:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 30px rgba(113, 86, 232, 0.18);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: white;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(113, 86, 232, 0.16);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.view-all-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(113, 86, 232, 0.22);
}

.new-deals-compact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.new-deal-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 13px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ffffff, var(--soft-blue));
  border: 2px solid rgba(43, 231, 255, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.new-deal-row:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 15px 28px rgba(43, 231, 255, 0.18);
}

.new-deal-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: white;
  border-radius: 16px;
  padding: 8px;
}

.new-deal-info h3 {
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 8px;
  max-height: 38px;
  overflow: hidden;
}

.new-deal-code {
  color: var(--purple);
  font-weight: 900;
  font-size: 13px;
}

.new-deal-discount {
  color: var(--pink);
  font-weight: 900;
  font-size: 20px;
  text-align: right;
  line-height: 1;
}

/* SECTIONS */

.live-deals-section {
  margin-top: 46px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 42px;
  border: 3px solid rgba(113, 86, 232, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 2px solid rgba(113, 86, 232, 0.08);
}

.section-header h2,
.live-deals-section h2 {
  margin: 0;
  color: var(--purple);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
}

.section-header p,
.live-deals-section p {
  color: var(--purple);
  font-size: 20px;
  font-weight: 600;
  opacity: 0.72;
  margin: 10px 0 0;
}

/* PRODUCT CARDS */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.live-deal-card {
  overflow: hidden;
  background: linear-gradient(180deg, var(--soft-pink) 0%, white 100%);
  border: 3px solid #f0d8ff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.live-deal-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow: var(--shadow-hover);
}

.product-image-wrap {
  height: 330px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #fff7fc 55%, #f0ecff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-bottom: 3px solid #f0d8ff;
}

.product-image,
.deal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(113, 86, 232, 0.16));
  transition: transform 0.28s ease;
}

.live-deal-card:hover .product-image {
  transform: scale(1.06);
}

.product-placeholder {
  color: var(--purple);
  font-weight: 900;
  text-align: center;
  font-size: 24px;
}

.live-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.deal-category {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.deal-pill {
  background: var(--pink);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ending-soon {
  background: var(--orange);
}

.brand-name {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.live-deal-card h3 {
  color: var(--purple);
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 20px;
  min-height: 108px;
  max-height: 108px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.coupon-wrap {
  border: 3px dashed var(--blue);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: white;
}

.coupon-label {
  display: block;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.coupon-value {
  display: block;
  color: var(--purple);
  font-size: 24px;
  font-weight: 900;
}

.countdown {
  color: var(--orange);
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 18px;
}

.countdown.urgent,
.hero-countdown.urgent {
  color: #ff3b30;
  animation: countdownPulse 0.9s infinite;
}

.hero-countdown {
  color: var(--orange);
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 18px;
}

@keyframes countdownPulse {
  0% { opacity: 1; }
  50% { opacity: 0.55; }
  100% { opacity: 1; }
}

.live-button {
  display: inline-block;
  background: var(--purple);
  color: white;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  margin-top: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.live-button:hover {
  background: var(--pink);
}

/* TRUST + FOOTER */

.trust-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
}

.trust-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 3px solid #f0d8ff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.trust-card h2,
.trust-card h3 {
  color: var(--purple);
  margin-top: 0;
}

.trust-card p {
  color: var(--purple);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.site-footer {
  padding: 36px 50px;
  margin-top: 40px;
  background: linear-gradient(90deg, var(--purple), #5a45c8);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: white;
  text-decoration: none;
  font-weight: 900;
  margin-left: 20px;
}

/* SUBPAGES */

.page-hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 241, 115, 0.75), transparent 28%),
    linear-gradient(135deg, var(--soft-pink), white);
  border-radius: var(--radius-lg);
  padding: 54px;
  margin-bottom: 42px;
  border: 3px solid rgba(255, 75, 160, 0.12);
}

.page-hero h1 {
  color: var(--purple);
  font-size: 64px;
  line-height: 1;
  margin: 0 0 16px;
}

.page-hero p {
  color: var(--purple);
  font-size: 22px;
  max-width: 720px;
  margin: 0;
  font-weight: 600;
}

.load-more-button {
  display: block;
  margin: 36px auto 0;
  background: var(--pink);
  color: white;
  border: none;
  cursor: pointer;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* CATEGORY PAGE */

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 32px;
}

.category-card {
  background: linear-gradient(135deg, var(--soft-pink), #ffffff);
  border: 3px solid #f0d8ff;
  border-radius: var(--radius-lg);
  padding: 38px;
  text-decoration: none;
  color: var(--purple);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow: var(--shadow-hover);
}

.category-card h2 {
  font-size: 34px;
  margin: 0 0 14px;
}

.category-card p {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
}

.category-card span {
  color: var(--pink);
  font-weight: 900;
}

/* MODAL */

.deal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
}

.deal-modal.show {
  display: flex;
}

.deal-modal-window {
  /* Constrain the modal’s width and height so it never overwhelms the screen */
  width: min(920px, 95vw);
  max-width: 95vw;
  max-height: 90vh;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  /* Enable scrolling if content exceeds the available height */
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-image {
  width: 100%;
  /* Let the image scale proportionally rather than always filling the container’s height. */
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  /* Reduce padding for a more compact modal */
  padding: 40px;
  background: radial-gradient(circle, white, var(--soft-pink));
}

.modal-content {
  /* Reduce padding inside the modal content for better scaling */
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  color: var(--pink);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-content h2 {
  /* Reduce the modal title size for better overall balance */
  font-size: 28px;
  line-height: 1;
  color: var(--purple);
  margin: 0 0 24px;
}

.modal-discount {
  /* Make the discount text moderately smaller */
  font-size: 40px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 18px;
}

.modal-code {
  border: 3px dashed var(--blue);
  padding: 18px;
  border-radius: 20px;
  /* Reduce promo code text size */
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 20px;
}

.modal-end {
  color: var(--orange);
  font-weight: 800;
  /* Set a consistent size for the end date text */
  font-size: 16px;
}

.modal-button {
  margin-top: auto;
  background: var(--pink);
  color: white;
  text-decoration: none;
  padding: 20px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: white;
  cursor: pointer;
  font-size: 24px;
}

/* FLOATING BAR */

.floating-deal-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 3px solid rgba(240, 216, 255, 0.9);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  box-shadow: 0 22px 55px rgba(113, 86, 232, 0.22);
}

.floating-deal-bar a,
.floating-deal-bar button {
  border: none;
  background: var(--soft-pink);
  color: var(--purple);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.floating-deal-bar a:hover,
.floating-deal-bar button:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-3px);
}

/* TABLET */

@media (max-width: 1200px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-area,
  .search-area input {
    width: 100%;
    max-width: 720px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .homepage-modules,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .deals-grid,
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========= TRUE MOBILE LAYOUT ========= */

@media screen and (max-width:900px){

html,
body{
width:100%;
overflow-x:hidden;
}

/* HEADER */

.site-header{
position:relative;
width:100%;
}

.header-inner{
display:flex;
flex-direction:column;

width:100%;

padding:20px;

gap:22px;

align-items:center;
}

.logo{
width:220px;
}

.main-nav{

display:grid;

grid-template-columns:
1fr 1fr;

width:100%;

gap:18px;

justify-items:center;
}

.search-area{

display:flex;

width:100%;

gap:12px;

}

.search-area input{
flex:1;
min-width:0;
}

.search-area button{
width:140px;
}

/* PAGE */

.page-wrap{

padding:16px;

overflow:hidden;

}

/* HERO */

.hero-grid{

display:block;

}

/*
 * On small screens the hero cards (Top Deal and Ending Soon) were previously hidden.
 * This prevented users from seeing the most important deals on mobile.  To fix the
 * issue without affecting desktop layouts, we display these cards on mobile and
 * ensure they stack vertically below the main hero panel.  We also override
 * their min-height and padding for a more compact presentation.
 */
#topDealHero,
#endingSoonHero {
  /* Display the cards instead of hiding them */
  display: block;

  /* Take up the full width of the viewport on mobile */
  width: 100%;

  /* Reduce vertical footprint by letting them size to content */
  min-height: auto;

  /* Consistent spacing and padding on small screens */
  margin-top: 24px;
  padding: 24px;
}

/* Shrink the product images inside mobile hero cards for better fit */
#topDealHero .hero-product-image,
#endingSoonHero .hero-product-image {
  height: 260px;
}

.hero-panel{

width:100%;

padding:34px 26px;

min-height:auto;

}

.hero-panel h1{

font-size:56px;

line-height:.9;

}

.hero-panel p{

font-size:22px;

}

/* STACK */

.homepage-modules,
.deals-grid,
.trust-section,
.category-cards-grid{

grid-template-columns:
1fr;

}

/* CARDS */

.category-module,
.newest-module,
.live-deals-section,
.page-hero,
.trust-card{

width:100%;

padding:24px;

}

/* SECTION */

.section-header{

display:block;

}

.view-all-link{

display:inline-flex;

margin-top:18px;

}

/* PRODUCT */

.product-image-wrap{

height:240px;

}

/* FLOAT BAR */

.floating-deal-bar{

display:none;

}

    /* Responsive modal adjustments */
    .deal-modal-window{
    /* Stack image and text vertically on narrow screens */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    /* Ensure the modal does not exceed the viewport height */
    max-height: 85vh;
    }

    /* Scale the product image within the modal on small screens */
    .modal-image,
    #modalImage{
    max-height: 40vh;
    padding: 24px;
    }

    /* Reduce modal content padding on mobile */
    .modal-content{
    padding: 24px;
    }

        /* Adjust text sizes for readability */
        .modal-content h2{
        font-size: 20px;
        }

        #modalDiscount{
        font-size: 28px;
        }

        #modalCode{
        font-size: 16px;
        }

        #modalEnd{
        font-size: 12px;
        }

        .modal-button,
        #modalLink{
        padding: 12px;
        font-size: 14px;
        }

        /* Shrink and reposition the close button on mobile */
        .close-modal{
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        }

}
