.home-page {
    width: 100%;
}

/* ============ زرار الواتساب ============ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 9999;
    transition: width .4s cubic-bezier(.16, 1, .3, 1), border-radius .4s cubic-bezier(.16, 1, .3, 1), background .3s ease, box-shadow .3s ease, transform .3s ease;
    animation: whatsappPulse 2.4s infinite;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    transition: transform .3s ease;
}

.whatsapp-float .whatsapp-text {
    position: absolute;
    left: 68px;
    opacity: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    pointer-events: none;
    transition: opacity .3s ease .05s, left .3s ease;
}

.whatsapp-float:hover {
    width: 190px;
    border-radius: 32px;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 12px 32px rgba(37, 211, 102, .5), 0 4px 12px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
    animation: none;
}

.whatsapp-float:hover img {
    transform: scale(.92);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    left: 66px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .55);
    }

    70% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float img {
        width: 26px;
        height: 26px;
    }

    .whatsapp-float:hover {
        width: 54px;
        border-radius: 50%;
    }

    .whatsapp-float .whatsapp-text {
        display: none;
    }
}

/* إصلاح تعارض Feather / Theme مع Font Awesome */
.fa,
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-style: normal;
    font-weight: 400;
}

/* ============ زرار العودة لأعلى ============ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .4s cubic-bezier(.16, 1, .3, 1), transform .4s cubic-bezier(.16, 1, .3, 1), visibility .4s, background .3s ease, box-shadow .3s ease;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    box-shadow: 0 16px 34px -8px rgba(37, 99, 235, .65);
    transform: translateY(-5px) scale(1.06);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .55), 0 0 0 0 rgba(37, 99, 235, .5);
    }

    70% {
        box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .55), 0 0 0 15px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 10px 26px -8px rgba(37, 99, 235, .55), 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.scroll-to-top.pulse {
    animation: pulse-blue 2s infinite;
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

:root {
    --bg: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --card: #FFFFFF;
    --blue: #2563EB;
    --blue-light: #DBEAFE;
    --gray-soft: #F1F5F9;
    --border: #E2E8F0;
    --dark: #111827;
    --gray: #64748B;
    --accent: #3B82F6;
    --success: #22C55E;
    --r-sm: 16px;
    --r-md: 20px;
    --r-lg: 24px;
    --display: 'Outfit', sans-serif;
    --body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    color: var(--dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
.ph {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

.ph {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ph::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 40%), linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.12));
    pointer-events: none;
}

.ph-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    background: rgba(17, 24, 39, .28);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 100px;
    z-index: 2;
}

.ph-1 {
    background-image: url('/images/category/wool-coat.jpg');
}

.ph-2 {
    background-image: url('/images/category/menswear.jpg');
}

.ph-4 {
    background-image: url('/images/category/womens-fashion.jpg');
}

.ph-5 {
    background-image: url('/images/category/perfume.jpg');
}

.ph-6 {
    background-image: url('/images/category/home-decor.jpg');
}

.ph-8 {
    background-image: url('/images/category/jewelry.jpg');
}

.ph-9 {
    background-image: url('/images/category/electronics.jpg');
}

.ph-10 {
    background-image: url('/images/category/lifestyle-shopping.jpg');
}

.ph-3 {
    background-image: url('/images/category/oak-desk-lamp.jpg');
}

.ph-11 {
    background-image: url('/images/category/leather-handbag.jpg');
}

.ph-12 {
    background-image: url('/images/category/makeup.jpg');
}

.ph-13 {
    background-image: url('/images/category/dress-essential.jpg');
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px 220px;
    gap: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    font-size: 15px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background .3s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -10px rgba(37, 99, 235, .6);
}

.btn-ghost {
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--dark);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ================= HERO =================
   The header is fixed on the home page (see navbar.blade.php + body.home-page in the layout),
   so the hero has no top offset of its own — its background image starts at the very
   top of the page (y:0) and the transparent header floats over it. padding-top just
   keeps the text content clear of the nav height. */
.hero {
    position: relative;
    margin-top: 0;
    min-height: 96vh;
    height: auto;
    padding-top: 168px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/category/hero-bg2.jpg');
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1.0);
    }
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 11, 20, .86) 0%, rgba(8, 11, 20, .42) 42%, rgba(8, 11, 20, .18) 65%, rgba(8, 11, 20, .38) 100%), linear-gradient(90deg, rgba(8, 11, 20, .55) 0%, rgba(8, 11, 20, .08) 46%, rgba(8, 11, 20, .35) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 100px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(10px);
    padding: 9px 18px;
    border-radius: 100px;
    margin-bottom: 30px;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5EEAD4;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 76px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 26px;
    max-width: 760px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .15);
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #93C5FD, #DBEAFE 55%, #93C5FD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.sub {
    font-size: 18.5px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
    max-width: 460px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 28px;
    max-width: 640px;
}

.hero-stats div {
    padding-right: 44px;
    margin-right: 44px;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.hero-stats div:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.hero-stats div h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.hero-stats div p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .68);
    margin-top: 2px;
}

.hero-float {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45);
    animation: heroFloat 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, .6);
}

.hero-float .thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

.hero-float .txt span {
    display: block;
    font-size: 10.5px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-float .txt strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 2px;
}

.hf-1 {
    top: 22%;
    left: 8%;
    animation-delay: 0s;
}

.hf-2 {
    top: 42%;
    left: 26%;
    animation-delay: 1.4s;
}

.hf-3 {
    top: 62%;
    left: 5%;
    animation-delay: 2.8s;
}

.hf-4 {
    top: 80%;
    left: 24%;
    animation-delay: 2.1s;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-scroll-cue .line {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), transparent);
    animation: cueMove 2s ease-in-out infinite;
}

@keyframes cueMove {
    0% {
        transform: scaleY(.4);
        opacity: .4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(.4);
        opacity: .4;
    }
}

.sec {
    padding: 110px 0;
}

.sec-alt {
    background: var(--bg-secondary);
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
}

.sec-head .eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    display: block;
}

.sec-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 38px;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.sec-head p {
    color: var(--gray);
    font-size: 15px;
    margin-top: 10px;
    max-width: 460px;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid var(--dark);
    white-space: nowrap;
}

.view-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform .3s ease;
}

.view-all:hover svg {
    transform: translateX(4px);
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 20px;
}

.mtile {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 40px -22px rgba(17, 24, 39, .28);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1);
    min-height: 220px;
}

.mtile:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 60px -20px rgba(17, 24, 39, .38);
}

.mtile:hover .ph {
    transform: scale(1.08);
}

.mtile .ph {
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.mtile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, .35) 55%, rgba(17, 24, 39, .88) 100%);
    z-index: 1;
}

.mtile .cap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
}

.mtile .cap h4 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    color: #fff;
}

.mtile .cap span {
    font-size: 12.5px;
    opacity: .92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.m-big {
    grid-column: span 2;
    grid-row: span 2;
}

.m-tall {
    grid-row: span 2;
}

.mood-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.mood-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.dial-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 460px;
    margin: 0 auto;
}

.dial {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gray-soft);
    border: 1px solid var(--border);
}

.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44%;
    height: 44%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 20px 40px -15px rgba(17, 24, 39, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 5;
}

.dial-center span {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dial-center h4 {
    font-family: var(--display);
    font-size: 22px;
    margin-top: 4px;
    color: var(--blue);
    transition: opacity .3s ease;
}

.mood-node {
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 12px 26px -10px rgba(17, 24, 39, .25);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
}

.mood-node.active {
    border-color: var(--blue);
    transform: scale(1.12);
}

.mood-node:hover {
    transform: scale(1.12);
}

.mood-node span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, .7));
    padding: 16px 0 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.n1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.n2 {
    top: 14%;
    right: 0;
}

.n3 {
    bottom: 14%;
    right: 0;
}

.n4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.n5 {
    bottom: 14%;
    left: 0;
}

.n6 {
    top: 14%;
    left: 0;
}

.mood-copy .eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: block;
}

.mood-copy h2 {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.mood-copy p {
    color: var(--gray);
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 28px;
}

.mood-products {
    display: flex;
    gap: 14px;
}

.mood-product {
    width: 110px;
    flex-shrink: 0;
}

.mood-product .ph {
    height: 130px;
    border-radius: var(--r-sm);
    margin-bottom: 10px;
}

.mood-product h5 {
    font-size: 13px;
    font-weight: 600;
}

.mood-product p {
    font-size: 12.5px;
    color: var(--gray);
}

.editorial {
    position: relative;
    height: 520px;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, .55) 10%, transparent 60%);
    z-index: 1;
}

.editorial-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 560px;
    color: #fff;
}

.editorial-content .eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    opacity: .85;
    margin-bottom: 18px;
    display: block;
}

.editorial-content h2 {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.editorial-content p {
    font-size: 16px;
    line-height: 1.7;
    opacity: .9;
    margin-bottom: 30px;
    max-width: 440px;
}

.editorial-split {
    margin: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 480px;
}

.editorial-split .txt {
    background: var(--dark);
    color: #fff;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-split .txt .eyebrow {
    color: #93b5ff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
}

.editorial-split .txt h2 {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.editorial-split .txt p {
    color: #94a3b8;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
}

.tab {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    border: 1px solid var(--border);
    transition: all .3s ease;
}

.tab.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.tab:not(.active):hover {
    border-color: var(--dark);
    color: var(--dark);
}

.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.pcard {
    position: relative;
}

.pcard .imgwrap {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    height: 320px;
    margin-bottom: 18px;
    box-shadow: 0 16px 34px -20px rgba(17, 24, 39, .3);
    transition: box-shadow .5s ease;
}

.pcard:hover .imgwrap {
    box-shadow: 0 30px 54px -20px rgba(17, 24, 39, .4);
}

.pcard .ph {
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.pcard:hover .ph {
    transform: scale(1.07);
}

.pcard-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #fff;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
}

.pcard-badge.sale {
    background: var(--blue);
    color: #fff;
}

.pcard-badge.new {
    background: var(--success);
    color: #fff;
}

.wish-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, background .3s ease;
}

.wish-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.wish-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--dark);
    fill: none;
    stroke-width: 1.8;
}

.wish-btn.active svg {
    fill: var(--blue);
    stroke: var(--blue);
}

.quick-add {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    background: #fff;
    color: var(--dark);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 100px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: 0 12px 24px -10px rgba(17, 24, 39, .3);
}

.pcard:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}



/* Quick Add Button */
.product-card .quick-add {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 12px 0;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.product-card .thumb:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .product-card .quick-add {
        opacity: 1;
        transform: translateY(0);
    }
}

.pcard-info .cat {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}

.pcard-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pcard-info .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.price-old {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--gray);
}

.rating svg {
    width: 12px;
    height: 12px;
    fill: #F59E0B;
    stroke: none;
}

.swatches {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
}

.coll-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
}

.coll-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 420px;
    box-shadow: 0 20px 44px -24px rgba(17, 24, 39, .32);
    transition: box-shadow .5s ease;
}

.coll-card:hover {
    box-shadow: 0 36px 64px -22px rgba(17, 24, 39, .42);
}

.coll-card.short {
    height: 198px;
}

.coll-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coll-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, .6));
    z-index: 1;
}

.coll-card .cap {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    color: #fff;
}

.coll-card .cap span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}

.coll-card .cap h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    margin-top: 4px;
    color: #fff;
}

.coll-card .arrow-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.coll-card:hover .arrow-btn {
    transform: rotate(45deg);
}

.coll-card .arrow-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--dark);
    fill: none;
    stroke-width: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 180px 180px;
    gap: 18px;
}

.gtile {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 16px 34px -22px rgba(17, 24, 39, .3);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease;
}

.gtile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px -20px rgba(17, 24, 39, .4);
}

.gtile:hover .ph {
    transform: scale(1.08);
}

.gtile .ph {
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.g-a {
    grid-column: span 2;
    grid-row: span 2;
}

.g-b {
    grid-column: span 2;
    grid-row: span 1;
}

.g-c {
    grid-column: span 2;
    grid-row: span 1;
}

.gtile .tag {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    padding: 8px 14px 8px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 10px 22px -10px rgba(17, 24, 39, .35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
}

.gtile:hover .tag {
    opacity: 1;
    transform: translateY(0);
}

.gtile .tag .dotimg {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gtile .tag-1 {
    top: 20px;
    left: 20px;
}

.gtile .tag-2 {
    bottom: 20px;
    right: 20px;
}

.brand-strip {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 90px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-name {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: color .3s ease;
}

.brand-name:hover {
    color: var(--dark);
}

.newsletter {
    margin: 0 40px;
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--dark) 0%, #1e2a44 100%);
    padding: 90px 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.newsletter::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%);
    top: -300px;
    right: -200px;
}

.newsletter h2 {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    color: #fff;
}

.newsletter p {
    color: #cbd5e1;
    font-size: 15.5px;
    margin-bottom: 34px;
    position: relative;
    z-index: 2;
}

.news-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.news-form input {
    width: 340px;
    padding: 16px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14.5px;
    outline: none;
}

.news-form input::placeholder {
    color: #94a3b8;
}

.news-form .btn-primary {
    padding: 16px 32px;
}

footer {
    padding: 92px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 70px;
}

.footer-top h5 {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .02em;
}

.footer-top a {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
    transition: color .3s ease;
}

.footer-top a:hover {
    color: var(--blue);
}

.footer-brand p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0 24px;
    max-width: 280px;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a svg {
    width: 16px;
    height: 16px;
    stroke: var(--dark);
    fill: none;
    stroke-width: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--gray);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

@media (max-width:1280px) {
    .wrap {
        padding: 0 28px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .mosaic {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .coll-grid {
        grid-template-columns: 1fr;
    }

    .coll-col {
        flex-direction: row;
    }
}

@media (max-width:900px) {
    .hero {
        padding-top: 150px;
        min-height: 84vh;
    }

    .hero-float {
        display: none;
    }

    .mood-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .editorial-split {
        grid-template-columns: 1fr;
    }

    .pgrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:576px) {
    .wrap {
        padding: 0 20px;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-inner {
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p.sub {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        /* بدل flex-start */
        width: 100%;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
        /* النص والسهم في النص */
        padding: 15px 24px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 18px;
    }

    .hero-stats div {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
    }

    .mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .pgrid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .news-form {
        flex-direction: column;
        align-items: stretch;
    }

    .news-form input {
        width: 100%;
    }

    .editorial {
        margin: 0 20px;
        height: auto;
        min-height: 380px;
    }

    .editorial-content {
        padding: 40px 24px;
    }

    .editorial-split {
        margin: 0 20px;
    }

    .newsletter {
        margin: 0 20px;
        padding: 60px 24px;
    }
}



/* ==========================================================================
   shop-page.css
   Design system for the Shop page, matching the Tommey homepage look.
   Include this AFTER pages-common.css.
   ========================================================================== */



.shop-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    font-family: var(--body);
    color: var(--dark);
}

/* ---------- Breadcrumb ---------- */
.shop-page .breadcrumb {
    padding: 20px 0 0;
    font-size: 13px;
    color: var(--gray);
    display: flex;
    gap: 8px;
    align-items: center;
}

.shop-page .breadcrumb a:hover {
    color: var(--blue);
}

.shop-page .breadcrumb .sep {
    color: var(--border);
}

.shop-page .breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
}

/* ---------- Page head ---------- */
.shop-page .shop-head {
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-page .shop-head h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.5px;
}

.shop-page .shop-head p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 6px;
}

.shop-page .shop-head p strong {
    color: var(--dark);
}

/* ---------- Layout ---------- */
.shop-page .shop-layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 36px;
    padding-bottom: 80px;
}

/* ---------- Filters ---------- */
.shop-page .filters {
    position: sticky;
    top: 130px;
    align-self: start;
}

.shop-page .filters-offcanvas {
    border: none;
}

.shop-page .filter-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
    margin-bottom: 16px;
}

.shop-page .filter-card h3 {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.shop-page .filter-card h3 svg {
    transition: .2s;
    width: 16px;
    height: 16px;
    color: var(--gray);
}

.shop-page .filter-card.collapsed h3 svg {
    transform: rotate(-90deg);
}

.shop-page .filter-card.collapsed .filter-body {
    display: none;
}

.shop-page .cat-search {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    margin-bottom: 6px;
}

.shop-page .cat-label {
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
}

.shop-page .cat-label:hover {
    color: var(--blue);
}

.shop-page .category-checkbox,
.shop-page .rating-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: #fff;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

.shop-page .category-checkbox:checked,
.shop-page .rating-checkbox:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.shop-page .category-checkbox:checked::after,
.shop-page .rating-checkbox:checked::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.shop-page .price-range {
    padding-top: 4px;
}

.shop-page .price-range-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.shop-page .price-slider {
    width: 100%;
    accent-color: var(--blue);
    height: 4px;
}

.shop-page .apply-price-btn {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    transition: .2s;
}

.shop-page .apply-price-btn:hover {
    opacity: .9;
}

.shop-page .rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--dark);
    cursor: pointer;
}

.shop-page .rating-row .stars,
.shop-page .stars {
    color: #F59E0B;
    letter-spacing: 1px;
    font-size: 13px;
}

.shop-page .clear-filters {
    width: 100%;
    text-align: center;
    padding: 11px;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray);
    background: #fff;
    transition: .2s;
}

.shop-page .clear-filters:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ---------- Loading overlay ---------- */
.shop-page .shop-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .75);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
}

/* ---------- Toolbar ---------- */
.shop-page .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.shop-page .toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-page .mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    background: #fff;
    color: var(--dark);
}

.shop-page .active-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-page .chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-light);
    color: var(--blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.shop-page .chip button {
    color: var(--blue);
    font-size: 14px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.shop-page .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-page .view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.shop-page .view-toggle button {
    padding: 9px 12px;
    background: #fff;
    color: var(--gray);
    display: flex;
    border: none;
}

.shop-page .view-toggle button.active {
    background: var(--blue);
    color: #fff;
}

/* ---------- Product Grid ---------- */
.shop-page .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-page .grid.list-view {
    grid-template-columns: 1fr;
}

.shop-page .grid.list-view .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
}

.shop-page .grid.list-view .thumb {
    aspect-ratio: auto;
    height: 100%;
    border-radius: var(--r-sm);
}

.shop-page .product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: .25s ease;
}

.shop-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -18px rgba(17, 24, 39, .18);
    border-color: transparent;
}

.shop-page .thumb {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF2F7, #DDE4EC);
}

.shop-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-page .thumb .badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: .3px;
    z-index: 2;
}

.shop-page .thumb .badge-tag.sale {
    background: #EF4444;
}

.shop-page .thumb .badge-tag.new {
    background: var(--success);
}

.shop-page .thumb .wish {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    transition: .2s;
    z-index: 2;
}

.shop-page .thumb .wish:hover,
.shop-page .thumb .wish.active {
    color: #EF4444;
}

.shop-page .thumb .wish.active svg {
    fill: #EF4444;
}

.product-card:hover .quick-add {
    bottom: 12px;
}

.product-info {
    padding: 16px 16px 18px;
}

.shop-page .product-cat {
    font-size: 11.5px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.shop-page .product-title {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    margin: 4px 0 8px;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-page .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-page .price-now {
    font-weight: 700;
    font-size: 16px;
}

.shop-page .price-old {
    color: var(--gray);
    font-size: 13px;
    text-decoration: line-through;
}

.shop-page .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--gray);
}

.shop-page .rating .stars {
    font-size: 12px;
}

.shop-page .empty-state {
    grid-column: 1/-1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 40px;
    text-align: center;
}

.shop-page .empty-state h4 {
    font-family: var(--display);
    margin-bottom: 8px;
}

.shop-page .empty-state p {
    color: var(--gray);
    font-size: 14px;
}

/* ---------- Pagination (restyle Laravel's default page-link markup) ---------- */
.shop-page .pagination-wrap .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin-top: 48px;
    padding: 0;
}

.shop-page .pagination-wrap .page-item {
    list-style: none;
}

.shop-page .pagination-wrap .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray);
    border: 1px solid var(--border);
    background: #fff;
    transition: .2s;
    text-decoration: none;
}

.shop-page .pagination-wrap .page-item.active .page-link {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.shop-page .pagination-wrap .page-link:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.shop-page .pagination-wrap .page-item.disabled .page-link {
    opacity: .45;
    cursor: default;
}

/* ---------- Responsive ---------- */
@media (max-width:980px) {
    .shop-page .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-page .filters {
        display: none;
    }

    .shop-page .filters .offcanvas {
        display: block;
    }

    .shop-page .mobile-filter-btn {
        display: flex;
    }

    .shop-page .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:560px) {
    .shop-page {
        padding: 0 18px;
    }

    .shop-page .grid {
        grid-template-columns: 1fr;
    }

    .shop-page .shop-head h1 {
        font-size: 28px;
    }

    .shop-page .grid.list-view .product-card {
        grid-template-columns: 130px 1fr;
    }
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--gray, #64748B);
    padding: 22px 0 0;
}

.shop-breadcrumb a {
    color: var(--gray, #64748B);
    transition: color .25s ease;
}

.shop-breadcrumb a:hover,
.shop-breadcrumb a.current {
    color: var(--blue, #2563EB);
    font-weight: 600;
}

.shop-breadcrumb .current {
    color: var(--dark, #111827);
    font-weight: 600;
}

.shop-breadcrumb .sep {
    color: var(--border, #E2E8F0);
}

/* ============ زرار الإضافة للسلة (حالات) ============ */
.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .25s ease, color .25s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart .btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin .6s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.add-to-cart.is-success {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}

.add-to-cart .btn-check {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.add-to-cart .check-path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck .35s ease forwards .05s;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============ نبضة أيقونة السلة ============ */
.cart-bump {
    animation: cartBump .4s ease;
}

@keyframes cartBump {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ============ توست "تمت الإضافة" ============ */
.cart-added-toast {
    position: fixed;
    top: 90px;
    left: 24px;
    /* لو الموقع RTL خليها left، لو LTR خليها right */
    width: 320px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    z-index: 99999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-16px) scale(.97);
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    font-family: inherit;
    direction: rtl;
}

.cart-added-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    font-size: 14px;
}

.cat-header svg {
    flex-shrink: 0;
}

.cat-close {
    margin-right: auto;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 2px;
}

.cat-close:hover {
    color: #111;
}

.cat-body {
    display: flex;
    gap: 12px;
    padding: 14px;
}

.cat-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f1f4;
    flex-shrink: 0;
}

.cat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-price {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.cat-footer {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}

.cat-btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s ease;
}

.cat-btn-primary {
    background: #111;
    color: #fff;
}

.cat-btn-primary:hover {
    background: #000;
    color: #fff;
}

.cat-btn-ghost {
    background: #f3f4f6;
    color: #374151;
}

.cat-btn-ghost:hover {
    background: #e5e7eb;
}

@media (max-width: 480px) {
    .cart-added-toast {
        left: 16px;
        right: 16px;
        width: auto;
        top: 76px;
    }
}

/* ============ Cart Icon + Badge (Navbar) ============ */
.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

/* ============ Offcanvas Container ============ */
.cart-offcanvas {
    width: 400px;
    max-width: 100%;
}

.cart-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 18px 20px;
}

.cart-offcanvas .offcanvas-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
}

.cart-count-pill {
    background: #f1f1f4;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
}

/* ============ Cart Items List ============ */
.cart-list {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f2f2f4;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f1f4;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-cat {
    font-size: 12px;
    color: #9a9aa2;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 4px;
}

.cart-item-remove {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s ease;
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-item-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* ============ Cart Footer ============ */
.cart-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.cart-total-value {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}



.btn-cart-continue {
    display: block;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease;
}

.btn-cart-continue:hover {
    background: #e5e7eb;
    color: #111;
}

/* ============ Empty State ============ */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: #6b7280;
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.cart-empty h6 {
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.cart-empty p {
    font-size: 14px;
    margin-bottom: 18px;
}


.cart-offcanvas .offcanvas-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
}

.cart-close-btn {
    border: none;
    background: none;
    padding: 6px;
    cursor: pointer;
    color: #9a9aa2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease;
}

.cart-close-btn svg {
    width: 22px;
    height: 22px;
}

.cart-close-btn:hover {
    color: #111;
}

/* ============ Confirm Modal Overlay ============ */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity .25s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
}

.confirm-modal {
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px 22px;
    width: 340px;
    max-width: calc(100% - 32px);
    text-align: center;
    transform: scale(.92) translateY(10px);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-modal-icon svg {
    width: 26px;
    height: 26px;
}

.confirm-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.confirm-modal-message {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 22px;
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirm-btn {
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.confirm-btn-danger {
    background: #ef4444;
    color: #fff;
}

.confirm-btn-danger:hover {
    background: #dc2626;
}

.confirm-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.confirm-btn-cancel:hover {
    background: #e5e7eb;
}

/* ============ Cart Item Removing Animation ============ */
.cart-item {
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease, padding .35s ease, margin .35s ease;
}

.cart-item.is-removing {
    opacity: .5;
    pointer-events: none;
}

.cart-item.removed {
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.icon-btn .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    background: var(--blue);
    color: #fff;
    border-radius: 999px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.header .logo,
.logo {
    display: inline-flex !important;
    align-items: center;
    height: auto;
    line-height: normal;
}

.logo img {
    max-height: none;
    /* في حالة فيه max-height مضروب من الثيم */
    height: 53px;
    width: auto;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 10px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.cart-qty-control .qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f8f9fa;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}

.cart-qty-control .qty-btn svg {
    width: 12px;
    height: 12px;
}

.cart-qty-control .qty-btn:hover {
    background: #e9ecef;
}

.cart-qty-control .qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.cart-qty-control .quantity-field {
    width: 32px;
    height: 26px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    -moz-appearance: textfield;
}

.cart-qty-control .quantity-field::-webkit-outer-spin-button,
.cart-qty-control .quantity-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    white-space: nowrap;
}

/* إصلاح تعارض position بين .quick-add و .add-to-cart */
.pcard .imgwrap .quick-add.add-to-cart {
    position: absolute !important;
    left: 14px;
    right: 14px;
    bottom: 14px;
    opacity: 0;
    transform: translateY(10px);
}

.pcard:hover .imgwrap .quick-add.add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   إصلاحات Responsive إضافية — تحط بعد كل الكود الحالي
   ========================================================================== */

@media (max-width: 576px) {

    /* الموزاييك: أول عنصر كان بياخد مربعين × صفين، لما بيبقى عمود واحد
       بيفضل مربع ضخم فاضي. لازم يترجع لحجم عادي */
    .mtile.m-big,
    .mtile.m-tall {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 240px;
    }

    /* نفس المشكلة في الجاليري */
    .gtile.g-a,
    .gtile.g-b,
    .gtile.g-c {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid {
        grid-template-rows: auto;
    }

    .gtile {
        height: 220px;
    }

    /* قسم "تسوق حسب مزاجك": العجلة والنقط كبيرة جدًا على شاشة صغيرة */
    .dial-wrap {
        max-width: 300px;
    }

    .mood-node {
        width: 74px;
        height: 74px;
    }

    .mood-node span {
        font-size: 8px;
        padding: 10px 0 4px;
    }

    .dial-center {
        width: 40%;
        height: 40%;
    }

    .dial-center h4 {
        font-size: 16px;
    }

    .mood-copy h2 {
        font-size: 26px;
    }

    .mood-products {
        flex-wrap: wrap;
    }

    .mood-product {
        width: calc(50% - 7px);
    }

    /* الكولكشن سبليت والتحرير: بادينج ضخم مش مناسب للموبايل */
    .editorial-split .txt {
        padding: 40px 24px;
    }

    .editorial-split .txt h2 {
        font-size: 26px;
    }

    /* كولكشن جريد: الكروت طويلة أوي على الموبايل */
    .coll-card {
        height: 260px !important;
    }

    .coll-col {
        flex-direction: column !important;
    }

    /* التابس بتتكسر لو أسماؤها طويلة */
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* صفحة الشيك أوت: الدواير والخط بينهم كبار على الموبايل الصغير */
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .checkout-page {
        padding: 0 16px 60px;
    }

    /* عربة التسوق الجانبية */
    .cart-offcanvas {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero-eyebrow {
        font-size: 10.5px;
        padding: 7px 14px;
    }

    .mosaic .mtile {
        min-height: 200px;
    }

    .mood-product {
        width: 100%;
    }
}

/* ===== Checkout page — reuses the exact tokens/components already
       established on the cart page (var(--card), var(--border), var(--display),
       .btn/.btn-primary/.btn-ghost, .shop-breadcrumb, cart-item, cart-summary-card)
       so both pages read as one continuous system. ===== */

.checkout-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px 100px;
    font-family: var(--body);
    color: var(--dark);
}

.checkout-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    margin-top: 8px;
}

/* ---- steps ---- */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 22px 0 28px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card);
    border: 1.5px solid var(--border);
    color: var(--gray);
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.step-label {
    font-size: 12.5px;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

.step-active .step-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 5px var(--blue-light);
}

.step-active .step-label {
    color: var(--dark);
    font-weight: 700;
}

.step-done .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-done .step-label {
    color: var(--dark);
}

.step-line {
    width: 56px;
    height: 2px;
    background: var(--border);
    margin: 0 4px 22px;
}

.step-line-done {
    background: var(--success);
}

@media (max-width: 576px) {
    .step-line {
        width: 24px;
    }

    .step-label {
        font-size: 11px;
    }
}

/* ---- alerts (same red used for destructive states on the cart page) ---- */
.checkout-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #EF4444;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.checkout-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.checkout-alert-close {
    background: none;
    border: none;
    color: #EF4444;
    opacity: .6;
    font-size: 17px;
    line-height: 1;
    margin-inline-start: auto;
}

.checkout-alert-close:hover {
    opacity: 1;
}

/* ---- form card (same shell as .cart-list-card) ---- */
.checkout-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    margin-bottom: 20px;
}

.checkout-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.checkout-card-head h5 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card-head h5 i {
    color: var(--blue);
    font-size: 16px;
}

.checkout-card-body {
    padding: 22px;
}

.checkout-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
    background: #DCFCE7;
    color: #15803D;
}

/* ---- inputs ---- */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}

.field-label .req {
    color: #EF4444;
}

.field-group {
    position: relative;
}

.field-group>i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
    pointer-events: none;
}

.field-input {
    width: 100%;
    border: 1.5px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--r-sm);
    padding: 11px 40px 11px 14px;
    font-size: 13.5px;
    font-family: var(--body);
    color: var(--dark);
    transition: all .2s ease;
}

.field-input::placeholder {
    color: #94A3B8;
}

.field-input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--card);
    box-shadow: 0 0 0 4px var(--blue-light);
}

select.field-input {
    appearance: none;
    cursor: pointer;
}

.field-group.is-select::after {
    content: "\F282";
    font-family: bootstrap-icons !important;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 12px;
    pointer-events: none;
}

select.field-input:disabled {
    background: var(--gray-soft);
    color: #94A3B8;
    cursor: not-allowed;
}

textarea.field-input {
    resize: vertical;
    min-height: 100px;
    padding: 12px 14px;
}

/* ---- payment options ---- */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .2s ease;
    background: var(--card);
}

.payment-label:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.payment-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #DCFCE7;
    color: #15803D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.payment-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.payment-text strong {
    font-size: 13.5px;
    font-family: var(--display);
    font-weight: 600;
    color: var(--dark);
}

.payment-text small {
    color: var(--gray);
    font-size: 12px;
}

.payment-check {
    color: var(--border);
    font-size: 19px;
    transition: color .2s ease;
}

.payment-radio:checked+.payment-label {
    border-color: var(--blue);
    background: var(--blue-light);
}

.payment-radio:checked+.payment-label .payment-check {
    color: var(--blue);
}

.payment-radio:focus-visible+.payment-label {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ---- order summary: identical shell/rows to .cart-summary-card ---- */
.checkout-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    position: sticky;
    top: 120px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.checkout-summary-card h5 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 15.5px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* product lines — same visual language as .cart-item, simplified (read-only) */
.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-inline-end: 4px;
}

.summary-items::-webkit-scrollbar {
    width: 4px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.summary-item-info {
    flex: 1;
    min-width: 0;
}

.summary-item-info h6 {
    font-size: 13px;
    font-family: var(--display);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item-info small {
    font-size: 11.5px;
    color: var(--gray);
}

.summary-item-price {
    text-align: left;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.summary-item-price small {
    display: block;
    font-size: 11px;
    color: var(--gray);
    font-weight: 400;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.summary-row strong {
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.summary-total-row .label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark);
}

.summary-total-value {
    font-family: var(--display);
    font-size: 21px;
    font-weight: 700;
    color: var(--blue);
    text-align: left;
    line-height: 1.1;
}

.checkout-summary-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.cart-secure-note {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--gray);
}

.cart-secure-note svg {
    width: 13px;
    height: 13px;
    stroke: var(--gray);
    fill: none;
    stroke-width: 1.8;
}

/* ---- compact professional button sizing, matching cart-page scope ---- */
.checkout-page .btn {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    letter-spacing: .1px;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.checkout-page .btn i {
    font-size: 13px;
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(37, 99, 235, .15);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, .22);
}

.checkout-page .btn-ghost:hover {
    background: var(--bg-secondary);
}

@media (max-width: 980px) {
    .checkout-page-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .checkout-page {
        padding: 0 18px 60px;
    }

    .checkout-card-body,
    .checkout-card-head {
        padding: 16px;
    }
}

.hero-bg,
.ph {
    transform: none !important;
}

/* لو عايز نحتفظ بأنيميشن الزوم بتاعة الهيرو */
.hero-bg {
    animation: heroZoom 18s ease-out forwards;
}

@media (max-width: 767.98px) {
    .mega-panel {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92vw !important;
        max-width: 420px;
        max-height: 85vh;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        padding: 22px;
        grid-template-columns: none !important;
    }

    .mega-panel.open {
        transform: translate(-50%, -50%) !important;
    }

    .mega-links-col {
        width: 100%;
    }

    .mega-links-col .mega-head {
        margin-bottom: 10px;
    }

    /* لو فيه عمودين لينكات، خليهم جنب بعض بس مش مع الصورة */
    .mega-panel.cols-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 20px;
    }

    .mega-panel.cols-2 .mega-banner {
        grid-column: 1 / -1;
    }

    .mega-banner {
        width: 100%;
        height: 180px;
        min-height: unset;
    }

    .mega-banner .mb-content h5 {
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .mega-panel {
        width: 94vw !important;
        padding: 18px;
    }

    .mega-banner {
        height: 150px;
    }
}

/* شبكة "منتجات لها علاقة" */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 380px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}