/* Meguiar's Azerbaijan Theme */
:root {
    --primary-yellow: #FFDD2A;
    --black: #111;
    --white: #fff;
}
body {
    font-family: 'Libre Franklin', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
}
header {
    background: var(--black);
    color: var(--primary-yellow);
    padding: 1rem 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-decoration: none;
}
.navbar-nav {
    display: flex;
    gap: 2rem;
}
.navbar-nav a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
}
.hero {
    background: var(--primary-yellow);
    color: var(--black);
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}
.cta-button {
    background: var(--black);
    color: var(--primary-yellow);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.feature-card {
    background: var(--white);
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 340px;
    text-align: center;
}
.feature-card h3 {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}
.feature-card p {
    font-size: 1rem;
}
footer {
    background: var(--black);
    color: var(--primary-yellow);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 3rem;
}
.products-section {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
}
.products-header {
    text-align: center;
    margin-bottom: 2rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white);
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 1.5rem 1rem 1rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-card img {
    max-width: 120px;
    margin-bottom: 1rem;
}
.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem 0;
}
.product-card .price {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.product-card button {
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}
/* Modal styles */
.modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-bg.active {
    display: flex;
}
.modal {
    background: var(--white);
    border-radius: 8px;
    max-width: 400px;
    width: 95%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    color: var(--black);
    background: none;
    border: none;
    cursor: pointer;
}
.modal img {
    max-width: 100px;
    display: block;
    margin: 0 auto 1rem auto;
}
.modal h3 {
    margin: 0.5rem 0 0.2rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.modal .price {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.modal p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}
.modal .add-btn {
    background: var(--primary-yellow);
    color: var(--black);
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}
.modal .qty-input {
    width: 50px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 1rem;
}
.modal .added-msg {
    color: #28a745;
    font-size: 1rem;
    margin-top: 0.7rem;
    display: none;
}
/* Cart styles */
.cart-section {
    max-width: 800px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
}
.cart-header {
    text-align: center;
    margin-bottom: 2rem;
}
.cart-list {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 1.5rem;
}
.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 1rem;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.cart-item-price {
    color: #666;
    font-size: 0.95rem;
}
.cart-item-total {
    font-weight: 700;
    margin-left: 1rem;
}
.remove-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.4rem 0.8rem;
    margin-left: 1rem;
    cursor: pointer;
}
.cart-summary {
    text-align: right;
    margin-bottom: 2rem;
}
.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.empty-cart {
    text-align: center;
    margin: 3rem 0;
}
/* Checkout styles */
.checkout-section {
    max-width: 600px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
}
.checkout-container {
    background: #fafafa;
    border-radius: 8px;
    padding: 2rem 1.5rem;
}
.order-summary {
    margin-bottom: 2rem;
}
.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.checkout-form .form-row {
    display: flex;
    gap: 1rem;
}
.checkout-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}
.checkout-form label {
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.checkout-form input,
.checkout-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    font-family: 'Libre Franklin', Arial, sans-serif;
}
.checkout-form textarea {
    resize: vertical;
}
.cta-button {
    background: var(--black);
    color: var(--primary-yellow);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
@media (max-width: 800px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}
