/* ==========================================================================
   HERSTELLA SHOP — HERO + NIGHT MODE CSS
   Paste in: Appearance → Customize → Additional CSS
             (or theme's custom CSS panel)
   ========================================================================== */


/* ——————————————————————————————————————————————————
   1. BODY TRANSITIONS
—————————————————————————————————————————————————— */
body {
    transition:
        background 1.8s cubic-bezier(0.4, 0, 0.2, 1),
        color      1.2s ease !important;
}

body.night-mode {
    background:
        radial-gradient(circle at top,  #2D3120 100%,#3a402d 0%) !important;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: #F8F3EA;
    transition: background 1.8s ease;
}

body.night-mode::before {
    background: #1b1f14;
}

.site-footer, 
.elementor-location-footer{
    background-color: transparent !important;
}

/* ——————————————————————————————————————————————————
   2. STARS LAYER
—————————————————————————————————————————————————— */
#stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity   2.5s ease,
        transform 2.5s ease;
}

body.night-mode #stars {
    opacity: 1;
    transform: translateY(0);
}


/* ——————————————————————————————————————————————————
   3. STAR DOTS
—————————————————————————————————————————————————— */
.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 6px  rgba(255, 255, 255, 0.9),
        0 0 14px rgba(255, 255, 255, 0.4);
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%   { opacity: 0.15; transform: scale(0.8);  }
    50%  { opacity: 1;    transform: scale(1.35); }
    100% { opacity: 0.2;  transform: scale(0.9);  }
}


/* ——————————————————————————————————————————————————
   4. FLOATING SPARKLES
—————————————————————————————————————————————————— */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    filter: blur(0.5px);
    animation:
        sparkleFloat ease-in-out infinite,
        sparkleFade  ease-in-out infinite;
}

@keyframes sparkleFloat {
    from { transform: translateY(0);     }
    to   { transform: translateY(-140px); }
}

@keyframes sparkleFade {
    0%, 100% { opacity: 0;    }
    50%       { opacity: 0.95; }
}


/* ——————————————————————————————————————————————————
   5. HERO CONTAINER
—————————————————————————————————————————————————— */
.elementor-element-8bfff46,
.elementor-element-8bfff46 .e-con-inner,
.elementor-element-9149db7 .elementor-widget-container {
    width: 100%     !important;
    max-width: 100% !important;
    padding-left:  0 !important;
    padding-right: 0 !important;
    margin-left:   0 !important;
    margin-right:  0 !important;
}

.hs-hero-full {
    position:  relative;
    width:     100%    !important;
    max-width: 100%    !important;
    height:    85vh    !important;
    margin:    0 auto  !important;
    left:      0       !important;
    transform: none    !important;
    overflow:visible !important;
    display:   flex    !important;
    align-items:     center;
    justify-content: center;
}

/* =========================================================
   SOFT HERO → BODY TRANSITION
========================================================= */



/* =========================================================
   SOFT HERO → BODY TRANSITION
========================================================= */

.hs-hero-fade{
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 55% !important;
    z-index: 2;
    pointer-events: none;

    transition:
        opacity 2.4s ease,
        background 2.4s ease !important;
}

/* DAY */
.hf-day{
    background:
        linear-gradient(
            to bottom,
            rgba(248,243,234,0) 0%,
            rgba(248,243,234,0.05) 15%,
            rgba(248,243,234,0.14) 28%,
            rgba(248,243,234,0.32) 45%,
            rgba(248,243,234,0.58) 62%,
            rgba(248,243,234,0.82) 80%,
            #F8F3EA 100%
        ) !important;
}

/* NIGHT */
.hf-night{
    background:
        linear-gradient(
            to bottom,
            rgba(27,31,20,0) 0%,
            rgba(27,31,20,0.06) 16%,
            rgba(27,31,20,0.18) 32%,
            rgba(27,31,20,0.38) 50%,
            rgba(27,31,20,0.64) 68%,
            rgba(27,31,20,0.88) 84%,
            #1b1f14 100%
        ) !important;

    opacity: 0;
}

body.night-mode .hf-day{
    opacity: 0;
}

body.night-mode .hf-night{
    opacity: 1;
}
/* =========================================================
   REMOVE HARD EDGE UNDER HERO
========================================================= */

/* Elementor ana wrapper */
.elementor-location-single,
.elementor-location-archive,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.site-main,
.content-area {
    background: transparent !important;
}

/* DAY PAGE BG */
body {
    background: #F8F3EA !important;
}

/* NIGHT PAGE BG */
body.night-mode {
    background:
        radial-gradient(
            circle at top,
            #3a402d 0%,
           #3a402d 0%,
        ) !important;
}
/* =========================================================
   EXTRA CINEMATIC BLUR GLOW
========================================================= */

.hs-hero-full::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-60px;
    width:100%;
 
    z-index:3;
    pointer-events:none;
    bottom:-120px !important;
    height:320px !important;
    filter:blur(110px) !important;

    background:
        radial-gradient(
            ellipse at center,
            rgba(248,243,234,0.45) 0%,
            rgba(248,243,234,0.22) 35%,
            rgba(248,243,234,0.08) 55%,
            transparent 80%
        );

    transition: all 2s ease;
}

body.night-mode .hs-hero-full::after{
    background:
        radial-gradient(
            ellipse at center,
            rgba(216,169,103,0.12) 0%,
            rgba(27,31,20,0.34) 42%,
            rgba(27,31,20,0.08) 65%,
            transparent 85%
        );

    filter: blur(90px);
}


/* ——————————————————————————————————————————————————
   6. HERO IMAGES
—————————————————————————————————————————————————— */
.hs-hero-img {
    position:   absolute !important;
    top:        0        !important;
    left:       0        !important;
    width:      100%     !important;
    height:     100%     !important;
    object-fit: cover    !important;
    z-index: 1;
    transition:
        opacity   1.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 2.4s ease !important;
    transform: scale(1.02);
}

.hs-night { opacity: 0; }

body.night-mode .hs-day  { opacity: 0; transform: scale(1.02); }
body.night-mode .hs-night { opacity: 1; transform: scale(1);   }
body:not(.night-mode) .hs-day { transform: scale(1); }





/* ——————————————————————————————————————————————————
   8. HERO CONTENT + TEXTS
—————————————————————————————————————————————————— */
.hs-hero-content {
    position:   absolute  !important;
    bottom:     10%       !important;
    width:      100%;
    z-index:    10;
    display:    flex      !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

#hs-tagline {
    font-size:   clamp(24px, 6vw, 42px) !important;
    font-family: 'Cormorant Garamond', serif;
    font-style:  italic;
    color:       #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align:  center;
    margin: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hs-count {
    font-size:      clamp(12px, 3vw, 21px) !important;
    font-family:    'Jost', sans-serif;
    text-transform: uppercase;
    color:          #ffffff;
    text-shadow:    0 4px 20px rgba(0, 0, 0, 0.5);
    text-align:     center;
    margin: 0;
    transition: opacity 0.8s ease;
}


/* ——————————————————————————————————————————————————
   9. TOGGLE WRAPPER
—————————————————————————————————————————————————— */
.hs-twrap {
    display: flex;
    gap: 8px;
    padding: 6px;
    background:      rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 80px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition:
        background    0.8s ease,
        border-color  0.8s ease,
        box-shadow    0.8s ease;
}

body.night-mode .hs-twrap {
    background:   rgba(45, 49, 32, 0.55);
    border-color: rgba(216, 169, 103, 0.35);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 40px   rgba(216, 169, 103, 0.08),
        inset 0 1px 0 rgba(216, 169, 103, 0.15);
}


/* ——————————————————————————————————————————————————
   10. PILLS — BASE
—————————————————————————————————————————————————— */
.hs-pill {
    position:  relative;
    overflow:  hidden;
    isolation: isolate;
    padding:    12px 30px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size:   16px;
    font-weight: 400;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    transition:
        color       0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background  0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow  0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform   0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* glow layer */
.hs-pill::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(
        circle at top left,
        rgba(255, 255, 255, 0.45),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* shimmer sweep */
.hs-pill::after {
    content: "";
    position: absolute;
    top:  -120%;
    left:  -40%;
    width:  60%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.42),
        transparent
    );
    transform: rotate(25deg);
    transition: transform 1.2s ease;
    z-index: 1;
    pointer-events: none;
}

/* hover: reveal glow + sweep shimmer */
.hs-pill:hover::before { opacity: 1; }
.hs-pill:hover::after  { transform: translateX(260%) rotate(25deg); }

.hs-pill:hover  { transform: translateY(-1px); }
.hs-pill:active { transform: scale(0.95); }


/* ——————————————————————————————————————————————————
   11. PILLS — ACTIVE STATE (DAY)
—————————————————————————————————————————————————— */
.hs-pill.active,
#btn-day.active {
    background: #fff !important;
    color: #2D3120  !important;
    box-shadow:
        0 2px 18px rgba(255, 255, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* keep shimmer looping on active */
#btn-day.active::after {
    animation: shimmerLoop 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes shimmerLoop {
    0%        { transform: translateX(-160%) rotate(25deg); }
    50%, 100% { transform: translateX(260%)  rotate(25deg); }
}


/* ——————————————————————————————————————————————————
   12. PILLS — ACTIVE STATE (NIGHT)
—————————————————————————————————————————————————— */
body.night-mode #btn-night.active {
    background: linear-gradient(135deg, #D8A967 0%, #f0c97a 100%) !important;
    color: #2D3120 !important;
    box-shadow:
        0 0 14px rgba(216, 169, 103, 0.65),
        0 0 36px rgba(216, 169, 103, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

/* gold shimmer on night active */
body.night-mode #btn-night.active::after {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 220, 130, 0.65),
        transparent
    );
    animation: shimmerLoop 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ——————————————————————————————————————————————————
   13. ARCHIVE VISIBILITY
—————————————————————————————————————————————————— */
.night-archive { display: none   !important; }
.day-archive   { display: block  !important; }

body.night-mode .night-archive { display: block !important; }
body.night-mode .day-archive   { display: none  !important; }


/* ——————————————————————————————————————————————————
   14. PRODUCT CARDS — DAY
—————————————————————————————————————————————————— */
.elementor-widget-cmsmasters-woo-products li.product {
    background:    #ffffff !important;
    border:        1.5px solid rgba(216, 169, 103, 0.22) !important;
    border-radius: 20px !important;
    min-height:    580px !important;
    box-shadow:    0 2px 18px rgba(180, 140, 60, 0.09) !important;
    transition:
        background    0.8s ease,
        border-color  0.8s ease,
        box-shadow    0.5s ease,
        transform     0.3s ease !important;
}

/* Kartın temel hali */
.elementor-widget-cmsmasters-woo-products li.product {
    background: #ffffff !important;
    border: 1.5px solid rgba(216, 169, 103, .22) !important;
    border-radius: 20px !important; /* Köşeleri burada sabitliyoruz */
    overflow: hidden !important;     /* İçerik taşmasını engeller */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover anında radius bozulmasın diye tekrar belirtiyoruz */
.elementor-widget-cmsmasters-woo-products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(180, 140, 60, 0.16) !important;
    border-radius: 20px !important; /* Burayı mutlaka ekle */
}
/* Kart içindeki tüm elementlerin kartın dışına taşmasını engeller */
.elementor-widget-cmsmasters-woo-products li.product * {
    border-radius: inherit !important;
}

.elementor-widget-cmsmasters-woo-products li.product .cmsmasters-add-to-cart a.button {
    padding:        9px 18px !important;
    border-radius:  30px !important;
    font-family:    -apple-system, sans-serif !important;
    font-size:      11.5px !important;
    letter-spacing: 0.04em !important;
    background:     #2D3120 !important;
    color:          #F7EEE1 !important;
    border:         1.5px solid #2D3120 !important;
    transition:     background 0.3s, border-color 0.3s !important;
}

.elementor-widget-cmsmasters-woo-products li.product .cmsmasters-add-to-cart a.button:hover {
    background:   #3E4630 !important;
    border-color: #3E4630 !important;
}


/* ——————————————————————————————————————————————————
   15. PRODUCT LABELS
—————————————————————————————————————————————————— */
.day-label,
.night-label { display: none !important; }

li.product_tag-nacht .night-label           { display: block !important; }
li.product:not(.product_tag-nacht) .day-label { display: block !important; }


/* ——————————————————————————————————————————————————
   16. MOBILE
—————————————————————————————————————————————————— */
@media (max-width: 768px) {
    .hs-hero-full { height: 75vh !important; }
    .hs-pill      { padding: 10px 20px; font-size: 13px; }
}