:root {
    --primary: #c5956b;
    --primary-dark: #a0714d;
    --primary-light: #e8d5c4;
    --primary-lighter: #fdf6f0;
    --background: #fdf8f4;
    --text: #2d1f1f;
    --accent: #e8b4b8;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(160, 113, 77, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

body.menu-open,
body.cart-open,
body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    transition: all 0.25s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(197, 149, 107, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 0.9rem 1rem;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 149, 107, 0.12);
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-space {
    padding: 70px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.centered-head {
    text-align: center;
    justify-content: center;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-dark);
    background: rgba(197, 149, 107, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    border: 1px solid rgba(197, 149, 107, 0.25);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 149, 107, 0.18);
}

.icon-btn:hover {
    background: var(--primary-light);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(253, 248, 244, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(197, 149, 107, 0.12);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
}

.brand span {
    color: rgba(45, 31, 31, 0.7);
    font-size: 0.85rem;
}

.brand-logo,
.hero-logo {
    object-fit: cover;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 6px;
}

.brand-logo {
    width: 42px;
    height: 42px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
}

.navbar-search {
    flex: 1;
    max-width: 340px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a,
.mobile-menu a {
    font-weight: 700;
    color: rgba(45, 31, 31, 0.74);
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: var(--primary-dark);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-only {
    display: none;
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(197, 149, 107, 0.12);
    background: rgba(253, 248, 244, 0.96);
}

.mobile-menu.active {
    display: grid;
    gap: 12px;
}

.mobile-search {
    margin-top: 12px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('hero-bg.png') center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 31, 31, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 90px 0;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 620px;
    margin: 0 auto 28px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.discount-banner-section {
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 0;
}

.discount-banner-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    padding-inline-start: 100%;
}

.discount-banner-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.products-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.products-search {
    flex: 1;
    min-width: 220px;
}

.filter-toggle {
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(197, 149, 107, 0.24);
    font-weight: 700;
}

.filters-panel {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.filters-panel.active {
    display: grid;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.clear-filter-btn {
    align-self: end;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(197, 149, 107, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(160, 113, 77, 0.18);
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--primary-lighter);
    cursor: pointer;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.06);
}

.product-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.discount-badge {
    background: var(--text);
    color: var(--white);
}

.status-badge {
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-dark);
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-brand {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(232, 180, 184, 0.24);
    color: #8c5860;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.product-meta {
    color: rgba(45, 31, 31, 0.64);
    font-size: 0.92rem;
}

.product-sizes {
    color: rgba(45, 31, 31, 0.7);
    font-size: 0.88rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.12rem;
}

.old-price {
    color: rgba(45, 31, 31, 0.48);
    text-decoration: line-through;
    font-size: 0.92rem;
}

.qty-add-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(197, 149, 107, 0.24);
    background: var(--primary-lighter);
}

.qty-selector button {
    width: 38px;
    height: 38px;
    background: transparent;
    color: var(--text);
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.add-to-cart-btn,
.detail-btn {
    flex: 1;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.detail-btn {
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    border: 1px solid rgba(197, 149, 107, 0.2);
}

.add-to-cart-btn:hover,
.detail-btn:hover {
    transform: translateY(-1px);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.empty-state,
.card-soft,
.delivery-card,
.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(197, 149, 107, 0.12);
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.48) 0%, rgba(232, 213, 196, 0.72) 100%);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.delivery-card {
    text-align: center;
}

.delivery-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.delivery-card span {
    color: var(--primary-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.muted-delivery {
    background: rgba(253, 246, 240, 0.98);
}

.contact-list,
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li,
.check-list li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(197, 149, 107, 0.12);
}

.contact-list li:last-child,
.check-list li:last-child {
    border-bottom: none;
}

.site-footer {
    padding: 24px 0 40px;
}

.footer-inner {
    background: rgba(255, 255, 255, 0.84);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 31, 0.36);
    opacity: 0;
    visibility: hidden;
    z-index: 40;
    transition: opacity 0.25s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: min(400px, calc(100% - 20px));
    height: 100vh;
    background: #fff9f5;
    z-index: 45;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    box-shadow: 20px 0 50px rgba(45, 31, 31, 0.18);
}

.cart-sidebar.active {
    left: 0;
}

.cart-header,
.cart-footer {
    padding: 18px;
    border-bottom: 1px solid rgba(197, 149, 107, 0.14);
}

.cart-footer {
    border-top: 1px solid rgba(197, 149, 107, 0.14);
    border-bottom: none;
    margin-top: auto;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-items {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 14px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(197, 149, 107, 0.12);
}

.cart-item img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 16px;
}

.cart-item h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.cart-item-meta {
    font-size: 0.84rem;
    color: rgba(45, 31, 31, 0.65);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.cart-remove {
    color: #c44c63;
    font-weight: 700;
}

.cart-total-row,
.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-actions {
    margin-top: 16px;
}

.cart-actions .btn {
    flex: 1;
}

.cart-empty {
    padding: 0 18px 18px;
    color: rgba(45, 31, 31, 0.66);
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 31, 31, 0.5);
}

.product-modal-dialog {
    position: relative;
    width: min(960px, calc(100% - 30px));
    margin: 4vh auto;
    background: #fff9f6;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(45, 31, 31, 0.24);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
}

.product-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: 24px;
}

.product-modal-image {
    border-radius: 24px;
    overflow: hidden;
    background: var(--primary-lighter);
    min-height: 320px;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-copy h2 {
    margin-bottom: 10px;
}

.product-modal-copy .price-row {
    margin: 14px 0;
}

.size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.size-chip {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 149, 107, 0.18);
    color: var(--text);
    font-weight: 700;
}

.size-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.flying-image {
    position: fixed;
    z-index: 60;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(45, 31, 31, 0.2);
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.7s ease;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-panel,
    .delivery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-modal-layout,
    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }

    .hero-section {
        min-height: 72vh;
    }

    .hero-content {
        padding: 70px 0;
    }

    .product-grid,
    .filters-panel,
    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .qty-add-row,
    .cart-actions,
    .footer-inner,
    .section-head,
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-modal-dialog {
        padding: 20px 16px;
    }

    .cart-sidebar {
        width: calc(100% - 12px);
    }
}
