/* ================================================================
 * SIFENCY THEME - SINGLE PRODUCT STYLES
 * ================================================================ */

/* --- Wrapper for Background Color --- */
.sifency-product-page-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Subtitle / Tagline --- */
.sifency-product-subtitle {
    font-size: 1.1em;
    color: var(--body-text-color);
    margin-top: -10px;
    margin-bottom: 15px;
}

/* --- Extra Badge on Image --- */
.woocommerce-product-gallery {
    position: relative;
}
.sifency-extra-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--themecolor);
    color: var(--white-color);
    padding: 5px 12px;
    z-index: 9;
}

/* --- Countdown Timer --- */
.sifency-countdown-timer-wrapper {
    color: var(--white-color);
    padding: 15px;
    margin: var(--theme-space-level-2) 0;
    text-align: center;
    border: 1px dashed var(--theme-border-color);
}
.sifency-countdown-timer-wrapper h4 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--heading-6-font-size);
}
.sifency-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.sifency-countdown-timer div {
    display: flex;
    flex-direction: column;
}
.sifency-countdown-timer .number {
    font-size: 2em;
    font-weight: bold;
    color: var(--white-color);
    line-height: 1;
}
.sifency-countdown-timer .label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--white-color);
}

/* --- Extra Meta Links (Size Guide, Manual) --- */
.sifency-extra-links {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}
.sifency-meta-link {
    color: var(--white-color);
    text-decoration: none;
}
.sifency-meta-link svg {
    margin-right: 7px;

}

/* --- Modal for Size Guide --- */
.sifency-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    justify-content: center;
    background-color: #282828cf;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sifency-modal-overlay.is-visible .sifency-modal-content {
    transform: scale(1);
}
.sifency-modal-content {
    background: var(--theme-border-color);
    padding: var(--theme-space-level-5);
    position: relative;
    max-width: 50vw;
    max-height: 50vh;
    width: 50vw;
    height: 50vh;
    overflow-y: auto;
    width: 700px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.sifency-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

/* --- Next/Prev Navigation --- */
.sifency-product-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.sifency-product-nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Sticky Add to Cart Bar --- */
.sifency-sticky-cart {
    position: fixed;
    bottom: -100px; /* Initially hidden */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    transition: bottom 0.3s ease-in-out;
}
.sifency-sticky-cart.visible {
    bottom: 0;
}
.sifency-sticky-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
}
.sifency-sticky-cart img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}
.sifency-sticky-cart-info {
    flex-grow: 1;
}
.sifency-sticky-cart-info .title {
    display: block;
    font-weight: bold;
}

/* --- Floating Action Button (FAB) --- */
.sifency-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: transform 0.2s;
}
.sifency-fab:hover {
    transform: scale(1.1);
}

.sifency-nested-slider{
    overflow: hidden;
    
}

/* This makes the element sticky */
[data-sifency-sticky="true"] {
  position: -webkit-sticky;
  position: sticky;
  top: 20px; 
}


.is-sticky-sifency {
    z-index: 999;
}