/* * Single Product Styles - Final Fix
 * Theme: Woocom QuillGPL Digital Seller
 */

/* =========================================
   1. MAIN GRID LAYOUT
   ========================================= */
.quill-single-container {
    padding-top: 30px;
    padding-bottom: 80px;
}

.product-main-content {
    display: grid;
    grid-template-columns: 42% 53%; /* Gallery 42%, Details 53% */
    gap: 5%;
    align-items: start;
    margin-bottom: 60px;
}

/* =========================================
   2. LEFT: GALLERY & TRUST BADGE
   ========================================= */
.product-gallery-column {
    position: relative;
    width: 100%;
}

.gallery-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.quill-trust-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.quill-trust-badge svg { width: 24px; height: 24px; color: #16a34a; flex-shrink: 0; }
.quill-trust-badge strong { display: block; color: #166534; font-size: 14px; }
.quill-trust-badge p { margin: 0; font-size: 13px; color: #15803d; }

/* =========================================
   3. RIGHT: DETAILS (Fixing the Gap)
   ========================================= */
.product-details-column {
    width: 100%;
}

/* Remove Ghost Lines/Gaps */
.product-details-column p:empty,
.product-details-column .woocommerce-product-details__short-description:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Title & Price */
.product_title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.price {
    font-size: 28px;
    color: #0ea5a4; /* Brand Teal */
    font-weight: 800;
    display: block;
    margin-bottom: 25px;
}
.price del {
    color: #94a3b8;
    font-size: 18px;
    font-weight: normal;
    margin-right: 10px;
    opacity: 0.6;
}

/* =========================================
   4. ADD TO CART & BUTTONS (Fix Alignment)
   ========================================= */
form.cart {
    display: flex;
    flex-wrap: wrap; /* Allows the Hosting Box to break to new line */
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

/* Quantity Input */
.quantity input {
    width: 60px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
}

/* Add to Cart (Purple Override -> Teal) */
.single_add_to_cart_button {
    background: linear-gradient(135deg, #0ea5a4 0%, #008f8f 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    height: 50px !important;
    padding: 0 35px !important;
    flex-grow: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 164, 0.3) !important;
}

/* Buy Now Button (If plugin adds it) */
.wc-direct-buy-button, 
button.buy_now_button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; /* Green */
    color: #fff !important;
    height: 50px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 0 35px !important;
    border: none !important;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

/* =========================================
   HOSTING BUTTON (Modern & Animated)
   ========================================= */

/* 1. Define the Shine Animation */
@keyframes quill-shine {
    0% { left: -100%; opacity: 0; }
    20% { left: 100%; opacity: 0.6; } /* Fast sweep */
    100% { left: 100%; opacity: 0; }  /* Wait before restarting */
}

/* 2. Define the Pulse Animation */
@keyframes quill-pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(103, 61, 230, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(103, 61, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 61, 230, 0); }
}

/* 3. The Button Style */
a.hosting-btn {
    position: relative; /* Essential for the shine effect */
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* Modern Gradient (Hostinger Purple-ish Blue) */
    background: linear-gradient(135deg, #1df9e2 0%, #334155 100%) !important;
    color: #ffffff !important;
    
    text-decoration: none !important;
    padding: 16px 24px;
    border-radius: 50px; /* Modern Pill Shape */
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Hides the shine when it moves out */
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Optional: Add Pulse Animation permanently */
    /* animation: quill-pulse-shadow 2s infinite; */
}

/* 4. The Shine Overlay (Glass Effect) */
a.hosting-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: quill-shine 3s infinite; /* Runs every 3 seconds */
    pointer-events: none;
}

/* 5. Hover State */
a.hosting-btn:hover {
    background: linear-gradient(135deg, #13ecfd 0%, #5025d1 100%) !important; /* Turns Hostinger Purple on Hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(103, 61, 230, 0.4); /* Purple Glow */
    border-color: rgba(255,255,255,0.2) !important;
}

/* 6. Icon Styling */
a.hosting-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
    color: #a5b4fc; /* Light Purple/Blue Icon */
    transition: color 0.3s;
}

a.hosting-btn:hover .dashicons {
    color: #ffffff; /* White icon on hover */
    transform: rotate(10deg); /* Playful tilt */
}

/* Upsell Box (Green) */
.quill-setup-upsell {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    padding: 20px 15px 15px 15px; /* Extra top padding for badge */
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    position: relative;
    line-height: 1.5;
    margin-top: 10px;
}

/* Badge Fix (Prevent Cut-off) */
.upsell-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Upsell Service Box */
.quill-setup-upsell {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    position: relative;
    line-height: 1.5;
}
.upsell-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}



/* =========================================
   HOSTING COMPATIBILITY BADGE (Animated)
   ========================================= */

@keyframes quill-soft-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        border-color: #bbf7d0;
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); /* Expands out and fades */
        border-color: #10b981; /* Border turns slightly greener */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        border-color: #bbf7d0;
    }
}

@keyframes quill-pop-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.quill-compat-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.4;
    width: fit-content;
    
    /* ANIMATION */
    animation: quill-soft-glow 3s infinite; /* Runs continuously every 3 seconds */
}

/* The Checkmark Icon (Bouncing) */
.quill-compat-badge .check-icon {
    font-size: 18px;
    display: inline-block;
    animation: quill-pop-icon 2s infinite ease-in-out;
}

/* The "Hostinger" Link */
.quill-compat-badge a {
    color: #673de6;
    text-decoration: none;
    border-bottom: 1px dotted #673de6;
    font-weight: 700;
    transition: all 0.2s ease;
}

.quill-compat-badge a:hover {
    color: #5025d1;
    border-bottom-style: solid;
    background: rgba(103, 61, 230, 0.1); /* Subtle purple highlight on hover */
    padding: 0 2px;
    border-radius: 2px;
}

/* Strong Text */
.quill-compat-badge strong {
    color: #15803d;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .quill-compat-badge {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================
   6. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .product-main-content {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }
    
    .single_add_to_cart_button,
    .wc-direct-buy-button {
        width: 100%; /* Full width buttons on mobile */
        flex-grow: 1;
    }
}