
/* ============================================================
   TunePat Store - Seasonal Sale Theme
   Themes: halloween | black-friday | christmas
   Scope: main.shop-page[data-sale-theme]
   Load AFTER existing website CSS.
   ============================================================ */


/* ============================================================
   1. THEME VARIABLES
   ============================================================ */

main.shop-page:is(
  [data-sale-theme="halloween"],
  [data-sale-theme="black-friday"],
  [data-sale-theme="christmas"]
) {
  --sale-primary: #291938;
  --sale-secondary: #4b275c;
  --sale-accent: #ff9b43;
  --sale-surface: #fff8f0;
  --sale-glow: 255, 155, 67;
  --sale-header-text: #ffffff;
  --sale-subtitle-text: #f5d4b5;
}

/* Halloween */
main.shop-page[data-sale-theme="halloween"] {
   --sale-primary: #953172;
    --sale-secondary: #692778;
    --sale-accent: #FFDA27;
    --sale-surface: #FFF8F0;
    --sale-glow: 255, 186, 68;
    --sale-subtitle-text: #FFDA27;
}

/* Black Friday */
main.shop-page[data-sale-theme="black-friday"] {
  --sale-primary: #151515;
  --sale-secondary: #393939;
  --sale-accent: #efc06a;
  --sale-surface: #fbf8f2;
  --sale-glow: 239, 192, 106;
}

/* Christmas */
main.shop-page[data-sale-theme="christmas"] {
  --sale-primary: #153e32;
  --sale-secondary: #27674d;
  --sale-accent: #e4c27a;
  --sale-surface: #f6faf6;
  --sale-glow: 228, 194, 122;
}


/* ============================================================
   2. HEADER - BASE STYLE
   ============================================================ */

main.shop-page[data-sale-theme] .seasonal-sale-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 190px;

  background: linear-gradient(
    120deg,
    var(--sale-primary),
    var(--sale-secondary)
  );
}


/* ============================================================
   3. HALLOWEEN - GOLDEN BACKGROUND GLOW
   ============================================================ */

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header {
  background:
    radial-gradient(
      ellipse at 85% 65%,
      rgba(255, 178, 84, 0.13) 0%,
      rgba(255, 155, 67, 0.05) 35%,
      transparent 65%
    ),
    linear-gradient(
      115deg,
    var(--sale-primary) 0%,
    #842B80 48%,
    var(--sale-secondary) 100%
    );
}


/* ============================================================
   4. HEADER DECORATIVE RINGS
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale-header::before,
main.shop-page[data-sale-theme]
.seasonal-sale-header::after {
  content: "";
  position: absolute;
  z-index: -1;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

main.shop-page[data-sale-theme]
.seasonal-sale-header::before {
  width: 220px;
  height: 220px;
  top: -130px;
  left: -60px;

  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.035);
}

main.shop-page[data-sale-theme]
.seasonal-sale-header::after {
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -120px;

  box-shadow:
    0 0 0 26px rgba(255, 255, 255, 0.04);
}


/* ============================================================
   5. HEADER TEXT
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale-header h1,

main.shop-page[data-sale-theme]
.seasonal-sale-header h1 span,

main.shop-page[data-sale-theme]
.seasonal-sale-header h2 {
  color: var(--sale-header-text);
}

/* Subtitle */

main.shop-page[data-sale-theme]
.seasonal-sale-header .seasonal-sale-subtitle {
  color: var(--sale-subtitle-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 10px 0 0;
}

/* Keep text above decoration */

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header > .container {
  position: relative;
  z-index: 2;
}

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header .section-head {
  position: relative;
  z-index: 2;
}


/* ============================================================
   6. HALLOWEEN HEADER IMAGE
   ============================================================ */

main.shop-page[data-sale-theme="halloween"]
.seasonal-header-art {
  position: absolute;
  z-index: 1;

  right: -36px;
  bottom: -12px;

  width: clamp(350px, 42vw, 590px);
  max-width: none;
  right: -20px;
  bottom: -8px;

  display: block;
  opacity: 1;

  pointer-events: none;
  user-select: none;

  filter: drop-shadow(
    0 0 20px rgba(255, 163, 76, 0.18)
  );
}


/* ============================================================
   7. HALLOWEEN - HEADER BOTTOM ACCENT
   ============================================================ */

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header {
  border-bottom: 2px solid transparent;

  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 175, 93, 0.70) 50%,
    transparent 100%
  ) 1;
}


/* ============================================================
   8. SEASONAL PROMOTIONAL BANNER
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale .seasonal-sale-banner {
  background: linear-gradient(
    110deg,
    var(--sale-primary),
    var(--sale-secondary)
  );

  color: #ffffff;
  padding: 10px 20px;
  margin: 0 0 18px;

  border-radius: 12px;
  text-align: center;
  line-height: 1.5;
}

main.shop-page[data-sale-theme]
.seasonal-sale .seasonal-sale-banner strong {
  color: var(--sale-accent);
}


/* ============================================================
   9. PRODUCT CARDS
   Scoped to Store page only.
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale .product-card {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Desktop hover */

@media (hover: hover) and (pointer: fine) {

  main.shop-page[data-sale-theme]
  .seasonal-sale .product-card:hover {
    box-shadow:
      0 10px 28px rgba(var(--sale-glow), 0.17);

    transform: translateY(-2px);
  }

}


/* ============================================================
   10. OPTIONAL SALE LABEL
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale .seasonal-sale-label {
  display: inline-block;
  width: fit-content;

  padding: 4px 9px;
  border-radius: 20px;

  background: var(--sale-primary);
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}


/* ============================================================
   11. OPTIONAL HIGHLIGHT TEXT
   ============================================================ */

main.shop-page[data-sale-theme]
.seasonal-sale .seasonal-sale-highlight {
  color: var(--sale-secondary);
  font-weight: 700;
}


/* ============================================================
   12. TABLET / IPAD
   768px - 1024px
   ============================================================ */

@media (min-width: 768px) and (max-width: 1024px) {

  main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header {
    min-height: 120px;
    padding-top: 12px !important;
    padding-bottom: 12px;
  }

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-header-art {
    width: 400px;
    max-width: none;
    height: auto;

    right: -10px;
    bottom: -8px;

    opacity: 1;
  }

}


/* ============================================================
   13. SMALL DESKTOP / LARGE TABLET
   1025px - 1199px
   ============================================================ */

@media (min-width: 1025px) and (max-width: 1199.98px) {

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-header-art {
    width: 420px;
    max-width: none;

    right: -20px;
    bottom: -8px;

    opacity: 1;
  }

}


@media (max-width: 767.98px) {

  /* Header: height follows content */

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding-top: 18px !important;
    padding-bottom: 0 !important;
  }

  /* Leave space below the text for the artwork */

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-sale-header .section-head {
    position: relative;
    z-index: 2;
    padding: 0 8px 35px;
    margin-bottom: 0 !important;
  }
	
/* Mobile: compact H1 and prevent three-line wrapping */
main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header h1 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 0 !important;
}

/* Extra-small mobile screens */
@media (max-width: 359.98px) {
    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header h1 {
        font-size: 22px;
    }
}

/* Mobile: fix heading decoration */
main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header h1 span {
    position: relative;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header h1 span::before,
main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header h1 span::after {
    content: none !important;
    display: none !important;
}


  /* Mobile subtitle */

main.shop-page[data-sale-theme="halloween"]
.seasonal-sale-header .seasonal-sale-subtitle {
    display: none;
}

  /* Halloween artwork */

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-sale-header .seasonal-header-art {
    display: block !important;
    visibility: visible !important;

    position: absolute;
    z-index: 1;

    width: 370px;
    max-width: none;
    height: auto;

    right: -15px;
    bottom: 0;

    opacity: 0.85;
    pointer-events: none;
  }

  /* Promotion banner */

  main.shop-page[data-sale-theme]
  .seasonal-sale .seasonal-sale-banner {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
  }

  /* Smaller decorative rings */

  main.shop-page[data-sale-theme]
  .seasonal-sale-header::before {
    width: 140px;
    height: 140px;
    top: -90px;
  }

  main.shop-page[data-sale-theme]
  .seasonal-sale-header::after {
    width: 120px;
    height: 120px;
    bottom: -80px;
  }

}


/* ============================================================
   15. ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  main.shop-page[data-sale-theme]
  .seasonal-sale .product-card {
    transition: none;
  }

  main.shop-page[data-sale-theme]
  .seasonal-sale .product-card:hover {
    transform: none;
  }

}

@media (min-width: 768px) {

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-sale-header {
    display: flex;
    align-items: center;
    padding-top: 20px !important;
    padding-bottom: 20px;
  }

  main.shop-page[data-sale-theme="halloween"]
  .seasonal-sale-header .section-head {
    margin-bottom: 0 !important;
  }

}



/* =====================================
   Seasonal Discount Badge
   Music One + Single Product Pages
===================================== */

/* Shared Badge Style */
.pricing.style-4 .content .price-card
.seasonal-discount {
    position: absolute;
    width: 132px;
    height: 48px;
    top: 0;
    right: 0;
    box-sizing: border-box;
    padding: 18px 23px 5px 8px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background-color: #873064;
    background-image: linear-gradient(
        115deg,
        #873064 0%,
        #742B70 48%,
        #592768 100%
    );

    border: 1px solid #D9A45F;
    border-left: 5px solid #F4A340;
    border-radius: 8px;

    color: #fff;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(70, 35, 77, .12);
}

/* Halloween Title */
.pricing.style-4 .content .price-card
.seasonal-discount[data-sale-theme="halloween"]::before {
    content: "HALLOWEEN DEAL";
    position: absolute;
    top: 7px;
    left: 10px;

    color: #FFDA27;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap;
}

/* Discount Amount */
.pricing.style-4 .content .price-card
.seasonal-discount span {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0;

    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

/* Halloween Pumpkin */
.pricing.style-4 .content .price-card
.seasonal-discount[data-sale-theme="halloween"]::after {
    content: "🎃";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 17px;
    line-height: 1;
    pointer-events: none;
}

/* =====================================
   Page-Specific Positioning
===================================== */

/* Music One: keep current position */
.pricing.style-4 .content .price-card
.off.seasonal-discount {
    top: 0;
    right: 0;
}

/* Single Product: card positioning */
.pricing.style-4 .content .price-card:has(
    > .seasonal-discount:not(.off)
) {
    position: relative;
}


/* Single Product: badge position and size */
.pricing.style-4 .content .price-card
.seasonal-discount:not(.off) {
    width: 112px;
    height: 42px;
    top: 0;
    right: 0;
    padding: 15px 19px 4px 7px;
}

/* Single Product: Halloween title */
.pricing.style-4 .content .price-card
.seasonal-discount:not(.off)::before {
    top: 6px;
    left: 8px;
    font-size: 8px;
}

/* Single Product: discount amount */
.pricing.style-4 .content .price-card
.seasonal-discount:not(.off) span {
    font-size: 13px;
}

/* Single Product: pumpkin */
.pricing.style-4 .content .price-card
.seasonal-discount:not(.off)::after {
    right: 4px;
    font-size: 14px;
}
/* Halloween Header - Wider Mobile Screens */
@media (min-width: 400px) and (max-width: 767.98px) {

    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header .section-head {
        padding-bottom: 75px;
    }

    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header .seasonal-header-art {
        width: 370px;
        right: -15px;
        bottom: 0;
    }

}

/* =========================================
   Halloween Header - Full Background
   Tablet and desktop only
   Mobile remains unchanged
========================================= */

@media (min-width: 768px) {

    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header {
        /* Match the 1920 x 220 banner ratio */
        box-sizing: border-box;
        width: 100%;
        height: 11.458333vw !important;
        min-height: 0 !important;

        /* Override existing tablet / desktop padding */
        padding-top: 0 !important;
        padding-bottom: 0 !important;

        /* Full image, without cropping */
        background-color: #842B80;
        background-image: url("/images/seasonal-sale/halloween-banner-desktop.webp");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 100%;
    }

    /* Keep the heading centered and readable */
    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header .section-head {
        margin-bottom: 0 !important;
        padding: 0 12px !important;
    }

    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header h1 {
        font-size: clamp(22px, 2.4vw, 36px);
        line-height: 1.2;
        margin-bottom: 6px !important;
    }

    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header .seasonal-sale-subtitle {
        display: block;
        font-size: clamp(12px, 1vw, 18px);
        line-height: 1.3;
        margin-top: 0 !important;
    }

    /* Hide the original standalone artwork */
    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header .seasonal-header-art {
        display: none !important;
    }

    /* Hide the old decorative rings */
    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header::before,
    main.shop-page[data-sale-theme="halloween"]
    .seasonal-sale-header::after {
        display: none !important;
    }
}

