/* =========================
   SUNDAY STYLE MARKET
   FUN COLOR THEME
========================= */

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

html {
  scroll-behavior: smooth;
}

:root {
  --pink: #ff4fa3;
  --hot-pink: #ff2787;
  --coral: #ff6b6b;
  --yellow: #ffd93d;
  --turquoise: #31d7c3;
  --blue: #5bc0eb;
  --purple: #9b5de5;
  --cream: #fff9ef;
  --white: #ffffff;
  --dark: #29233b;
  --text: #353044;
  --muted: #777083;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}


/* =========================
   GENERAL
========================= */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  color: var(--hot-pink);
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  color: var(--dark);
}

.section-description {
  margin-top: 14px;
  color: var(--muted);
  max-width: 560px;
}

.center {
  text-align: center;
}

.center .section-note {
  margin: 15px auto 28px;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);

  backdrop-filter: blur(12px);

  border-bottom: 4px solid var(--yellow);
}

.nav-wrap {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 900;

  text-decoration: none;

  color: var(--hot-pink);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--dark);

  text-decoration: none;

  font-weight: 700;

  transition: 0.2s;
}

.nav a:hover {
  color: var(--hot-pink);
}

.cart-button {
  border: none;

  cursor: pointer;

  background: var(--purple);
  color: white;

  padding: 12px 18px;

  border-radius: 50px;

  font-weight: 800;
  font-size: 0.95rem;

  box-shadow: 0 5px 0 #7740bb;
}

.cart-button:hover {
  transform: translateY(2px);

  box-shadow: 0 3px 0 #7740bb;
}

.cart-button span {
  background: var(--yellow);
  color: var(--dark);

  padding: 3px 8px;

  margin-left: 5px;

  border-radius: 50px;
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;

  overflow: hidden;

  padding: 115px 0;

  background:
    linear-gradient(
      135deg,
      #fff0f7,
      #fff7c7,
      #ddfff8
    );
}

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 820px;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.8rem);

  line-height: 0.95;

  letter-spacing: -0.05em;

  color: var(--dark);
}

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

.hero-copy {
  max-width: 650px;

  margin-top: 28px;

  font-size: 1.15rem;

  color: var(--muted);
}

.hero-actions {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;

  margin-top: 35px;
}


/* =========================
   HERO BACKGROUND SHAPES
========================= */

.hero-shape {
  position: absolute;

  border-radius: 50%;
}

.shape-one {
  width: 330px;
  height: 330px;

  background: var(--yellow);

  right: -60px;
  top: -60px;
}

.shape-two {
  width: 210px;
  height: 210px;

  background: var(--turquoise);

  right: 130px;
  bottom: -80px;
}

.shape-three {
  width: 140px;
  height: 140px;

  background: var(--pink);

  right: 280px;
  top: 80px;
}


/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;

  padding: 15px 24px;

  border-radius: 50px;

  text-decoration: none;

  font-weight: 900;

  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--hot-pink);
  color: white;

  box-shadow: 0 6px 0 #ce1767;
}

.btn-secondary {
  background: var(--turquoise);
  color: var(--dark);

  box-shadow: 0 6px 0 #1ba996;
}

.btn-game {
  background: var(--yellow);
  color: var(--dark);

  box-shadow: 0 6px 0 #d3ad14;
}


/* =========================
   LIFESTYLE BANNER
========================= */

.lifestyle-banner {
  padding: 80px 0;

  background: white;
}

.lifestyle-wrap {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 55px;

  align-items: center;
}

.lifestyle-image img {
  width: 100%;

  display: block;

  border-radius: 28px;

  box-shadow:
    0 15px 40px
    rgba(41, 35, 59, 0.15);
}

.lifestyle-text h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);

  line-height: 1;

  color: var(--dark);

  margin-bottom: 20px;
}

.lifestyle-text p {
  color: var(--muted);

  margin-bottom: 28px;

  max-width: 520px;
}


/* =========================
   CATEGORIES
========================= */

.categories {
  padding: 90px 0;

  background: var(--white);
}

.category-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.category-card {
  padding: 35px;

  border-radius: 28px;

  min-height: 280px;

  transition: 0.25s;
}

.category-card:hover {
  transform:
    translateY(-8px)
    rotate(-1deg);
}

.game-card {
  background: #fff1a6;
}

.earrings-card {
  background: #ffd4e8;
}

.accessories-card {
  background: #c9fff5;
}

.category-icon {
  width: 65px;
  height: 65px;

  display: grid;

  place-items: center;

  font-size: 2rem;

  background: white;

  border-radius: 50%;

  margin-bottom: 22px;
}

.category-card h3 {
  font-size: 1.6rem;

  margin-bottom: 10px;

  color: var(--dark);
}

.category-card p {
  margin-bottom: 22px;
}

.category-card a {
  color: var(--dark);

  font-weight: 900;

  text-decoration: none;
}


/* =========================
   SHOP
========================= */

.shop-section {
  padding: 90px 0;

  background: #fff7fb;
}

.section-heading.split {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;
}

.section-note {
  max-width: 440px;

  color: var(--muted);
}

.product-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 24px;
}


/* =========================
   PRODUCT CARDS
========================= */

.product-card {
  background: white;

  overflow: hidden;

  border-radius: 24px;

  border: 3px solid white;

  box-shadow:
    0 12px 35px
    rgba(50, 33, 70, 0.10);

  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-7px);
}


/* =========================
   PRODUCT IMAGES
   NEW SMALLER SIZE
========================= */

.product-image {
  width: 100%;
  height: 240px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 12px;

  background: #ffffff;

  overflow: hidden;
}

.product-photo {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  border-radius: 12px;
}


/* =========================
   PLACEHOLDERS
========================= */

.pink-placeholder {
  background:
    linear-gradient(
      135deg,
      #ffbddb,
      #fff0f7
    );
}

.blue-placeholder {
  background:
    linear-gradient(
      135deg,
      #aeeeff,
      #e9fbff
    );
}

.yellow-placeholder {
  background:
    linear-gradient(
      135deg,
      #ffe781,
      #fff8cc
    );
}

.purple-placeholder {
  background:
    linear-gradient(
      135deg,
      #d8b9ff,
      #f2e8ff
    );
}

.placeholder-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  font-weight: 800;
}

.photo-icon {
  font-size: 2.4rem;
}


/* =========================
   PRODUCT INFORMATION
========================= */

.product-info {
  padding: 22px;
}

.product-tag {
  font-size: 0.72rem;

  font-weight: 900;

  letter-spacing: 0.08em;

  color: var(--hot-pink);
}

.product-info h3 {
  margin-top: 8px;

  min-height: 58px;

  color: var(--dark);
}

.price {
  margin: 15px 0;

  font-size: 1.2rem;

  font-weight: 900;

  color: var(--purple);
}

.add-cart {
  width: 100%;

  border: none;

  cursor: pointer;

  background: var(--hot-pink);

  color: white;

  padding: 13px;

  border-radius: 12px;

  font-weight: 900;

  font-size: 0.95rem;

  transition: 0.2s;
}

.add-cart:hover {
  background: var(--purple);
}


/* =========================
   PRODUCT COLOR OPTIONS
========================= */

.product-option {
  margin: 15px 0;
}

.product-option label {
  display: block;

  font-weight: 800;

  margin-bottom: 6px;

  color: var(--dark);
}

.color-select {
  width: 100%;

  padding: 10px 12px;

  border: 2px solid #ffd93d;

  border-radius: 10px;

  background: white;

  color: var(--dark);

  font-weight: 700;

  cursor: pointer;
}


/* =========================
   GAME DAY
========================= */

.game-day {
  padding: 95px 0;

  background:
    linear-gradient(
      120deg,
      var(--turquoise),
      #8ff3e6
    );
}

.game-day-wrap {
  display: grid;

  grid-template-columns:
    1.4fr 0.6fr;

  align-items: center;

  gap: 60px;
}

.game-day h2 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);

  line-height: 1;

  color: var(--dark);
}

.game-day h2 span {
  color: var(--hot-pink);
}

.game-day p {
  max-width: 620px;

  margin-top: 20px;
}


/* =========================
   NEW ARRIVALS
========================= */

.new-section {
  padding: 100px 0;

  background:
    linear-gradient(
      135deg,
      #fff2a8,
      #ffc9e2
    );
}


/* =========================
   ABOUT
========================= */

.about-section {
  padding: 95px 0;

  background: var(--white);
}

.about-wrap {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.about-section h2 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);

  line-height: 1;

  color: var(--purple);
}

.about-section p {
  color: var(--muted);

  margin-bottom: 15px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 45px 0;

  background: var(--dark);

  color: white;

  border-top: 8px solid var(--yellow);
}

.footer-wrap {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;
}

.site-footer h3 {
  color: var(--yellow);

  font-size: 1.4rem;
}


/* =========================
   CART PANEL
========================= */

.cart-panel {
  position: fixed;

  top: 0;

  right: -440px;

  width: min(440px, 95vw);

  height: 100vh;

  background: #fff7fb;

  z-index: 500;

  padding: 28px;

  display: flex;

  flex-direction: column;

  transition: right 0.3s ease;

  box-shadow:
    -10px 0 40px
    rgba(0, 0, 0, 0.18);
}

.cart-panel.open {
  right: 0;
}

.cart-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-bottom: 18px;

  border-bottom:
    3px solid
    var(--yellow);
}

.cart-header h2 {
  color: var(--hot-pink);
}

.cart-header button {
  border: none;

  background: transparent;

  cursor: pointer;

  font-size: 2.1rem;

  color: var(--purple);
}

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 25px 0;
}

.empty-cart {
  color: var(--muted);
}


/* =========================
   CART PRODUCTS
========================= */

.cart-item {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding: 18px 0;

  border-bottom:
    1px solid #ddd;
}

.cart-item-left {
  display: flex;

  align-items: center;

  gap: 14px;

  flex: 1;
}

.cart-item-image {
  width: 75px;
  height: 75px;

  object-fit: contain;

  border-radius: 12px;

  border:
    2px solid
    #ffd93d;

  background: white;
}

.cart-item-details {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.cart-item-details strong {
  color: var(--dark);

  font-size: 0.95rem;

  line-height: 1.3;
}

.cart-item-details p {
  color: var(--purple);

  font-weight: 800;
}

.remove-item {
  border: none;

  background: #ffe6f1;

  color: var(--hot-pink);

  font-weight: 800;

  padding: 8px 10px;

  border-radius: 8px;

  cursor: pointer;
}

.remove-item:hover {
  background: var(--hot-pink);

  color: white;
}


/* =========================
   CART QUANTITY
========================= */

.quantity-controls {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;

  border: none;

  border-radius: 50%;

  background: var(--purple);

  color: white;

  font-size: 1.1rem;

  font-weight: 900;

  cursor: pointer;
}

.quantity-btn:hover {
  background: var(--hot-pink);
}

.quantity-number {
  min-width: 22px;

  text-align: center;

  font-weight: 900;

  font-size: 1rem;
}

.item-subtotal {
  margin-top: 7px;

  font-weight: 900;

  color: var(--hot-pink);
}


/* =========================
   CART TOTAL
========================= */

.cart-total {
  display: flex;

  justify-content: space-between;

  font-size: 1.2rem;
}

.checkout-button {
  width: 100%;

  margin-top: 20px;

  border: none;

  cursor: pointer;

  padding: 15px;

  border-radius: 12px;

  background: var(--purple);

  color: white;

  font-weight: 900;

  font-size: 1rem;
}

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

.checkout-note {
  margin-top: 10px;

  color: var(--muted);

  text-align: center;

  font-size: 0.82rem;
}


/* =========================
   OVERLAY
========================= */

.overlay {
  position: fixed;

  inset: 0;

  background:
    rgba(
      31,
      24,
      45,
      0.45
    );

  z-index: 400;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s;
}

.overlay.show {
  opacity: 1;

  pointer-events: auto;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .nav {
    display: none;
  }

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

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

  .product-image {
    height: 230px;
  }

  .game-day-wrap,
  .about-wrap,
  .lifestyle-wrap {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: block;
  }

  .section-note {
    margin-top: 15px;
  }

  .shape-one {
    opacity: 0.35;
  }

  .shape-two {
    opacity: 0.35;
  }

  .shape-three {
    opacity: 0.25;
  }

}


/* =========================
   PHONE
========================= */

@media (max-width: 560px) {

  .brand {
    font-size: 1.1rem;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

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

  .product-image {
    height: 280px;
  }

  .footer-wrap {
    flex-direction: column;

    align-items: flex-start;
  }

}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.product-card {
  background: white;
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid white;

  box-shadow:
    0 12px 35px
    rgba(50, 33, 70, 0.10);

  transition: 0.25s;

  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 230px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: white;
  overflow: hidden;
}

.product-photo {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  border-radius: 12px;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  margin-top: 8px;
  min-height: 48px;

  color: var(--dark);
}

.price {
  margin: 10px 0 14px;

  font-size: 1.2rem;
  font-weight: 900;

  color: var(--purple);
}

/* =========================
   MOBILE PHONE FIX
   ========================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header */
  .header-inner {
    padding: 14px 16px;
    gap: 10px;
  }

  .logo {
    font-size: 24px;
    white-space: nowrap;
  }

  .cart-button {
    padding: 12px 18px;
    font-size: 18px;
    white-space: nowrap;
  }

  /* Featured Earrings */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    width: 100%;
    min-width: 0;
    border-radius: 20px;
  }

  .product-image {
    width: 100%;
    height: 180px;
    padding: 12px;
  }

  .product-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-info {
    padding: 16px;
  }

  .product-card h3 {
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }

  .product-tag {
    font-size: 14px;
  }

  .price {
    font-size: 24px;
  }

  .add-cart {
    width: 100%;
    padding: 13px 10px;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
  }

  .color-select {
    width: 100%;
    max-width: 100%;
  }
}


/* Extra-small phones */
@media (max-width: 400px) {

  .logo {
    font-size: 20px;
  }

  .cart-button {
    font-size: 16px;
    padding: 10px 14px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-info {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-image {
    height: 155px;
  }
}