* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #432456;
    background-image: linear-gradient(135deg, #432456 0%, #5a3069 100%);
    color: #fff;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    padding-top: calc(10vh);
}

.container {
    width: 1500px;
    height: 781px;
    max-width: 100%;
    max-height: 100vh;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

nav {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

nav a {
    margin-right: 38px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    font-size: 20px;
}

#content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
    overflow-y: auto;
}

.shop-title {
    font-size: 45px;
    color: #333;
    font-weight: bold;
    margin-bottom: 3px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    justify-content: center;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

/* Staggered animation delay for product items */
.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.15s; }
.product-item:nth-child(3) { animation-delay: 0.2s; }
.product-item:nth-child(4) { animation-delay: 0.25s; }
.product-item:nth-child(5) { animation-delay: 0.3s; }
.product-item:nth-child(6) { animation-delay: 0.35s; }
.product-item:nth-child(7) { animation-delay: 0.4s; }
.product-item:nth-child(8) { animation-delay: 0.45s; }
.product-item:nth-child(9) { animation-delay: 0.5s; }
.product-item:nth-child(10) { animation-delay: 0.55s; }
.product-item:nth-child(11) { animation-delay: 0.6s; }
.product-item:nth-child(12) { animation-delay: 0.65s; }
.product-item:nth-child(13) { animation-delay: 0.7s; }
.product-item:nth-child(14) { animation-delay: 0.75s; }
.product-item:nth-child(15) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-image-container {
    width: 100%;
    padding-bottom: 100%; /* Create square aspect ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.product-item:hover .product-image-container {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.product-item:active .product-image-container {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

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

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

.product-name {
    margin-top: 15px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.product-item:hover .product-name {
    color: #73264d;
}

/* Responsive styles */
@media screen and (max-width: 1500px) {
    .container {
        width: 100%;
        height: auto;
        aspect-ratio: 1500/781;
    }
}

@media screen and (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 830px) {
    body {
        padding-top: 5vh;
    }
    
    .container {
        aspect-ratio: auto;
        height: auto;
        min-height: 700px;
    }
    
    nav {
        justify-content: center;
    }
    
    .shop-title {
        font-size: 40px;
        margin-bottom: 3px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        border-radius: 15px;
        min-height: 650px;
    }
    
    nav a {
        margin-right: 15px;
        font-size: 14px;
    }
    
    .shop-title {
        font-size: 23px;
        margin-bottom: 3px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-name {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Add the following CSS at the end of the file */
.sub-title {
    font-size: 20px;
    color: #f51111;
    font-weight: bold;
    margin-bottom: 3px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s forwards;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 80vh; /* Use viewport height instead of calc */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slider-images {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    display: none;
    max-width: 100%;
    max-height: 120%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.active {
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Media queries */
@media (max-width: 768px) {
    .sub-title {
        font-size: 18px;
    }

    .slider-wrapper {
        width: 90%;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Mobile-specific styles */
@media (max-width: 480px) {
    .sub-title {
        font-size: 10px;
    }
    
    .slider-container {
        height: 60vh; /* Reduce height for mobile */
    }
    
    .slider-wrapper {
        width: 95%; /* Increase width to use more screen space */
    }
    
    .slider-image {
        max-height: 100%; /* Ensure image fits within container */
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Mobile ad banner styles */
.mobile-ad-banner {
    display: none;
}

@media (max-width: 480px) {
    .mobile-ad-banner {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 3px 0 3px 0;
        width: 100%;
    }
    .mobile-ad-banner > div[id^="container-"] {
        width: 300px !important;
        height: 250px !important;
        min-width: 300px;
        min-height: 250px;
        max-width: 100vw;
        max-height: 60vw;
        margin: 0 auto;
        display: block;
    }
}