
@import url('styles.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

:root {
    --primary-color1: #d38b98;
    --primary-color2: #2d5f3f;
}

button {
    border: none;
}
/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    width: 100%;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 100;
    background: white;
    box-shadow: 1px 1px 5px 2px #aaaaaa2e;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}





/* Links */

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
/*    margin-top: 15px*/
}

    .nav-links a {
        text-decoration: none;
        color: #555;
        font-weight: 500;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: #2d5f3f;
        }

    .nav-links .active {
        color: #2d5f3f;
    }

/* Right Side */

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

    .icon-btn:hover {
        background-color: rgba(45, 95, 63, 0.1);
    }

/* Badge */

.badge span {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e8a8a0;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Login Button */

.login-btn {
    background-color: var(--primary-color2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .login-btn:hover {
        background-color: #1e4229;
    }

/* Mobile Menu Button */

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .show {
        display: flex;
        z-index: 1000
    }

    .menu-toggle {
        display: block;
    }

    .login-btn {
        display: none;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 640px;
    background-image: url("https://static.paraflowcontent.com/public/resource/image/27072427-5464-47fd-8d5c-e714c1b4a95a.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 48px;
        margin-bottom: 24px;
        font-weight: 600;
    }

    .hero-content p {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 32px;
        color: rgba(255, 255, 255, 0.85);
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
    background-color: #2d5f3f;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 95, 63, 0.15);
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #1e4229;
    }

/* Secondary Button */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

@media (max-width: 440px) {
    .menu-toggle {
        font-size: 16px;
    }

    .navbar {
        padding: 6px;
    }

    .logo {
        img {
            width: 70px;
        }
    }

    .nav-right {
        gap: 2px !important;
        justify-content: space-evenly;

        iconify-icon {
            font-size: 13px;
        }

        button {
            font-size: 8px;
        }
    }

    .icon-btn {
        padding: 2px;
    }

    .badge span {
        position: absolute;
        top: 6px;
        right: 6px;
        background-color: #e8a8a0;
        color: white;
        font-size: 9px;
        width: 12px;
        height: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}
/* =============================
   Categories Section
============================= */

.categories-section {
    padding: 4rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 15px;
        color: rgba(0,0,0,0.9);
    }

    .section-header p {
        font-size: 18px;
        color: rgba(0,0,0,0.65);
    }

/* Grid Layout */
.categories-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card */
.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45,95,63,0.06);
    transition: 0.3s ease;
}

    .category-card:hover {
        box-shadow: 0 4px 12px rgba(45,95,63,0.12);
        transform: translateY(-4px);
    }

    .category-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

/* Content */
.category-content {
    padding: 25px;
    text-align: center;
}

    .category-content h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 15px;
        color: rgba(0,0,0,0.9);
    }

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d5f3f;
    font-weight: 500;
    transition: 0.3s;
}

    .category-btn:hover {
        opacity: 0.7;
    }

.arrow {
    font-size: 14px;
}

/* Admin Button */
.admin-btn {
    margin-top: 30px;
    text-align: center;
}

.btn-create {
    background: #2d5f3f;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

    .btn-create:hover {
        background: #244d33;
    }

/* =============================
   Responsive
============================= */

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================
   Featured Products Section
============================= */

.featured-section {
    padding: 4rem 3rem;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

    .featured-header h2 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 10px;
        color: rgba(0,0,0,0.9);
    }

    .featured-header p {
        font-size: 18px;
        color: rgba(0,0,0,0.65);
    }

.view-all {
    color: #2d5f3f;
    font-weight: 500;
    text-decoration: none;
    transition: .3s;
}

    .view-all:hover {
        opacity: .7;
    }

/* Grid */
.products-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45,95,63,0.06);
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        box-shadow: 0 4px 12px rgba(45,95,63,0.12);
        transform: translateY(-4px);
    }

/* Image */
.product-image {
    position: relative;
}

    .product-image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: .3s;
}

    .wishlist-btn:hover {
        background: #fff;
    }

/* Content */
.product-content {
    padding: 20px;
}

    .product-content h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        color: rgba(0,0,0,0.9);
    }

/* Rating */
.product-rating {
    font-size: 14px;
    margin-bottom: 15px;
    color: #999;
}

    .product-rating span {
        margin-right: 6px;
    }

/* Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: #2d5f3f;
}

.add-btn {
    background: #2d5f3f;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

    .add-btn:hover {
        background: #1e4229;
    }

/* Responsive */

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.cart-page {
    direction: rtl;
    padding: 40px;
    background: #f9faf9;
    font-family: 'Segoe UI', sans-serif;
}

.cart-header h1 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-header p {
    color: #666;
    margin-bottom: 30px;
}

.cart-layout {
    display: flex;
    gap: 30px;
    flex-wrap:wrap;
}

.cart-items {
    flex: 2;
/*    background:red;
    display:flex;
    width:700px*/

}

.summary {
    width: 350px;
}

.cards {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(45, 95, 63, 0.06);
    display: flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:40px;
    margin-top:30px

    
}
.card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(45, 95, 63, 0.06);
}

    .card h2,
    .card h3 {
        margin-bottom: 20px;
    }

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border: 1px solid #eee;
    padding:10px;
    border-radius:10px
}

.item-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.item-content {
    flex: 1;
}

    .item-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

.item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity span {
    background: #f1f5f3;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price {
    color: #2D5F3F;
    font-weight: 600;
    font-size: 14px;
}

.remove-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}

    .summary-row.total {
        font-weight: 600;
        font-size: 14px;
        color: #2D5F3F;
    }

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.checkout-btn {
    display: block;
    text-align: center;
    background: #2D5F3F;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 10px;
}

    .checkout-btn:hover {
        background: #1e4229;
    }

.continue-btn {
    display: block;
    text-align: center;
    color: #2D5F3F;
    text-decoration: none;
}

    .continue-btn:hover {
        opacity: 0.7;
    }

.empty-cart {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(45, 95, 63, 0.06);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    border: 1px solid #2D5F3F;
    background: white;
    color: #2D5F3F;
    font-size: 14px;
    cursor: pointer;
}

    .qty-btn:hover {
        opacity: .7;
    }

.qty-number {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 576px) {
    .cards{
        width:100%;
        gap:10px !important;
    }

    .cart-page {
        padding: 20px;
        margin:auto;
    }
}


/* =============================
   Footer Section
============================= */


.footer {
    background-color: var(--primary-color2);
    color: #fff;
    padding: 60px 0;
    margin-bottom: -150px;

}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.footer-grid {
    /*        display: grid;
        grid-template-columns: repeat(4/, 1fr);
        gap: 40px;*/
    display: flex;
    justify-content: space-evenly;
    flex-wrap:wrap;
}
.col1{
    max-width:300px;
}
.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

        .footer-col ul li a:hover {
            color: #fff;
        }

.footer-logo {
    display: flex;
    align-items: center;
    /*    gap: 10px;*/
    margin-bottom: 20px;
}

    .footer-logo h2 {
        font-size: 22px;
    }

    .footer-logo i {
        font-size: 22px;
    }

.social-icons {
    display: flex;
    gap: 15px;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        transition: 0.3s;
    }

        .social-icons a:hover {
            background: rgba(255,255,255,0.3);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
}
@media(max-width:576px){
    .footer-grid {
        flex-direction:column;
    }
}