@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');

/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px; /* Standard font size for readability */
    line-height: 1.6; /* Line height for good readability */
}


img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.logo img{
    height: 45px;
}

/* notice bar */

.notice-bar {
    background: #ffeb3b; /* Bright background for better visibility */
    color: #333; /* Darker text color for contrast */
    overflow: hidden;
    padding: 10px 0;
    font-size: 16px; /* Larger font for readability */
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #ffc107; /* Slight border for emphasis */
}

/* .scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
} */



/* Header */
header {
    display: block;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative; /* Add this to make .search-bar positioned relative to header */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Search Icon */
.search-icon svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #333;
}

.search-icon:hover svg {
    color: #007bff;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 50%; /* Center the search bar horizontally */
    transform: translateX(-50%); /* Center alignment adjustment */
    width: 100%;
    max-width: 600px; /* Set a max-width to keep it manageable */
    background: white;
    padding: 1rem;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.search-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-button, .load-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.search-button:hover {
    background: #0056b3;
}

/* Show search bar when active */
.search-bar.active {
    display: block;
}


/* Main Content */
main {
    padding: 2rem 2rem 100px 2rem;
    max-width: 700px;
    margin: 0 auto;
}

h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;    /* Add this */
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* card styling */

.product-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .image-container {
    position: relative;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.product-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;    /* Add this */
}

/* Product title styles */
.product-card h3 {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limits the text to 2 lines */
}


/* Price container adjustments */
.price-container {
    margin: 0.5rem 0;       /* Update this */
}

/* price styling */

.price-container {
    padding: 10px 0;
    display: flex;
    justify-content: space-between; /* Aligns items on opposite sides */
    align-items: center;
    width: 100%;
    text-align: center; /* Centers content inside each flex item */
}

.price, .compare_price {
    flex: 1; /* Makes each element take equal space */
    text-align: center; /* Centers text within each flex item */
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: #2b991a;
}

.compare_price {
    font-size: 19px;
    color: #888;
    text-decoration: line-through;
}

.buy-now {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.buy-now:hover {
    background: #0056b3;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
}

#order-form {
    max-width: 800px; /* Limits form width for readability */
    margin: 0 auto; /* Centers the form on the page */
    padding: 20px 20px 40px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%; /* Makes input fields take the full width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    box-sizing: border-box;
}
#order-form input[type="text"]{
    text-align: center;
}

input[type="text"]::placeholder {
    color: #888;
}
#order-form input[type="text"]::placeholder {
    text-align: center;
}

.formsubmitbtn{
    width: 100%; /* Full-width button */
    padding: 12px;
    background-color: #4CAF50; /* Green button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

a.product-link:hover {
    background-color: #45a049; /* Darker green on hover */
}
.orderform button[type="submit"]:hover {
    background-color: #45a049; /* Darker green on hover */
}

a.product-link {
    margin-top: 1rem;
    padding: 1px 6px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    background-color: #4CAF50; /* Green button */
    color: white;
}

.error {
    color: red;
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;

}
.note {
    color: rgb(65, 65, 65);
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Thank You Page */
.order-summary {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.other-products h2 {
    text-align: center;
    margin: 2rem 0;
}


/* 404 Error Page Styles */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-page h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    margin-top: 2rem;
}

.home-button {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    
    .error-page h1 {
        font-size: 1.5rem;
    }
    
    .error-page p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
}

/* load more product btn */
/* .load-more-btn {
    padding: 10px 20px;
    background-color: #043569;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
} */

.load-more-btn:hover {
    background-color: #0056b3;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.scroll-container {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 99;
    transition: opacity 0.3s;
}

.scroll-button {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    padding: 12px;
    background-color: #4CAF50; /* Green button */
    font-weight: bold;
    transition: background-color 0.3s;
}

.scroll-button:hover {
    background-color: #45a049;
}

/* Basic divider with shadow */
.divider-shadow {
    height: 1px;
    background-color: #f0f0f0;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}