/* style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Cairo", sans-serif;
}

body {
    background: #f7f7f5;
    color: #111827;
}

button,
select,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.top-nav {
    height: 75px;
    background: #090909;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 900;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

/* --- تنسيقات الهيدر والأزرار القابلة للتفاعل --- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #111;
    color: #ffffff;
    border: 1px solid #444;
    padding: 8px 16px 8px 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.lang-select:hover {
    border-color: #666;
    background-color: #1a1a1a;
}

.select-wrapper .custom-arrow {
    position: absolute;
    left: 12px;
    pointer-events: none;
    color: #aaa;
    font-size: 0.75rem;
    transform: rotate(90deg);
}

.nav-btn,
.cart-btn,
.favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #444;
    background: transparent;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover,
.cart-btn:hover,
.favorites-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.nav-btn:hover .badge,
.cart-btn:hover #cart-badge,
.favorites-btn:hover #favorites-badge {
    background-color: #000000;
    color: #ffffff;
}

.btn-icon {
    font-size: 1rem;
}

.badge,
#cart-badge,
#favorites-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #111;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 4px;
    transition: all 0.2s ease;
}

/* --- باقي عناصر الصفحة كما هي --- */

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 70px 8%;
    background:
        linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.35)),
        url("https://images.unsplash.com/photo-1617127365659-c47fa864d8bc?w=1800")
        center/cover;
    color: white;
}

.hero-content {
    max-width: 650px;
}

.hero-content span {
    color: #e5e7eb;
    font-weight: bold;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.2;
    margin: 15px 0;
}

.hero h1 b {
    color: #ffffff;
}

.hero p {
    font-size: 1.05rem;
    color: #ddd;
    margin-bottom: 25px;
}

.hero button {
    background: #ffffff;
    color: #111;
    border: 0;
    padding: 13px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.hero button:hover {
    background: #e5e7eb;
}

.categories {
    background: #0b0b0b;
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category {
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
    padding: 9px 20px;
    border-radius: 30px;
}

.category.active,
.category:hover {
    background: #fff;
    color: #000;
}

.search-section {
    max-width: 1250px;
    margin: 25px auto 0;
    padding: 0 20px;
}

.search-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 13px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 1rem;
}

.main-layout {
    max-width: 1250px;
    margin: 25px auto;
    padding: 0 20px;
    display: flex;
    gap: 25px;
}

.filters-sidebar {
    width: 245px;
    background: white;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 95px;
}

.filters-sidebar h3 {
    border-bottom: 2px solid #111;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label,
.stylist-grid label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.filter-group select,
.stylist-grid select,
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: white;
    outline: none;
}

.reset-btn,
.size-guide-btn {
    width: 100%;
    border: 0;
    padding: 11px;
    border-radius: 7px;
    margin-top: 8px;
    font-weight: bold;
}

.reset-btn {
    background: #eee;
}

.size-guide-btn {
    background: #111;
    color: white;
}

.products-section {
    flex: 1;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-heading span {
    color: #4b5563;
}

.section-heading h2 {
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    overflow: hidden;
    transition: .3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.product-image {
    height: 330px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.product-meta {
    color: #777;
    font-size: .82rem;
}

.price {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 10px 0;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: .85rem;
    margin-inline-start: 6px;
}

.discount {
    background: #111;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: .75rem;
}

.product-actions {
    display: flex;
    gap: 7px;
}

.product-actions button {
    flex: 1;
    border: 0;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.add-btn {
    background: #111;
    color: white;
}

.view-btn {
    background: #eee;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: white;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.complete-look {
    max-width: 1210px;
    margin: 60px auto;
    padding: 45px;
    background: #111;
    color: white;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complete-look span {
    color: #e5e7eb;
}

.complete-look h2 {
    font-size: 2rem;
    margin: 8px 0;
}

.complete-look button {
    background: #ffffff;
    color: #111;
    border: 0;
    padding: 13px 25px;
    border-radius: 6px;
    font-weight: bold;
}

footer {
    background: #090909;
    color: white;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer h2 {
    color: #f4f2ee;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 700px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 15px;
    padding: 25px;
    position: relative;
}

.product-modal-content {
    max-width: 900px;
}

.close-btn {
    position: absolute;
    inset-inline-end: 18px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 30px;
    z-index: 5;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.product-detail img {
    width: 100%;
    border-radius: 10px;
}

.detail-info h1 {
    margin-bottom: 10px;
}

.detail-info p {
    color: #666;
    line-height: 1.8;
}

.size-select {
    width: 100%;
    padding: 11px;
    margin: 15px 0;
}

.add-detail-btn {
    width: 100%;
    padding: 13px;
    border: 0;
    background: #111;
    color: white;
    border-radius: 7px;
    font-weight: bold;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    margin: 8px 0;
    border-radius: 8px;
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 7px;
}

.cart-item-info {
    flex: 1;
}

.quantity {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quantity button {
    width: 25px;
    height: 25px;
    border: 0;
}

.remove {
    background: #ef4444;
    color: white;
    border: 0;
    padding: 5px 8px;
    border-radius: 4px;
}

.order-summary {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 99px;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.discount-row {
    color: #0a9f59;
    display: none !important;
}

.grand-total {
    font-size: 1.25rem;
}

.grand-total b {
    color: #111827;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group {
    margin: 12px 0;
    flex: 1;
}

.coupon {
    display: flex;
}

.coupon input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
}

.coupon button {
    background: #111;
    color: white;
    border: 0;
    padding: 0 15px;
}

.checkout-submit-btn {
    width: 100%;
    background: #111;
    color: white;
    border: 0;
    padding: 14px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 1rem;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.size-table th,
.size-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.size-table th {
    background: #111;
    color: white;
}

.stylist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.stylist-total {
    background: #111;
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 7px;
    font-size: 1.2rem;
}

@media(max-width:900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filters-sidebar {
        width: 200px;
    }
}

@media(max-width:650px) {
    .top-nav {
        height: auto;
        padding: 15px;
        gap: 10px;
        flex-direction: column;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero {
        min-height: 420px;
        padding: 40px 25px;
    }
    .main-layout {
        display: block;
    }
    .filters-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 390px;
    }
    .complete-look {
        margin: 30px 15px;
        padding: 30px 20px;
        display: block;
    }
    .complete-look button {
        margin-top: 20px;
    }
    .product-detail,
    .form-row,
    .stylist-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
    .store-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: #181818;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 25px;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
}

.store-address .location-icon {
    font-size: 1.1rem;
}

}