/* Search */
/* Container styling (optional but recommended for spacing) */
.ms-search-wrapper {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    width: 100%;
    padding: 40px 0;         /* Gives it some breathing room */
}
.ms-search-container {
    padding: 20px;
    background: #1a1a1a; /* Dark background makes gold pop */
}

/* The Main Search Input */
.ms-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 16px;
    font-family: Cairo !important;
    color: white;
    background-color: #262626;
    border: 2px solid #d4af37; /* Metallic Gold */
    border-radius: 30px;
    outline: none;
    transition: all 0.4s ease-in-out;
    
    /* Subtle initial glow */
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

/* Placeholder text styling */
.ms-search::placeholder {
    color: rgba(212, 175, 55, 0.6);
    font-style: italic;
    font-family: Cairo !important
}

/* The "Glow Up" on Hover & Focus */
.ms-search:hover, 
.ms-search:focus {
    background-color: #1a1a1a;
    border-color: #ffdf00; /* Brighter Gold */
    
    /* Multi-layered box shadow for a realistic "aura" */
    box-shadow: 
        0 0 10px rgba(255, 223, 0, 0.4), 
        0 0 20px rgba(255, 223, 0, 0.2), 
        0 0 30px rgba(255, 223, 0, 0.1);
    
    transform: translateY(-2px); /* Slight lift effect */
}

/* Subtle animation for the cursor */
.ms-search:focus {
    caret-color: white;
}


/* Clear filter */
.clear-filter {
    display: inline-block;
    margin-bottom: 20px;
    color: red;
    text-decoration: none;
}

/* Grid */
.ms-products {
    display: grid;
    gap: 25px;
}

.ms-products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ms-products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ms-products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Product */
.product-item {
    transition: 0.3s;
    position: relative;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-6px);
}

.product-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s;
}

.product-item:hover img {
    transform: scale(1.07);
}

/* Title */
.product-title {
    margin: 10px 0;
}

/* Categories */
.product-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    margin: 2px;
    border-radius: 20px;
    background: #eee;
    text-decoration: none;
    color: #333;
}

.product-category:hover {
    background: #000;
    color: #fff;
}

/* Price */
.price {
    display: block;
    font-weight: bold;
    color: #27ae60;
}

/* Button */
.product-item .button {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    opacity: 0;
    transition: 0.3s;
}

.product-item:hover .button {
    bottom: 20px;
    opacity: 1;
}

/* Pagination */
.ms-pagination {
    text-align: center;
    margin-top: 40px;
}

.ms-pagination a,
.ms-pagination span {
    margin: 5px;
    padding: 8px 14px;
    background: #eee;
    border-radius: 8px;
    text-decoration: none;
}

.ms-pagination .current {
    background: #000;
    color: #fff;
}