/**
 * 1800 Doorbell - Product Page Styles
 * 
 * Extracted from Code Snippets Pro for better performance
 * Original locations: 
 *   - Line 2688-2698: Pulse animation
 *   - Line 3408-3595: Product page custom links and fields
 * Condition: is_product()
 * 
 * CONTENTS:
 * - Pulse animation for badges/icons
 * - Custom links under Add to Cart
 * - Icon-based links (PDF, More Info, Coin Battery)
 * - Custom fields wrapper
 * - Product meta styling
 * - Video elements
 * - Mobile optimizations
 * 
 * @package 1800doorbell
 * @version 2.0.0
 */

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================================
   PRODUCT PAGE CUSTOM LINKS
   Optimized to use CSS variables
   ======================================== */

/* Container for links under cart */
.custom-links-under-cart {
    margin-top: var(--space-sm);
}

.custom-links-under-cart.more-info-link {
    margin-top: var(--space-sm);
}

.custom-links-under-cart.extra-links {
    margin-top: var(--space-xs);
}

/* Link styling using design system */
.custom-links-under-cart a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: underline;
    color: var(--secondary-color);
    transition: all var(--transition-base) ease;
}

.custom-links-under-cart a:hover {
    text-decoration: none;
    color: var(--secondary-hover);
    transform: translateX(2px);
}

/* Icon-based links */
.custom-links-under-cart .moreinfo_singleproduct {
    background: url(https://www.1800doorbell.com/wp-content/uploads/icon-book.png) no-repeat left center;
    padding-left: 1.625rem;
    background-size: 1.125rem;
}

.custom-links-under-cart .pdf {
    background: url(https://www.1800doorbell.com/wp-content/uploads/icon-pdf.png) no-repeat left center;
    padding-left: 1.625rem;
    background-size: 1.125rem;
}

.custom-links-under-cart .coin-battery-link {
    background: url('https://www.1800doorbell.com/wp-content/uploads/keep-out-reach50px.png') no-repeat left center;
    background-size: 3.125rem 3.125rem;
    padding-left: 4rem;
    min-height: 3.125rem;
    display: flex;
    align-items: center;
}

/* Custom Fields Wrapper */
.custom-fields-wrapper {
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
}

.custom-fields-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-fields-list li {
    padding: 0.25rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
}

.custom-fields-list li:last-child {
    border-bottom: none;
}

/* Position adjustment for new hook location */
.product_meta + .custom-links-under-cart {
    margin-top: 1rem;
}

.product_meta .custom-links-under-cart {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ===============================================
   ADDITIONAL PRODUCT PAGE STYLES FROM CUSTOMIZER
   =============================================== */

/* Icon Links & Product Meta */
.moreinfo_singleproduct {
    background: url(https://www.1800doorbell.com/wp-content/uploads/icon-book.png) no-repeat left;
    padding-left: 1.5625rem;
    background-size: 1.0625rem;
}

.product_meta .pdf {
    background: url(https://www.1800doorbell.com/wp-content/uploads/icon-pdf.png) no-repeat left;
    background-size: 1.125rem;
    padding-left: 1.625rem;
    margin-bottom: 1rem;
    display: block;
}

/* Coin Battery Info */
.coin_battery_info {
    display: flex;
    align-items: center;
    min-height: 3.125rem;
}

.coin_battery_info a {
    background: url('https://www.1800doorbell.com/wp-content/uploads/keep-out-reach50px.png') no-repeat left center;
    background-size: 3.125rem;
    padding-left: 4rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    color: #D64000;
    text-decoration: underline;
}

.coin_battery_info a:hover {
    text-decoration: none;
}

/* Video Elements */
.video-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #215387;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
}

/* Ensure the product container has a relative position */
.product {
    position: relative;
}

/* ========================================
   HIDE SEARCH BOX ON QNA FORM
   ======================================== */

.cr-ajax-qna-search {
   display: none !important;
}

.cr-qna-search-block {
   justify-content: flex-start !important;
}

.cr-qna-ask-button {
   margin-left: 0px !important;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    .custom-links-under-cart a {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .custom-links-under-cart .coin-battery-link {
        background-size: 2.5rem 2.5rem;
        padding-left: 3.25rem;
        min-height: 2.5rem;
    }
}

/* ========================================
   DOORBELL SOUND LINK STYLES
   Interactive audio link with waveform animation
   ======================================== */

.doorbell-sound-link {
    background: #2c5aa0;
    color: white !important;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    font-size: 16px;
    font-family: inherit;
}

.doorbell-sound-link:hover {
    background: #1e3f73 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.5);
    color: white !important;
}

.doorbell-sound-link .waveform {
    display: flex;
    align-items: center;
    gap: 2px;
}

.doorbell-sound-link .wave-bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.doorbell-sound-link .wave-bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.doorbell-sound-link .wave-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.2s;
}

.doorbell-sound-link .wave-bar:nth-child(3) {
    height: 16px;
    animation-delay: 0.4s;
}

.doorbell-sound-link .wave-bar:nth-child(4) {
    height: 24px;
    animation-delay: 0.6s;
}

.doorbell-sound-link .wave-bar:nth-child(5) {
    height: 18px;
    animation-delay: 0.8s;
}

@keyframes wave {
    0%, 100% { 
        transform: scaleY(1); 
    }
    50% { 
        transform: scaleY(0.5); 
    }
}

/* ========================================
   PRODUCT PAGE SKU DISPLAY
   ======================================== */

/* Product page prominent SKU display */
.product-sku-prominent {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
}

.product-sku-prominent .sku-label {
    color: #6c757d;
    margin-right: 0.5rem;
}

.product-sku-prominent .sku-value {
    color: #212529;
    font-weight: 600;
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

/* Hide default SKU display */
.product_meta .sku_wrapper {
    display: none !important;
}

/* Shop/archive page SKU display */
.model-number {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ========================================
   PRODUCT VARIATION DESCRIPTION
   ======================================== */

.woocommerce-variation-description {
    margin-top: 1rem !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 4px solid #E85D04 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-variation-description p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

/* Optional: Add checkmark icon before text */
.woocommerce-variation-description p:before {
    content: "\2713 " !important;
    color: #E85D04 !important;
    font-weight: 700 !important;
    margin-right: 0.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-variation-description {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.9rem !important;
    }
    
    .woocommerce-variation-description p {
        font-size: 0.875rem !important;
    }
}