/* XStore Extensions Main Styles */
.xstore-whatsapp-wrapper {
    display: block;
    margin: 15px 0;
}

.xstore-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #231f20;
    text-decoration: none;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}

.xstore-whatsapp-btn:hover {
    color: #fff;
    border-color: #eb001b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.xstore-whatsapp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eb001b;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.xstore-whatsapp-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.xstore-whatsapp-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.xstore-whatsapp-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Size Variations */
.xstore-whatsapp-btn-sm {
    padding: 10px 15px;
    font-size: 12px;
}

.xstore-whatsapp-btn-sm i {
    font-size: 16px;
}

.xstore-whatsapp-btn-lg {
    padding: 18px 30px;
    font-size: 16px;
}

.xstore-whatsapp-btn-lg i {
    font-size: 22px;
}

.xstore-whatsapp-btn-xl {
    padding: 20px 35px;
    font-size: 18px;
}

.xstore-whatsapp-btn-xl i {
    font-size: 24px;
}

/* Style Variations */
.xstore-whatsapp-btn-minimal {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.xstore-whatsapp-btn-minimal:hover {
    background: #f8f9fa;
    border-color: #25D366;
}

.xstore-whatsapp-btn-outline {
    background: transparent;
    color: #25D366;
    border: 2px solid #25D366;
}

.xstore-whatsapp-btn-outline:hover {
    background: #25D366;
    color: #fff;
}

.xstore-whatsapp-btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.xstore-whatsapp-btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.xstore-whatsapp-btn-dark {
    background: #333;
    border: none;
}

.xstore-whatsapp-btn-dark:hover {
    background: #000;
}

.xstore-whatsapp-btn-light {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.xstore-whatsapp-btn-light:hover {
    background: #e9ecef;
}

.xstore-whatsapp-btn-rounded {
    border-radius: 50px;
}

.xstore-whatsapp-btn-square {
    border-radius: 0;
}

.xstore-whatsapp-btn-pill {
    border-radius: 100px;
}

.xstore-whatsapp-btn-generic {
    background: #25D366;
    border: none;
}

.xstore-whatsapp-btn-generic:hover {
    background: #128C7E;
}

/* Hover Background Element */
.xstore-btn-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xstore-whatsapp-btn:hover .xstore-btn-hover-bg {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animations */
.xstore-animate {
    opacity: 0;
    animation-fill-mode: both;
}

.xstore-animate-fade {
    animation-name: xstoreFadeIn;
    animation-duration: 0.5s;
}

.xstore-animate-slide {
    animation-name: xstoreSlideIn;
    animation-duration: 0.5s;
}

.xstore-animate-bounce {
    animation-name: xstoreBounceIn;
    animation-duration: 0.5s;
}

@keyframes xstoreFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes xstoreSlideIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes xstoreBounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.3);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
    70% { 
        transform: scale(0.9);
    }
    100% { 
        transform: scale(1);
    }
}

/* Product Grid Specific */
.product-grid-whatsapp .xstore-whatsapp-btn {
    width: auto;
    min-width: 120px;
}

/* Widget Notice */
.xstore-widget-notice {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #6c757d;
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
}

/* Admin Styles */
.xstore-ext-admin .welcome-panel {
    margin: 20px 0;
}

.xstore-ext-admin .card {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.xstore-shortcodes-docs .shortcode-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.xstore-shortcodes-docs .shortcode-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .xstore-whatsapp-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .xstore-whatsapp-btn-sm {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .xstore-whatsapp-btn-lg {
        padding: 15px 25px;
        font-size: 15px;
    }
    
    .xstore-whatsapp-btn-xl {
        padding: 18px 30px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .xstore-whatsapp-btn {
        display: none !important;
    }
}