/* Import animations */
@import url('animations.css');

.container {
    margin-top:0px;
    padding: 0 10px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Categories Section */
.categories-section {
    margin:0px 0 40px;
    padding: 10px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 15px;

}

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #1DA1F2;
    transition: width 0.5s ease;
}

.section-header h2:hover::after {
    width: 100%;
}

.view-all {
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
}

.view-all::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1DA1F2;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.view-all:hover {
    color: #1DA1F2;
    background-color: rgba(76, 175, 80, 0.05);
    transform: translateX(5px);
    text-decoration: none;
}

.view-all:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Categories Carousel */
.categories-carousel {
    position: relative;
    padding: 10px 0 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
}
@media (max-width: 767px) {
  .categories-section {
    display: none;
  }
}

.category-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
    text-decoration: none;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #f5f9f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1DA1F2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.category-card:hover .category-icon {
    background: #1DA1F2;
    color: white;
    transform: rotate(5deg) scale(1.08);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.category-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

/* Slick Carousel Customization for Categories */
.categories-carousel .slick-prev,
.categories-carousel .slick-next {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1;
    transition: all 0.3s;
}

.categories-carousel .slick-prev {
    left: -15px;
}

.categories-carousel .slick-next {
    right: -15px;
}

.categories-carousel .slick-prev:before,
.categories-carousel .slick-next:before {
    color: #1DA1F2;
    font-size: 20px;
    opacity: 1;
}

.categories-carousel .slick-prev:hover,
.categories-carousel .slick-next:hover {
    background: #1DA1F2;
}

.categories-carousel .slick-prev:hover:before,
.categories-carousel .slick-next:hover:before {
    color: white;
}

/* Dots Styling */
.categories-carousel .slick-dots {
    bottom: -10px;
}

.categories-carousel .slick-dots li button:before {
    font-size: 10px;
    color: #ccc;
    opacity: 1;
}

.categories-carousel .slick-dots li.slick-active button:before {
    color: #1DA1F2;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .category-card {
        padding: 18px 12px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .category-card h3 {
        font-size: 0.95rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .categories-carousel .slick-prev,
    .categories-carousel .slick-next {
        width: 36px;
        height: 36px;
    }
    
    .categories-carousel .slick-prev {
        left: -10px;
    }
    
    .categories-carousel .slick-next {
        right: -10px;
    }
    
    .category-card {
        padding: 12px 8px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
    }
}

/* New Products Section */
.new-products-section {
    padding: 20px 0 30px;
    background-color: #f9f9f9;
}

/* Base grid layout - will be overridden by media queries */
.products-grid {
    display: grid;
    gap: 15px;
    padding: 0 10px;
}

/* Mobile first - 2 columns by default */
.new-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Tablets - 3 columns */
@media (min-width: 601px) {
    .new-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktops - 4 columns */
@media (min-width: 992px) {
    .new-products-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Ensure product cards take full width of their container */
.new-products-section .product-card {
    width: 100%;
    margin: 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1DA1F2;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.discount {
    background: #ff4d4f;
}

.product-badge.sale {
    background: #ff9800;
}

.product-image {
    position: relative;
    padding-top: 90%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #1DA1F2;
    color: white;
    transform: rotate(10deg);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: #1DA1F2 !important;
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card:hover .add-to-cart-btn {
    background: #1DA1F2 !important;
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: #1DA1F2 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.product-details {
    padding: 20px 15px;
}

.product-category {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #333;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-right: 5px;
}

.review-count {
    color: #888;
    font-size: 0.8rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1DA1F2;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-details {
        padding: 15px 12px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
}

/* Mobile styles for all product grids */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 5px;
    }
    
    .product-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .product-details {
        padding: 12px 10px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
}

/* Deal of the Day Section */
.deal-of-day-section {
    padding: 60px 0;
    background-color: #fff9f9;
    position: relative;
    overflow: hidden;
}

.deal-of-day-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.deal-of-day-section .section-title h2 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 5px 0;
    position: relative;
    display: inline-block;
}

.deal-of-day-section .section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #1DA1F2;
    bottom: -10px;
    left: 0;
}

.deal-of-day-section .section-title p {
    color: #777;
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.deal-countdown {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.countdown-timer {
    display: flex;
    gap: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-item span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1DA1F2;
    background: #ffebee;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 50px;
}

.countdown-item span:last-child {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

.deal-card {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #ffebee;
    background: #fff;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
}

.deal-card .product-badge {
    background: #1DA1F2;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.deal-card .product-badge.hot-deal {
    background: #ff6b6b;
}

.deal-card .product-price {
    margin: 10px 0;
}

.deal-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f1f1f1;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #1DA1F2, #e74c3c);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.deal-stock {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

.deal-stock strong {
    color: #333;
    font-weight: 600;
}

/* Responsive styles for Deal of the Day */
@media (max-width: 992px) {
    .deal-of-day-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deal-countdown {
        margin-top: 20px;
        width: 100%;
    }
    
    .countdown-timer {
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .deal-of-day-section .section-title h2 {
        font-size: 1.8rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .countdown-item span:last-child {
        font-size: 0.7rem;
    }
}

/* Top Products Section */
.top-products-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.top-products-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.top-products-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.top-products-section h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #1DA1F2;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.tab-btn:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.tab-btn.active {
    background-color: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .top-products-section h2 {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .top-products-section .section-header {
        padding: 0 15px;
    }
    
    .product-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Carousel Styles */
.carousel-section {
    margin: 0 auto;
    margin-top: 100px;
    position: relative;
    background: #f9f9f9; /* Light background to match header */
}

.carousel {
    width: 100%;
    margin: 0 auto;
    border-radius: 0; /* Removed border radius for full-width effect */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.carousel-slide {
    position: relative;
    height: 550px;
    margin-top: -60px; /* Pulls the image up slightly to hide the gap */
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    color: white;
    padding: 30px;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Slick Dots Styling */
.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    color: white;
    opacity: 0.5;
    font-size: 10px;
}

.slick-dots li.slick-active button:before {
    color: #1DA1F2;
    opacity: 1;
}

/* Slick Arrows */
.slick-prev:before,
.slick-next:before {
    color: white;
    font-size: 30px;
}

.slick-prev {
    left: 20px;
    z-index: 1;
}

.slick-next {
    right: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-slide {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        height: 250px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption {
        padding: 15px;
    }
}

/* Main Content Styles */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top:0px; /* Removed extra padding since we're handling it with carousel-section */
}

.cta-button {
    background: #1DA1F2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #3d8b40;
}

/* Header container */
#header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.floating-cart.active {
    right: 0;
}

.floating-cart-header {
    padding: 20px;
    background: #1DA1F2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-floating-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-floating-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.floating-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInFromRight 0.3s ease-out;
}

.floating-cart-item:last-child {
    border-bottom: none;
}

.floating-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-cart-item-details {
    flex: 1;
}

.floating-cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #333;
}

.floating-cart-item-price {
    color: #1DA1F2;
    font-weight: 600;
    font-size: 0.9rem;
}

.floating-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.floating-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.floating-quantity-btn:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.floating-quantity-input {
    width: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    font-size: 0.8rem;
}

.floating-cart-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.floating-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.floating-total-amount {
    color: #1DA1F2;
}

.view-cart-btn {
    width: 100%;
    padding: 12px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-cart-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Floating Cart Toggle Button */
.floating-cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.floating-cart-toggle:active {
    transform: scale(0.95);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: bounce 0.6s ease-out;
}

/* Empty Floating Cart */
.empty-floating-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1rem;
}

.empty-floating-cart::before {
    content: '🛒';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Remove Floating Item Button */
.remove-floating-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-floating-item:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

/* Enhanced Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Floating Cart */
@media (max-width: 768px) {
    .floating-cart {
        width: 100%;
        right: -100%;
    }
    
    .floating-cart-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .floating-cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
}

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

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Product Card Animations */
.product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .product-card {
        margin-bottom: 5px;
    }
    
    .product-image img {
        width: 100%;
        height: auto;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-original-price {
        font-size: 12px;
    }
    
    .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Enhanced Add to Cart Button */
.add-to-cart-btn {
    background: #1DA1F2 !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-to-cart-btn:hover {
    background: #1DA1F2 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Action Buttons */
.action-btn {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Enhanced Product Badge */
.product-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    animation: pulse 2s infinite;
}

.product-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.product-badge.hot-deal {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Category Cards */
.category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Section Headers */
.section-header {
    animation: fadeInUp 0.6s ease-out;
}

.section-header h2::after {
    transition: width 0.3s ease;
}

.section-header:hover h2::after {
    width: 80px;
}

/* Enhanced Deal Countdown */
.countdown-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.countdown-item:nth-child(1) { animation-delay: 0.1s; }
.countdown-item:nth-child(2) { animation-delay: 0.2s; }
.countdown-item:nth-child(3) { animation-delay: 0.3s; }
.countdown-item:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Tab Buttons */
.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.tab-btn:hover::before {
    width: 100%;
    height: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Focus States */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #1DA1F2;
    outline-offset: 2px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .product-card {
        animation-delay: 0.1s !important;
    }
    
    .product-card:nth-child(2) { animation-delay: 0.2s !important; }
    .product-card:nth-child(3) { animation-delay: 0.3s !important; }
    .product-card:nth-child(4) { animation-delay: 0.4s !important; }
    
    .countdown-item {
        animation-delay: 0.1s !important;
    }
    
    .countdown-item:nth-child(2) { animation-delay: 0.2s !important; }
    .countdown-item:nth-child(3) { animation-delay: 0.3s !important; }
    .countdown-item:nth-child(4) { animation-delay: 0.4s !important; }
}
