/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* ============================================================
   DERMA ACADEMY — V2 ELITE CSS (UPDATED)
   Pink: #bf067b | Gold: #f4b400
   Includes: Heartbeat Button, Gold Urgency, Inline Tags, Clean Trust, Mobile Fixes
============================================================ */

/* 1. GLOBAL PRODUCT PAGE FIXES */
.wd-entities-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; line-height: 1.3em; max-height: 2.6em;
}
.tabs .tabs-nav, .tabs .tabs-nav-line { display: none !important; }
#tab-description { display: block !important; visibility: visible !important; opacity: 1 !important; }
.tabs, .tabs-content, .panel, .wc-tab, .entry-content, .woocommerce-Tabs-panel, .woocommerce-Tabs-panel--description, .woocommerce-Tabs-panel .wrap, .derma-desc {
    background-color: transparent !important; background: transparent !important; background-image: none !important; border: none !important;
}
.tabs:not(.-vertical) .tabs-content { margin-top: 30px !important; }

/* 2. RATING STRIP (Positioned to Right of Price) */
.single-product-page .elementor-widget-wd_single_product_price {
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    gap: 10px;
}
.derma-rating-strip { 
	display:none;
    display: flex; align-items: center; gap: 8px; 
    font-size: 14px; 
    margin-top: 5px; 
    order: 2; 
}
@media(min-width: 769px) {
    .single-product-page .elementor-widget-wd_single_product_price {
        justify-content: space-between;
    }
}
.derma-stars-row { display: flex; align-items: center; gap: 2px; }
.derma-star { width: 16px; height: 16px; fill: #f4b400 !important; }
.derma-rating-num { font-weight: 800; font-size: 16px; color: #bf067b; }
.derma-review-count { color: #666; font-weight: 500; font-size: 13px; }

/* 3. SOCIAL PROOF V2 (Randomized Labels + Inline Mobile) */
.derma-social-proof-v2 {
    background: #ffffff; border: 1px solid #eaeaea; border-left: 4px solid #bf067b;
    border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; 
    box-shadow: 0 4px 20px rgba(191,6,123,0.08);
    position: relative; overflow: hidden;
}

/* Top Row: Viewers */
.derma-sp-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.derma-sp-viewers { display: flex; align-items: center; gap: 10px; }
.derma-sp-eye-icon { width: 32px; height: 32px; background: #fff0f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #bf067b; border: 1px solid #fce8f5; }
.derma-sp-text-box { display: flex; flex-direction: column; }
.derma-sp-count { font-weight: 800; font-size: 18px; color: #1a1a1a; line-height: 1.1; }
.derma-sp-label { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; }
.derma-sp-live-badge { font-size: 10px; font-weight: 800; color: #fff; background: #bf067b; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 5px rgba(191,6,123,0.3); }
.derma-sp-pulse-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* Bottom Row: Inline Tags */
.derma-sp-tags-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid #f3f4f6; padding-top: 12px; }
.derma-sp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 6px; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.derma-tag-bestseller { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; } 
.derma-tag-sold { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; } 
.derma-tag-sold strong { color: #1f2937; font-weight: 800; font-size: 12px; margin-right: 2px; }

/* 4. URGENCY BAR ELITE (Gold Theme) */
.derma-urgency-elite {
    background: linear-gradient(90deg, #292524, #1c1917); 
    color: #fbbf24; 
    border: 1px solid #451a03; 
    text-align: center; padding: 12px 16px; border-radius: 10px; 
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
    margin-bottom: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.derma-urg-icon { font-size: 14px; animation: wiggle 2s infinite ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.derma-urg-text strong { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* 5. TRUST BAR (Clean Rewrite + Fixed Gap) */
.derma-trust-elite {
    margin-top: 24px; background: #fff; padding: 24px; border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden; 
}
.derma-trust-headline {
    text-align: center; font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.derma-trust-headline::after { content:''; display:block; width:30px; height:2px; background:#bf067b; margin:8px auto 0; border-radius:2px; }
.derma-trust-carousel-wrap { overflow: hidden; white-space: nowrap; position: relative; }
.derma-trust-carousel-track { display: inline-block; animation: scroll 30s linear infinite; width: max-content; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.derma-trust-elite:hover .derma-trust-carousel-track { animation-play-state: paused; }

/* Clean Item Design - Increased Gap */
.derma-trust-item { display: inline-flex; align-items: center; gap: 12px; margin-right: 80px; width: 170px; }
.derma-trust-icon { width: 36px; height: 36px; background: #fff0f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid #fce8f5; color: #bf067b; flex-shrink: 0; }
.derma-trust-info { display: flex; flex-direction: column; }
.derma-trust-label { font-size: 12px; font-weight: 800; color: #333; text-transform: uppercase; line-height: 1.2; letter-spacing: 0.3px; }
.derma-trust-sub { font-size: 11px; color: #888; font-weight: 600; margin-top: 2px; }

/* 6. BUTTON (Heartbeat Animation + Icon) */
/* CRITICAL FIX: Ensure pointer events work */
.single_add_to_cart_button.button {
    background: #bf067b !important; color: #ffffff !important; border-radius: 12px !important;
    font-size: 15px !important; font-weight: 800 !important; letter-spacing: 0.5px !important;
    text-transform: uppercase !important; padding: 18px 24px !important; width: 100% !important;
    box-shadow: 0 10px 30px rgba(191,6,123,0.4) !important; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px !important; 
    transition: transform 0.3s ease !important; animation: heartbeat 2.5s infinite !important; 
    pointer-events: auto !important; /* Force clickable */
    z-index: 1 !important; /* Ensure it's on top */
}
@keyframes heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 6, 123, 0.7); }
    14% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(191, 6, 123, 0); }
    28% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 6, 123, 0); }
    42% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(191, 6, 123, 0); }
    70% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 6, 123, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 6, 123, 0); }
}
.single_add_to_cart_button.button:hover {
    background: #1a1a1a !important; border-color: #1a1a1a !important; transform: translateY(-2px) !important; box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important; animation: none !important; 
}

/* Beautiful Download Icon Styling */
.single_add_to_cart_button.button .derma-btn-icon {
    width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* 7. DESCRIPTION STYLING */
.derma-short { margin-bottom: 24px; line-height: 1.6; font-size: 14px; color: #555; }
.derma-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.derma-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; padding: 6px 12px; border-radius: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.derma-badge-p { background: #bf067b; color: #fff; }
.derma-badge-w { background: #f5f5f5; color: #666; border: 1px solid #e0e0e0; }
.derma-short h4 { font-size: 18px; font-weight: 800; color: #1a1a1a; margin: 0 0 10px; }
.derma-desc { font-size: 15px; line-height: 1.8; color: #444; }
.derma-desc h2 { font-size: 26px; font-weight: 900; color: #bf067b; margin: 40px 0 16px; line-height: 1.2; }
.derma-desc h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 30px 0 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(191,6,123,0.15); }
.derma-desc p { margin: 0 0 20px; }
.derma-desc ul { margin: 0 0 24px; padding-left: 0; list-style: none; }
.derma-desc ul li { position: relative; padding: 12px 0 12px 32px; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); color: #555; }
.derma-desc ul li::before { content: ''; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #bf067b; }
.derma-desc ul li strong { color: #1a1a1a; font-weight: 700; }

/* 8. RESPONSIVE MOBILE */
@media (max-width: 640px) {
    /* Force Inline Layout for Tags */
    .derma-sp-tags-row { 
        flex-direction: row !important; 
        flex-wrap: wrap; 
        align-items: center; 
        justify-content: flex-start;
        gap: 6px; 
    }
    .derma-sp-viewers { gap: 8px; }
    .derma-sp-count { font-size: 16px; }
    .derma-desc h2 { font-size: 22px; }
    .single_add_to_cart_button.button { font-size: 14px !important; padding: 16px !important; }
    
    /* Video Section Full Width Fix */
    .derma-video-section { width: calc(100% + 30px) !important; margin: 20px -15px !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; }
    .derma-video-wrapper iframe, .derma-video-wrapper video { border-radius: 0; }
    
    .derma-trust-elite { padding: 16px; }
    .derma-trust-item { width: 140px; margin-right: 40px; } /* Smaller margin on mobile */
}