.popup * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.popup .verification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.popup .verification-modal {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.popup .active-modal {
    transform: translateY(0);
    opacity: 1;
}

.popup h2 {
    color: #2d3436;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.popup .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.popup .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.popup .country-code {
    width: 120px;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.popup .country-code:focus {
    border-color: #6c5ce7;
    outline: none;
}

.popup input {

    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.popup input:focus {
    border-color: #6c5ce7;
    outline: none;
}

.popup button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #6c5ce7, #a363d9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.popup button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.popup button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.popup .message {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.popup .error {
    color: #e74c3c;
}

.popup .success {
    color: #2ecc71;
}

.popup .timer {
    margin: 1rem 0;
    color: #6c5ce7;
    font-weight: 600;
}

.popup .resend-otp {
    margin-top: 1rem;
    background: none;
    color: #6c5ce7;
    border: 2px solid #6c5ce7;
    padding: 0.6rem;
}

.popup .attempts-warning {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.popup .locked-out {
    color: #e74c3c;
    margin: 1rem 0;
}






html, body {
    margin: 0;
    padding: 0;
}

/* Ensure the header has no margin */
header {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Categories container */
.categories {
    display: grid;
    background-color:rgb(255, 255, 255);
    border : 1px solid rgb(243, 240, 240);
    border-radius: 12px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    padding: 20px 25px;
    max-width:100%; /* Default for smaller screens */
    max-width: 1630px;
}

/* Individual category card */
.category {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px;
    max-width: 250px;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image container */
.image-container {
    width: 100%;
    height: 180px;
    background-color: #f9fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.image-container img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}

.no-image {
    color: #a0aec0;
    font-size: 14px;
    text-align: center;
}

/* Product name */
.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 10px 0;
}

/* Seller and location */
.seller-location {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 15px;
}

.seller, .location {
    font-size: 14px;
    color: #718096;
}

/* Price */
.price {
    font-size: 20px;
    font-weight: 700;
    color: #3182ce;
    margin: 15px 0;
}

/* Buttons */
.button1 {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 90%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}



.primary-btn {
    background-color: #3182ce;
    color: white;
    margin-top: 10px;
}

.primary-btn:hover {
    background-color: #2b6cb0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: #38a169;
    color: white;
    margin-top: 10px;
}

.secondary-btn:hover {
    background-color: #2f855a;
    box-shadow: 0 4px 8px rgba(221, 218, 218, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
        background-color: transparent;
        border: none;
        width: 100% !important;
    }
    .scroll-arrow.right{
        display: none;
    }

    .scroll-arrow.left{
        display: none;
    }


    .category {
        width: 100%;
        max-width: 250px;
    }
}

/* Custom Model for Product Details */

/* Product Button */
.custom-product-btn {
    background: rgb(0, 173, 38);
    color: #f8fafc;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-product-btn:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

/* Modal Styles */
.custom-modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.custom-modal-content {
    background: white;
    margin: 2rem auto;
    width: 90%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

/* Modal Header */
.custom-modal-header {
    background: white;
    padding: 1.5rem;
    position: relative;
    color: black;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.5rem;
}

.custom-close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f8fafc;
}

/* Product Details */
.custom-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 640px) {
    .custom-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.custom-product-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-product-info {
    padding: 1rem;
}

.price-tag {
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 700;
    margin: 1rem 0;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
}

/* Order Form */
.custom-order-form {
    padding: 1.5rem;
    background: #f8fafc;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.custom-submit-btn {
    font-size: 1rem;
    background: green;
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-submit-btn:hover {
    background: #1d4ed8;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



