body {
    margin: 0 !important;
    padding: 0 !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    /* Prevent sideways scroll */
}

.boxing-scanner .bi-camera {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.3rem;
    color: #0d5afd;
}

/* Scoped to Dashboard Index page only - do not apply globally */
.dashboard-index-page h2 {
    font-size: calc(1.325rem + .9vw);
    margin-top: 20px !important;
}

.dashboard-index-page .pb-3 {
    margin-top: 60px !important;
}

.header-content .logo-wrapper a img {
    max-height: 45px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.top-card .icon {
    margin-left: 28px !important;
    margin-bottom: 15px !important;
}

.button-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 1px;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    visibility: visible;
    background: radial-gradient(ellipse at center, rgba(240, 245, 255, .95) 0%, rgba(240, 245, 255, .98) 60%, rgba(240, 245, 255, 1) 100%);
}

#preloader .preloader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ae_shutter-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

/* Shining animation effect */
.ae_shutter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.5) 48%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.5) 52%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 4s infinite linear;
    z-index: 1;
    pointer-events: none;
}



.ae_title {
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
    transition: all 0.5s ease;
    /* Gradient text effect */
    background: linear-gradient(to right, #3498db, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 3s infinite linear;
}


.ae_title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
    transition: all 0.5s ease;
}

.ae_logo-container {
    height: 100px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ae_logos {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    transition: all 0.5s ease;
}

.ae_logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ae_logo-1 {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.ae_logo-2 {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.ae_logo-text {
    font-size: 14px;
    color: white;
    margin-top: 8px;
    font-weight: 600;
    transition: all 0.5s ease;
}

.ae_company-info {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #eaecee;
    position: relative;
    transition: all 0.5s ease;
}

.ae_company-info:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eaecee;
    border-left: 1px solid #eaecee;
}

.ae_company-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
    /* Amigos & Esequin text color effect */
    background: linear-gradient(to right, #3498db, #9b59b6, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 4s infinite linear;
}

.ae_company-tagline {
    color: #3498db;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

.ae_company-desc {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.5s ease;
}

.ae_action-button {
    display: block;
    width: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.ae_action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

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

/* Shrunk state */
.ae_shrink .ae_logo-container {
    height: 0;
    margin: 0;
}

.ae_shrink .ae_title {
    font-size: 18px;
    margin-bottom: 15px;
}

.ae_shrink .ae_title:after {
    width: 40px;
}

.ae_shrink .ae_company-info {
    padding: 15px;
    margin-top: 15px;
}

.ae_shrink .ae_company-name {
    font-size: 16px;
}

.ae_shrink .ae_company-tagline {
    font-size: 12px;
}

.ae_shrink .ae_company-desc {
    font-size: 12px;
    line-height: 1.4;
}

.ae_shrink .ae_action-button {
    opacity: 1;
    transform: translateY(0);
}

.ae_badge {
    display: inline-block;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.5s ease;
}

.ae_shrink .ae_badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-top: 15px;
}

.ae_collaboration-text {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 15px;
    font-style: italic;
    transition: all 0.5s ease;
}

.ae_shrink .ae_collaboration-text {
    font-size: 11px;
}

.btn-title {
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: rotate3D 2s infinite alternate;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(20deg);
    }
}

/* =========================================
   Cart Icon & Badge Styles
   ========================================= */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-icon-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    color: #0d6efd;
}

.cart-icon-wrapper i {
    font-size: 1.25rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid #fff;
    animation: cart-badge-pop 0.3s ease;
}

@keyframes cart-badge-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-badge-pulse {
    animation: cart-badge-pulse 0.3s ease;
}

@keyframes cart-badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Add to Cart Button in Product Cards */
.gb-add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.gb-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.gb-add-to-cart-btn:active {
    transform: scale(0.96);
}

.gb-add-to-cart-btn.adding {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    pointer-events: none;
}

.gb-add-to-cart-btn.added {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.gb-add-to-cart-btn i {
    font-size: 0.85rem;
}