/* Page-specific CSS retained from the original 40 page. */

:root {
            --pink: #ff85a2;
            --blue: #74b9ff;
            --silver: #d1d8e0;
            --success: #2ed573;
            --success-dark: #26af5f;
            --dark: #2d3436;
            --stripe: repeating-linear-gradient(45deg, #ffffff, #ffffff 30px, #fcf3e4 30px, #fcf3e4 60px);
            --card-stripe: repeating-linear-gradient(45deg, rgba(255,255,255,0.7), rgba(255,255,255,0.7) 10px, rgba(252, 243, 228, 0.4) 10px, rgba(252, 243, 228, 0.4) 20px);
        }

body { 
            font-family: "Quicksand", sans-serif; 
            background: var(--stripe); 
            background-attachment: fixed; 
        }

.builder-layout { 
            display: grid; 
            grid-template-columns: 1fr 350px; 
            gap: 30px; 
            align-items: start; 
        }

.essentials-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
            gap: 20px; 
        }

.item-card {
            padding: 20px 15px; border-radius: 30px; display: flex; flex-direction: column; align-items: center;
            background: #fff; border: 3px solid #f1f2f6; transition: all 0.2s ease-in-out; position: relative;
            width: 100%;
        }

.item-card.has-selection { 
            background-image: var(--card-stripe); 
            border-color: var(--brand);
            box-shadow: inset 0 0 0 2px var(--brand);
        }

.type-select {
            width: 100%; border: 2px solid var(--brand); border-radius: 10px; padding: 8px;
            font-family: "Quicksand"; font-weight: 700; background: #fff9f0; outline: none;
        }

.carousel-control { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 15px 0; }

.nav-btn { background: #fff; border: 2px solid var(--brand); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--brand-dark); font-weight: 900; }

.icon-circle {
            width: 90px; height: 90px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 3px solid transparent;
            position: relative; overflow: hidden;
        }

.icon-circle svg { width: 100%; height: 100%; }

.icon-circle.selected-border { border-color: var(--brand); }

.badge-stack {
            position: relative;
            width: 90px;
            height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.badge-base {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 1;
        }

.badge-number {
            position: relative;
            z-index: 2;
            font-family: "Quicksand", sans-serif;
            font-weight: 900;
            font-size: 32px;
            color: white;
            text-shadow: 
                2px 2px 0px rgba(0,0,0,0.2),
                -1px -1px 0 #000,  
                 1px -1px 0 #000,
                -1px  1px 0 #000,
                 1px  1px 0 #000;
            margin-top: -2px;
        }

.floating { animation: float 3s ease-in-out infinite; }

@keyframes float {
0%, 100% { transform: translateY(0); }

50% { transform: translateY(-10px); }
}

.item-name { font-weight: 800; font-size: 1rem; text-align: center; margin-top: 8px; min-height: 2.4rem; }

.item-price-tag { font-size: 0.85rem; color: var(--pink); font-weight: 700; display: block; }

.variant-tag { font-size: 0.75rem; font-weight: 800; color: var(--brand-dark); text-transform: uppercase; }

.qty-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

.step-btn { background: var(--brand); border: none; width: 36px; height: 36px; border-radius: 12px; cursor: pointer; color: white; font-weight: 900; box-shadow: 0 4px 0 var(--brand-dark); }

.qty-num { font-weight: 800; font-size: 1.2rem; width: 30px; text-align: center; }

.pricing-column {
            background: #fffcf8; border: 5px dashed var(--brand); border-radius: 35px; padding: 25px;
            position: sticky; top: 100px; max-height: calc(100vh - 140px); display: flex; flex-direction: column;
        }

.summary-list { flex: 1; overflow-y: auto; margin: 15px 0; border-top: 2px solid #f1f2f6; padding-top: 15px; }

.summary-item { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }

.total-display { font-size: 2.4rem; font-weight: 800; display: block; margin: 5px 0; }

.checkout-btn { background: var(--success); color: white; border: none; width: 100%; padding: 18px; border-radius: 18px; font-weight: 800; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 0 var(--success-dark); }


/* Essentials photographic intro — integrated into the EXISTING orange builder frame.
   Photo fills TOP + RIGHT; CSS fades it toward LEFT + BOTTOM. */
.builder-photo-header {
    position: relative;
    min-height: 285px;
    margin: -40px -40px 30px -40px;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    background: #fff;
}

.builder-photo-copy {
    position: relative;
    z-index: 2;
    width: 58%;
    padding: 58px 24px 38px 58px;
}

.builder-photo-header h1 {
    font-family: "Pacifico", cursive;
    font-size: 3.5rem;
    margin: 0 0 10px;
    color: #ff85a2;
    text-align: left;
    text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0,0,0,.03);
}

.builder-photo-subtitle {
    margin: 0;
    max-width: 620px;
    color: #7f8c8d;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.55;
    text-align: left;
}

.builder-photo {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: right top;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%),
        linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%),
        linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
    mask-composite: intersect;
}

.builder-photo-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 34%, rgba(255,255,255,.72) 48%, rgba(255,255,255,0) 66%),
        linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 58%, rgba(255,255,255,.55) 78%, rgba(255,255,255,1) 100%);
}

@media (max-width: 1024px) {
    .builder-photo-header {
        min-height: 250px;
        margin: -20px -20px 24px -20px;
        border-radius: 24px 24px 0 0;
    }

    .builder-photo-copy {
        width: 100%;
        padding: 38px 20px 30px;
    }

    .builder-photo-header h1 {
        max-width: 68%;
        font-size: 2.5rem;
    }

    .builder-photo-subtitle {
        max-width: 66%;
        font-size: 1rem;
    }

    .builder-photo {
        width: 70%;
    }

    .builder-photo-header::after {
        background:
            linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 40%, rgba(255,255,255,.50) 58%, rgba(255,255,255,0) 74%),
            linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 60%, rgba(255,255,255,.60) 80%, rgba(255,255,255,1) 100%);
    }
}


@media (max-width: 1024px) {
.hero-builder { width: 95%; padding: 20px; margin: 20px auto; }

.builder-layout { grid-template-columns: 1fr; }

.pricing-column { position: static; max-height: none; margin-top: 20px; }

}

@media (max-width: 480px) {
.essentials-grid { grid-template-columns: 1fr; }

.item-card { padding: 25px 15px; }
}

/* =========================================================
   STANDARDISED PHOTO HEADER — MOBILE PORTRAIT
   Shared MPB proportions: same text/image balance site-wide.
   ========================================================= */
@media (max-width:600px) and (orientation:portrait){

  .builder-photo-header{
    min-height:285px !important;
  }

  .builder-photo-copy{
    position:relative !important;
    z-index:3 !important;
    width:76% !important;
    box-sizing:border-box !important;
    padding:24px 18px 24px !important;
  }

  .builder-photo-header h1{
    max-width:80% !important;
    margin:0 0 12px 0 !important;
    font-size:2.05rem !important;
    line-height:1.08 !important;
    text-align:left !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    max-width:68% !important;
    margin:0 !important;
    font-size:.86rem !important;
    line-height:1.45 !important;
    text-align:left !important;
  }

  .builder-photo{
    width:62% !important;
    height:100% !important;
    top:0 !important;
    right:0 !important;
    object-fit:cover !important;
    object-position:right top !important;
  }

  .builder-photo-header::after{
    background:
      linear-gradient(to right,
        #fff 0%,
        #fff 38%,
        rgba(255,255,255,.97) 48%,
        rgba(255,255,255,.72) 60%,
        rgba(255,255,255,.26) 74%,
        rgba(255,255,255,0) 88%),
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,.55) 80%,
        #fff 100%) !important;
  }
}

@media (max-width:390px) and (orientation:portrait){
  .builder-photo-header h1{
    font-size:1.82rem !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.82rem !important;
  }
}

/* =========================================================
   STANDARDISED PHOTO HEADER — HOW/ABOUT VISUAL WEIGHT
   Same mobile geometry, stronger image presence site-wide.
   ========================================================= */
@media (max-width:600px) and (orientation:portrait){

  .builder-photo-header{
    min-height:285px !important;
  }

  .builder-photo-copy{
    width:76% !important;
    padding:24px 18px 24px !important;
  }

  .builder-photo-header h1{
    max-width:80% !important;
    font-size:2.05rem !important;
    line-height:1.08 !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    max-width:68% !important;
    font-size:.86rem !important;
    line-height:1.45 !important;
  }

  .builder-photo{
    width:62% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:right top !important;

    -webkit-mask-image:
      linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,.35) 18%,
        #000 42%),
      linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0,0,0,.55) 86%,
        transparent 100%) !important;
    -webkit-mask-composite:source-in !important;

    mask-image:
      linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,.35) 18%,
        #000 42%),
      linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0,0,0,.55) 86%,
        transparent 100%) !important;
    mask-composite:intersect !important;
  }

  .builder-photo-header::after{
    background:
      linear-gradient(to right,
        #fff 0%,
        rgba(255,255,255,.98) 38%,
        rgba(255,255,255,.68) 52%,
        rgba(255,255,255,0) 70%),
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 70%,
        rgba(255,255,255,.55) 88%,
        #fff 100%) !important;
  }
}

@media (max-width:390px) and (orientation:portrait){
  .builder-photo-header h1{
    font-size:1.82rem !important;
  }

  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.82rem !important;
  }
}

/* Canonical MPB photographic-header typography */
.builder-photo-header h1{
  font-family:"Pacifico",cursive !important;
  color:var(--mpb-header-pink,#ff4f86) !important;
  font-weight:400 !important;
  line-height:1.08 !important;
  text-shadow:var(--mpb-header-shadow,
    3px 3px 0 #fff,-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,7px 7px 0 rgba(0,0,0,.065)) !important;
}
.builder-photo-subtitle,
.builder-photo-header .subtitle,
.builder-photo-copy .subtitle,
.builder-photo-copy p{
  font-family:"Quicksand",sans-serif !important;
  color:var(--mpb-header-copy,#56667b) !important;
  font-weight:500 !important;
}

@media(max-width:600px) and (orientation:portrait){
  .builder-photo-header{min-height:285px !important}
  .builder-photo-copy{
    position:relative !important;
    z-index:3 !important;
    width:76% !important;
    padding:24px 18px !important;
    box-sizing:border-box !important;
  }
  .builder-photo-header h1{
    font-size:2.05rem !important;
    max-width:80% !important;
    margin:0 0 12px !important;
    text-align:left !important;
  }
  .builder-photo-subtitle,
  .builder-photo-header .subtitle,
  .builder-photo-copy .subtitle,
  .builder-photo-copy p{
    font-size:.86rem !important;
    line-height:1.45 !important;
    max-width:68% !important;
    margin:0 !important;
    text-align:left !important;
  }
  .builder-photo{
    width:62% !important;
    object-position:right top !important;
    -webkit-mask-image:
      linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 18%,#000 42%),
      linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,.55) 86%,transparent 100%) !important;
    -webkit-mask-composite:source-in !important;
    mask-image:
      linear-gradient(to right,transparent 0%,rgba(0,0,0,.35) 18%,#000 42%),
      linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,.55) 86%,transparent 100%) !important;
    mask-composite:intersect !important;
  }
  .builder-photo-header::after{
    background:
      linear-gradient(to right,#fff 0%,rgba(255,255,255,.98) 38%,rgba(255,255,255,.68) 52%,rgba(255,255,255,0) 70%),
      linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 70%,rgba(255,255,255,.55) 88%,#fff 100%) !important;
  }
}

