/* ====== FINAL BUTTON OVERRIDE - TEXT NEVER DISAPPEARS ====== */
/* This file ensures button text is ALWAYS visible in ALL states */

/* BASE STYLES - FORCE VISIBILITY */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-success,
.btn-danger,
.btn-checkout,
.btn-whatsapp-checkout,
.btn-cart,
.btn-full,
.btn-lg,
.btn-xl,
.btn-sm,
.btn-edit,
.btn-delete,
.btn-view,
.btn-google,
.hero-section .btn,
.hero-section .btn-primary,
.hero-section .btn-secondary,
.hero-section .btn-outline,
.hero-section .btn-success {
    background: var(--bg-white, #FFFFFF) !important;
    color: var(--wood-primary, #C47A3A) !important;
    border: 2px solid var(--wood-primary, #C47A3A) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    min-height: 44px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

/* PRIMARY/PRIMARY-LIKE BUTTONS */
.btn-primary,
.btn-success,
.btn-checkout,
.hero-section .btn-primary {
    background: var(--wood-primary, #C47A3A) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-primary, #C47A3A) !important;
}

/* SECONDARY/OUTLINE BUTTONS */
.btn-secondary,
.btn-outline,
.hero-section .btn-secondary,
.hero-section .btn-outline {
    background: #FFFFFF !important;
    color: var(--wood-primary, #C47A3A) !important;
    border-color: var(--wood-primary, #C47A3A) !important;
}

/* WHATSAPP BUTTON */
.btn-whatsapp-checkout {
    background: #25D366 !important;
    color: #FFFFFF !important;
    border-color: #25D366 !important;
}

/* DANGER BUTTONS */
.btn-danger,
.btn-delete {
    background: #dc3545 !important;
    color: #FFFFFF !important;
    border-color: #dc3545 !important;
}

/* EDIT BUTTONS */
.btn-edit,
.btn-update {
    background: #007bff !important;
    color: #FFFFFF !important;
    border-color: #007bff !important;
}

/* VIEW BUTTONS */
.btn-view {
    background: #17a2b8 !important;
    color: #FFFFFF !important;
    border-color: #17a2b8 !important;
}

/* GOOGLE BUTTON */
.btn-google {
    background: #4285F4 !important;
    color: #FFFFFF !important;
    border-color: #4285F4 !important;
}

/* ====== HOVER STATES - TEXT ALWAYS VISIBLE ====== */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-checkout:hover,
.btn-whatsapp-checkout:hover,
.btn-cart:hover,
.btn-edit:hover,
.btn-delete:hover,
.btn-view:hover,
.btn-google:hover,
.hero-section .btn:hover,
.hero-section .btn-primary:hover,
.hero-section .btn-secondary:hover,
.hero-section .btn-outline:hover,
.hero-section .btn-success:hover {
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Secondary/Outline hover - WOOD BACKGROUND, WHITE TEXT */
.btn-secondary:hover,
.btn-outline:hover,
.hero-section .btn-secondary:hover,
.hero-section .btn-outline:hover {
    background: var(--wood-primary, #C47A3A) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-primary, #C47A3A) !important;
    box-shadow: 0 4px 12px rgba(196, 122, 58, 0.3) !important;
}

/* Primary hover */
.btn-primary:hover,
.btn-success:hover,
.btn-checkout:hover,
.hero-section .btn-primary:hover,
.hero-section .btn-success:hover {
    background: var(--wood-secondary, #D1964E) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-secondary, #D1964E) !important;
    box-shadow: 0 4px 12px rgba(196, 122, 58, 0.3) !important;
}

/* WhatsApp hover */
.btn-whatsapp-checkout:hover {
    background: #128C7E !important;
    color: #FFFFFF !important;
    border-color: #128C7E !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

/* Danger hover */
.btn-danger:hover,
.btn-delete:hover {
    background: #c82333 !important;
    color: #FFFFFF !important;
    border-color: #c82333 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Edit hover */
.btn-edit:hover,
.btn-update:hover {
    background: #0056b3 !important;
    color: #FFFFFF !important;
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* View hover */
.btn-view:hover {
    background: #138496 !important;
    color: #FFFFFF !important;
    border-color: #138496 !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3) !important;
}

/* Google hover */
.btn-google:hover {
    background: #357AE8 !important;
    color: #FFFFFF !important;
    border-color: #357AE8 !important;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3) !important;
}

/* ====== FOCUS STATES - TEXT ALWAYS VISIBLE ====== */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus,
.btn-success:focus,
.btn-danger:focus,
.btn-checkout:focus,
.btn-whatsapp-checkout:focus,
.btn-cart:focus,
.btn-edit:focus,
.btn-delete:focus,
.btn-view:focus,
.btn-google:focus,
.hero-section .btn:focus,
.hero-section .btn-primary:focus,
.hero-section .btn-secondary:focus,
.hero-section .btn-outline:focus,
.hero-section .btn-success:focus {
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transform: translateY(0) !important;
}

/* Secondary/Outline focus - WHITE BACKGROUND, WOOD TEXT */
.btn-secondary:focus,
.btn-outline:focus,
.hero-section .btn-secondary:focus,
.hero-section .btn-outline:focus {
    background: #FFFFFF !important;
    color: var(--wood-primary, #C47A3A) !important;
    border-color: var(--wood-primary, #C47A3A) !important;
    box-shadow: 0 0 0 4px rgba(196, 122, 58, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Primary focus */
.btn-primary:focus,
.btn-success:focus,
.btn-checkout:focus,
.hero-section .btn-primary:focus,
.hero-section .btn-success:focus {
    background: var(--wood-primary, #C47A3A) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-primary, #C47A3A) !important;
    box-shadow: 0 0 0 4px rgba(196, 122, 58, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ====== ACTIVE STATES - TEXT ALWAYS VISIBLE ====== */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-success:active,
.btn-danger:active,
.btn-checkout:active,
.btn-whatsapp-checkout:active,
.btn-cart:active,
.btn-edit:active,
.btn-delete:active,
.btn-view:active,
.btn-google:active,
.hero-section .btn:active,
.hero-section .btn-primary:active,
.hero-section .btn-secondary:active,
.hero-section .btn-outline:active,
.hero-section .btn-success:active {
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary/Outline active - WOOD BACKGROUND, WHITE TEXT */
.btn-secondary:active,
.btn-outline:active,
.hero-section .btn-secondary:active,
.hero-section .btn-outline:active {
    background: var(--wood-primary, #C47A3A) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-primary, #C47A3A) !important;
    box-shadow: 0 2px 4px rgba(196, 122, 58, 0.2) !important;
}

/* Primary active */
.btn-primary:active,
.btn-success:active,
.btn-checkout:active,
.hero-section .btn-primary:active,
.hero-section .btn-success:active {
    background: var(--wood-secondary, #D1964E) !important;
    color: #FFFFFF !important;
    border-color: var(--wood-secondary, #D1964E) !important;
    box-shadow: 0 2px 4px rgba(196, 122, 58, 0.2) !important;
}

/* ====== DISABLED STATE ====== */
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled,
.btn-success:disabled,
.btn-danger:disabled,
.btn-checkout:disabled,
.btn-whatsapp-checkout:disabled,
.btn-cart:disabled,
.btn-edit:disabled,
.btn-delete:disabled,
.btn-view:disabled,
.btn-google:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ====== ENSURE TEXT AND ICONS ARE ALWAYS VISIBLE ====== */
.btn *,
.btn-primary *,
.btn-secondary *,
.btn-outline *,
.btn-success *,
.btn-danger *,
.btn-checkout *,
.btn-whatsapp-checkout *,
.btn-cart *,
.btn-edit *,
.btn-delete *,
.btn-view *,
.btn-google *,
.hero-section .btn *,
.hero-section .btn-primary *,
.hero-section .btn-secondary *,
.hero-section .btn-outline *,
.hero-section .btn-success * {
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
    color: inherit !important;
}

/* ICON STYLING */
.btn i,
.btn-primary i,
.btn-secondary i,
.btn-outline i,
.btn-success i,
.btn-danger i,
.btn-checkout i,
.btn-whatsapp-checkout i,
.btn-cart i,
.btn-edit i,
.btn-delete i,
.btn-view i,
.btn-google i,
.hero-section .btn i,
.hero-section .btn-primary i,
.hero-section .btn-secondary i,
.hero-section .btn-outline i,
.hero-section .btn-success i {
    font-size: 0.875em !important;
    opacity: 0.9 !important;
    transition: opacity 0.2s ease !important;
    color: inherit !important;
}

.btn:hover i,
.btn-primary:hover i,
.btn-secondary:hover i,
.btn-outline:hover i,
.btn-success:hover i,
.btn-danger:hover i,
.btn-checkout:hover i,
.btn-whatsapp-checkout:hover i,
.btn-cart:hover i,
.btn-edit:hover i,
.btn-delete:hover i,
.btn-view:hover i,
.btn-google:hover i,
.hero-section .btn:hover i,
.hero-section .btn-primary:hover i,
.hero-section .btn-secondary:hover i,
.hero-section .btn-outline:hover i,
.hero-section .btn-success:hover i {
    opacity: 1 !important;
    color: inherit !important;
}

/* ====== SIZE VARIANTS ====== */
.btn-lg,
.btn-xl {
    padding: 1rem 1.5rem !important;
    min-height: 52px !important;
    font-size: 1.125rem !important;
}

.btn-sm {
    padding: 0.5rem 0.75rem !important;
    min-height: 36px !important;
    font-size: 0.875rem !important;
}

.btn-full {
    width: 100% !important;
    display: flex !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-success,
    .btn-danger,
    .btn-checkout,
    .btn-whatsapp-checkout,
    .btn-cart,
    .btn-edit,
    .btn-delete,
    .btn-view,
    .btn-google,
    .hero-section .btn,
    .hero-section .btn-primary,
    .hero-section .btn-secondary,
    .hero-section .btn-outline,
    .hero-section .btn-success {
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        font-size: 0.875rem !important;
    }
    
    .btn-lg,
    .btn-xl {
        padding: 1rem 1.5rem !important;
        min-height: 48px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-success,
    .btn-danger,
    .btn-checkout,
    .btn-whatsapp-checkout,
    .btn-cart,
    .btn-edit,
    .btn-delete,
    .btn-view,
    .btn-google,
    .hero-section .btn,
    .hero-section .btn-primary,
    .hero-section .btn-secondary,
    .hero-section .btn-outline,
    .hero-section .btn-success {
        padding: 0.5rem 0.75rem !important;
        min-height: 40px !important;
        font-size: 0.75rem !important;
    }
    
    .btn-lg,
    .btn-xl {
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        font-size: 0.875rem !important;
    }
    
    .btn-full {
        width: 100% !important;
    }
}

/* ====== ANTI-CONFLICT RULES ====== */
/* Override any theme or framework that might hide text */
.btn:hover,
.btn:focus,
.btn:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    text-decoration: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    line-height: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
}
