@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

:root {
    --green: #173f35;
    --green2: #245b4b;
    --gold: #d5a64a;
    --cream: #f7f5ef;
    --ink: #202b27;
    --muted: #7d8983;
    --line: #e8e8e1;
    --white: #fff;
    --shadow: 0 18px 50px #173f3514
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'Cairo', sans-serif
}

button,
input,
textarea {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

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

.hidden {
    display: none !important
}

.announcement {
    text-align: center;
    background: var(--green);
    color: #f8f2e6;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: .2px
}

.site-header {
    max-width: 1200px;
    margin: auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 28px
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--green);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #d5a64a66
}

.brand strong,
.brand small {
    display: block
}

.brand strong {
    font-size: 20px;
    color: var(--green);
    line-height: 1.35
}

.brand small {
    font-size: 10px;
    color: var(--muted)
}

.search {
    height: 46px;
    display: flex;
    flex: 1;
    max-width: 500px;
    background: #f6f7f4;
    border: 1px solid #eef0eb;
    border-radius: 12px;
    overflow: hidden
}

.search input {
    border: 0;
    background: transparent;
    outline: 0;
    padding: 0 16px;
    min-width: 0;
    flex: 1;
    font-size: 13px
}

.search button {
    border: 0;
    background: var(--green);
    color: #fff;
    width: 52px;
    font-size: 24px
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto
}
/* تنسيق قسم المساعدة ليكون النص يميناً والزر مع الرقم يساراً */
.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* تجميع الزر والرقم معا في الجهة اليسرى */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* مظهر رقم الهاتف بجانب الزر في اليسار */
.support-phone {
  font-weight: bold;
  color: #173f35;
  font-size: 15px;
}
.icon-btn,
.cart-button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    padding: 10px
}

.cart-button {
    background: var(--green);
    color: #fff;
    border-radius: 11px;
    padding: 11px 17px
}

.cart-count {
    background: var(--gold);
    color: var(--green);
    border-radius: 30px;
    padding: 1px 7px;
    margin-right: 5px
}

.hero {
    max-width: 1152px;
    margin: 12px auto 0;
    min-height: 390px;
    border-radius: 24px;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px 7%;
    overflow: hidden;
    position: relative
}

.hero:after {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    border: 1px solid #ffffff18;
    border-radius: 50%;
    left: 18%;
    top: -230px
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 490px
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.25;
    margin: 12px 0;
    font-weight: 900
}

.hero h1 em {
    font-style: normal;
    color: var(--gold)
}

.hero p {
    color: #d6e1dc;
    font-size: 14px;
    line-height: 2;
    max-width: 390px
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    background: var(--gold);
    color: var(--green);
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 13px;
    transition: .25s
}

.primary-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px #0002
}

.hero-art {
    width: 42%;
    height: 270px;
    position: relative;
    display: grid;
    place-items: center
}

.art-circle {
    width: 235px;
    height: 235px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d8b35f, #b88631);
    box-shadow: 0 25px 70px #0003;
    position: absolute
}

.art-circle:before,
.art-circle:after {
    content: "";
    position: absolute;
    border: 1px solid #fff7;
    border-radius: 50%;
    inset: 17px
}

.art-circle:after {
    inset: 34px
}

.art-card {
    position: absolute;
    background: #fff;
    color: var(--green);
    border-radius: 14px;
    box-shadow: 0 20px 35px #0003;
    padding: 18px 23px;
    font-weight: 900
}

.card-one {
    font-size: 24px;
    transform: rotate(-8deg);
    top: 52px;
    left: 5%
}

.card-one b {
    color: var(--gold)
}

.card-two {
    font-size: 12px;
    bottom: 45px;
    right: 0;
    transform: rotate(6deg)
}

.spark {
    position: absolute;
    color: var(--gold);
    font-size: 30px
}

.spark-a {
    right: 5%;
    top: 25px
}

.spark-b {
    left: 10%;
    bottom: 25px
}

.benefits {
    max-width: 1100px;
    margin: 28px auto 65px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 20px
}

.benefits>div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 14px
}

.benefits>div>span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f5f0e4;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 19px
}

.benefits p {
    margin: 0
}

.benefits b,
.benefits small {
    display: block
}

.benefits b {
    font-size: 13px
}

.benefits small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px
}

.section {
    max-width: 1152px;
    margin: 0 auto 76px;
    padding: 0 20px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 24px
}

.section-heading h2,
.contact-strip h2 {
    font-size: 28px;
    color: var(--green);
    margin: 4px 0 0;
    font-weight: 900
}

.heading-note {
    color: var(--muted);
    font-size: 12px
}

.offer-banner {
    background: #f5f0e4;
    border-radius: 18px;
    padding: 28px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden
}

.offer-banner:after {
    content: "✦";
    position: absolute;
    left: 34%;
    top: -35px;
    font-size: 150px;
    color: #d5a64a19
}

.offer-tag {
    color: #9b742e;
    font-size: 11px;
    font-weight: 800
}

.offer-banner h3 {
    font-size: 22px;
    color: var(--green);
    margin: 4px 0
}

.offer-banner p {
    font-size: 12px;
    color: #737e77;
    margin: 0
}

.offer-banner a {
    position: relative;
    z-index: 1;
    background: var(--green);
    color: #fff;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.filters {
    display: flex;
    gap: 8px;
    margin: -8px 0 20px
}

.filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 11px
}

.filter.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff
}

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

.product-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: .25s;
    background: #fff;
    position: relative
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

.product-image {
    height: 205px;
    background: var(--cream);
    position: relative;
    overflow: hidden
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.product-card:hover .product-image img {
    transform: scale(1.05)
}

.product-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #b5bdb6;
    font-size: 46px
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    padding: 5px 9px;
    border-radius: 30px
}

.product-info {
    padding: 15px
}

.product-info h3 {
    font-size: 14px;
    margin: 0 0 5px;
    color: var(--green)
}

.product-info p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
    height: 39px;
    overflow: hidden;
    margin: 0 0 13px
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.price {
    font-weight: 900;
    color: var(--green);
    font-size: 15px
}

.old-price {
    font-size: 10px;
    color: #a1aaa4;
    text-decoration: line-through;
    margin-right: 5px
}

.add-btn {
    border: 0;
    background: #edf2ed;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    padding: 9px 11px;
    border-radius: 8px
}

.add-btn:hover {
    background: var(--green);
    color: #fff
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--muted);
    background: var(--cream);
    border-radius: 14px
}

.contact-strip {
    max-width: 1152px;
    margin: 0 auto 70px;
    padding: 32px 38px;
    background: #f7f8f5;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.contact-strip h2 {
    font-size: 24px
}

.contact-strip p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 0
}

.outline-link {
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 9px;
    padding: 11px 17px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

footer {
    border-top: 1px solid var(--line);
    max-width: 1152px;
    margin: auto;
    padding: 22px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

footer p {
    font-size: 10px;
    color: var(--muted)
}

.footer-brand {
    transform: scale(.85);
    transform-origin: right center
}

.overlay {
    position: fixed;
    inset: 0;
    background: #10251fc2;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    backdrop-filter: blur(4px)
}

/* تنسيق الشاشة الكاملة لوحة التحكم بعد تسجيل الدخول */
#adminOverlay {
    padding: 0;
}

#adminOverlay .modal.fullscreen-admin,
#adminOverlay .admin-modal.fullscreen-admin {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 30px !important;
    box-shadow: none !important;
    background: #fff !important;
}

.drawer {
    background: #fff;
    width: min(440px, 100%);
    height: 100%;
    max-height: 800px;
    margin-right: auto;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 70px #0003;
    animation: slideIn .25s ease
}

.drawer-head,
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
    margin-bottom: 18px
}

.drawer-head h2,
.modal-head h2 {
    margin: 2px 0 0;
    color: var(--green);
    font-size: 22px
}

.close-btn {
    border: 0;
    background: #f1f3ef;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 23px;
    color: var(--green)
}

.cart-items {
    overflow: auto;
    flex: 1
}

.cart-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.cart-thumb {
    width: 64px;
    height: 64px;
    background: var(--cream);
    border-radius: 10px;
    object-fit: cover
}

.cart-row h4 {
    font-size: 12px;
    margin: 0 0 4px
}

.cart-row small {
    color: var(--muted)
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px
}

.qty-controls button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    width: 24px;
    height: 24px
}

.remove-btn {
    border: 0;
    background: none;
    color: #b45e4f;
    font-size: 11px
}

.cart-summary {
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.cart-summary>div,
.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px
}

.cart-summary strong,
.checkout-total strong {
    color: var(--green);
    font-size: 19px
}

.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 800
}

.primary-btn:hover {
    background: var(--green2)
}

.secondary-btn {
    background: #edf0eb;
    color: var(--green)
}

.full {
    width: 100%
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: min(590px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 25px;
    box-shadow: 0 20px 70px #0003;
    animation: popIn .2s ease
}

.admin-modal {
    width: min(650px, 100%)
}

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #52615a;
    margin-bottom: 12px
}

input:not([type=radio]):not([type=checkbox]),
textarea {
    display: block;
    width: 100%;
    border: 1px solid #e3e8e2;
    background: #fbfcfa;
    border-radius: 9px;
    padding: 11px 12px;
    margin-top: 6px;
    outline: 0;
    font-size: 12px;
    color: var(--ink)
}

input:focus,
textarea:focus {
    border-color: var(--green2);
    box-shadow: 0 0 0 3px #245b4b12
}

textarea {
    resize: vertical
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.checkout-modal fieldset {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 12px 0;
    padding: 12px
}

.checkout-modal legend {
    font-size: 12px;
    font-weight: 800;
    color: var(--green);
    padding: 0 7px
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
    font-size: 12px
}

.payment-panel {
    background: #f6f8f5;
    border-radius: 11px;
    padding: 14px;
    margin: 12px 0
}

.payment-panel p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 10px
}

.payment-panel .demo-warning {
    color: #986b22
}

.checkout-total {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 15px
}

.fine-print {
    font-size: 10px;
    line-height: 1.8;
    color: #8a948e;
    text-align: center;
    margin: 10px 0 0
}

.muted {
    color: var(--muted);
    font-size: 12px
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.text-btn {
    border: 0;
    background: none;
    color: #a05a48;
    font-size: 11px;
    font-weight: 800
}

.admin-product-form {
    padding: 16px;
    background: #f7f8f5;
    border-radius: 12px;
    margin-top: 10px
}

.admin-product-form h3,
.inventory-title {
    font-size: 14px;
    color: var(--green);
    margin: 0 0 13px
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px
}

.admin-product-list {
    display: grid;
    gap: 8px
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    padding: 9px;
    border-radius: 10px
}

.admin-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--cream)
}

.admin-item-info {
    flex: 1;
    min-width: 0
}

.admin-item-info b,
.admin-item-info small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.admin-item-info b {
    font-size: 11px
}

.admin-item-info small {
    font-size: 10px;
    color: var(--muted)
}

.admin-item button {
    border: 0;
    border-radius: 7px;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 700
}

.edit-btn {
    background: #edf2ed;
    color: var(--green)
}

.delete-btn {
    background: #fff0ed;
    color: #a34d3e
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--green);
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 50;
    box-shadow: var(--shadow)
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@keyframes slideIn {
    from {
        transform: translateX(-25px);
        opacity: .5
    }

    to {
        transform: none;
        opacity: 1
    }
}

@keyframes popIn {
    from {
        transform: translateY(10px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

@media(max-width:850px) {
    .site-header {
        gap: 12px;
        flex-wrap: wrap
    }

    .brand {
        min-width: 140px
    }

    .search {
        order: 3;
        max-width: none;
        flex-basis: 100%
    }

    .header-actions {
        margin-right: auto
    }

    .hero {
        margin: 10px 15px 0;
        padding: 38px 6%;
        min-height: 340px
    }

    .hero-art {
        transform: scale(.8);
        width: 38%
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .benefits {
        margin-bottom: 50px
    }

    .section {
        margin-bottom: 55px
    }
}

@media(max-width:600px) {
    .announcement {
        font-size: 10px
    }

    .site-header {
        padding: 13px 15px
    }

    .brand-mark {
        width: 40px;
        height: 40px
    }

    .brand strong {
        font-size: 17px
    }

    .icon-btn {
        font-size: 0;
        padding: 8px
    }

    .icon-btn:first-letter {
        font-size: 18px
    }

    .icon-btn span {
        display: none
    }

    .cart-button {
        font-size: 11px;
        padding: 10px 12px
    }

    .hero {
        min-height: 400px;
        display: block;
        padding: 35px 25px
    }

    .hero-copy {
        max-width: 100%
    }

    .hero h1 {
        font-size: 39px
    }

    .hero-art {
        position: absolute;
        bottom: -40px;
        left: 5%;
        width: 230px;
        height: 190px;
        opacity: .8;
        transform: scale(.7);
        transform-origin: bottom left
    }

    .art-circle {
        width: 210px;
        height: 210px
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 9px;
        margin: 22px auto 45px
    }

    .benefits>div {
        padding: 10px 14px
    }

    .section {
        padding: 0 15px
    }

    .section-heading h2 {
        font-size: 24px
    }

    .heading-note {
        font-size: 10px
    }

    .offer-banner {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column
    }

    .offer-banner h3 {
        font-size: 19px
    }

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

    .product-image {
        height: 145px
    }

    .product-info {
        padding: 11px
    }

    .product-info h3 {
        font-size: 12px
    }

    .product-info p {
        font-size: 10px;
        height: 36px
    }

    .price {
        font-size: 13px
    }

    .add-btn {
        padding: 8px;
        font-size: 10px
    }

    .contact-strip {
        margin: 0 15px 45px;
        padding: 23px;
        align-items: flex-start;
        flex-direction: column
    }

    .contact-strip h2 {
        font-size: 21px
    }

    footer {
        padding: 18px 15px;
        gap: 10px
    }

    footer p {
        max-width: 150px;
        text-align: left
    }

    .modal {
        padding: 18px
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .drawer {
        padding: 18px
    }

    .admin-item {
        flex-wrap: wrap
    }

    .admin-item button {
        padding: 7px
    }

    .checkout-modal {
        max-height: 95vh
    }
}