/* ======================================
   Blazor Custom Styles
   ====================================== */

/* Body wrapper - compensar header fixo */
.body_wrapper {
    padding-top: 0;
}

@media (min-width: 992px) {
    .body_wrapper {
        padding-top: 180px;
        /* Ajuste baseado na altura do header */
    }
}

/* Seção de conteúdo principal */
.main-content-section {
    padding: 60px 0;
    min-height: calc(100vh - 180px);
}

/* Admin Pages */
.admin-section {
    background: #f8f9fa;
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

.admin-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb customizado */
.admin-breadcrumb {
    background: transparent;
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-breadcrumb h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.admin-breadcrumb nav {
    font-size: 14px;
}

.admin-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.admin-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #6c757d;
}

/* Formulários Admin */
.admin-form {
    max-width: 800px;
}

.admin-form .form-control,
.admin-form .form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 15px;
    color: #495057;
    background-color: #fff;
}

.admin-form .form-select option {
    color: #495057;
    background-color: #fff;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.admin-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-form .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Botões Admin */
.admin-form .btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.admin-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.admin-form .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    margin-left: 10px;
}

.admin-form .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Tabelas Admin */
.admin-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table table {
    margin-bottom: 0;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
}

.admin-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.admin-table .btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

/* Actions Header */
.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-actions h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Validation */
.validation-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary li {
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .main-content-section {
        padding: 40px 0;
    }

    .admin-section {
        padding: 30px 0;
    }

    .admin-container {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .admin-breadcrumb h2 {
        font-size: 22px;
    }

    .admin-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .admin-form .btn-secondary {
        margin-left: 0;
    }

    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Loading states */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ======================================
   Utility Classes
   ====================================== */

.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-4xl { border-radius: 2rem !important; }

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 6px 10px rgba(0, 0, 0, 0.02) !important;
}

.hover-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.ynex-text-muted {
    color: #64748b !important;
}

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

.line-height-relaxed { line-height: 1.625 !important; }

/* ======================================
   Premium Ynex Theme Components
   ====================================== */

.ynex-appbar {
    background-color: var(--mud-palette-background) !important;
    color: var(--mud-palette-text-primary) !important;
    height: 64px;
}

.ynex-brand-text {
    letter-spacing: 1px;
    color: var(--mud-palette-primary);
    font-weight: 700;
}

.ynex-search-bar {
    width: 300px;
    background-color: var(--mud-palette-background-grey);
    border-radius: 8px;
}

.ynex-divider {
    width: 1px;
    height: 24px;
    background-color: var(--mud-palette-divider);
}

.ynex-sidebar {
    background-color: var(--mud-palette-background) !important;
}

.ynex-main-content {
    background-color: var(--mud-palette-background-grey);
    min-height: 100vh;
}

.border-b {
    border-bottom: 1px solid var(--mud-palette-divider) !important;
}

.border-r {
    border-right: 1px solid var(--mud-palette-divider) !important;
}

.ynex-hero {
    min-height: 480px;
    position: relative;
    border-radius: 1.5rem !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/img/hero-pattern.png') center center;
    opacity: 0.1;
    z-index: 1;
}

.ynex-feature-card {
    background-color: var(--mud-palette-surface);
    border-color: rgba(0,0,0,0.05) !important;
    border-radius: 1.5rem !important;
}

.ynex-feature-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(132, 90, 223, 0.1) 0%, rgba(35, 183, 229, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ynex-feature-card:hover .ynex-feature-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(132, 90, 223, 0.2) 0%, rgba(35, 183, 229, 0.2) 100%);
}

.ynex-title-line {
    width: 60px;
    height: 4px;
    background: var(--mud-palette-primary);
    border-radius: 2px;
    margin-top: 4px;
}

/* Premium Product Card Styles */
.ynex-product-card-premium {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tag-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ynex-product-card-premium:hover .tag-badge {
    background: white;
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.product-image-wrapper {
    background-color: #f8fafc;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 1.5rem !important;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ynex-product-card-premium:hover .product-main-image {
    transform: scale(1.1);
}

.product-badges-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-actions-hover {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 3;
}

.ynex-product-card-premium:hover .product-actions-hover {
    opacity: 1;
    transform: translateY(0);
}

.ynex-product-card-premium:hover .product-title-hover {
    color: var(--mud-palette-primary);
}

.hover-shadow-md:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ynex-text-muted {
    color: #64748b !important;
}

/* ======================================
   Product Cards (Legacy - Consider removing)
   ====================================== */

/* Pagination */
.pagination .page-link {
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Grid Responsive */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .product-card .card-title {
        min-height: auto;
    }

    .product-card .card-text {
        min-height: auto;
    }
}

/* ======================================
   Slick Slider Custom Arrows
   ====================================== */
/* Ensure container is relative so absolute arrows are positioned relative to IT */
.slick_slider_activation,
.product_slick {
    position: relative;
}

/* Common style for our custom arrows */
.slick-arrow.prev_arrow,
.slick-arrow.next_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #333;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    /* ensure they are block level */
}

/* Positioning */
.slick_slider_activation .prev_arrow,
.product_slick .prev_arrow {
    left: 20px;
}

.slick_slider_activation .next_arrow,
.product_slick .next_arrow {
    right: 20px;
}

/* Specific styling for Main Slider Arrows (Round white background) */
.slider_area .prev_arrow,
.slider_area .next_arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Specific styling for Product Slider Arrows (Simple icons, maybe outside or edge) */
.product_slick .prev_arrow {
    left: -10px;
    /* Slightly outside or on edge */
    background: #fff;
    /* White bg for visibility if over images */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product_slick .next_arrow {
    right: -10px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
}


.slick-arrow:hover {
    color: #007bff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ======================================
   Badge Visibility Fixes (High Priority)
   ====================================== */
.badge {
    padding: 0.5em 0.8em !important;
    font-size: 85% !important;
    font-weight: 600 !important;
    border-radius: 0.25rem !important;
    color: #fff !important;
    /* Default text color essential */
    display: inline-block !important;
    /* Ensure it renders as block if span is reset */
}

.badge-success {
    background-color: #1e7e34 !important;
    /* Darkened from #28a745 */
    color: #fff !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-primary {
    background-color: #0062cc !important;
    /* Darkened from #007bff */
    color: #fff !important;
}

.badge-info {
    background-color: #138496 !important;
    /* Darkened from #17a2b8 */
    color: #fff !important;
}

.badge-danger {
    background-color: #bd2130 !important;
    /* Darkened from #dc3545 */
    color: #fff !important;
}

.badge-secondary {
    background-color: #545b62 !important;
    /* Darkened from #6c757d */
    color: #fff !important;
}

/* ======================================
   Mobile Responsiveness Improvements
   ====================================== */

/* Small Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {

    /* Modal Improvements - Make modals scrollable and mobile-friendly */
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }

    /* Touch Targets - Minimum 44x44px for better mobile UX */
    .btn,
    button,
    .btn-sm,
    .page-link {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .btn-sm {
        min-height: 40px;
        min-width: 40px;
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    /* Button Groups - Add spacing for touch */
    .btn-group .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn:last-child {
        margin-right: 0;
    }

    /* Form Inputs - Larger for better mobile typing */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    /* Tables - Better mobile display */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Cards - Better spacing */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Container Padding - More breathing room */
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Pagination - Touch-friendly */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-item {
        margin: 0.25rem;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        text-align: center;
    }

    /* Input Groups - Stack on mobile */
    .input-group {
        flex-wrap: wrap;
    }

    .input-group .form-control,
    .input-group .btn {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .input-group .btn {
        border-radius: 0.25rem !important;
    }

    /* Alerts - Better mobile spacing */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Breadcrumbs - Smaller on mobile */
    .breadcrumbs_area {
        padding: 20px 0;
    }

    .breadcrumb_content h3 {
        font-size: 1.5rem;
    }

    /* Product Details - Stack layout */
    .product_d_right .variant_quantity_btn {
        flex-direction: column;
        align-items: stretch !important;
    }

    .product_d_right .variant_quantity_btn>* {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Shipping Calculator - Better mobile UX */
    .shipping-calculator {
        padding: 1rem !important;
    }

    .shipping-calculator .input-group {
        flex-direction: column;
    }

    .shipping-calculator .form-control,
    .shipping-calculator .btn {
        width: 100%;
        border-radius: 0.25rem !important;
    }

    .shipping-option-card {
        margin-bottom: 0.75rem !important;
        padding: 0.75rem !important;
    }

    /* Checkout Form - Stack inputs */
    .checkout_form_input {
        margin-bottom: 1rem;
    }

    .checkout_form .row>[class*="col-"] {
        margin-bottom: 0.75rem;
    }

    /* Payment Method Buttons - Stack and enlarge */
    .payment-method-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .payment-btn {
        min-height: 50px;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Dashboard Tabs - Better mobile navigation */
    .dashboard_tab_button .nav {
        display: flex;
        flex-direction: column;
    }

    .dashboard_tab_button .nav-link {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #dee2e6;
    }

    /* Order Table - Convert to cards view in CSS */
    .table thead {
        display: none;
    }

    .table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.75rem;
        background: white;
    }

    .table td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
        white-space: normal;
    }

    .table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #495057;
    }

    /* Image Gallery - Better mobile navigation */
    .zoom_tab_img_container {
        max-height: 300px;
        overflow-y: auto;
    }

    .product_zoom_main_img img {
        max-height: 300px;
        object-fit: contain;
    }

    /* Reduce excessive padding on mobile */
    .mb-135,
    .mb-118 {
        margin-bottom: 3rem !important;
    }

    .pt-60,
    .pb-60 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Medium Mobile and Small Tablets (577px - 767px) */
@media (min-width: 577px) and (max-width: 767px) {
    .modal-dialog {
        margin: 1rem auto;
        max-width: calc(100% - 2rem);
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile Menu Cleanup */
.offcanvas_menu_wrapper .header_contact_info ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 0 !important;
}

.offcanvas_menu_wrapper .header_contact_info ul li {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: flex-start !important;
}

.offcanvas_menu_wrapper .header_contact_info ul li a {
    font-size: 13px !important;
    color: #333 !important;
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.offcanvas_menu_wrapper .header_contact_info ul li i {
    font-size: 14px !important;
    margin-right: 8px !important;
    color: #2E5E3A !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

/* --- Mobile Contact Card Redesign (v12) --- */
.mobile-contact-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    /* Removed box-shadow for flat design */
    box-shadow: none !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.contact-item i {
    font-size: 18px !important;
    color: #2E5E3A !important;
    width: 24px !important;
    text-align: center !important;
}

.contact-item a {
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.contact-item a:hover {
    opacity: 0.8 !important;
}


/* --- Interactive Text-Only Email (v14) --- */
.email-row {
    justify-content: flex-start !important;
    width: 100% !important;
}

.clickable-email {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.clickable-email:hover {
    background: rgba(46, 94, 58, 0.05) !important;
}

.clickable-email:active {
    background: rgba(46, 94, 58, 0.1) !important;
    transform: scale(0.98) !important;
}

.clickable-email .truncated-email {
    font-size: 15px !important;
    color: #333333 !important;
    /* High Contrast Dark Text */
    font-weight: 600 !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

.clickable-email i {
    font-size: 16px !important;
    color: #2E5E3A !important;
    margin-right: 10px !important;
}

.copied-state {
    background: rgba(46, 94, 58, 0.1) !important;
    transform: scale(1.02) !important;
}

.copied-state .truncated-email {
    color: #2E5E3A !important;
    font-weight: 700 !important;
}

/* Override Quick View position to Left */
.product_action {
    right: auto !important;
    left: 15px !important;
}

@media only screen and (max-width: 575px) {
    .product_action {
        left: 6px !important;
    }
}

/* Fix missing WhatsApp icon background in Quick View */
.modal_social ul li.whatsapp a {
    background: #25D366 !important;
    color: #fff !important;
}

.modal_social ul li.whatsapp a:hover {
    background: #128C7E !important;
}

/* Toast Notification System - Premium Version */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    background: rgba(46, 94, 58, 0.95);
    /* Theme Green with slight transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: premiumSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.custom-toast i {
    font-size: 24px;
    color: #ffffff;
}

.custom-toast .toast-title {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.custom-toast .toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
}

.custom-toast.hide {
    animation: premiumFadeOut 0.3s ease-in forwards;
}

@keyframes premiumSlideUp {
    from {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes premiumFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* ======================================
   Accessibility Helpers
   ====================================== */

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2E5E3A;
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ======================================
   Ynex Template Standard Styles
   ====================================== */

:root {
    --ynex-primary: #845adf;
    --ynex-primary-rgb: 132, 90, 223;
    --ynex-secondary: #23b7e5;
    --ynex-success: #26bf94;
    --ynex-info: #23b7e5;
    --ynex-warning: #f5b849;
    --ynex-danger: #e6533c;
    --ynex-light: #f0f1f7;
    --ynex-border: #f3f3f3;
    --ynex-text-muted: #8c90a7;
    --ynex-body-bg: #f0f1f7;
    --ynex-card-bg: #ffffff;
}

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.ynex-text-muted { color: var(--ynex-text-muted) !important; }

/* Product Details Premium Refactoring */
.ynex-product-title {
    color: #333f51;
    letter-spacing: -0.02em;
}

.main-image-wrapper {
    background: #fff;
    transition: all 0.3s ease;
    cursor: zoom-in;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper:hover .zoom-overlay {
    opacity: 1;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-product-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.ynex-thumb-btn {
    padding: 2px !important;
    transition: all 0.2s ease;
}

.ynex-thumb-btn.active {
    border-color: var(--ynex-primary) !important;
    transform: scale(1.05);
}

.ynex-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Tabs & Description */
.ynex-product-tabs-container {
    background: #fff;
}

.ynex-tabs .mud-tabs-toolbar {
    border-bottom: 1px solid var(--ynex-border);
}

.ynex-tabs .mud-tab {
    min-width: 120px;
    text-transform: none;
    font-weight: 600;
}

.ynex-description-content {
    line-height: 1.8;
    color: #536471;
}

.ynex-description-content p { margin-bottom: 1.5rem; }

.ynex-alert {
    box-shadow: none !important;
}

.ynex-video-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
}

/* Related Products Card */
.ynex-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
}

.ynex-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

.product-image-container {
    background: #f9fafb;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ynex-product-card:hover .product-card-image {
    transform: scale(1.1);
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 2;
}

.ynex-product-card:hover .product-card-actions {
    bottom: 15px;
}

.product-card-badges {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Zoom Modal Premium */
.ynex-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
}

.zoom-main-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.zoom-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.video-zoom-wrapper {
    width: 80%;
    aspect-ratio: 16/9;
}

.video-zoom-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.zoom-sidebar {
    width: 350px;
    background: rgba(30, 41, 59, 0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.zoom-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-y: auto;
}

.zoom-thumb-item {
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: rgba(255,255,255,0.1);
}

.zoom-thumb-item:hover {
    border-color: rgba(255,255,255,0.5);
}

.zoom-thumb-item.active {
    border-color: var(--ynex-primary);
}

.zoom-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    z-index: 10;
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

@media (max-width: 992px) {
    .ynex-zoom-modal { flex-direction: column; }
    .zoom-sidebar { width: 100%; height: auto; border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
    .zoom-thumbnails { grid-template-columns: repeat(5, 1fr); }
}