/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

/* ===== REUSABLE ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    margin-top: 10px;
}

/* ===== HEADER ===== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
}
.logo a img{
    width: 120px;
    height: auto;
}
.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
}

.nav a.active {
    border-bottom: 2px solid #111;
    padding-bottom: 4px;
}

.header-icons a {
    margin-left: 20px;
    font-size: 14px;
}

/* ===== HERO ===== */
.hero {
    background: url("../IMGS/banner2.jpg") center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 500px;
    color: #fff;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 80px 0;
}

.categories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 20px;
    z-index: 2;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products {
    padding: 80px 0;
    background: #f9f9f9;
}

.featured-products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    border: 1px solid black;
    max-height: 1000px;
}
.product-card img{
    height: 70%;
}

.product-card h3 {
    font-size: 16px;
    margin: 15px 0 5px;
}

.price {
    font-weight: 600;
    color: #555;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 80px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    color: #555;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 12px 15px;
    width: 280px;
    border: 1px solid #ccc;
}

.newsletter button {
    padding: 12px 25px;
    background: #111;
    color: #fff;
    border: none;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    font-size: 14px;
    color: #ccc;
}

.footer p {
    font-size: 14px;
}

footer .copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
}

/* ===========================
   RESPONSIVE STYLES
=========================== */

/* Tablets */
@media (max-width: 992px) {

    .hero-text h1 {
        font-size: 38px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        gap: 20px;
    }

    .hero {
        height: 60vh;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .categories,
    .featured-products,
    .newsletter {
        padding: 60px 0;
    }

    .category-grid,
    .product-grid,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .newsletter input {
        width: 100%;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.qty-btn {
    padding: 5px 12px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #111;
    background: #fff;
}


/* =========================
   CART PAGE STYLING
========================= */

.cart-container {
    margin-top: 40px;
}

.cart-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

#cart-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

#cart-items .product-card {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

#cart-items img {
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

#cart-total {
    text-align: center;
    font-size: 22px;
    margin: 30px 0;
    font-weight: 600;
}

.remove-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

.remove-btn:hover {
    opacity: 0.85;
}




/* =========================
   CHECKOUT PAGE STYLING
========================= */

.checkout-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ddd;
    background: #fff;
}

.checkout-form h3 {
    margin-bottom: 20px;
    text-align: center;
}

.checkout-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
}

.checkout-form button {
    width: 100%;
    margin-top: 10px;
}

#order-summary {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

#order-summary h3 {
    margin-bottom: 15px;
}

#order-summary p {
    margin-bottom: 8px;
    font-size: 14px;
}

#order-summary h4 {
    margin-top: 15px;
    font-size: 18px;
}


/* =========================
   CEO SECTION
========================= */

.ceo-box {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ceo-box img {
    width: 250px;
    border-radius: 8px;
}

.ceo-text {
    max-width: 500px;
}

.ceo-text h3 {
    margin-bottom: 10px;
}


/* =========================
   CONTACT PAGE
========================= */

.contact-form {
    max-width: 500px;
    margin: 40px auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* =========================
   SOCIAL CONTACT
========================= */

.social-contact {
    text-align: center;
    margin-top: 40px;
}

.social-contact p {
    margin-bottom: 15px;
    font-weight: 500;
}

.social-links a {
    padding: 20px;
    text-decoration: none;
    background: #000;
    color: #fff;
    border-radius: 50%;
    border: 1px solid teal;
}

.social-links a:hover {
    text-decoration: underline;
}


/* =========================
   PRODUCT DETAIL PAGE
========================= */

.product-detail {
    display: flex;
    gap: 50px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.product-images img {
    max-width: 400px;
    border-radius: 8px;
}

.product-info {
    max-width: 500px;
}

.product-info h2 {
    margin-bottom: 15px;
}

.product-info .price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info input[type="number"] {
    width: 80px;
    padding: 5px;
    margin-right: 10px;
}




/* =========================
   CART PAGE STYLES
========================= */

.cart-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
}

.cart-item img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    margin-bottom: 10px;
}

.cart-item-info .price {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item input[type="number"] {
    width: 60px;
    padding: 5px;
}

.cart-item button.remove-btn {
    background: #ff4d4d;
    border: none;
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.cart-summary {
    text-align: right;
    font-size: 18px;
    font-weight: 600;
}


.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
