/* ===============================================
   Awesome Mall - Extra Styles & Animations
   Enhancements for Product Cards & UI Elements
   =============================================== */

/* ========================================
   SIDEBAR ENHANCEMENTS
   ======================================== */

.hero-sidebar .sidebar-header {
    background: #333;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.hero-sidebar .see-all-link {
    background: #f8f8f8;
    font-weight: 600;
    color: #333 !important;
    transition: background var(--transition-fast);
}

.hero-sidebar .see-all-link:hover {
    background: #f0f0f0;
}

/* ========================================
   PRODUCT CARD BUTTONS
   ======================================== */

.btn-add-cart {
    display: block;
    background: var(--am-primary);
    color: #fff !important;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    margin-top: 10px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart:hover {
    background: var(--am-primary-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(232, 102, 61, 0.3);
}

.btn-add-cart .fa {
    margin-right: 5px;
    transition: transform var(--transition-fast);
}

.btn-add-cart:hover .fa {
    transform: scale(1.2);
}

.btn-out-stock {
    display: block;
    background: #f5f5f5;
    color: #999;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 10px;
    cursor: not-allowed;
}

/* ========================================
   SEE ALL LINKS & CTA BUTTONS
   ======================================== */

.see-all-link {
    color: var(--am-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
}

.see-all-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--am-primary);
    transition: width var(--transition-fast);
}

.see-all-link:hover::after {
    width: 100%;
}

.see-all-link:hover {
    color: var(--am-primary-hover);
}

/* ========================================
   TIMER & COUNTDOWN STYLING
   ======================================== */

#countdown-timer {
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

#timer-display {
    font-weight: 700;
    color: var(--am-secondary);
}

/* ========================================
   HERO CAROUSEL ENHANCEMENTS
   ======================================== */

#hero-carousel .item {
    height: 380px;
    position: relative;
}

#hero-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#hero-carousel .item:hover img {
    transform: scale(1.05);
}

/* Carousel Controls */
#hero-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

#hero-carousel .owl-nav button:hover {
    background: var(--am-primary) !important;
    transform: translateY(-50%) scale(1.1);
}

#hero-carousel .owl-nav .owl-prev {
    left: 10px;
}

#hero-carousel .owl-nav .owl-next {
    right: 10px;
}

/* ========================================
   BODY CONTENT SPACING
   ======================================== */

.body-content {
    padding-top: 15px;
    background: var(--am-bg);
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* ========================================
   PRODUCT CARD LAYOUTS
   ======================================== */

.am-card {
    margin-bottom: 0;
}

.row .am-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row .am-card a {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.row .am-card .price-wrap {
    margin-top: auto;
}

.row .am-card .btn-add-cart {
    margin-top: auto;
}

/* ========================================
   WISHLIST HEART ANIMATION
   ======================================== */

.wishlist-btn {
    display: inline-block;
    padding: 8px 12px;
    color: var(--am-danger);
    border: 1px solid var(--am-danger);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.wishlist-btn .fa-heart {
    transition: transform var(--transition-fast);
}

.wishlist-btn:hover {
    background: var(--am-danger);
    color: white;
}

.wishlist-btn:hover .fa-heart {
    transform: scale(1.3);
    animation: heartbeat 0.6s ease-in-out;
}

.wishlist-btn.active {
    background: var(--am-danger);
    color: white;
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }
}

/* ========================================
   PRICE STYLING
   ======================================== */

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.p-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--am-text-dark);
}

.p-old-price {
    font-size: 12px;
    color: var(--am-text-muted);
    text-decoration: line-through;
}

/* Price Animation on Hover */
.am-card:hover .p-price {
    color: var(--am-primary);
    animation: price-pulse 0.5s ease;
}

@keyframes price-pulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   DISCOUNT TAGS
   ======================================== */

.discount-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--am-secondary);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    animation: discount-float 2s ease-in-out infinite;
}

@keyframes discount-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-tooltip);
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid var(--am-success);
}

.toast-error {
    border-left: 4px solid var(--am-danger);
}

.toast-warning {
    border-left: 4px solid var(--am-warning);
}

.toast-info {
    border-left: 4px solid var(--am-info);
}

/* ========================================
   LOADING STATES
   ======================================== */

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner-rotate 0.6s linear infinite;
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

a,
button,
.btn,
.form-control,
.card,
.am-card {
    transition: all var(--transition-fast);
}

/* ========================================
   IMAGE HOVER EFFECTS
   ======================================== */

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--am-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--am-primary-hover);
    transform: translateY(-5px);
}

.scroll-to-top .fa {
    font-size: 20px;
}

/* ========================================
   OVERLAY & MODAL IMPROVEMENTS
   ======================================== */

.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

/* ========================================
   CATEGORY ICONS
   ======================================== */

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--am-primary-light);
    color: var(--am-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--transition-fast);
}

.category-icon:hover {
    background: var(--am-primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

/* ========================================
   STOCK INDICATORS
   ======================================== */

.stock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.stock-badge.in-stock {
    background: #d1f4e0;
    color: var(--am-success);
}

.stock-badge.low-stock {
    background: #fff3cd;
    color: var(--am-warning);
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: var(--am-danger);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--am-bg-light);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--am-border);
    border-radius: var(--radius-full);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--am-text-muted);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767.98px) {
    .btn-add-cart {
        font-size: 11px;
        padding: 6px 8px;
    }

    .discount-tag {
        font-size: 10px;
        padding: 3px 6px;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top .fa {
        font-size: 16px;
    }

    .toast {
        min-width: 200px;
        max-width: 300px;
    }
}

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

@media print {

    .btn-add-cart,
    .wishlist-btn,
    .scroll-to-top,
    .toast-container,
    .hero-carousel .owl-nav {
        display: none !important;
    }
}

/* ========================================
   HOMEPAGE HERO SECTION ENHANCEMENTS
   ======================================== */

/* Sidebar Overflow & Styling */
.hero-sidebar {
    position: relative;
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    overflow: visible !important; /* Crucial for flyout menus */
}

.sidebar-menu-wrapper {
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: #333 !important;
    color: #fff;
    padding: 14px 15px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px 8px 0 0;
}

.sidebar-header i {
    font-size: 16px;
}

/* Category list item & hover states */
.category-item {
    position: relative;
}

.hero-sidebar .nav-link {
    display: flex;
    align-items: center;
    color: #3f3f3f !important;
    font-size: 13px !important;
    font-weight: 500;
    padding: 12px 18px !important;
    border-bottom: 1px solid #f6f6f6 !important;
    transition: all 0.25s ease !important;
}

.hero-sidebar .nav-link:hover {
    color: #222 !important;
    background-color: #f5f5f5 !important;
    padding-left: 22px !important;
}

.hero-sidebar .nav-link i.fa-tag, 
.hero-sidebar .nav-link i:first-child {
    font-size: 15px;
    color: #777;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.hero-sidebar .nav-link:hover i.fa-tag,
.hero-sidebar .nav-link:hover i:first-child {
    color: #333;
    transform: scale(1.15);
}

.hero-sidebar .menu-chevron {
    color: #bbb;
    font-size: 14px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hero-sidebar .category-item:hover .menu-chevron {
    color: #555;
    transform: translateX(3px);
}

.hero-sidebar .see-all-link {
    border-bottom: none !important;
    border-radius: 0 0 8px 8px;
    color: #333 !important;
    background: #fafafa !important;
    font-weight: 600 !important;
}

.hero-sidebar .see-all-link:hover {
    background: #f0f0f0 !important;
}

/* Premium Megamenu Flyout */
.category-flyout {
    position: absolute;
    left: 100%;
    top: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid #333;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    z-index: 1050;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.category-item:hover .category-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px) scale(1);
    pointer-events: auto;
}

.flyout-header {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.flyout-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
    margin-bottom: 12px;
}

.flyout-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flyout-item {
    display: flex;
    align-items: center;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 13px;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.flyout-item:hover {
    color: #222 !important;
    padding-left: 5px;
}

.flyout-item .bullet-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.flyout-item:hover .bullet-dot {
    background-color: #555;
    transform: scale(1.3);
}

.flyout-item .flyout-text {
    font-weight: 500;
}

/* 2. Premium Main Slider & Overlay Controls */
.hero-slider {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
}

/* Glassmorphic Nav Arrows */
#hero-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #222 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-slider:hover #hero-carousel .owl-nav button {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slider:hover #hero-carousel .owl-nav .owl-prev {
    left: 20px !important;
}

.hero-slider:hover #hero-carousel .owl-nav .owl-next {
    right: 20px !important;
}

#hero-carousel .owl-nav .owl-prev {
    left: -10px !important;
}

#hero-carousel .owl-nav .owl-next {
    right: -10px !important;
}

#hero-carousel .owl-nav button:hover {
    background: var(--am-primary) !important;
    color: #fff !important;
    border-color: var(--am-primary) !important;
    box-shadow: 0 6px 20px rgba(232, 102, 61, 0.4);
    transform: translateY(-50%) scale(1.08) !important;
}

/* Pill Dot Indicators */
#hero-carousel .owl-dots {
    position: absolute;
    bottom: 25px;
    right: 35px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

#hero-carousel .owl-dots .owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#hero-carousel .owl-dots .owl-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--am-primary) !important;
}

/* Styled Shop Now Button */
.slider-overlay-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--am-primary), #ff845c);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(232, 102, 61, 0.45);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-shop-now:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(232, 102, 61, 0.6);
    background: linear-gradient(135deg, #ff7e54, var(--am-primary));
}

.btn-shop-now i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.btn-shop-now:hover i {
    transform: rotate(-10deg) scale(1.15);
}

/* 3. Right CTA Boxes & Hover Animations */
.hero-right {
    gap: 12px !important;
}

.cta-box {
    background: #fff;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex;
    align-items: center;
    gap: 15px !important;
    text-decoration: none !important;
}

.cta-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(232, 102, 61, 0.2) !important;
    background: linear-gradient(to right, #fff, #fffbf9) !important;
}

.cta-box .cta-icon {
    width: 48px;
    height: 48px;
    background: rgba(232, 102, 61, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cta-box .cta-icon i {
    font-size: 20px;
    color: var(--am-primary) !important;
    transition: all 0.3s ease;
}

.cta-box:hover .cta-icon {
    background: var(--am-primary);
}

.cta-box:hover .cta-icon i {
    color: #fff !important;
}

.cta-box .cta-text h6 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 2px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-box .cta-text p {
    font-size: 11px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* CTA Icon Hover Micro-animations */
@keyframes truck-drive {
    0% { transform: translateX(0); }
    35% { transform: translateX(4px); }
    65% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@keyframes user-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

@keyframes headphones-wobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

.cta-box:hover .cta-icon i.fa-truck {
    animation: truck-drive 0.8s ease-in-out;
}

.cta-box:hover .cta-icon i.fa-user-circle {
    animation: user-pulse 0.8s ease-in-out;
}

.cta-box:hover .cta-icon i.fa-headphones {
    animation: headphones-wobble 0.8s ease-in-out;
}

