@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ============================================
   H8 WooCommerce - Design System
   ============================================ */

:root {
    --h8-primary: #0D1B6F;
    --h8-primary-dark: #091455;
    --h8-primary-light: #1a2d9e;
    --h8-white: #ffffff;
    --h8-gray-25: #fcfcfc;
    --h8-gray-50: #fbfafa;
    --h8-gray-100: #f0f1f3;
    --h8-gray-200: #d9d9d7;
    --h8-gray-300: #c5c8d0;
    --h8-gray-500: #656462;
    --h8-gray-700: #374151;
    --h8-gray-800: #1a1a1a;
    --h8-gray-900: #111827;
    --h8-overlay: rgba(0, 0, 0, 0.55);
    --h8-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --h8-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --h8-radius: 8px;
    --h8-radius-lg: 24px;
    --h8-radius-pill: 48px;
    --h8-font: 'Manrope', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --h8-transition: 0.2s ease;
}

/* Reset básico para elementos do plugin */
.h8-wrap *,
.h8-wrap *::before,
.h8-wrap *::after {
    box-sizing: border-box;
}

.h8-wrap {
    font-family: var(--h8-font);
    color: var(--h8-gray-900);
    line-height: 1.5;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Breadcrumb */
.h8-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #0631A5 !important;
    padding: 20px 0 8px !important;
    font-family: var(--h8-font) !important;
}

.h8-breadcrumb-back {
    display: flex !important;
    align-items: center !important;
    color: #0631A5 !important;
    text-decoration: none !important;
}

.h8-breadcrumb-back:hover {
    opacity: 0.7 !important;
}

.h8-breadcrumb-back svg {
    width: 24px !important;
    height: 24px !important;
}

.h8-breadcrumb a {
    color: #0631A5 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

.h8-breadcrumb span {
    margin: 0 2px !important;
    color: #0631A5 !important;
}

.h8-breadcrumb strong {
    color: #0631A5 !important;
    font-weight: 600 !important;
}

/* Botões */
.h8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--h8-radius);
    cursor: pointer;
    transition: all var(--h8-transition);
    border: 2px solid transparent;
    text-decoration: none;
    gap: 8px;
}

.h8-btn-primary {
    background: var(--h8-primary);
    color: var(--h8-white);
    border-color: var(--h8-primary);
}

.h8-btn-primary:hover {
    background: var(--h8-primary-dark);
    border-color: var(--h8-primary-dark);
}

.h8-btn-outline {
    background: transparent;
    color: var(--h8-primary);
    border-color: var(--h8-primary);
}

.h8-btn-outline:hover {
    background: var(--h8-primary);
    color: var(--h8-white);
}

.h8-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.h8-btn-block {
    width: 100%;
}

/* Quantity selector */
.h8-wrap .h8-qty-selector {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    overflow: visible !important;
}

.h8-wrap .h8-qty-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--h8-gray-25) !important;
    border: 1px solid var(--h8-gray-200) !important;
    border-radius: var(--h8-radius) !important;
    cursor: pointer !important;
    color: #0631A5 !important;
    transition: all var(--h8-transition) !important;
    padding: 4px !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.h8-wrap .h8-qty-btn:hover {
    border-color: var(--h8-primary) !important;
    background: var(--h8-primary) !important;
    color: var(--h8-white) !important;
}

.h8-wrap .h8-qty-btn svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

.h8-wrap .h8-qty-input {
    width: 35px !important;
    height: 30px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-family: var(--h8-font) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--h8-gray-800) !important;
    padding: 4px !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    box-shadow: none !important;
}

.h8-wrap .h8-qty-input::-webkit-inner-spin-button,
.h8-wrap .h8-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Rating stars */
.h8-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.h8-star {
    color: var(--h8-gray-300);
    font-size: 14px;
}

.h8-star.filled {
    color: #f59e0b;
}

/* Section titles */
.h8-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--h8-gray-900);
    margin-bottom: 20px;
}

/* Newsletter footer */
.h8-newsletter {
    background: var(--h8-primary);
    color: var(--h8-white);
    padding: 40px 24px;
    margin-top: 60px;
}

.h8-newsletter-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.h8-newsletter h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.h8-newsletter p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.h8-newsletter-form {
    display: flex;
    gap: 0;
}

.h8-newsletter-input {
    padding: 10px 16px;
    border: none;
    border-radius: var(--h8-radius) 0 0 var(--h8-radius);
    font-size: 14px;
    width: 280px;
    outline: none;
}

.h8-newsletter-btn {
    padding: 10px 20px;
    background: var(--h8-primary-dark);
    color: var(--h8-white);
    border: 2px solid var(--h8-white);
    border-radius: 0 var(--h8-radius) var(--h8-radius) 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Social share */
.h8-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.h8-share-label {
    font-size: 13px;
    color: var(--h8-gray-500);
}

.h8-share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--h8-primary);
    color: var(--h8-white);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--h8-transition);
}

.h8-share-icon:hover {
    background: var(--h8-primary-dark);
}

/* Quote counter badge */
.h8-quote-badge {
    position: fixed;
    top: 120px;
    right: 24px;
    background: var(--h8-primary);
    color: var(--h8-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--h8-shadow-md);
    z-index: 999;
    transition: transform var(--h8-transition);
}

.h8-quote-badge:hover {
    transform: scale(1.1);
}

.h8-quote-badge svg {
    width: 24px;
    height: 24px;
}

.h8-quote-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast notification */
.h8-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--h8-gray-900);
    color: var(--h8-white);
    padding: 14px 24px;
    border-radius: var(--h8-radius-lg);
    font-size: 14px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--h8-shadow-md);
}

.h8-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.h8-toast.success {
    background: #059669;
}

.h8-toast.error {
    background: #dc2626;
}
