

.body {
    /* background-color: #f0f9ff;
    background-image: 
        radial-gradient(#ffe0e0 2px, transparent 2px),
        radial-gradient(#e0f0ff 2px, transparent 2px); */
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    padding: 40px 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 30px;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #ffd166;
    letter-spacing: 2px;
}

.categories-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.categorys {
    width: 240px;
    height: 320px;
    position: relative;
    transition: transform 0.3s;
}

.categorys:hover {
    transform: translateY(-10px) rotate(2deg);
}

.categorys:nth-child(even):hover {
    transform: translateY(-10px) rotate(-2deg);
}

.categorys-inner {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 6px solid white;
}

.categorys-image {
    width: 100%;
    height: 70%;
    position: relative;
    overflow: hidden;
}

.categorys-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.categorys:hover .categorys-image img {
    transform: scale(1.1);
}

.categorys-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.age-range {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.categorys-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-button {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: #333;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px dashed;
    font-size: 0.9rem;
}

.shop-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.shape {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.7;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.shape.circle {
    border-radius: 50%;
}

.shape.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.shape.heart {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape.cloud {
    width: 70px;
    height: 40px;
    border-radius: 50px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Category specific styles */
.infant .categorys-inner {
    background: linear-gradient(to bottom, #fff0f0, #ffcbd1);
}
.infant .categorys-info {
    background-color: #ffcbd1;
}
.infant .shop-button {
    border-color: #ff6b81;
    color: #ff6b81;
}
.infant .shape {
    background-color: #ffb1bd;
}

.toddler .categorys-inner {
    background: linear-gradient(to bottom, #fff8e1, #ffe082);
}
.toddler .categorys-info {
    background-color: #ffe082;
}
.toddler .shop-button {
    border-color: #ffc107;
    color: #ffc107;
}
.toddler .shape {
    background-color: #ffe082;
}

.preschool .categorys-inner {
    background: linear-gradient(to bottom, #e8f5e9, #a5d6a7);
}
.preschool .categorys-info {
    background-color: #a5d6a7;
}
.preschool .shop-button {
    border-color: #4caf50;
    color: #4caf50;
}
.preschool .shape {
    background-color: #a5d6a7;
}

.school .categorys-inner {
    background: linear-gradient(to bottom, #e3f2fd, #90caf9);
}
.school .categorys-info {
    background-color: #90caf9;
}
.school .shop-button {
    border-color: #2196f3;
    color: #2196f3;
}
.school .shape {
    background-color: #90caf9;
}

/* Add some decorative elements */
.decorative-element {
    position: absolute;
    z-index: 1;
}

.infant .decorative-element {
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b81'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center center;
    animation: spin 10s linear infinite;
}

.toddler .decorative-element {
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M12 8l-4 4h3v4h2v-4h3L12 8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E") no-repeat center center;
    animation: bounce 3s ease-in-out infinite;
}

.preschool .decorative-element {
    bottom: 70px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234caf50'%3E%3Cpath d='M12 3L1 9l11 6 9-4.91V17h2V9M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82z'/%3E%3C/svg%3E") no-repeat center center;
    animation: rotate 5s ease-in-out infinite alternate;
}

.school .decorative-element {
    bottom: 80px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196f3'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 14H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z'/%3E%3C/svg%3E") no-repeat center center;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .categories-container {
        gap: 40px 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}