/* Responsive adjustments */
@media (max-width: 768px) {
    .single-product-wrapper {
        flex: 0 0 180px;
        min-width: 180px;
    }
    
    .single-product-wrapper .product-img img {
        height: 160px;
    }
    
    .category-actions {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .refresh-category {
        margin-bottom: 5px;
        margin-right: 0 !important;
    }
    
    .discount-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .original-price {
        font-size: 13px;
    }
    
    .single-product-wrapper .product-price {
        font-size: 15px;
    }

    .modal-content {
        width: 80%;
        max-width: 400px;
    }

     .modal-content {
        width: 95%;
        max-width: 450px;
        padding: 15px;
    }
    
    .wheel-container {
        width: min(350px, 85vw);
        height: min(350px, 85vw);
    }
    #spinButton {
        font-size: 14px;
        padding: 8px 16px;
    }

    .palm-tree {
        width: 40px;
        height: 80px;
    }

    .champagne-glasses {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .single-product-wrapper {
        flex: 0 0 150px;
        min-width: 150px;
    }
    
    .single-product-wrapper .product-img img {
        height: 140px;
    }
    
    .single-product-wrapper .product-description {
        padding: 10px;
    }
    
    .category-products-scroll {
        gap: 10px;
    }
    
    .loading-placeholder {
        gap: 10px;
    }
    
    .discount-tag {
        font-size: 10px;
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }
    
    .original-price {
        font-size: 12px;
    }
    
    .single-product-wrapper .product-price {
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
        max-width: 350px;
    }

    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 10px;
    }
    
    .wheel-container {
        width: min(280px, 80vw);
        height: min(280px, 80vw);
    }

    #spinButton {
        font-size: 12px;
        padding: 6px 12px;
    }

    .palm-tree {
        width: 30px;
        height: 60px;
    }

    .champagne-glasses {
        width: 30px;
        height: 30px;
    }
}
.welcome_ara {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.container {
    overflow-x: hidden;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.welcome-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #fc6b04 #f1f1f1;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.welcome-carousel::-webkit-scrollbar {
    height: 8px;
}

.welcome-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.welcome-carousel::-webkit-scrollbar-thumb {
    background: #fc6b04;
    border-radius: 4px;
}

.welcome-carousel::-webkit-scrollbar-thumb:hover {
    background: #e55a03;
}

.carousel-item {
    flex: 0 0 300px;
    min-width: 300px;
    height: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-us-item, .download-app-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    padding: 15px;
    overflow: hidden;
}

.about-us, .download-app {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-height: 100%;
    overflow: hidden;
}

.about-us h4, .download-app h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-us p {
    color: white;
    font-size: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    max-height: 80px;
    overflow: hidden;
}

.store-badge img {
    width: 90px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.store-badge img:hover {
    transform: scale(1.1);
}

.essence-btn {
    background-color: #fc6b04;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.essence-btn:hover {
    background-color: #e55a03;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 260px;
        min-width: 260px;
        height: 180px;
    }
    .about-us h4, .download-app h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .about-us p {
        font-size: 11px;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
    }
    .store-badge img {
        width: 80px;
    }
    .app-store-buttons {
        max-height: 70px;
    }
    .essence-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 220px;
        min-width: 220px;
        height: 140px;
    }
    .about-us h4, .download-app h4 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    .about-us p {
        font-size: 10px;
        margin-bottom: 5px;
        line-height: 1.2;
        -webkit-line-clamp: 1;
    }
    .store-badge img {
        width: 70px;
    }
    .app-store-buttons {
        gap: 4px;
        max-height: 60px;
    }
    .essence-btn {
        padding: 4px 8px;
        font-size: 10px;
        max-width: 85%;
    }
    .welcome-carousel {
        padding: 10px 0;
    }
    .about-us-item, .download-app-item {
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .carousel-item {
        flex: 0 0 200px;
        min-width: 200px;
        height: 120px;
    }
    .about-us h4, .download-app h4 {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .about-us p {
        font-size: 9px;
        margin-bottom: 4px;
    }
    .store-badge img {
        width: 60px;
    }
    .app-store-buttons {
        max-height: 50px;
    }
    .essence-btn {
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* Ensure no page-wide scrolling */
@media (max-width: 576px) {
    .welcome_ara, .container {
        overflow-x: hidden !important;
        max-width: 100%;
        width: 100%;
    }
    .welcome-carousel {
        overflow-x: auto !important;
        max-width: 100%;
    }
    .carousel-item {
        overflow: hidden !important;
    }
}
</style>
<!-- ##### Welcome Area End ##### -->

<!-- ##### Additional CSS ##### -->
<style>
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Discount Tag Styles */
.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fc6b04;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.single-product-wrapper:hover .discount-tag {
    transform: scale(1.1);
}

/* Original Price Styles */
.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

/* Horizontal scrolling container */
.category-products-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #fc6b04 #f1f1f1;
}

.category-products-scroll::-webkit-scrollbar {
    height: 8px;
}

.category-products-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.category-products-scroll::-webkit-scrollbar-thumb {
    background: #fc6b04;
    border-radius: 4px;
}

.category-products-scroll::-webkit-scrollbar-thumb:hover {
    background: #e55a03;
}

/* Loading placeholder horizontal layout */
.loading-placeholder {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
}

/* Product wrapper styles */
.single-product-wrapper {
    flex: 0 0 220px;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.single-product-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.single-product-wrapper .product-img {
    position: relative;
    overflow: hidden;
}

.single-product-wrapper .product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-product-wrapper:hover .product-img img {
    transform: scale(1.05);
}

.single-product-wrapper .product-description {
    padding: 15px;
}

.single-product-wrapper .product-description h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
    color: #333;
    line-height: 1.4;
}

.single-product-wrapper .product-price {
    font-size: 16px;
    font-weight: bold;
    color: #fc6b04;
    margin: 8px 0;
}

.single-product-wrapper .btn.essence-btn:hover {
    background-color: #e55a03;
}

/* Category actions */
.category-actions {
    display: flex;
    align-items: center;
}

.refresh-category:hover {
    background-color: #e55a03 !important;
}

.refresh-category i {
    margin-right: 5px;
}

/* Ensure smooth loading experience */
.category_area {
    min-height: 350px;
}