/*
 * ORA Rituals Shop
 * Custom development by TMF Digital
 */

:root {
    --ora-shop-ivory: #f4f1ea;
    --ora-shop-paper: #faf8f4;
    --ora-shop-ink: #17120f;
    --ora-shop-brown: #21150f;
    --ora-shop-gold: #ad8654;
    --ora-shop-line: rgba(46, 33, 24, .14);
    --ora-shop-ease: cubic-bezier(.22,.61,.36,1);
}

.ora-shop-page .site-header,
.ora-shop-page .site-footer,
.ora-shop-page .site-content > .content-area > .site-main > header,
.ora-shop-page .woocommerce-breadcrumb,
.ora-shop-page .woocommerce-products-header,
.ora-shop-page .woocommerce-result-count,
.ora-shop-page .woocommerce-ordering {
    display: none !important;
}

/*
 * Shop CSS is loaded only on the main product archive, so the layout reset can
 * safely target GeneratePress directly. This avoids the parent theme container
 * width surviving when WooCommerce resolves /shop/ as a product archive before
 * custom body classes are available.
 */
.ora-shop-page,
body.woocommerce-shop,
body.post-type-archive-product,
.ora-shop-page #page,
body.woocommerce-shop #page,
body.post-type-archive-product #page,
#page.site,
#page.grid-container,
.ora-shop-page .site-content,
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
.ora-shop-page .content-area,
body.woocommerce-shop .content-area,
body.post-type-archive-product .content-area,
.ora-shop-page .site-main,
body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: var(--ora-shop-paper);
}

#page.site,
#page.grid-container,
.site-content,
.content-area,
.site-main,
.inside-article {
    box-sizing: border-box;
}

/*
 * GeneratePress renders .site-content as a flex container. Our bespoke shop
 * template places the ORA navigation and shop main directly inside it, so the
 * parent flex layout would otherwise shrink them into two side-by-side halves.
 * Force a normal document flow only on the shop archive.
 */
.ora-shop-page .site-content,
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content {
    display: block !important;
}

.ora-shop-page .ora-product-nav,
body.woocommerce-shop .ora-product-nav,
body.post-type-archive-product .ora-product-nav,
.ora-shop-page .ora-shop,
body.woocommerce-shop .ora-shop,
body.post-type-archive-product .ora-shop {
    flex: none !important;
    min-width: 0 !important;
}

.ora-shop-page .inside-article,
body.woocommerce-shop .inside-article,
body.post-type-archive-product .inside-article { padding: 0 !important; }

.ora-shop-page .grid-container,
body.woocommerce-shop .grid-container,
body.post-type-archive-product .grid-container,
#page.grid-container { max-width: none !important; }

/* Shared ORA navigation used by product and shop templates. */
.ora-shop-page .ora-product-nav,
body.woocommerce-shop .ora-product-nav,
body.post-type-archive-product .ora-product-nav {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    border-bottom: 1px solid var(--ora-shop-line);
    background: rgba(250,247,241,.93);
    backdrop-filter: blur(14px);
}
.admin-bar.ora-shop-page .ora-product-nav,
body.admin-bar.woocommerce-shop .ora-product-nav,
body.admin-bar.post-type-archive-product .ora-product-nav { top: 32px; }
.ora-shop-page .ora-product-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    padding: 0 clamp(24px, 3vw, 54px);
}
.ora-shop-page .ora-product-nav__menu,
.ora-shop-page .ora-product-nav__utilities {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.ora-shop-page .ora-product-nav__utilities { justify-content: flex-end; }
.ora-shop-page .ora-product-nav a,
.ora-shop-page .ora-product-nav button {
    color: var(--ora-shop-ink);
    font: 600 10px/1.2 Arial, sans-serif;
    letter-spacing: .22em;
    text-decoration: none;
    text-transform: uppercase;
}
.ora-shop-page .ora-product-nav button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.ora-shop-page .ora-product-nav__brand {
    display: grid;
    justify-items: center;
    line-height: 1;
    text-decoration: none;
}
.ora-shop-page .ora-product-nav__brand-main { font-family: Georgia, serif; font-size: 31px; letter-spacing: .22em; }
.ora-shop-page .ora-product-nav__brand-sub { margin-top: 6px; font-family: Georgia, serif; font-size: 11px; letter-spacing: .34em; }
.ora-shop-page .ora-product-nav__toggle { display: none; }
.ora-shop-page .ora-product-mobile-menu,
.ora-shop-page .ora-product-search { background: var(--ora-shop-paper); border-top: 1px solid var(--ora-shop-line); }
.ora-shop-page .ora-product-search { padding: 20px clamp(24px,3vw,54px); }
.ora-shop-page .ora-product-search form { max-width: 720px; margin: auto; }
.ora-shop-page .ora-product-search input[type="search"] { width: 100%; border: 0; border-bottom: 1px solid #6f6258; background: transparent; }

.ora-shop {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    background: var(--ora-shop-paper);
    color: var(--ora-shop-ink);
}

.ora-shop-eyebrow {
    margin: 0 0 16px;
    color: var(--ora-shop-gold);
    font: 600 10px/1.3 Arial, sans-serif;
    letter-spacing: .3em;
    text-transform: uppercase;
}

/* Contained cinematic hero. */
.ora-shop-hero {
    position: relative;
    width: min(92vw, 1460px);
    aspect-ratio: 2048 / 650;
    min-height: 0;
    margin: clamp(34px, 4vw, 70px) auto clamp(82px, 7vw, 122px);
    overflow: hidden;
    background: #100c0a;
}
.ora-shop-hero__media,
.ora-shop-hero__media img,
.ora-shop-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ora-shop-hero__media img {
    object-fit: contain;
    object-position: center center;
    background: #100c0a;
}
.ora-shop-hero__shade {
    background: linear-gradient(90deg, rgba(10,7,5,.04) 0%, rgba(10,7,5,.10) 42%, rgba(10,7,5,.72) 68%, rgba(10,7,5,.92) 100%);
}
.ora-shop-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(41%, 560px);
    min-height: 100%;
    margin-left: auto;
    padding: clamp(34px, 4vw, 66px);
    color: #fffaf2;
}
.ora-shop-hero__content h1 {
    max-width: 9.5ch;
    margin: 0 0 18px;
    color: inherit;
    font: 400 clamp(40px, 3.9vw, 68px)/.95 Georgia, serif;
    letter-spacing: -.035em;
}
.ora-shop-hero__content > p:last-child {
    max-width: 42ch;
    margin: 0;
    color: rgba(255,250,242,.82);
    font: 400 15px/1.65 Arial, sans-serif;
}

.ora-shop-collection {
    width: min(90vw, 1360px);
    margin: 0 auto clamp(110px, 10vw, 170px);
}
.ora-shop-collection__intro {
    max-width: 760px;
    margin: 0 auto clamp(52px, 5vw, 76px);
    text-align: center;
}
.ora-shop-collection__intro h2 {
    margin: 0 0 20px;
    font: 400 clamp(42px, 4vw, 66px)/1 Georgia, serif;
    letter-spacing: -.025em;
}
.ora-shop-collection__intro > p:last-child {
    max-width: 56ch;
    margin: 0 auto;
    color: #675d56;
    font: 400 15px/1.7 Arial, sans-serif;
}

/* Single-product signature composition: emotion on the left, commerce on the right. */
.ora-shop-signature {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
    width: min(100%, 1180px);
    margin: 0 auto;
    background: #17110d;
}
.ora-shop-signature__story {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #120d09;
}
.ora-shop-signature__story::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10,7,5,.04) 0%, rgba(10,7,5,0) 72%, rgba(10,7,5,.14) 100%);
}
.ora-shop-signature__story-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center;
    transition: transform .9s var(--ora-shop-ease), filter .9s var(--ora-shop-ease);
}
.ora-shop-signature__commerce {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    background: #f1ede7;
}
.ora-shop-signature__product-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 440px;
    padding: clamp(28px, 3vw, 48px);
    overflow: hidden;
    background: #f3efe9;
}
.ora-shop-signature__packshot {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    transition: transform .9s var(--ora-shop-ease), filter .9s var(--ora-shop-ease);
}
.ora-shop-signature__body {
    padding: 30px clamp(28px, 3vw, 46px) 36px;
    background: #fbf8f2;
}
.ora-shop-signature__body h3 {
    margin: 0 0 7px;
    font: 400 clamp(29px, 2.4vw, 40px)/1.03 Georgia, serif;
    letter-spacing: -.025em;
}
.ora-shop-signature__body h3 a { color: var(--ora-shop-ink); text-decoration: none; }
.ora-shop-signature__subtitle { margin: 0; color: #655b54; font: 400 14px/1.45 Arial, sans-serif; }
.ora-shop-signature__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ora-shop-line);
}
.ora-shop-signature__price { color: var(--ora-shop-ink); font: 650 17px/1.3 Arial, sans-serif; }
.ora-shop-signature__price del { opacity: .48; font-weight: 400; }
.ora-shop-signature__price ins { text-decoration: none; }

@media (hover:hover) and (pointer:fine) {
    .ora-shop-signature__story:hover .ora-shop-signature__story-image,
    .ora-shop-signature__product-image:hover .ora-shop-signature__packshot { transform: scale(1.018); filter: brightness(1.025); }
    .ora-shop-signature__body h3 a:hover { color: #8b6137; }
}

.ora-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 2.2vw, 34px);
    align-items: start;
}
.ora-shop-grid--count-1 { grid-template-columns: minmax(300px, 440px); justify-content: center; }
.ora-shop-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }
.ora-shop-grid--count-3 .ora-shop-card--featured { grid-column: span 2; }

.ora-shop-card { min-width: 0; }
.ora-shop-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2eee8;
}
.ora-shop-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .85s var(--ora-shop-ease), transform .9s var(--ora-shop-ease), filter .85s var(--ora-shop-ease);
}
.ora-shop-card__image--secondary { opacity: 0; }
.ora-shop-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 7px 9px;
    background: #17120f;
    color: #fff;
    font: 700 9px/1 Arial, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ora-shop-card__body { padding: 20px 2px 0; }
.ora-shop-card__title {
    margin: 0 0 6px;
    font: 400 clamp(24px, 1.8vw, 31px)/1.05 Georgia, serif;
}
.ora-shop-card__title a { color: var(--ora-shop-ink); text-decoration: none; }
.ora-shop-card__subtitle { margin: 0; color: #655b54; font: 400 13px/1.45 Arial, sans-serif; }
.ora-shop-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ora-shop-line);
}
.ora-shop-card__price { color: var(--ora-shop-ink); font: 600 15px/1.3 Arial, sans-serif; }
.ora-shop-card__price del { opacity: .48; font-weight: 400; }
.ora-shop-card__price ins { text-decoration: none; }
.ora-shop-card__cta {
    color: var(--ora-shop-gold);
    font: 600 10px/1 Arial, sans-serif;
    letter-spacing: .17em;
    text-decoration: none;
    text-transform: uppercase;
}
.ora-shop-card__cta span { margin-left: 8px; }
.ora-shop-card--featured .ora-shop-card__title { font-size: clamp(28px, 2.3vw, 38px); }

@media (hover:hover) and (pointer:fine) {
    .ora-shop-card__media:hover .ora-shop-card__image--primary { opacity: 0; transform: scale(1.018); }
    .ora-shop-card__media:hover .ora-shop-card__image--secondary { opacity: 1; transform: scale(1.018); }
    .ora-shop-card__media:not(:has(.ora-shop-card__image--secondary)):hover .ora-shop-card__image--primary { opacity: 1; transform: scale(1.018); filter: brightness(1.03); }
    .ora-shop-card__title a:hover, .ora-shop-card__cta:hover { color: #8b6137; }
}

.ora-shop-pagination { margin-top: 68px; }
.ora-shop-pagination .page-numbers { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ora-shop-pagination a,
.ora-shop-pagination span { display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--ora-shop-line); color: var(--ora-shop-ink); text-decoration: none; }
.ora-shop-pagination .current { background: var(--ora-shop-ink); color: #fff; }
.ora-shop-empty { padding: 80px 0; text-align: center; }

.ora-shop-closing {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #0f0b08;
    color: #fff;
}
.ora-shop-closing > img,
.ora-shop-closing__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ora-shop-closing > img { object-fit: cover; object-position: center 62%; }
.ora-shop-closing__shade { background: rgba(8,5,3,.40); }
.ora-shop-closing__content {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 280px;
    padding: 38px 20px;
    text-align: center;
}
.ora-shop-closing__brand { display: grid; color: #fff; text-decoration: none; }
.ora-shop-closing__brand span { font: 400 32px/1 Georgia, serif; letter-spacing: .28em; }
.ora-shop-closing__brand small { margin-top: 5px; font: 400 11px/1 Georgia, serif; letter-spacing: .31em; }
.ora-shop-closing__content p { margin: 18px 0 14px; font: 600 9px/1.4 Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.ora-shop-closing__content > small { opacity: .65; font: 400 10px/1.4 Arial, sans-serif; }

@media (max-width: 1100px) {
    .ora-shop-signature { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); }
    .ora-shop-signature__story-image { min-height: 560px; }
    .ora-shop-signature__product-image { min-height: 390px; }
    .ora-shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ora-shop-grid--count-3 .ora-shop-card--featured { grid-column: span 2; }
    .ora-shop-hero { aspect-ratio: 16 / 5.8; }
    .ora-shop-hero__content { width: 47%; padding: 26px 42px; }
    .ora-shop-hero__content h1 { font-size: clamp(40px, 5vw, 56px); }
}

@media (max-width: 782px) {
    .admin-bar.ora-shop-page .ora-product-nav,
    body.admin-bar.woocommerce-shop .ora-product-nav,
    body.admin-bar.post-type-archive-product .ora-product-nav { top: 46px; }
    .ora-shop-page .ora-product-nav__inner {
        grid-template-columns: 1fr auto 1fr;
        min-height: 66px;
        padding: 0 18px;
    }
    .ora-shop-page .ora-product-nav__left,
    .ora-shop-page .ora-product-nav__utilities { display: none; }
    .ora-shop-page .ora-product-nav__brand { grid-column: 2; }
    .ora-shop-page .ora-product-nav__brand-main { font-size: 27px; }
    .ora-shop-page .ora-product-nav__brand-sub { font-size: 10px; }
    .ora-shop-page .ora-product-nav__toggle {
        display: block;
        grid-column: 3;
        justify-self: end;
        position: relative;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
    }
    .ora-shop-page .ora-product-nav__toggle span:not(.screen-reader-text) {
        position: absolute;
        left: 8px;
        width: 26px;
        height: 1px;
        background: #17120f;
    }
    .ora-shop-page .ora-product-nav__toggle span:first-child { top: 15px; }
    .ora-shop-page .ora-product-nav__toggle span:nth-child(2) { top: 25px; }
    .ora-shop-page .ora-product-mobile-menu { padding: 20px; }
    .ora-shop-page .ora-product-mobile-menu__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
    .ora-shop-page .ora-product-mobile-menu__utilities { display: flex; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ora-shop-line); }

    .ora-shop-hero {
        display: grid;
        width: calc(100% - 20px);
        aspect-ratio: auto;
        min-height: 0;
        margin: 12px auto 54px;
        overflow: hidden;
        background: #160f0b;
    }
    .ora-shop-hero__media { position: relative; aspect-ratio: 16 / 10; }
    .ora-shop-hero__media img { object-fit: cover; object-position: 31% center; }
    .ora-shop-hero__shade { background: linear-gradient(180deg, rgba(10,7,5,0) 54%, rgba(10,7,5,.58) 100%); }
    .ora-shop-hero__content {
        width: 100%;
        min-height: 0;
        padding: 26px 20px 30px;
        color: #fffaf2;
    }
    .ora-shop-hero .ora-shop-eyebrow { margin-bottom: 12px; }
    .ora-shop-hero__content h1 {
        max-width: 9.5ch;
        margin-bottom: 14px;
        font-size: clamp(36px, 10.5vw, 50px);
        line-height: .97;
    }
    .ora-shop-hero__content > p:last-child { font-size: 13.5px; line-height: 1.65; }

    .ora-shop-collection { width: calc(100% - 24px); margin-bottom: 72px; }
    .ora-shop-collection__intro { margin-bottom: 30px; }
    .ora-shop-collection__intro h2 { margin-bottom: 14px; font-size: clamp(34px, 9vw, 44px); }
    .ora-shop-collection__intro > p:last-child { font-size: 14px; line-height: 1.6; }
    .ora-shop-signature { grid-template-columns: 1fr; width: 100%; background: transparent; }
    .ora-shop-signature__story-image { min-height: 0; aspect-ratio: 1 / 1; }
    .ora-shop-signature__commerce { grid-template-rows: auto auto; background: transparent; }
    .ora-shop-signature__product-image { min-height: 0; aspect-ratio: 1 / 1; padding: 20px; }
    .ora-shop-signature__packshot { max-height: none; }
    .ora-shop-signature__body { padding: 22px 2px 10px; background: transparent; }
    .ora-shop-signature__body h3 { margin-bottom: 6px; font-size: clamp(28px, 8vw, 34px); }
    .ora-shop-signature__subtitle { font-size: 13px; }
    .ora-shop-signature__meta { align-items: center; margin-top: 18px; padding-top: 16px; }
    .ora-shop-signature__price { font-size: 16px; }
    .ora-shop-card__cta { font-size: 9px; letter-spacing: .15em; }
    .ora-shop-grid,
    .ora-shop-grid--count-1,
    .ora-shop-grid--count-2 { grid-template-columns: 1fr; }
    .ora-shop-grid--count-3 .ora-shop-card--featured { grid-column: auto; }
    .ora-shop-card__body { padding-top: 16px; }
    .ora-shop-card__title,
    .ora-shop-card--featured .ora-shop-card__title { font-size: 27px; }
}


@media (max-width: 480px) {
    .ora-shop-page .ora-product-nav__inner { min-height: 62px; padding-inline: 14px; }
    .ora-shop-page .ora-product-nav__brand-main { font-size: 25px; }
    .ora-shop-page .ora-product-nav__brand-sub { margin-top: 4px; font-size: 9px; }
    .ora-shop-hero { margin-bottom: 48px; }
    .ora-shop-hero__media { aspect-ratio: 4 / 3; }
    .ora-shop-hero__media img { object-position: 29% center; }
    .ora-shop-hero__content { padding: 24px 18px 28px; }
    .ora-shop-hero__content h1 { font-size: clamp(35px, 10.8vw, 46px); }
    .ora-shop-collection { width: calc(100% - 20px); margin-bottom: 64px; }
    .ora-shop-signature__product-image { padding: 16px; }
    .ora-shop-signature__body h3 { font-size: 29px; }
    .ora-shop-signature__meta { gap: 14px; }
    .ora-shop-closing,
    .ora-shop-closing__content { min-height: 210px; }
    .ora-shop-closing__brand span { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .ora-shop-card__image { transition: none !important; }
}
