.paper-texture {
    background-color: rgba(246, 239, 232, 0.94);

    background-image:
        radial-gradient(
            rgba(75, 51, 40, 0.045) 0.7px,
            transparent 0.7px
        ),
        radial-gradient(
            rgba(255, 255, 255, 0.55) 0.8px,
            transparent 0.8px
        );

    background-position: 0 0, 6px 6px;
    background-size: 12px 12px;
}


/* =========================================
   GALLERY FILTERS
========================================= */

.filter-btn {
    cursor: pointer;

    border: 1px solid rgba(132, 81, 72, 0.12);

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

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

.filter-btn.active {
    background: #845148;
    color: #ffffff;

    border-color: #845148;

    box-shadow:
        0 9px 24px rgba(132, 81, 72, 0.22);
}


/* Gallery item animation */

.gallery-item {
    opacity: 1;
    transform: scale(1);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.gallery-item.is-hiding {
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
}

.gallery-item.is-hidden {
    display: none;
}


/* Mobile filter scrolling */

@media (max-width: 640px) {

    #gallery-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;

        overflow-x: auto;

        padding: 4px 4px 12px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    #gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* =========================================
   HERO TYPOGRAPHY
========================================= */
.hero-title{
    color:#845148 !important;
    letter-spacing:-0.02em;

    text-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 8px 24px rgba(70,42,32,.22);
}

.hero-subtitle{
    color:#524441 !important;
    text-shadow:0 1px 8px rgba(255,255,255,.75);
}

.hero-title::after{
    content:"";
    display:block;
    width:72px;
    height:3px;
    margin-top:22px;
    border-radius:999px;
    background:#845148;
}
/*------لون تاريخا الحجز  */
#summary-date,
#summary-time,
#summary-service{
    color: #845148;
    font-weight: 600;
}




/* =========================================
   PORTFOLIO PREVIEW
========================================= */

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

.portfolio-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;

    display: block;
    padding: 0;
    overflow: hidden;

    border: 0;
    border-radius: 24px;
    background: #f6efe8;

    cursor: zoom-in;
    box-shadow: 0 14px 34px rgba(56, 37, 29, 0.1);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.portfolio-preview-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(56, 37, 29, 0.16);
}

.portfolio-preview-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.65s ease;
}

.portfolio-preview-item:hover img {
    transform: scale(1.07);
}

.portfolio-preview-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(32, 20, 16, 0.04),
            rgba(32, 20, 16, 0.35)
        );

    transition: opacity 0.3s ease;
}

.portfolio-preview-item:hover .portfolio-preview-overlay {
    opacity: 1;
}

.portfolio-preview-icon {
    width: 56px;
    height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.portfolio-preview-item:hover .portfolio-preview-icon {
    transform: scale(1);
}


/* =========================================
   PORTFOLIO LIGHTBOX
========================================= */

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.portfolio-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    padding: 0;

    border: 0;
    background: rgba(24, 15, 12, 0.88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: zoom-out;
}

.portfolio-lightbox-content {
    position: relative;
    z-index: 1;

    width: min(1200px, 100%);
    height: min(88vh, 900px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;

    background: rgba(36, 25, 21, 0.96);

    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.portfolio-lightbox-stage {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.portfolio-lightbox-stage.is-dragging {
    cursor: grabbing;
}

#portfolio-lightbox-image {
    display: block;

    max-width: 92%;
    max-height: 90%;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;

    transform-origin: center center;
    transition: transform 0.2s ease;
    will-change: transform;
}

.portfolio-lightbox-control {
    width: 46px;
    height: 46px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    color: #fff;
    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.portfolio-lightbox-control:hover {
    background: #845148;
    transform: translateY(-2px);
}

.portfolio-lightbox-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
}

.portfolio-lightbox-tools {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;

    display: flex;
    gap: 10px;
}

body.portfolio-lightbox-open {
    overflow: hidden;
}


/* =========================================
   RESPONSIVE
========================================= */

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

@media (max-width: 600px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-preview-item {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

    .portfolio-lightbox {
        padding: 8px;
    }

    .portfolio-lightbox-content {
        height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .portfolio-lightbox-control {
        width: 42px;
        height: 42px;
    }

    .portfolio-lightbox-close {
        top: 12px;
        left: 12px;
    }

    .portfolio-lightbox-tools {
        top: 12px;
        right: 12px;
        gap: 7px;
    }

    #portfolio-lightbox-image {
        max-width: 96%;
        max-height: 84%;
    }
}


.extra-review {
    opacity: 0;
    transform: translateY(24px);
}

.extra-review.reviews-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}


.reviews-button-pulse{
    animation: reviewsButtonFloat 2.4s ease-in-out infinite;
}

@keyframes reviewsButtonFloat{
    0%,
    100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-6px);
    }
}

/* =========================================
   GLOBAL TITLES
   (Except Hero)
========================================= */

h2,
h3,
h4,
h5,
h6{
    color:var(--primary);
}

/* Section Titles */

.section-title{
    color:var(--primary);
}

/* Common Tailwind heading classes */

.text-headline-lg,
.text-headline-md,
.text-title-lg,
.font-headline-lg,
.font-headline-md,
.font-title-lg{
    color:var(--primary);
}

/* =========================================
   HERO EXCEPTION
========================================= */

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p{
    color:#fff !important;
}


/* أسهم القوائم على اليسار في RTL */
#location-type,
#cust-occasion {
    direction: rtl;
    text-align: right;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b5b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 18px;

    padding-right: 16px;
    padding-left: 45px;
}

  /* =========================================   SERVICES BENTO GRID - RESPONSIVE FIX========================================= */.bento-grid {    display: grid;    grid-template-columns: repeat(4, minmax(0, 1fr));    grid-auto-rows: 260px;    gap: 24px;}/* البطاقة الرئيسية */.bento-grid > div:nth-child(1) {    min-height: 544px;}/* البطاقة الثانية */.bento-grid > div:nth-child(2) {    min-height: 260px;}/* البطاقات الصغيرة */.bento-grid > div:nth-child(3),.bento-grid > div:nth-child(4) {    min-height: 260px;}/* =========================================   TABLET========================================= */@media (max-width: 1023px) {    .bento-grid {        grid-template-columns: repeat(2, minmax(0, 1fr));        grid-auto-rows: auto;        gap: 18px;    }    /*     * نلغي تأثيرات Tailwind الخاصة     * بـ col-span / row-span على التابلت.     */    .bento-grid > div {        grid-column: auto !important;        grid-row: auto !important;        min-height: 320px;    }    .bento-grid > div:nth-child(1) {        grid-column: span 2 !important;        min-height: 480px;    }    .bento-grid > div:nth-child(2) {        grid-column: span 2 !important;        min-height: 360px;    }}/* =========================================   MOBILE========================================= */@media (max-width: 639px) {    .bento-grid {        display: grid;        grid-template-columns: 1fr;        grid-auto-rows: auto;        gap: 16px;        width: 100%;    }    /*     * كل بطاقة صف مستقل     */    .bento-grid > div,    .bento-grid > div:nth-child(1),    .bento-grid > div:nth-child(2),    .bento-grid > div:nth-child(3),    .bento-grid > div:nth-child(4) {        grid-column: 1 / -1 !important;        grid-row: auto !important;        width: 100%;        min-height: 360px;        position: relative;    }    /*     * البطاقة الرئيسية أكبر قليلاً     */    .bento-grid > div:nth-child(1) {        min-height: 460px;    }    /*     * ضبط النصوص     */    .bento-grid > div > div:last-child {        padding: 24px !important;    }    .bento-grid h3 {        font-size: 1.35rem !important;        line-height: 1.4;    }    .bento-grid p {        font-size: 0.9rem;        line-height: 1.7;    }}/* =========================================   SECONDARY SERVICES GRID========================================= */@media (max-width: 639px) {    .grid.grid-cols-1.md\:grid-cols-4 {        grid-template-columns: 1fr !important;        gap: 16px;    }    .grid.grid-cols-1.md\:grid-cols-4 > div {        width: 100%;        height: 320px !important;        min-height: 320px;    }}
  
  
  .customer-time-picker {
    width: 100%;
    margin-top: 8px;
}

.customer-time-title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 15px;
}

.customer-time-note {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #7a6a65;
}

.customer-time-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.customer-time-presets button {
    min-height: 48px;
    border: 1px solid #e2d8d4;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
    touch-action: manipulation;
}

.customer-time-presets button.active {
    background: #8b5e52;
    color: #fff;
    border-color: #8b5e52;
}

.customer-custom-time-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: 1px dashed #c9b5ae;
    border-radius: 14px;
    background: #faf7f5;
    font-weight: 700;
    cursor: pointer;
}

.customer-custom-time {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1.2fr;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.customer-custom-time select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #ded4d0;
    border-radius: 12px;
    background: #fff;
    padding: 0 10px;
    font-size: 16px;
    text-align: center;
}

.customer-time-selected {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f4f2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.customer-time-selected strong {
    color: #8b5e52;
}

@media (max-width: 640px) {

    .customer-time-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-time-presets button {
        min-height: 52px;
        font-size: 16px;
    }

    .customer-custom-time {
        grid-template-columns: 1fr auto 1fr;
    }

    #customer-period {
        grid-column: 1 / -1;
        min-height: 52px;
    }

    .customer-time-selected {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================
   SUN BEAUTY - HEADER CART
========================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


/* Cart */

.header-cart-btn {
    position: relative;

    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    margin-left: 14px;
    margin-right: 14px;

    background: #fff8f6;
    color: #845148;

    border: 1px solid #d6c2bf;
    border-radius: 50%;

    text-decoration: none;
    box-sizing: border-box;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.header-cart-btn:hover {
    background: #845148;
    color: #ffffff;
    border-color: #845148;
    transform: translateY(-1px);
}

.header-cart-btn > .material-symbols-outlined {
    display: block;
    font-size: 21px;
    line-height: 1;
}


/* Counter */

.header-cart-count {
    position: absolute;

    top: -5px;
    right: -6px;

    z-index: 5;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 2px solid #fff8f6;
    border-radius: 999px;

    background: #845148;
    color: #ffffff;

    font-family: "Cairo", sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}

.header-cart-count.hidden {
    display: none !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .header-actions {
        display: flex !important;
        align-items: center !important;

        gap: 6px !important;

        margin: 0 !important;
        padding: 0 !important;

        flex-shrink: 0;
    }


    /* Login */

    .header-login-btn {
        flex-shrink: 0 !important;

        margin: 0 !important;
    }

    .header-login-btn .login-text {
        display: none !important;
    }


    /* Cart */

    .header-cart-btn {
        width: 34px;
        height: 34px;

        min-width: 34px;
        flex: 0 0 34px;

        margin: 0 !important;
        padding: 0;
    }

    .header-cart-btn > .material-symbols-outlined {
        font-size: 18px;
    }


    /* Counter */

    .header-cart-count {
        top: -3px;
        right: -3px;

        min-width: 16px;
        height: 16px;

        padding: 0 3px;

        border-width: 1px;

        font-size: 8px;
    }


    /* Book موجود داخل Mobile Menu */

    .header-book-btn {
        display: none !important;
    }

}