/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://example.com/
 Description:  Child theme for Hello Elementor
 Author:       Your Name
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.0
*/

/* import parent theme styles */
@import url("../hello-elementor/style.css");

/* 1080px = base width in Figma */
:root {
  --figma-base-width: 1080;
}
.site-title,
.site-description {
    display: none !important;
}

/* your custom styles below */
html, body {
  font-family: 'Noto Sans Hebrew', sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.057vw; 
  direction: rtl;
  text-align: center;
  background-image: url('assets/images/background.png'); /* adjust extension if needed */
  background-size: cover;        /* make it cover the entire screen */
  background-position: center;   /* center the image */
  background-repeat: no-repeat;  /* prevent tiling */
  background-attachment: fixed;  /* optional: keep background fixed while scrolling */
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
}
/* === Top Bar === */
/* Top bar full width */
.top-bar {
    position: fixed;   /* always at top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-bottom: 2vh;
    padding: 2vh;     /* adjust to Figma spacing */
}

/* Inner container to align content */
.top-bar-inner {
    max-width: calc(1200 / var(--figma-base-width) * 100vw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 2vh;
}

.top-bar img {
    height: 7vh;
}

.top-bar .back-button,
.top-bar .home-button,
.top-bar .cart-button {
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #0A1C3A;
    border-radius: 9.2vw;
}
.top-bar .back-button {
    padding: 0.7vh 1vh 0.7vh 1.6vh;
    border-radius: 5vw;
    font-size: 1.3vh;
    text-decoration: none;
}
.top-bar .back-button img{  
    height: 1.6vh;
    width: 3.7vw;
}
.top-bar .right .right-inner {
    display: flex;
    flex-direction: row;   /* force children side by side */
    align-items: center;   /* vertical centering */
    gap: 1vh;             /* spacing between buttons */
}

.home-button,
.cart-button {
    display: flex;                 /* center icon inside */
    align-items: center;
    justify-content: center;
    width: 6.6vw;                   /* circle width */
    height: 3.75vh;                  /* circle height */
    border-radius: 5.2vh;            /* makes it a perfect circle */
    background-color: #f0f0f0;     /* background color of circle */
    text-decoration: none;         /* remove underline */
}

.home-button img,
.cart-button img {
    width: 3.7vw;   /* control icon size */
    height: 1.6vh;
    margin: 0 !important;     /* reset inline margin */
}

.page-container {
    flex: 1 0 auto; /* grow and shrink as needed */
    width: 50%;           /* exact screen width */
    height: auto;          /* exact screen height */
    margin: 10vh auto 0; /* push content below top-bar (adjust 100px to your header’s real height) */
    padding: 2vh 2vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;  /* stack content vertically */
    justify-content: space-between; /* distribute top → bottom */
    align-items: center;     /* center horizontally */
    overflow: visible;        /* prevent content spilling out */
}

/* === Question SVG === */
.page-icon {
    margin: 0;
}

.page-icon img {
    /* instead of fixed px: */
    width: 40vw;   /* 40% of screen width */
    height: 20vh;  /* 20% of screen height */
    opacity: 1;
    display: block;
    margin: 0 auto;      /* center horizontally */
}

/* === Post Page === */
.breadcrumb { font-size:1.87vh; font-weight: 700; margin-top:1.6vh; color:#0A1C3A;}
.breadcrumb a { color:#0A1C3A; text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.post-box {
    background: url('assets/images/postbox.png') no-repeat center top;
    background-size: 100% 100%;   /* width height always fills*/
    padding: 4vh 5vw 6vh 4vw; /* bottom padding leaves space for tail */
    color: #333;
    font-size: 1vh;
    line-height: 1.25;
    width: 63vw;
    box-sizing: border-box;
    position: relative;
    overflow: visible; /* let tail show if needed */
    text-align: right;
    align-items: center;   /* centers horizontally */
}
.post-box h1 {
    font-size: 2.1vh;
    margin-bottom: 1vh;
    line-height: 100%;
    text-wrap: balance;
}
.postbox-btn-wrapper {
    display: flex;
    justify-content: center; /* centers only the button */
    margin-top: 2vh;
    margin-bottom: 1vh;
}
.post-box .add-to-cart-btn {
    display: flex;              /* make it a flex container */
    justify-content: center;    /* center horizontally */
    align-items: center;        /* center vertically */
    background: #0A1C3A !important;
    color: #fff;
    border: 0.27vw solid #0A1C3A;
    padding: 1%;
    cursor: pointer;
    border-radius: 50%;
    width: 9.6vw;
    height: 5.2vh;
}
.post-box .add-to-cart-btn img {
    width: 5.9vw;
    height: 3.3vh;
    align-items: middle;
}   
.post-box .add-to-cart-btn:hover {
    background: #0A1C3A;
}
.post-box .add-to-cart-btn.clicked {
    background-color: #C1B3D7 !important; /* purple background when clicked */
}

.add-to-cart-btn.clicked img {
    transform: scale(1.1); /* optional subtle zoom effect */
}
.next-step {
    text-align: center;
}
.next-btn {
    display: inline-block;
    background: #fff;
    color: #0A1C3A;
    padding: 0.8vh 2.8vw;
    text-decoration: none;
    font-size: 1.3vh;
    font-weight: 700;
    border-radius: 2.6vh;
    border: 0.27vw solid #0A1C3A;
}
.next-btn:hover {
    background: #0A1C3A;
    color: #fff;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(109, 87, 165, 0.7);
    backdrop-filter: blur(1vh);     /* background blur for overlay */
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup box */
.popup-overlay .popup-content {
    width: 90vw;
    max-width: 80vw;
    max-height: 75vh;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 1vh rgba(131, 141, 198, 0.5);
    backdrop-filter: blur(1vh);
    -webkit-backdrop-filter: blur(1vh); /* Safari support */
    padding: 2vh;
    border-radius: 2.5vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Popup Footer */
.popup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2vh;
}
.print-btn {
    width: 9.6vw;
    height: 5.4vh;
    background: #0A1C3A !important;
    border-radius: 50%;
    border: none;
    padding: 1%;
}
.popup-footer .print-btn img {
    width: 5.9vw;
    height: 3.3vh;
}
.continue-btn {
    display: inline-block;
    background: #0A1C3A;
    color: #fff;
    padding: 0.8vh 1.6vh;
    border-radius: 5vh;
    text-decoration: none;
    font-size: 2.1vh;
    font-weight: 700;
    border: solid 0.2vh #0A1C3A;
}
.continue-btn:hover {
    background: #C1B3D7;
    color: #0A1C3A;
}

/* Thanks Page */
.thanks-container {
    width: 70vw;
    margin-top: 3vh;
    margin-bottom: 3vh;
}
.thanks-icon {
    width: 67vw;
    height: 35vh;

}
.thanks-title {
    font-size: 3.3vh;
    font-weight: 800;
}

.thanks-text {
    font-size: 2.2vh;
    line-height: 2.3vh;
}

/* Added to Cart Message */
.postbox-btn-container {
    position: relative; /* make it a positioning context for the message */
}
.added-to-cart-message {
    position: absolute;
    bottom: 35%;
    right: 8%;
    transform: translateX(50%) translateY(20px);
    display: flex;
    flex-direction: column; /* ⬅️ stack items vertically */
    align-items: center;
    justify-content: center;
    gap: 1vh;
    width: auto;
    height: auto;

    padding: 1vh 2vw;
    color: #fff;
    background: #0A1C3A;
    border-radius: 2vh;
    border: 1px solid #0A1C3A;

    opacity: 0;
    /* pointer-events: none; */
    transition: all 0.6s ease-out;
    z-index: 999;
}

/* When active */
.added-to-cart-message.show {
    opacity: 1;
    transform: translateX(50%) translateY(-10px);
}

.success-row {
    display: flex;
    align-items: center;
    gap: 1vh;
    white-space: nowrap;
}

/* Success icon */
.success-icon{
    padding: 1vh;
    background-color: #C1B3D7;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0.4vh;
    width: 5.9vw;
    height: 3.3vh;
}
.success-icon img {
    width: 2.96vw;
    height: 1.2vh;
}

/* Text */
.added-to-cart-message span {
    font-size: 2.2vh;
    font-weight: 400;
    color: #fff;
}

/* Button link */
.move-to-cart-button{
    font-size: 1.3vh;
    font-weight: 700;
    color: #fff;
    border: solid 0.05vh #fff;
    border-radius: 5vh;
    text-decoration: none;
    padding: 0.9vh 2vw;
    margin-right: 0;
}
.move-to-cart-button img {
    width: 2.7vw;
    height: 1.6vh;
}
.move-to-cart-button:hover {
    color: #fff;
}

/* Footer stays at bottom */
.site-footer {
    flex-shrink: 0;  /* Don't shrink */
    max-width: none !important;
    color: #79739d;
    font-size: 0.7vh;
    font-weight: 400;
    text-align: center;
    padding: 0;
    margin: 0 !important;
    /* margin-bottom: 6vh; */
}