/* ============================================
   VERGUETA ELEMENTOR WIDGETS MASTER CSS
   ============================================ */

:root {
    --vergueta-primary: #ff6b6b;
    --vergueta-dark: #000000;
    --vergueta-light: #ffffff;
    --vergueta-gray: #666666;
    --vergueta-border: #e0e0e0;
    --vergueta-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --vergueta-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --vergueta-transition: all 0.3s ease;
}

/* ============================================
   PRODUCT CARD WIDGET
   ============================================ */

.vergueta-product-card-wrapper {
    display: block;
    width: 100%;
}

.vergueta-product-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.vergueta-product-card {
    background: var(--vergueta-light);
    border: 1px solid var(--vergueta-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--vergueta-transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--vergueta-shadow);
}

.vergueta-product-card:hover {
    box-shadow: var(--vergueta-shadow-hover);
    transform: translateY(-4px);
    border-color: #d0d0d0;
}

.vergueta-product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.vergueta-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vergueta-product-card:hover .vergueta-product-image {
    transform: scale(1.05);
}

.vergueta-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--vergueta-primary);
    color: var(--vergueta-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.vergueta-product-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--vergueta-primary);
    color: var(--vergueta-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.vergueta-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vergueta-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.vergueta-star {
    font-size: 12px;
    color: #ddd;
    display: inline-block;
}

.vergueta-star.filled {
    color: #ffc107;
}

.vergueta-rating-text {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
}

.vergueta-product-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Georgia', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vergueta-product-description {
    font-size: 14px;
    color: var(--vergueta-gray);
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}

.vergueta-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.vergueta-product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vergueta-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.vergueta-product-compare-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.vergueta-add-to-cart-btn {
    background-color: var(--vergueta-dark);
    color: var(--vergueta-light);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vergueta-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vergueta-add-to-cart-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.vergueta-add-to-cart-btn:active {
    transform: scale(0.98);
}

.vergueta-cart-icon {
    display: inline-block;
    font-size: 14px;
}

/* ============================================
   HERO SECTION WIDGET
   ============================================ */

.vergueta-hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vergueta-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vergueta-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vergueta-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--vergueta-light);
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vergueta-hero-subtitle {
    font-size: 18px;
    color: var(--vergueta-light);
    margin: 0 0 30px 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.vergueta-hero-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--vergueta-light);
    color: var(--vergueta-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--vergueta-transition);
    cursor: pointer;
    border: 2px solid var(--vergueta-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vergueta-hero-button:hover {
    background-color: transparent;
    color: var(--vergueta-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vergueta-hero-button:active {
    transform: translateY(0);
}

/* ============================================
   TESTIMONIAL WIDGET
   ============================================ */

.vergueta-testimonial-container {
    position: relative;
    background-color: #f9f9f9;
    border: 1px solid var(--vergueta-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--vergueta-shadow);
    transition: var(--vergueta-transition);
}

.vergueta-testimonial-container:hover {
    box-shadow: var(--vergueta-shadow-hover);
    transform: translateY(-4px);
}

.vergueta-quote-mark {
    font-size: 60px;
    color: var(--vergueta-primary);
    opacity: 0.2;
    font-weight: 700;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.vergueta-testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 20px 0 20px 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.vergueta-testimonial-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.vergueta-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--vergueta-border);
    padding-top: 20px;
}

.vergueta-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--vergueta-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.vergueta-testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--vergueta-dark);
    margin: 0;
    line-height: 1.2;
}

.vergueta-testimonial-title {
    font-size: 13px;
    color: #999999;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

/* ============================================
   NEWSLETTER WIDGET
   ============================================ */

.vergueta-newsletter-wrapper {
    width: 100%;
    display: block;
}

.vergueta-newsletter-container {
    background-color: var(--vergueta-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--vergueta-border);
    box-shadow: var(--vergueta-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.vergueta-newsletter-discount-badge {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.vergueta-discount-icon {
    margin-right: 8px;
}

.vergueta-newsletter-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vergueta-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.vergueta-newsletter-description {
    font-size: 16px;
    color: var(--vergueta-gray);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.vergueta-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vergueta-newsletter-input-group {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

.vergueta-newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--vergueta-border);
    background-color: #f5f5f5;
    font-size: 14px;
    color: #333333;
    border-radius: 6px 0 0 6px;
    transition: var(--vergueta-transition);
    outline: none;
}

.vergueta-newsletter-input:focus {
    background-color: var(--vergueta-light);
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.vergueta-newsletter-input::placeholder {
    color: #999999;
}

.vergueta-newsletter-button {
    padding: 14px 30px;
    background-color: var(--vergueta-dark);
    color: var(--vergueta-light);
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vergueta-transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vergueta-newsletter-button:hover {
    background-color: #333333;
    transform: translateX(2px);
}

.vergueta-newsletter-button:active {
    transform: translateX(0);
}

.vergueta-newsletter-privacy {
    font-size: 12px;
    color: #999999;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Product Card */
    .vergueta-product-card {
        border-radius: 8px;
    }

    .vergueta-product-info {
        padding: 12px;
    }

    .vergueta-product-name {
        font-size: 16px;
    }

    .vergueta-product-price {
        font-size: 20px;
    }

    .vergueta-add-to-cart-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Hero Section */
    .vergueta-hero-section {
        min-height: 350px;
    }

    .vergueta-hero-title {
        font-size: 36px;
    }

    .vergueta-hero-subtitle {
        font-size: 16px;
    }

    .vergueta-hero-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Newsletter */
    .vergueta-newsletter-container {
        padding: 30px 20px;
    }

    .vergueta-newsletter-title {
        font-size: 24px;
    }

    .vergueta-newsletter-description {
        font-size: 15px;
    }

    .vergueta-newsletter-input-group {
        flex-direction: column;
    }

    .vergueta-newsletter-input {
        border-radius: 6px 6px 0 0;
    }

    .vergueta-newsletter-button {
        border-radius: 0 0 6px 6px;
    }

    /* Testimonial */
    .vergueta-testimonial-container {
        padding: 20px;
        border-radius: 8px;
    }

    .vergueta-testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    /* Product Card */
    .vergueta-product-description {
        font-size: 13px;
    }

    .vergueta-add-to-cart-btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    .vergueta-cart-icon {
        display: none;
    }

    /* Hero Section */
    .vergueta-hero-section {
        min-height: 250px;
    }

    .vergueta-hero-content {
        padding: 20px 15px;
    }

    .vergueta-hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .vergueta-hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .vergueta-hero-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Newsletter */
    .vergueta-newsletter-container {
        padding: 20px 15px;
    }

    .vergueta-newsletter-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .vergueta-newsletter-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .vergueta-newsletter-input {
        padding: 12px 12px;
        font-size: 13px;
    }

    .vergueta-newsletter-button {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Testimonial */
    .vergueta-testimonial-container {
        padding: 15px;
    }

    .vergueta-quote-mark {
        font-size: 30px;
    }

    .vergueta-testimonial-text {
        font-size: 14px;
    }

    .vergueta-testimonial-footer {
        flex-direction: column;
        text-align: center;
        padding-top: 15px;
    }

    .vergueta-testimonial-avatar {
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus,
input:focus {
    outline: 2px solid var(--vergueta-primary);
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid var(--vergueta-primary);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .vergueta-hero-button,
    .vergueta-newsletter-button,
    .vergueta-add-to-cart-btn {
        display: none;
    }
}
