﻿@font-face {
    font-family: "Cairo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/cairo/v28/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscQyyS4J0.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
    --bg: #f6f7f8;
    --surface: #ffffff;
    --text: #151719;
    --muted: #66717c;
    --border: #dfe4ea;
    --inverse: #1b1e21;
    --inverse-text: #ffffff;
    --brand: #f1ec37;
}

[data-theme="dark"] {
    --bg: #1b1e21;
    --surface: #22262a;
    --text: #f6f6f6;
    --muted: #aeb5bd;
    --border: #333941;
    --inverse: #ffffff;
    --inverse-text: #111111;
}

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-navbar {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    min-height: 76px;
}

.nav-inner {
    gap: 1.25rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #111;
}

.brand-name {
    font-size: .98rem;
    font-weight: 200;
    line-height: 1.2;
    max-width: 210px;
}

.navbar-brand,
.nav-link {
    color: var(--text);
}

.navbar-brand {
    margin-inline-end: 1rem;
}

.nav-links {
    gap: .35rem;
}

.nav-link {
    font-size: .96rem;
    font-weight: 200;
}

.nav-link:hover,
.navbar-brand:hover {
    color: var(--muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-inline-start: auto;
}

.icon-btn,
.btn-dark-minimal,
.btn-outline-minimal {
    border-radius: 8px;
    min-height: 42px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.icon-btn:hover {
    border-color: #33d0c5;
    color: #33d0c5;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#themeToggle svg {
    fill: currentColor;
    stroke: none;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px rgba(51, 208, 197, .35));
}

#themeToggle.is-light {
    background: #1b1e21;
    color: #f1ec37;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-search input {
    width: 0;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    min-height: 42px;
    padding: 0;
    transition: width .2s ease, opacity .2s ease, padding .2s ease;
}

.nav-search.is-open input,
.nav-search input:not(:placeholder-shown) {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
    padding: .55rem .75rem;
}

.btn-dark-minimal {
    border: 1px solid var(--inverse);
    background: var(--inverse);
    color: var(--inverse-text);
    padding: .65rem 1rem;
}

.btn-outline-minimal {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: .65rem 1rem;
}

.btn-light-minimal {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .92);
    color: #111;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-weight: 500;
}

.btn-gradient-minimal {
    display: inline-block;
    border: 0;
    background: linear-gradient(135deg, #1d7df2, #33d0c5);
    color: #fff;
    border-radius: 10px;
    padding: .2rem 1.05rem;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(29, 125, 242, .18);
}

.btn-gradient-minimal:hover {
    color: #fff;
    filter: brightness(1.04);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    background: linear-gradient(135deg, #25d366, #12b957);
    color: #062d16;
    border-radius: 12px;
    padding: .82rem 1.15rem;
    font-weight: 500;
    box-shadow: 0 12px 26px rgba(37, 211, 102, .24);
    text-align: center;
}

.btn-whatsapp:hover {
    color: #062d16;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-whatsapp-product {
    min-width: min(100%, 290px);
    font-size: .98rem;
}

.page-head {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--bg));
}

.filters-bar {
    position: relative;
}

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 62%, transparent), var(--bg));
}

.store-hero {
    padding: 1.4rem 0 3rem;
    background: var(--bg);
}

.store-cover {
    position: relative;
}

.offer-slide {
    height: clamp(190px, 25vw, 350px);
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    display: grid;
    place-items: center;
}

.offer-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.offer-slide-empty img {
    width: min(52%, 420px);
    height: auto;
}

.cover-slide {
    min-height: 350px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.cover-brand {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .36)),
        url("../img/logo.webp");
    background-size: cover;
    background-position: center;
}

.cover-content {
    max-width: 560px;
    color: #fff;
}

.cover-content h2 {
    font-weight: 500;
    margin: .75rem 0;
}

.cover-content p {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 1.25rem;
}

.hero-kicker {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .9rem;
    color: #fff;
}

.store-cover .carousel-control-prev,
.store-cover .carousel-control-next {
    width: 5%;
}

.store-profile {
    position: relative;
    padding-top: 5rem;
}

.profile-logo-wrap {
    position: absolute;
    top: -64px;
    left: 50%;
    transform: translateX(-50%);
    width: 132px;
    height: 132px;
    border-radius: 50%;
    padding: 7px;
    background: linear-gradient(135deg, #1d7df2, #33d0c5);
    z-index: 2;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #111;
    border: 7px solid #111;
}

.blue-mark {
    width: 76px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d7df2, #34d1c6);
    margin: .35rem auto 0;
}

.hero-meta {
    border-top: 3px solid color-mix(in srgb, #242f3c  48%, var(--border));
    border-bottom: 3px solid color-mix(in srgb, #242f3c  32%, var(--border));
    padding: 1.35rem 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.hero-meta strong,
.hero-meta span {
    display: block;
}

.hero-meta strong {
    font-size: 1rem;
    margin-bottom: .7rem;
    font-weight: 600 !important;
}

.hero-meta span {
    color: var(--muted);
    font-weight: 600;
}

.products-count-number {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
}

.hero-meta-single {
    gap: 0;
}

.hero-visual {
    background: #111111;
    border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--border));
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

.hero-logo {
    width: min(74%, 420px);
    height: auto;
    object-fit: contain;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.category-card,
.product-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.category-card {
    max-width: 360px;
    margin-inline: auto;
}

.category-card,
.product-card {
    height: 100%;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 70%, var(--text));
}

.category-img,
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: color-mix(in srgb, var(--surface) 80%, var(--bg));
    padding: 0;
}

.category-img {
    aspect-ratio: 16 / 10;
}

.product-card .p-3,
.category-card .p-3,
.arrival-info {
    text-align: right;
}

.empty-product-img {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, #fff), var(--bg));
}

.product-badge {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .8rem;
}

.product-gallery-main {
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface);
    padding: .8rem;
}

.gallery-thumb {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: var(--surface);
    padding: .25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    font-weight: 500;
}

.footer-link {
    display: inline-block;
    margin-inline-end: 1rem;
    color: var(--muted);
}

.admin-shell {
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    background: var(--surface);
    border-left: 1px solid var(--border);
    min-height: 100vh;
}

.admin-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: #111;
}

.login-logo {
    width: 138px;
    height: auto;
    border-radius: 8px;
    background: #111;
}

.admin-thumb-wide {
    width: 150px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
    border: 1px solid var(--border);
}

.new-arrivals {
    background: transparent;
    color: var(--text);
    margin-top: 0;
}

.new-arrivals .section-title {
    justify-content: flex-start;
    direction: rtl;
}

.arrival-pills {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-inline-start: 0;
    flex-direction: row-reverse;
}

.pill-muted,
.pill-blue {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-weight: 500;
    font-size: .9rem;
}

.pill-muted {
    background: #f3f4f5;
    color: #777;
}

.pill-blue {
    background: #2167ee;
    color: #fff;
}

.pill-blue::before {
    content: "\2728";
    margin-inline-end: .35rem;
}

.arrival-card {
    position: relative;
    display: block;
    height: 310px;
    border-radius: 18px;
    overflow: hidden;
    background: #0d0f12;
    border: 1px solid rgba(255, 255, 255, .08);
}

.arrival-card img,
.arrival-empty {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0d0f12;
    padding: 0;
    display: block;
}

.product-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
}

.product-code {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: .38rem .75rem;
}

.mini-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 40px;
    border: 1px solid color-mix(in srgb, #33d0c5 40%, var(--border));
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #33d0c5), var(--surface));
    color: var(--text);
    border-radius: 10px;
    padding: .48rem .78rem;
    font-size: .88rem;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mini-action-btn:hover {
    border-color: #33d0c5;
    transform: translateY(-1px);
}

.mini-action-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arrival-empty {
    background: linear-gradient(135deg, #16191e, #0d0f12);
}

.arrival-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
}

.arrival-badge {
    position: absolute;
    top: .8rem;
    left: .8rem;
    z-index: 2;
    background: #2167ee;
    color: #fff;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .82rem;
    font-weight: 500;
}

.arrival-info {
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    text-align: right;
}

.arrival-info strong {
    color: #fff;
    display: block;
    text-align: right;
    font-weight: 500;
}

.new-arrivals::after {
    content: "";
    display: block;
    width: min(420px, 46vw);
    height: 2px;
    margin: 3rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #33d0c5, #1d7df2, transparent);
    opacity: .85;
}

.category-products-section {
    padding-top: 1rem;
}

.category-products-block {
    margin-top: 2.4rem;
}

.category-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #1d7df2, #33d0c5, transparent) 1;
}

.category-products-head h3 {
    color: var(--text);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 500;
}

.category-products-head a {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #1d7df2, #33d0c5);
    color: #fff;
    border-radius: 999px;
    padding: .34rem .8rem;
    font-size: .86rem;
    font-weight: 500;
}

.category-product-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #111418;
    border: 1px solid #333941;
    min-height: 250px;
    transition: transform .18s ease, border-color .18s ease;
}

.category-product-card:hover {
    transform: translateY(-2px);
    border-color: #33d0c5;
}

.category-product-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0d0f12;
    overflow: hidden;
}

.category-product-media img,
.category-product-media .arrival-empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
}

.category-product-info {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: .85rem;
    text-align: right;
}

.category-product-info strong {
    color: #fff;
    font-size: .88rem;
    line-height: 1.6;
    font-weight: 500;
}

.section-title .text-secondary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #1d7df2, #33d0c5);
    color: #fff !important;
    border-radius: 999px;
    padding: .38rem .85rem;
    font-weight: 500;
    font-size: .9rem;
}

.section-title h2,
.section-title .h4 {
    font-weight: 600 !important;
}

.address-title {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.address-title svg {
    width: 24px;
    height: 24px;
    fill: #f2763f;
    filter: drop-shadow(0 6px 10px rgba(242, 118, 63, .2));
}

.title-icon,
.meta-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    margin-inline-end: .35rem;
    background: linear-gradient(135deg, #1d7df2, #33d0c5);
    color: #fff;
    font-size: .78rem;
    vertical-align: middle;
}

.meta-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.fw-bold,
strong,
b,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500 !important;
}

.site-navbar .fw-bold,
.site-navbar strong,
.site-navbar b,
.site-navbar .brand-name,
.site-navbar .nav-link {
    font-weight: 200 !important;
}

.admin-link {
    display: block;
    padding: .75rem 1rem;
    border-radius: 8px;
    color: var(--text);
}

.admin-link:hover,
.admin-link.active {
    background: var(--inverse);
    color: var(--inverse-text);
}

.contact-panel h2 {
    color: var(--text);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.contact-grid a,
.contact-row {
    border: 1px solid var(--border);
    background: #111418;
    color: #f6f7f8;
    border-radius: 10px;
    padding: .8rem .9rem;
}

.contact-grid a:hover,
.contact-row a:hover {
    color: #33d0c5;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
}

.contact-row span {
    color: #c7d0d9;
}

.contact-row a {
    color: #f6f7f8;
}

.contact-panel .btn-whatsapp {
    min-height: 52px;
    font-size: 1rem;
}

.form-control,
.form-select {
    background-color: var(--bg);
    color: var(--text);
    border-color: var(--border);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    .nav-actions {
        margin-inline-start: 0;
        justify-content: flex-start;
    }

    .nav-search.is-open input,
    .nav-search input:not(:placeholder-shown) {
        width: min(68vw, 260px);
    }

    .brand-name {
        max-width: 170px;
        font-size: .9rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .cover-slide {
        min-height: 270px;
        border-radius: 10px;
    }

    .store-profile {
        padding-top: 4.5rem;
    }

    .profile-logo-wrap {
        width: 112px;
        height: 112px;
        top: -54px;
    }

    .hero-meta {
        gap: 2rem;
        margin-top: 1rem;
    }

    .store-profile .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .store-profile .row > .order-1 {
        grid-column: 1 / -1;
    }

    .store-profile .row > .order-2,
    .store-profile .row > .order-3 {
        width: 100%;
    }

    .store-profile .hero-meta {
        margin-top: 0;
        padding: .85rem .35rem;
        min-height: 96px;
        align-items: center;
    }

    .admin-sidebar {
        min-height: auto;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }
}
