.custom-blue {
    background-color: rgb(7, 13, 90);
}

.custom-blue:hover {
    background-color: rgb(5, 10, 70);
}

.header-bg {
    background-color: rgb(247, 182, 51);
}

.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: rgb(247, 182, 51);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.export-hero {
    background: linear-gradient(rgba(7, 13, 90, 0.8), rgba(7, 13, 90, 0.9));
    background-size: cover;
    background-position: center;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: white;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Modal Animations */
.modal-enter {
    animation: modalEnter 0.5s ease-out forwards;
}

.modal-exit {
    animation: modalExit 0.3s ease-in forwards;
}

@keyframes modalEnter {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalExit {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Product Card Hover Effects */
.product-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Zoom Effect */
.zoom-image {
    transition: transform 0.5s ease;
}

.zoom-image:hover {
    transform: scale(1.05);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Product Gallery Styles */
.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.thumbnail.active {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.thumbnail:hover {
    border-color: #93c5fd;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Zoom effect for main image */
.gallery-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-zoom.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

#stickyProductsBtn {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Highlight effect for products section */
.highlight-section {
    animation: highlight1 2s ease;
}

@keyframes highlight1 {
    0% {
        background-color: transparent;
    }

    20% {
        background-color: rgba(63, 57, 146, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

/* Quantity Pricing Styles */
.quantity-pricing-section {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 1.5rem;
}

.quantity-pricing-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
}

.quantity-pricing-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Price tier styling */
.quantity-pricing-section .bg-gray-50 {
    border-left: 4px solid #9ca3af;
}

.quantity-pricing-section .bg-blue-50 {
    border-left: 4px solid #3b82f6;
}

.quantity-pricing-section .bg-green-50 {
    border-left: 4px solid #10b981;
}

/* Modal button styles */
.quantity-pricing-section+.mt-6 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgb(7, 13, 90), rgb(9, 17, 120));
    transition: all 0.3s ease;
}

.quantity-pricing-section+.mt-6 a:hover {
    background: linear-gradient(to right, rgb(5, 10, 70), rgb(7, 13, 90));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(7, 13, 90, 0.3);
}

@media (max-width: 768px) {
    #productModal .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    #modalContent {
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #productModal .p-8 {
        padding: 1.5rem !important;
    }

    .product-gallery {
        max-height: 40vh !important;
        overflow: hidden !important;
    }

    .gallery-main {
        max-height: 30vh !important;
    }

    .gallery-thumbnails {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .thumbnail {
        min-width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .quantity-pricing-section .flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .quantity-pricing-section .flex>div:first-child {
        margin-bottom: 0.5rem;
    }

    #priceTier1,
    #priceTier2,
    #priceTier3 {
        font-size: 1rem !important;
    }

    .modal-scrollable {
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    #modalContent {
        max-height: 90vh !important;
        margin: 0.5rem !important;
        border-radius: 1rem !important;
    }

    .gallery-main {
        max-height: 25vh !important;
    }

    .thumbnail {
        min-width: 70px !important;
        height: 70px !important;
    }

    #modalName {
        font-size: 1.5rem !important;
    }

    .quantity-pricing-section {
        padding: 1rem !important;
    }
}

.modal-scrollable::-webkit-scrollbar {
    width: 4px;
}

.modal-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}