
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes PageNums {
    from {
        opacity: 0;
        transform: translateY(20px);
        width: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        width: 100%;
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header styling */
header {
    width: 100%;
    background: linear-gradient(to top, #1e3c72, #0b61f5);
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    color: white;
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Parent container (search, filter, logo) */
.ParentContainer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 60px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    padding: 12px 20px;
}

/* Search input container */
.inputContainer {
    position: relative;
    width: 250px;
}

.input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}

.placeHolder {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 20px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.focus {
    top: -8px !important;
    transform: translateY(0) !important;
    font-size: 12px !important;
    color: #ff6600 !important;
    background: white !important;
    padding: 0 8px !important;
    border-radius: 20px !important;
}

.searchIcon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    background: transparent;
    padding: 0;
    width: auto;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3c72;
    letter-spacing: 1px;
}

/* Filter container */
.filterContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 40px;
}

.filterLabel {
    font-weight: bold;
    color: #333;
    background: transparent;
    border: none;
    padding: 0;
}

select {
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    font-weight: normal;
    cursor: pointer;
    outline: none;
}

select:focus {
    border-color: #ff6600;
}

.filterContainer button {
    background: #ff6600;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.filterContainer button:hover {
    background: #e55a00;
}

/* Product grid container */
.container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 90%;
    max-width: 1400px;
    transition: opacity 0.3s ease;
    min-height: 500px;
}

.container div {
    height: 570px;
    transition: all 0.3s ease;
}

.container.fade-out {
    opacity: 0;
}

.container:has(div:hover) div:not(:hover) {
    scale: 0.95;
}

/* Product card */
.clothes {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    animation: fadeInUp 0.4s ease;
}

.clothes:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.clothes img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.clothes:hover img {
    transform: scale(1.02);
}

.clothes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 -50px 40px -20px rgba(0,0,0,0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clothes:hover::after {
    opacity: 1;
}

.hover-effect {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 10;
    background: white;
    color: #333;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.clothes:hover span {
    opacity: 1;
}

.priceTag {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, #f8b500, #ff6600);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Pagination numbers */
.numbers {
    margin: 40px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.numbers div {
    border: none;
    padding: 8px 16px;
    background: white;
    font-family: sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    opacity: 1;
    animation: none;
    color: #333;
    font-weight: 500;
}

.numbers div:hover {
    background: #ff6600;
    color: white;
    transform: translateY(-2px);
}

.numbers .active {
    background: #ff6600;
    color: white;
    cursor: default;
    box-shadow: 0 4px 10px rgba(255,102,0,0.3);
}

/* Footer / info section */
.info {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 40px 0px;
    color: white;
    text-align: center;
    margin-top: 50px;
}
.social{
    display: flex;
    justify-content: center;
    gap: 5%;
}
.whatsContainer{
    position: relative;
    display: inline-block;
    border: 3px solid rgb(1, 87, 0);
    border-radius: 40px;
    padding: 10px;
    text-decoration: none;
    color: rgb(167, 167, 167);
    overflow: hidden;
}

.whatsapp::before{
    content: "Whatsapp";
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.whatsapp::after{
    content: "";
    height: 100%;
    width: 100%;
    background-color: green;
    position: absolute;
    top: 0;
    left: -110px;
    z-index: 1;
    transition: all ease 0.5s;
}
.whatsContainer:hover .whatsapp::after{
    left: 0;
    transition: all ease 0.5s;
}
.whatsContainer:hover{
    color: white;
    border-color: rgb(161, 161, 161);
}
.facebookContainer{
    position: relative;
    display: inline-block;
    border: 3px solid rgb(1, 5, 59);
    border-radius: 40px;
    padding: 10px;
    text-decoration: none;
    color: rgb(167, 167, 167);
    overflow: hidden;
}
.facebook::before{
    content: "Facebook";
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.facebook::after{
    content: "";
    height: 100%;
    width: 100%;
    background-color: rgb(47, 32, 204);
    position: absolute;
    top: 0;
    left: -110px;
    z-index: 1;
    transition: all ease 0.5s;
}
.facebookContainer:hover .facebook::after{
    left: 0;
    transition: all ease 0.5s;
}
.facebookContainer:hover{
    color: white;
    border-color: rgb(161, 161, 161);
}

/* Responsive design */
@media (max-width: 585px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .container:has(div:hover) div:not(:hover) {
        scale: 1;
    }
    .ParentContainer {
        flex-direction: column;
        gap: 15px;
        border-radius: 30px;
        padding: 20px;
    }
    .inputContainer {
        width: 100%;
    }
    .filterContainer {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 586px) and (max-width: 974px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .container:has(div:hover) div:not(:hover) {
        scale: 1;
    }
}

@media (min-width: 1772px) {
    .container div {
        height: 550px;
    }
}

@media (max-width: 515px) {
    .searchIcon {
        right: 12px;
        font-size: 16px;
    }
}

@media (max-width: 643px) {
    .logo {
        display: none;
    }
}