/* Custom Styles for TopUp Store */

:root {
    --orange: #ff6b00;
    --light-orange: #ffd8cc;
    --dark-orange: #cc5500;
    --primary: #007bff;
    --light-primary: #e3f2fd;
    --dark-primary: #0056b3;
}

/* Base Button Styles */
.whatsapp-btn, .facebook-btn, .tiktok-btn, .instagram-btn, .email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.facebook-btn {
    background: #1877F2;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.tiktok-btn {
    background: #000000;
}

.tiktok-btn:hover {
    background: #333333;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.instagram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.email-btn {
    background: #EA4335;
}

.email-btn:hover {
    background: #d33b2c;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

.text-orange {
    color: var(--orange) !important;
}

.bg-orange {
    background-color: var(--orange) !important;
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    border: none;
    color: white;
    font-weight: 500;
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--dark-orange), #b34700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

.btn-orange:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.3);
}

.category-card {
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--orange);
}

.category-card .card-img-top {
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.category-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Make categories smaller on computer view */
@media (min-width: 992px) {
    .category-card .card-img-top {
        height: 70px;
    }

    .category-card {
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .category-card h6 {
        font-size: 0.85rem;
        line-height: 1.3;
        font-weight: 500;
    }
}

@media (max-width: 576px) {
    .category-card .card-img-top {
        height: 100px;
    }
    
    .category-card {
        border-radius: 10px;
    }
}

.product-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #dee2e6;
}

/* Sticky header and footer adjustments */
body {
    padding-bottom: 70px; /* Space for bottom nav on mobile */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Category page improvements */
@media (max-width: 991px) {
    .category-sidebar {
        margin-bottom: 20px;
    }
    
    .category-sidebar .card {
        margin-bottom: 15px;
        border-radius: 12px;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Product image sizing */
.product-image {
    height: 300px;
    object-fit: contain;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Full size product image for computer view */
@media (min-width: 992px) {
    .product-image-full {
        height: auto;
        max-height: 80vh;
        width: 100%;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }

    .product-image-full:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }
}

/* Mobile product images */
@media (max-width: 991px) {
    .product-image {
        height: 250px;
        border-radius: 10px;
    }

    .product-image-full {
        height: 250px;
        border-radius: 10px;
    }
    
    /* Tablet-specific button adjustments */
    .hot-deal-badge,
    .discount-badge-top {
        font-size: 0.6rem; /* Slightly larger than mobile */
        padding: 3px 6px; /* Moderate padding */
        border-radius: 10px; /* Moderate rounding */
        top: 6px; /* Moderate positioning */
        backdrop-filter: blur(4px); /* Medium blur on tablet */
    }
    
    .hot-deal-badge {
        right: 6px; /* Moderate right positioning */
        box-shadow: 0 0 8px rgba(255, 107, 0, 0.45);
    }
    
    .discount-badge-top {
        left: 6px; /* Moderate left positioning */
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.45);
    }
}

/* Extra large screens - maximize image display */
@media (min-width: 1200px) {
    .product-image-full {
        max-height: 85vh;
        border-radius: 18px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }
}

/* Product card styling for consistent sizing */
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.product-card .card-img-top:hover {
    transform: scale(1.05);
}

/* Mobile improvements */
@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    /* Mobile-specific button adjustments */
    .hot-deal-badge,
    .discount-badge-top {
        font-size: 0.55rem; /* Even smaller on mobile */
        padding: 2px 5px; /* Minimal padding */
        border-radius: 8px; /* Less rounded */
        top: 5px; /* Closer to edge */
        backdrop-filter: blur(3px); /* Less blur on mobile for performance */
    }
    
    .hot-deal-badge {
        right: 5px; /* Closer to right edge */
        box-shadow: 0 0 6px rgba(255, 107, 0, 0.4); /* Reduced glow */
    }
    
    .discount-badge-top {
        left: 5px; /* Closer to left edge */
        box-shadow: 0 0 6px rgba(40, 167, 69, 0.4); /* Reduced glow */
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes pulse {
        0% {
            box-shadow: 0 0 6px rgba(255, 107, 0, 0.4);
        }
        50% {
            box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
        }
        100% {
            box-shadow: 0 0 6px rgba(255, 107, 0, 0.4);
        }
    }
    
    @keyframes pulse-green {
        0% {
            box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
        }
        50% {
            box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
        }
        100% {
            box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
        }
    }
}

/* Review stars */
.rating-stars .fa-star.checked {
    color: #ffc107;
}

/* Scrollbar styling */
.overflow-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    border-radius: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-orange), #b34700);
}

/* Form styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.2);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.2);
}

/* Badge styling */
.badge-orange {
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Slider responsive sizing - Mobile First Approach */
.slider-image {
    width: 100%;
    height: auto; /* Let image maintain natural aspect ratio */
    max-height: 400px; /* Maximum height */
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    background-color: #f8f9fa; /* Light background for letterboxing */
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.slider-image:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Mobile phones */
@media (max-width: 576px) {
    .slider-image {
        max-height: 450px; /* Increased to 450px to make slider even bigger on mobile */
        border-radius: 12px;
    }
}

/* Medium tablets and up (769px+) */
@media (min-width: 769px) {
    .slider-image {
        max-height: 350px;
        border-radius: 13px;
    }
}

/* Large tablets and desktops (992px+) */
@media (min-width: 992px) {
    .slider-image {
        max-height: 400px; /* Standard desktop height */
        border-radius: 15px;
    }
}

/* Extra large screens (1200px+) */
@media (min-width: 1200px) {
    .slider-image {
        max-height: 400px; /* Consistent height */
        border-radius: 15px;
    }
}

/* Ultra wide screens (1400px+) */
@media (min-width: 1400px) {
    .slider-image {
        max-height: 400px; /* Maximum height */
        border-radius: 15px;
    }
}

/* Slider container constraints */
.carousel {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Extra constraint for very wide screens */
@media (min-width: 1800px) {
    .carousel {
        max-width: 1600px;
    }
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(5px);
    bottom: 25px;
    left: 25px;
    right: 25px;
    max-width: calc(100% - 50px);
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        padding: 15px;
        border-radius: 10px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* Carousel controls improvements */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(204, 85, 0, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;
    }
}

/* Carousel pause button styling */
.carousel-pause-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-pause-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-pause-btn .btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 500;
}

.carousel-pause-btn .btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1)) !important;
    transform: scale(1.05);
}

/* Mobile responsive pause button */
@media (max-width: 768px) {
    .carousel-pause-btn {
        top: 10px;
        right: 10px;
    }

    .carousel-pause-btn .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
}

/* Categories Horizontal Scroll */
.categories-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    margin: 20px 0;
}

.categories-scroll-container::before,
.categories-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}

.categories-scroll-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, transparent 100%);
}

.categories-scroll-container::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 100%);
}

.categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #f1f1f1;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-orange), #b34700);
}

.category-item {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 130px;
}

.category-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
    cursor: pointer;
    touch-action: manipulation;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--orange);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.category-card:active {
    transform: translateY(-3px);
    transition: transform 0.1s ease;
}

.category-card img {
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
}

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

/* Mobile touch scroll indicator */
@media (max-width: 768px) {
    .categories-scroll-container {
        position: relative;
    }

    /* Hide desktop fade effects on mobile */
    .categories-scroll-container::before,
    .categories-scroll-container::after {
        display: none;
    }

    .categories-scroll-container::after {
        content: '👆 Touch & scroll to see more';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        z-index: 2;
        opacity: 0.9;
        animation: fadeInOut 3s ease-in-out infinite;
        width: auto;
        height: auto;
        font-weight: 500;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.9; }
    }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .categories-scroll-container::before,
    .categories-scroll-container::after {
        width: 25px;
    }

    .categories-scroll {
        gap: 15px;
        padding: 10px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .category-item {
        min-width: 90px;
        max-width: 110px;
    }

    .category-card {
        padding: 15px;
        border-radius: 12px;
    }

    .category-card img {
        height: 60px !important;
        width: 60px !important;
        border-radius: 10px;
    }

    .category-card h6 {
        font-size: 0.8rem;
        font-weight: 500;
        margin-top: 10px;
    }
}

/* Desktop fade effects for larger screens */
@media (min-width: 769px) {
    .categories-scroll-container::before {
        left: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, transparent 100%);
    }

    .categories-scroll-container::after {
        right: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.95) 100%);
    }
}

/* Desktop larger categories */
@media (min-width: 992px) {
    .category-item {
        min-width: 120px;
        max-width: 140px;
    }

    .category-card img {
        height: 80px !important;
        width: 80px !important;
        border-radius: 12px;
    }
    
    .category-card h6 {
        font-size: 0.9rem;
        font-weight: 600;
    }
}

.sidebar-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    margin-left: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--orange);
}

.sidebar-categories h5 {
    color: var(--orange);
    font-weight: 700;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.sidebar-categories .list-group-item {
    background-color: transparent;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    margin-bottom: 6px;
    padding: 12px 15px;
    border: 1px solid transparent;
    line-height: 1.4;
}

.sidebar-categories .list-group-item:hover {
    background: linear-gradient(135deg, var(--light-orange) 0%, #ffffff 100%);
    color: var(--dark-orange);
    transform: translateX(8px);
    border-left: 4px solid var(--orange);
    border-color: var(--orange);
    padding-left: 15px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.sidebar-categories .list-group-item i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--orange);
}

.sidebar-categories .list-group-item:hover i {
    transform: translateX(5px);
    color: var(--dark-orange);
}

/* Button outline orange styling */
.btn-outline-orange {
    color: var(--orange);
    border: 2px solid var(--orange);
    background-color: transparent;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background: linear-gradient(135deg, var(--orange), var(--dark-orange));
    border-color: var(--orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-outline-orange:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Full width black buttons for product cards */
.btn-product-full {
    width: 100%;
    background: #000000; /* Pure black background */
    border: 2px solid #000000; /* Black border */
    color: #ffffff; /* White text */
    margin-bottom: 8px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-product-full:hover {
    background: #333333; /* Dark gray on hover */
    border-color: #333333; /* Dark gray border on hover */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn-product-full:focus {
    box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.25);
}

.btn-product-full i {
    margin-right: 8px;
}

/* Payment Method Cards */
.payment-method-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--orange);
    background: linear-gradient(135deg, #ffffff, #fff5f0);
}

.payment-method-card.active {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.05));
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.payment-method-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.payment-method-card img {
    max-height: 50px;
    width: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.payment-method-card:hover img {
    transform: scale(1.1);
}

.payment-method-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
    text-align: center;
}

.payment-method-card small {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #666;
    text-align: center;
}

/* Hot Deal Styles */
.hot-deal-product {
    position: relative;
    border: 2px solid #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hot-deal-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 107, 0, 0.5);
}

/* Bouncing animation for hot deal badges */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.hot-deal-badge-animated {
    animation: bounce 2s infinite;
}

.hot-deal-badge-animated:nth-child(2) {
    animation-delay: 0.5s;
}

.hot-deal-badge {
    position: absolute;
    top: 8px;
    right: 8px; /* Corner position */
    z-index: 10;
    background: rgba(255, 107, 0, 0.85); /* Orange with transparency */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    color: white; /* White text */
    font-weight: 700;
    padding: 4px 8px; /* Smaller size */
    border-radius: 12px; /* Rounded */
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.5); /* Glow effect */
    font-size: 0.65rem; /* Smaller text */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite; /* Pulsing glow animation */
}

.hot-deal-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.7); /* Enhanced glow on hover */
    background: rgba(255, 107, 0, 0.95); /* More opaque on hover */
}

.discount-badge-top {
    position: absolute;
    top: 8px;
    left: 8px; /* Opposite corner */
    z-index: 10;
    background: rgba(40, 167, 69, 0.85); /* Green with transparency */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    color: white; /* White text */
    font-weight: 600;
    padding: 4px 8px; /* Smaller size */
    border-radius: 12px; /* Rounded */
    font-size: 0.65rem; /* Smaller text */
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.5); /* Glow effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    transition: all 0.3s ease;
    animation: pulse-green 2s ease-in-out infinite; /* Pulsing glow animation */
    animation-delay: 1s; /* Delay for staggered effect */
}

.discount-badge-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.7); /* Enhanced glow on hover */
    background: rgba(40, 167, 69, 0.95); /* More opaque on hover */
}

/* Pulsing animation keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 15px #ff6b00, 0 0 25px #ff6b00;
    }
    50% {
        box-shadow: 0 0 20px #ff6b00, 0 0 35px #ff6b00;
    }
    100% {
        box-shadow: 0 0 15px #ff6b00, 0 0 25px #ff6b00;
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 15px #28a745, 0 0 25px #28a745;
    }
    50% {
        box-shadow: 0 0 20px #28a745, 0 0 35px #28a745;
    }
    100% {
        box-shadow: 0 0 15px #28a745, 0 0 25px #28a745;
    }
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hot-deal-timer-main {
    margin: 0 auto;
    max-width: 500px;
    text-align: right; /* Right aligned */
    background: transparent; /* Remove white background */
}

.hot-deal-main-timer {
    font-size: 1.5rem; /* Smaller font */
    font-weight: 700;
    color: #ff6b00;
    background: transparent; /* Remove white background */
    padding: 6px 12px; /* Smaller padding */
    border-radius: 6px; /* Smaller radius */
    display: inline-block;
    box-shadow: none; /* Remove box shadow */
}

/* Logo sizing */
.navbar-brand img {
    height: 45px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Mobile responsive logo sizing */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
    }
}

/* Mobile navigation z-index adjustment */
@media (max-width: 991px) {
    .navbar.fixed-bottom {
        z-index: 1000;
    }
}

/* Mobile responsive adjustments for hot deals */
@media (max-width: 576px) {
    .hot-deal-badge,
    .discount-badge-top,
    .discount-badge {
        font-size: 0.6rem; /* Even smaller on mobile */
        padding: 3px 6px; /* Much less padding on mobile */
        border-radius: 10px; /* Less rounded on mobile */
    }
    
    .hot-deal-badge {
        top: 5px;
        right: 5px;
        box-shadow: 0 0 8px #ff6b00, 0 0 15px #ff6b00; /* Less glow on mobile */
    }
    
    .discount-badge-top {
        top: 5px;
        left: 5px;
        box-shadow: 0 0 8px #28a745, 0 0 15px #28a745; /* Less glow on mobile */
    }
    
    .discount-badge {
        top: 5px;
        right: 5px;
    }
    
    .hot-deal-main-timer {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes pulse {
        0% {
            box-shadow: 0 0 8px #ff6b00, 0 0 15px #ff6b00;
        }
        50% {
            box-shadow: 0 0 12px #ff6b00, 0 0 20px #ff6b00;
        }
        100% {
            box-shadow: 0 0 8px #ff6b00, 0 0 15px #ff6b00;
        }
    }
    
    @keyframes pulse-green {
        0% {
            box-shadow: 0 0 8px #28a745, 0 0 15px #28a745;
        }
        50% {
            box-shadow: 0 0 12px #28a745, 0 0 20px #28a745;
        }
        100% {
            box-shadow: 0 0 8px #28a745, 0 0 15px #28a745;
        }
    }
}

@media (min-width: 768px) {
    .hot-deal-main-timer {
        font-size: 1.8rem;
        padding: 8px 16px;
    }
    
    .hot-deal-badge,
    .discount-badge-top {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 991px) {
    .hot-deal-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
        box-shadow: 0 0 10px #ff6b00, 0 0 18px #ff6b00;
    }
    
    .discount-badge-top {
        font-size: 0.65rem;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
        box-shadow: 0 0 10px #28a745, 0 0 18px #28a745;
    }
}

/* Product image gallery styles */
.product-gallery {
    margin-bottom: 25px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    /* Add visual indicator for touch support */
    cursor: pointer;
}

.main-image-container::before {
    content: "← Swipe →";
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    font-weight: 500;
}

.main-image-container:hover::before {
    opacity: 1;
}

.thumbnail-container {
    margin-top: 20px;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.thumbnail:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.thumbnail.active {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange);
    background: linear-gradient(135deg, #ffffff, #fff5f0);
}

.thumbnail img {
    max-height: 95px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

/* Mobile responsive adjustments for gallery */
@media (max-width: 768px) {
    .thumbnail {
        height: 90px;
    }
    
    .thumbnail img {
        max-height: 80px;
    }
    
    .main-image-container {
        border-radius: 12px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    }
    
    .main-image-container::before {
        font-size: 12px;
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .thumbnail {
        height: 80px;
    }
    
    .thumbnail img {
        max-height: 70px;
    }
    
    .main-image-container {
        border-radius: 10px;
        box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    }
    
    .main-image-container::before {
        font-size: 11px;
        padding: 5px 10px;
        top: 8px;
        right: 8px;
    }
}

/* Color and Size Selection Styles */
.color-select-btn, .size-select-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    background: #ffffff;
}

.color-select-btn:hover, .size-select-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.color-select-btn.active, .size-select-btn.active {
    border: 2px solid #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #fff5f0) !important;
    color: #ff6b00 !important;
    font-weight: 600;
}

/* Special styling for white buttons */
.color-select-btn[style*="background-color: #ffffff"], 
.color-select-btn[style*="background-color: #FFFFFF"],
.color-select-btn[style*="background-color: white"] {
    border: 1px solid #dee2e6;
}

/* Selected Options Display */
#selected-display {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Footer adjustments */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

footer h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

footer ul {
    padding-left: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #6c757d;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--orange);
}

footer .text-orange {
    font-weight: 500;
}

/* Developer credit styling */
.footer-developer-credit {
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ff6b00 !important;
    padding: 15px 0;
    margin: 0;
    text-align: center;
}

.footer-developer-credit a {
    color: #ff6b00 !important;
    text-decoration: none;
    font-weight: 600;
}

.footer-developer-credit a:hover {
    text-decoration: underline !important;
    transform: scale(1.05);
}

/* Ensure footer content is visible on mobile */
@media (max-width: 768px) {
    footer {
        padding: 25px 0 80px 0; /* Extra padding at bottom for mobile */
        position: relative;
        z-index: 10;
    }
    
    .footer-developer-credit {
        font-size: 0.9rem;
        padding: 12px 0;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 20px 0 90px 0; /* Even more padding on small mobile screens */
        font-size: 0.9rem;
        position: relative;
        z-index: 10;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-developer-credit {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 25px;
    font-size: 1.1rem;
    border-left: 5px solid #28a745;
}

.alert-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #155724;
}

.alert-success p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #155724;
}

.alert-success .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 10px;
    font-weight: 600;
}

.alert-success .btn i {
    margin-right: 8px;
}

.alert-success hr {
    border-top: 2px solid rgba(21, 87, 36, 0.2);
    margin: 25px 0;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

/* Card styling */
.card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #333;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

/* Button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Orange button styling */
.btn-orange {
    background: linear-gradient(135deg, #ff6b00, #e55e00);
    border: none;
    color: white;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #e55e00, #cc5300);
    color: white;
    transform: translateY(-2px);
}

.btn-orange:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Checkout form specific styles */
.checkout-form .form-control, 
.checkout-form .form-select {
    padding: 12px 15px;
    font-size: 1rem;
}

.checkout-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.checkout-form .card {
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.checkout-form .card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    color: #333;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav on mobile */
    }
    
    .card {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .card-header {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0 10px 70px; /* Space for bottom nav on mobile */
    }
    
    .card {
        border-radius: 10px;
        margin-bottom: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    footer {
        padding: 20px 0;
        font-size: 0.9rem;
        position: relative;
        z-index: 999;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

/* Success Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 20px;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.modal-body {
    padding: 30px;
}

.modal-body .fa-check-circle {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 30px;
}

.modal-body .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    margin: 5px;
}

.modal-body .btn i {
    margin-right: 8px;
}

.modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

/* Orange button styling */
.btn-orange {
    background: linear-gradient(135deg, #ff6b00, #e55e00);
    border: none;
    color: white;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #e55e00, #cc5300);
    color: white;
    transform: translateY(-2px);
}

.btn-orange:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}
