@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Outfit:wght@100..900&display=swap');

:root {
    --primary-brown: #6b4423;
    --light-brown: #8b5a2b;
    --cream: #f5f1e8;
    --gold: #d4af37;
    --dark: #3d2817;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cairo", sans-serif;
    /* font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal; */
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    background-color: #fff;
    color: #333;
}

/* Header */
.navbar {
    background-color: #6b4528 !important;
    padding: 1rem 0;
}

.navbar .search-bar {
    /* background-color: rgba(255, 255, 255, 0.1); */
    background: linear-gradient(270deg, #5c391f 0%, #6b4528 100%);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    color: #fff;
    font-size: 0.95rem;
}

.navbar .search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar .search-bar:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    max-width: 20%;
    width: 100px;
}

.navbar .logo img {
    width: 100%;
}

.navbar .logo-small {
    font-size: 0.8rem;
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.navbar .nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar .nav-icons a {

    color: #000000;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
}

.navbar .nav-icons a:hover {
    color: #6b4528;
}

.navbar .nav-icons a svg {
    /* font-size: 1rem; */
    width: 18px;
}

.navbar .badge {
    position: absolute;
    top: 5px;
    right: -12px;
    background-color: #ff3333;
    color: #fff;
    border-radius: 42%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.navbar .search-icon {
    cursor: pointer;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}


.nav {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #5C391F;
    font-weight: 500;
    cursor: pointer;
}

.nav a:hover {
    color: #8b7355;
}

.delivery-banner {
    background-color: #fff7e8;
    border-bottom: 1px solid #e8d4ad;
    color: #5c391f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 9px 16px;
    text-align: center;
}

.navbar .search-box {
    max-width: 30%;
    width: 150px;
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%); */
    background-image: url('./../banner.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    /* min-height: 400px; */
    position: relative;
    overflow: hidden;
}

.hero .hero-content h1 {
    color: #6B4528;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
}

.hero .hero-content p {
    color: #6B4528;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero .hero-btn {
    /* background-color: var(--dark); */
    background: linear-gradient(90deg, #5C391F 0%, #6B4528 100%);

    color: white;
    padding: 12px 35px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.hero .hero-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero .hero-image {
    text-align: center;
}

.hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Featured Products */
.featured-section {
    padding: 60px 0;
    background-color: #faf8f5;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 50px;
    font-weight: bold;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img .icon-love {
    position: absolute;
    top: 10px;
    right: 15px;
}

.product-img .icon-love i {
    font-size: 18px;
}

.product-img img {
    width: 100%;
    height: 100%;
    /* max-height: 80%; */
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-price {
    text-align: left;
    font-size: 16px;
    color: #777;
    flex-grow: 1
}

.product-btn {
    background-color: var(--primary-brown);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.product-btn span svg {
    margin-right: 5px;
    width: 18px;
}

.product-btn:hover {
    background-color: var(--light-brown);
    transform: scale(1.05);
}

/* Category Section */
.category-section {
    padding: 60px 0;
    background-color: white;
}

.category-card {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #6B4528 -4.48%, rgba(107, 69, 40, 0) 42.54%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}



.category-name {
    position: absolute;
    top: 30px;
    left: 50%;
    min-width: 100%;
    text-align: center;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
}

.category-section .product-card {
    box-shadow: none;
}


.category-section .product-img {
    border-radius: 10px;
}

.category-section .product-img .box-bag {
    position: absolute;
    transition: all 0.3s;
    bottom: -45px;
    width: 100%;
}

.category-section .product-card:hover .box-bag {
    bottom: 0px;
}

.category-section .product-img .box-bag button {
    width: 100%;
    background-color: #FFAD33;
}

.category-section .product-price {
    margin-bottom: 0px;
}

/* Newsletter */
.newsletter {
    /* background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%); */
    color: white;
    padding: 50px 0;
    text-align: center;
}

.newsletter .box-newsletter {
    max-width: 95%;
    width: 900px;
    margin: auto;
    background: #6B45281A;
    padding: 25px;

}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 14px;
    color: #9B8B7E
}

.newsletter-input {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input input {
    width: 100%;
    padding: 12px;
    color: #9B8B7E;
    text-align: right;
    border: 1px solid #9B8B7E;
    border-radius: 5px !important;
    font-size: 14px;
}

.newsletter-input button,
.newsletter-input .btn {
    padding: 12px 30px;
    background-color: #5C391F !important;
    color: #ffffff !important;
    border: none;
    border-radius: 5px !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    opacity: 1 !important;
}

.newsletter-input button:hover,
.newsletter-input .btn:hover {
    background-color: var(--gold, #d4af37) !important;
    color: #000000 !important;
    opacity: 1 !important;
}

@media (max-width: 767.98px) {
    .newsletter-input .input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .newsletter-input input,
    .newsletter-input .form-control {
        order: 1 !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    .newsletter-input button,
    .newsletter-input .btn {
        order: 2 !important;
        width: 100% !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
}

/* Footer */
footer {
    background-color: #5C391F;
    color: #ccc;
    padding: 40px 0 20px;
    padding-bottom: 0px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 18px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding-right: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold) !important;
    text-decoration: none !important;
}

.footer-about-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    margin: 0;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--gold) !important;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0px;
    /* border-top: 1px solid #444; */
    margin-top: 30px;
    background: #000;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content {
        flex-direction: column;
    }

    .product-card {
        margin-bottom: 20px;
    }

    /* Footer Mobile Optimization */
    footer {
        text-align: center;
        padding-top: 35px;
    }

    .footer-col {
        text-align: center !important;
        padding-top: 15px !important;
        padding-bottom: 20px !important;
        margin-bottom: 10px !important;
    }

    .footer-col h5 {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 14px !important;
    }

    .footer-col ul {
        padding: 0 !important;
        margin: 0 auto !important;
        list-style: none !important;
        text-align: center !important;
    }

    .footer-col ul li {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .footer-col ul li a,
    .footer-col p,
    .footer-bottom p {
        font-size: 14px !important;
        text-align: center !important;
        line-height: 1.6 !important;
    }

    .social-icons {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 10px !important;
    }

    .social-icons a {
        margin: 0 5px !important;
        font-size: 20px !important;
    }
}

/* Footer Desktop Equal Spacing */
@media (min-width: 992px) {
    footer .footer-row {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    footer .footer-col {
        flex: 1 1 25% !important;
        max-width: 25% !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    .footer-about-text {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .category-card {
        height: 200px;
    }

    .category-name {
        font-size: 28px !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}



.ltr .hero-content {
    order: -1;
}

.ltr .input-group {
    flex-direction: row-reverse;
}

.ltr  .newsletter-input input {
    text-align: left;
}

.ltr  .product-cart .breadcrumb i {
    transform: rotateY(180deg);
}