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

:root {
            --pink: #ff85a2;
            --blue: #87CEEB;
            --dark: #2d3436;
            --success: #2ed573;
            --success-dark: #26af5f;
            --pale-orange: #fff5e6;
            --stripe: repeating-linear-gradient(45deg, 
                #fff0f3, #fff0f3 30px, 
                #ffffff 30px, #ffffff 60px, 
                #f0f7ff 60px, #f0f7ff 90px, 
                #ffffff 90px, #ffffff 120px);
        }

body { font-family: "Quicksand", sans-serif; background: var(--stripe); background-attachment: fixed; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }

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

.visual-area { position: relative; }

.product-img { 
            width: 100%; border-radius: 30px; 
            border: 2px solid #f1f2f6; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

.bundle-badge {
            position: absolute; top: 20px; left: 20px; background: var(--pink);
            color: white; padding: 10px 20px; border-radius: 50px; font-weight: 800;
            transform: rotate(-5deg); box-shadow: 0 5px 15px rgba(255,133,162,0.3);
            z-index: 10;
        }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }

.feature-box { background: #fafafa; padding: 15px; border-radius: 20px; border: 1px solid #eee; display: flex; gap: 12px; }

.feature-box h3 { margin: 0; font-size: 0.9rem; color: var(--dark); }

.feature-box p { margin: 3px 0 0 0; font-size: 0.8rem; color: #636e72; }

.order-card { 
            background: var(--pale-orange); padding: 30px; 
            border-radius: 30px; border: 3px solid var(--brand);
            text-align: center; margin-top: 30px;
        }

.gender-selector, .rosette-selector { display: flex; gap: 10px; margin: 15px 0; justify-content: center; flex-wrap: wrap; }

.gender-btn, .rosette-btn {
            padding: 12px 15px; border-radius: 12px; 
            border: 2px solid #ddd; 
            background: white; cursor: pointer; font-weight: 700; transition: 0.3s;
            font-family: "Quicksand"; flex: 1; min-width: 110px;
            box-shadow: 0 4px 0 rgba(0,0,0,0.05); font-size: 0.85rem;
        }

.gender-btn:hover, .rosette-btn:hover { 
            transform: translateY(-2px); 
            border-color: var(--brand);
        }

.gender-btn.active.boy { background: var(--blue); color: white; border-color: #5da9c9; }

.gender-btn.active.girl { background: var(--pink); color: white; border-color: #e06a88; }

.gender-btn.active.both { background: var(--brand-dark); color: white; border-color: #c99a55; }

.rosette-btn.active.md { 
            background: linear-gradient(to right, var(--blue), var(--pink)); 
            color: white; 
            border-color: #c9a5bb;
        }

.rosette-btn.active.mm { background: var(--pink); color: white; border-color: #e06a88; }

.rosette-btn.active.dd { background: var(--blue); color: white; border-color: #5da9c9; }

.price-display { font-size: 3rem; font-weight: 800; margin-bottom: 5px; }

.btn-add {
            width: 100%; background: var(--success); color: white; border: none;
            padding: 20px; border-radius: 20px; font-weight: 800; font-size: 1.2rem;
            cursor: pointer; box-shadow: 0 6px 0px var(--success-dark); transition: 0.2s;
            margin-top: 10px;
        }

.btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 0px var(--success-dark); }

.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 15px; }


/* Gender Reveal photographic intro — integrated into the existing orange builder frame.
   Photo fills TOP + RIGHT and fades via CSS 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-grid { grid-template-columns: 1fr; gap: 20px; }

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

.controls-wrapper { flex: 1 1 100%; max-width: 100%; order: 1; }

.preview-area { min-height: 500px; order: 2; margin-top: 20px; }

h1 { font-size: 2.5rem !important; }
}

/* =========================================================
   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;
  }
}

