/* ==================================================
   VÉRA FASHION STORE
   ================================================== */


/* =========================
   VARIABLES
========================= */

:root {
    --cream: #f8f5f0;
    --soft-beige: #eee8df;
    --beige: #dfd5c8;
    --brown: #4a4039;
    --dark: #292522;
    --muted: #81776e;
    --white: #ffffff;
    --border: #e5ded6;
    --accent: #9b8270;

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--sans);
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input {
    font-family: inherit;
}


button {
    cursor: pointer;
}


img {
    width: 100%;
    display: block;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    min-height: 82px;
    background: rgba(248, 245, 240, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}


.navbar-brand {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--dark);
}


.navbar-nav {
    gap: 32px;
}


.nav-link {
    font-size: 14px;
    color: var(--brown);
    position: relative;
    padding: 8px 0 !important;
    transition: 0.3s;
}


.nav-link:hover {
    color: var(--accent);
}


.nav-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}


.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    position: relative;
}


.icon-button:hover {
    color: var(--accent);
}


.cart-button span {
    position: absolute;
    top: 0;
    right: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.language-button {
    border: 1px solid var(--border);
    background: transparent;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--brown);
    transition: 0.3s;
}


.language-button:hover {
    background: var(--dark);
    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 680px;
    padding: 80px 0;
    display: flex;
    align-items: center;
}


.hero-label,
.section-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}


.hero h1 {
    font-family: var(--serif);
    font-size: clamp(50px, 6vw, 82px);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 28px;
    max-width: 650px;
}


.hero h1 span:last-child {
    display: block;
    font-style: italic;
    color: var(--accent);
}


.hero-text {
    max-width: 480px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 35px;
}


.main-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 15px 25px;
    background: var(--dark);
    color: white;
    font-size: 13px;
    transition: 0.3s;
}


.main-button:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}


.hero-image {
    height: 570px;
    overflow: hidden;
}


.hero-image img {
    height: 100%;
    object-fit: cover;
}


/* =========================
   SECTIONS
========================= */

.categories-section,
.products-section,
.about-section,
.newsletter-section {
    padding: 110px 0;
}


.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}


.section-heading h2,
.about-section h2,
.offer-section h2,
.newsletter-section h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 500;
    margin-bottom: 15px;
}


.section-heading > p:last-child {
    color: var(--muted);
    font-size: 15px;
}


/* =========================
   CATEGORIES
========================= */

.category-card {
    background: var(--white);
    overflow: hidden;
    padding-bottom: 22px;
    transition: 0.35s;
}


.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(65, 53, 43, 0.09);
}


.category-card img {
    height: 330px;
    object-fit: cover;
    transition: 0.5s;
}


.category-card:hover img {
    transform: scale(1.04);
}


.category-card h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 500;
    margin: 20px 22px 10px;
}


.category-link {
    margin-left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--accent);
}


.category-link:hover {
    color: var(--dark);
}


/* =========================
   PRODUCTS
========================= */

.products-section {
    background: var(--white);
}


.shop-controls {
    margin-bottom: 45px;
}


.search-box {
    max-width: 500px;
    margin: 0 auto 25px;
    position: relative;
}


.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}


.search-box input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    background: var(--cream);
    padding: 0 20px 0 48px;
    outline: none;
    color: var(--dark);
}


.search-box input:focus {
    border-color: var(--accent);
}


.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}


.filter-button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    padding: 9px 17px;
    font-size: 12px;
    transition: 0.3s;
}


.filter-button:hover,
.filter-button.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: var(--cream);
    height: 100%;
    transition: 0.35s;
}


.product-card:hover {
    transform: translateY(-5px);
}


.product-image {
    height: 390px;
    overflow: hidden;
    position: relative;
    background: var(--soft-beige);
}


.product-image img {
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}


.product-card:hover .product-image img {
    transform: scale(1.04);
}


.wishlist-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}


.wishlist-button:hover,
.wishlist-button.liked {
    color: #9a5f5f;
}


.product-info {
    padding: 20px;
}


.product-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}


.product-name {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    margin: 7px 0 18px;
}


.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.product-price {
    font-size: 15px;
    font-weight: 600;
}


.add-to-cart {
    border: 1px solid var(--border);
    background: var(--white);
    padding: 9px 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: 0.3s;
}


.add-to-cart:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}


.empty-products {
    text-align: center;
    padding: 70px 20px;
}


.empty-products i {
    font-size: 35px;
    color: var(--accent);
    margin-bottom: 15px;
}


.empty-products h3 {
    font-family: var(--serif);
}


/* =========================
   OFFER
========================= */

.offer-section {
    padding: 120px 0;
    background:
        linear-gradient(
            rgba(56, 48, 42, 0.72),
            rgba(56, 48, 42, 0.72)
        ),
        url("https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=1800&q=85");

    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}


.offer-content {
    max-width: 650px;
    margin: auto;
}


.offer-content .section-label {
    color: var(--beige);
}


.offer-content p:not(.section-label) {
    max-width: 550px;
    margin: 0 auto 30px;
    opacity: 0.85;
}


.offer-content .main-button {
    background: white;
    color: var(--dark);
}


.offer-content .main-button:hover {
    background: var(--beige);
}


/* =========================
   ABOUT
========================= */

.about-image {
    height: 580px;
    object-fit: cover;
}


.about-section h2 {
    margin-bottom: 25px;
}


.about-section h2 span {
    display: block;
}


.about-section .col-lg-6:last-child > p:last-child {
    max-width: 500px;
    color: var(--muted);
}


/* =========================
   NEWSLETTER
========================= */

.newsletter-section {
    background: var(--soft-beige);
    text-align: center;
}


.newsletter-content {
    max-width: 650px;
    margin: auto;
}


.newsletter-form {
    margin-top: 30px;
}


.newsletter-input {
    display: flex;
    max-width: 550px;
    margin: auto;
}


.newsletter-input input {
    flex: 1;
    height: 52px;
    border: 1px solid var(--border);
    border-right: none;
    padding: 0 18px;
    outline: none;
    background: white;
}


.newsletter-input button {
    border: none;
    background: var(--dark);
    color: white;
    padding: 0 25px;
    font-size: 12px;
}


.newsletter-input button:hover {
    background: var(--accent);
}


/* =========================
   CART
========================= */

.offcanvas {
    background: var(--cream);
}


.offcanvas-title {
    font-family: var(--serif);
    font-size: 27px;
}


.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}


.cart-item img {
    width: 80px;
    height: 105px;
    object-fit: cover;
}


.cart-item-info {
    flex: 1;
}


.cart-item-info h6 {
    font-family: var(--serif);
    font-size: 17px;
    margin-bottom: 4px;
}


.cart-item-price {
    font-size: 13px;
    margin-bottom: 8px;
}


.cart-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}


.quantity-button {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border);
    background: white;
}


.remove-item {
    border: none;
    background: transparent;
    padding: 0;
    color: #9a6d6d;
    font-size: 11px;
}


.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}


.checkout-button {
    width: 100%;
    border: none;
    background: var(--dark);
    color: white;
    padding: 15px;
    font-size: 13px;
}


.checkout-button:hover {
    background: var(--accent);
}


.empty-cart {
    text-align: center;
    padding: 80px 20px;
}


.empty-cart i {
    font-size: 38px;
    color: var(--accent);
    margin-bottom: 20px;
}


.empty-cart h4 {
    font-family: var(--serif);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 25px;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.footer-logo {
    font-family: var(--serif);
    font-size: 29px;
    letter-spacing: 4px;
}


.footer-content p {
    color: #aaa19a;
    font-size: 13px;
    margin-top: 10px;
}


.footer-links {
    display: flex;
    gap: 28px;
}


.footer-links a {
    font-size: 12px;
    color: #d0c9c3;
    transition: 0.3s;
}


.footer-links a:hover {
    color: white;
}


.footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


.footer-bottom p {
    color: #8e8781;
    font-size: 11px;
    margin: 0;
}


.footer-bottom div {
    display: flex;
    gap: 18px;
}


.footer-bottom a {
    color: #aaa19a;
    transition: 0.3s;
}


.footer-bottom a:hover {
    color: white;
}


/* =========================
   RTL / ARABIC
========================= */

html[dir="rtl"] body {
    font-family: var(--sans);
}


html[dir="rtl"] .hero h1 {
    line-height: 1.2;
}


html[dir="rtl"] .search-box i {
    left: auto;
    right: 18px;
}


html[dir="rtl"] .search-box input {
    padding-left: 20px;
    padding-right: 48px;
}


html[dir="rtl"] .category-link {
    margin-left: 0;
    margin-right: 22px;
}


html[dir="rtl"] .newsletter-input input {
    border-right: 1px solid var(--border);
    border-left: none;
}


html[dir="rtl"] .newsletter-input button {
    border-radius: 0;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .navbar-nav {
        gap: 5px;
        margin-top: 20px !important;
    }


    .nav-icons {
        margin-top: 20px;
        padding-bottom: 15px;
    }


    .hero {
        padding: 60px 0;
    }


    .hero-image {
        margin-top: 50px;
        height: 500px;
    }


    .hero h1 {
        font-size: 58px;
    }


    .about-image {
        height: 500px;
    }

}


@media (max-width: 767px) {

    .hero h1 {
        font-size: 46px;
    }


    .hero-image {
        height: 430px;
    }


    .categories-section,
    .products-section,
    .about-section,
    .newsletter-section {
        padding: 75px 0;
    }


    .product-image {
        height: 420px;
    }


    .footer-content {
        flex-direction: column;
    }


    .footer-links {
        flex-wrap: wrap;
    }


    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }


    .newsletter-input {
        flex-direction: column;
        gap: 10px;
    }


    .newsletter-input input {
        border: 1px solid var(--border);
    }


    .newsletter-input button {
        height: 50px;
    }

}


@media (max-width: 480px) {

    .hero h1 {
        font-size: 39px;
    }


    .product-image {
        height: 380px;
    }


    .filter-buttons {
        justify-content: flex-start;
    }


    .filter-button {
        padding: 8px 12px;
    }

}
