/* CSS Reset & Variables */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #111111;
    --text-color: #555555;
    --bg-light: #f9f8f6;
    --border-color: #e5e5e5;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: calc(100% - 330px);
    margin: 0 auto;
}

/* Header Section */
.header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}

.header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
}

.list ul {
    display: flex;
    gap: 40px;
}

.list a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.list a:hover {
    color: #888;
}

.icons ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Section with Overlay Content */
.hero_section {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero_section .container {
    width: calc(100% - 330px);
    margin: 0 auto;
    /* مسار صورة الخلفية مع طبقة داكنة خفيفة ليظهر النص بوضوح */
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('imges/back.jpg') no-repeat center center/cover;
    height: 420px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-overlay-content h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-overlay-content p {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #ffffff;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Layouts & Flex Grid */
.collection_section {
    padding: 30px 0;
}

.users {
    padding: 30px 0 80px;
}

.collection_section .container,
.users .container {
    display: flex;
    flex-direction: column;
}

.collection_section .row,
.users .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 30px;
    width: 100%;
}

.collection {
    width: calc((100% - 90px) / 4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image Wrapper */
.collection .img-box {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 2px;
}

.collection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection:hover img {
    transform: scale(1.04);
}

.collection h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.collection .price {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 12px;
}

/* Add to Cart Button */
.add-to-cart {
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Responsive Design */

/* Mobile (320px to 600px) */
@media screen and (min-width: 320px) and (max-width: 600px) {
    .container {
        width: 90%;
    }
    .hero_section .container {
        width: 90%;
        height: 250px;
    }
    .hero-overlay-content h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .hero-overlay-content p {
        font-size: 10px;
    }
    .collection {
        width: calc((100% - 30px) / 2);
    }
    .list ul {
        gap: 15px;
    }
    .list a {
        font-size: 10px;
    }
}

/* Tablet (601px to 991px) */
@media screen and (min-width: 601px) and (max-width: 991px) {
    .container {
        width: 90%;
    }
    .hero_section .container {
        width: 90%;
        height: 320px;
    }
    .collection {
        width: calc((100% - 60px) / 3);
    }
}