/* Change these to fit your color sceem */
:root {
    --body-bg-color: #f5f5f5;
    --header-bg-color: #4285F4;
    --header-text-color: white;
    --nav-bg-color: white;
    --nav-link-color: #4285F4;
    --product-bg-color: white;
    --border-color: #ddd;
    --product-hover-bg-color: #f9f9f9;
    --price-color: #0b8043;
    --button-bg-color: #4285F4;
    --button-text-color: white;
    --button-hover-bg-color: #357ae8;
    --button-disabled-bg-color: #aaa;
    --footer-bg-color: white;
    --footer-text-color: #555;
    --highlight-color: #ffee00;
    --dot-color: #f5f5f5;
    --dot-color-active: #4285F4;
    --text-color: #333;
    --deleet: #e53935;
}

/*Goloble*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100%;
    margin: 0;
    flex-direction: column;
    background-color: var(--body-bg-color);
}

header {
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    padding: 20px;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
}

nav {
    background-color: var(--nav-bg-color);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: bold;
}

button {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover:not(:disabled) {
    background-color: var(--button-hover-bg-color);
}

button:disabled {
    background-color: var(--button-disabled-bg-color);
    cursor: not-allowed;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background-color: var(--footer-bg-color);
    border-top: 1px solid var(--border-color);
    color: var(--footer-text-color);

}

input,
select {
    width: 30%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

header h1 {
    color: var(--header-text-color);
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    padding: 3px;
    margin: 0;
}


/* social links*/
.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    color: var(--footer-text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--highlight-color);
}

/*Home*/
.about,
.newsletter,
.featured,
.contact {
    text-align: center;
    align-content: center;
    background-color: var(--product-bg-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    max-width: 1168px;
}


/*Product box's*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product {
    background-color: var(--product-bg-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    max-width: 401.797px;
    position: relative;
}

.product:hover {
    background-color: var(--product-hover-bg-color);
}

.product img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.product h3 {
    margin: 10px 0;
    font-size: 18px;
}

.price {
    color: var(--price-color);
    font-size: 16px;
    margin: 5px 0;
    font-weight: bold;
}

.out-of-stock {
    opacity: 0.5;
}

.out-of-stock-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1;
}

/*About page*/
.text-image {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.text-image .text {
    flex: 1;
}

/*Seach and filtter bar*/
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#search-input,
#category-filter {
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    width: 200px;
}

/*Basket*/
.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid;
    padding: 10px 0;
}

.product-row:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-info img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.product-name {
    font-weight: bold;
    color: var(--text-color);
}

.quantity {
    background: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    max-width: 50px;
    text-align: center;
}

.quantity.editing {
    background: var(--dot-color-active);
    border: 1px solid var(--border-color);
}

.delete-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.2s;
}


.empty {
    text-align: center;
    font-size: 18px;
    color: #555;
    padding: 30px 0;
}

/*product*/
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.product-images {
    text-align: center;
    position: relative;
}

.product-images img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: var(--dot-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--dot-color-active);
}

.product-details h2 {
    color: #4285F4;
    margin-top: 20px;
}

.product-details p {
    line-height: 1.6;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 4px 8px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--text-color);
    transition: none;
}

.qty-btn:hover,
.qty-btn:focus {
    background: none !important;
    color: var(--text-color);
    outline: none;
}

#quantity {
    display: inline-block;
    width: 30px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
}

/*Buy.html*/
.checkout-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.basket-container {
    flex: 2;
}

.personal-info {
    flex: 1;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/*basket*/

.delete-btn:hover {
    background: var(--deleet);
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 15px;
    margin: 15px 0;
    background: none;
}

.qty-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 20px;
    width: 28px;
    height: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: none;
    color: var(--text-color);
}

#quantity {
    min-width: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/*info*/
.pform {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 360px;
    align-self: center;
}

.plabel {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.pinput,
.pselect {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.pinput:focus,
.pselect:focus {
    border-color: var(--button-hover-bg-color);
    outline: none;
}

.psmall {
    color: var(--deleet);
    display: none;
    font-size: 13px;
}

#suggestions {
    background: none;
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    border-radius: 0 0 5px 5px;
    position: absolute;
    width: calc(100% - 20px);
    z-index: 10;
}

#suggestions div {
    padding: 6px;
    cursor: pointer;
}

#suggestions div:hover {
    background: var(--border-color);
}

.field {
    position: relative;
}