/* Aphro's catalogue polish. This stylesheet stays scoped to the public
 * storefront and does not alter checkout/payment controls. */
body.aphro-premium-ux {
    --aphro-premium-ink: #24161e;
    --aphro-premium-muted: #746b72;
    --aphro-premium-rose: #bd536b;
    --aphro-premium-cream: #fcfaf8;
    --aphro-premium-line: rgba(36, 22, 30, .12);
    background: var(--aphro-premium-cream);
    color: var(--aphro-premium-ink);
}

/* On desktop, keep the account shortcut secondary and place the cart at the
 * far edge where the quantity badge and checkout intent are easiest to scan.
 * The mobile header already uses this order. Guest-only scoping leaves the
 * logged-in notification and sign-out controls in their existing sequence. */
@media (min-width: 901px) {
    body.aphro-premium-ux.aphro-auth-logged-out .header-actions > a.header-action[data-auth-modal-open] {
        order: 1;
    }

    body.aphro-premium-ux.aphro-auth-logged-out .header-actions > a.header-action.header-cart {
        order: 2;
    }
}

body.aphro-premium-catalog .shop-page {
    background: var(--aphro-premium-cream);
}

body.aphro-premium-catalog .shop-hero {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.aphro-premium-catalog-intro {
    width: min(1820px, calc(100% - 72px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 82px) 0 clamp(26px, 3vw, 42px);
}

.aphro-premium-catalog-intro__kicker {
    margin: 0;
    color: var(--aphro-premium-rose);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.aphro-premium-catalog-intro h1 {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--aphro-premium-ink);
    font-family: Cardo, Georgia, 'Times New Roman', serif;
    font-size: clamp(46px, 6vw, 86px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .94;
}

.aphro-premium-catalog-intro > p:last-child {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--aphro-premium-muted);
    font-size: 16px;
    line-height: 1.65;
}

.aphro-premium-collection-links {
    width: min(1820px, calc(100% - 72px));
    margin: 0 auto clamp(34px, 4vw, 56px);
}

.aphro-premium-collection-links__label {
    display: block;
    margin-bottom: 12px;
    color: var(--aphro-premium-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aphro-premium-collection-links__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aphro-premium-collection-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--aphro-premium-line);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--aphro-premium-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.aphro-premium-collection-links a:hover,
.aphro-premium-collection-links a:focus-visible,
.aphro-premium-collection-links a[aria-current="page"] {
    border-color: var(--aphro-premium-rose);
    background: var(--aphro-premium-rose);
    color: #fff;
}

.aphro-premium-search-recovery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.aphro-premium-search-recovery a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--aphro-premium-line);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--aphro-premium-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.aphro-premium-search-recovery a:hover,
.aphro-premium-search-recovery a:focus-visible {
    border-color: var(--aphro-premium-rose);
    background: var(--aphro-premium-rose);
    color: #fff;
}

.aphro-premium-catalog-trust {
    display: grid;
    width: min(1820px, calc(100% - 72px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto clamp(34px, 4vw, 56px);
    border-top: 1px solid var(--aphro-premium-line);
    border-bottom: 1px solid var(--aphro-premium-line);
}

.aphro-premium-catalog-trust > div {
    display: flex;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    padding: 13px 20px;
}

.aphro-premium-catalog-trust > div + div {
    border-left: 1px solid var(--aphro-premium-line);
}

.aphro-premium-catalog-trust strong {
    color: var(--aphro-premium-ink);
    font-size: 13px;
}

.aphro-premium-catalog-trust span {
    margin-top: 3px;
    color: var(--aphro-premium-muted);
    font-size: 12px;
}

body.aphro-premium-catalog .shop-toolbar {
    width: min(1820px, calc(100% - 72px));
    margin: 0 auto 24px;
    border-top: 1px solid var(--aphro-premium-line);
    border-bottom: 1px solid var(--aphro-premium-line);
    padding: 14px 0;
}

body.aphro-premium-catalog .product-grid {
    width: min(1820px, calc(100% - 72px));
    gap: clamp(16px, 1.6vw, 28px);
}

body.aphro-premium-catalog .product-card {
    overflow: hidden;
    border: 1px solid rgba(36, 22, 30, .11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(36, 22, 30, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.aphro-premium-catalog .product-card:hover,
body.aphro-premium-catalog .product-card:focus-within {
    border-color: rgba(189, 83, 107, .38);
    box-shadow: 0 16px 34px rgba(36, 22, 30, .10);
    transform: translateY(-3px);
}

body.aphro-premium-catalog .product-card__image {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    background: #f8f3f1;
}

body.aphro-premium-catalog .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

body.aphro-premium-catalog .product-card:hover .product-card__image img,
body.aphro-premium-catalog .product-card:focus-within .product-card__image img {
    transform: scale(1.035);
}

body.aphro-premium-catalog .product-card__body {
    display: flex;
    min-height: 168px;
    flex-direction: column;
    padding: 18px 18px 20px;
}

body.aphro-premium-catalog .product-card__title {
    min-height: 2.5em;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    color: var(--aphro-premium-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.28;
}

body.aphro-premium-catalog .product-card__price {
    min-width: 0;
    margin-top: auto;
    padding-top: 16px;
}

body.aphro-premium-catalog .product-card__price-values {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.aphro-premium-catalog .product-card__price ins,
body.aphro-premium-catalog .product-card__price del {
    white-space: nowrap;
}

body.aphro-premium-catalog .product-card__button {
    min-height: 44px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--aphro-premium-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

body.aphro-premium-catalog .product-card__button:hover,
body.aphro-premium-catalog .product-card__button:focus-visible {
    background: var(--aphro-premium-rose);
    color: #fff;
}

/* Product reviews need to remain readable when placeholder copy is replaced
 * with longer customer text. The list becomes a calm two-column block on
 * larger screens and collapses without horizontal overflow on phones. */
body.aphro-premium-ux .customer-reviews {
    margin-top: clamp(52px, 7vw, 104px);
    padding-bottom: clamp(56px, 8vw, 112px);
}

body.aphro-premium-ux .customer-reviews__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

body.aphro-premium-ux .customer-reviews__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 18px;
}

body.aphro-premium-ux .review-score {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

body.aphro-premium-ux .review-score span {
    white-space: nowrap;
}

body.aphro-premium-ux .customer-reviews__list article {
    min-width: 0;
    border: 1px solid var(--aphro-premium-line);
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: rgba(255, 255, 255, .72);
}

body.aphro-premium-ux .customer-review__author {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.aphro-premium-ux .customer-review__author,
body.aphro-premium-ux .customer-review__body,
body.aphro-premium-ux .customer-review__body p,
body.aphro-premium-ux .detail-accordion__content,
body.aphro-premium-ux .detail-accordion__content p {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.aphro-premium-ux .customer-review__author strong {
    overflow-wrap: anywhere;
}

body.aphro-premium-ux .customer-review__author span {
    color: var(--aphro-premium-rose);
    letter-spacing: .08em;
    white-space: nowrap;
}

body.aphro-premium-ux .customer-review__body {
    min-width: 0;
    margin-top: 14px;
}

body.aphro-premium-ux .customer-review__body p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--aphro-premium-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.aphro-premium-ux .customer-review-form {
    max-width: 760px;
    margin-top: 34px;
}

body.aphro-premium-ux .customer-review-form textarea,
body.aphro-premium-ux .customer-review-form input[type="text"],
body.aphro-premium-ux .customer-review-form input[type="email"],
body.aphro-premium-ux .customer-review-form select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

body.aphro-premium-ux .customer-review-form textarea {
    min-height: 150px;
    resize: vertical;
}

body.aphro-premium-ux .site-header {
    box-shadow: 0 1px 0 rgba(36, 22, 30, .04);
}

body.aphro-premium-ux .site-footer {
    border-top: 1px solid rgba(255, 255, 255, .18);
}

/* Keep consent controls readable without taking the whole mobile viewport. */
@media (max-width: 600px) {
    body.aphro-premium-ux .site-header__nav {
        padding-top: 4px;
        padding-bottom: 5px;
    }

    body.aphro-premium-ux .site-header__nav-inner {
        min-height: 46px;
    }

    body.aphro-premium-ux .mobile-inline-search {
        padding-bottom: 4px;
    }

    body.aphro-premium-ux .site-search--mobile-inline {
        height: 48px;
        min-height: 48px;
        margin: 2px 0;
        padding-right: 16px;
        padding-left: 16px;
    }

    body.aphro-premium-ux .site-search--mobile-inline input[type="search"] {
        height: 38px;
        padding-right: 60px;
        font-size: 14px;
    }

    body.aphro-premium-ux .cky-consent-container,
    body.aphro-premium-ux .cky-consent-container.cky-box-bottom-left,
    body.aphro-premium-ux .cky-consent-container.cky-box-bottom-right {
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        border-radius: 18px !important;
    }

    body.aphro-premium-ux .cky-consent-container .cky-consent-bar {
        padding: 13px 12px !important;
    }

    body.aphro-premium-ux .cky-consent-container .cky-notice-des,
    body.aphro-premium-ux .cky-consent-container .cky-notice-des p {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    body.aphro-premium-ux .cky-notice-btn-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.aphro-premium-ux .cky-notice-btn-wrapper .cky-btn-customize {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    body.aphro-premium-ux .cky-notice-btn-wrapper .cky-btn-reject {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.aphro-premium-ux .cky-notice-btn-wrapper .cky-btn-accept {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.aphro-premium-ux .cky-consent-container .cky-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        margin: 0 !important;
        font-size: 12px !important;
        white-space: normal !important;
    }

    .aphro-premium-catalog-intro {
        width: calc(100% - 32px);
        padding: 38px 0 24px;
    }

    .aphro-premium-catalog-intro h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .aphro-premium-collection-links {
        width: calc(100% - 32px);
        margin-bottom: 34px;
    }

    .aphro-premium-collection-links__items {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .aphro-premium-collection-links a {
        flex: 0 0 auto;
    }

    .aphro-premium-catalog-trust {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        margin-bottom: 34px;
    }

    .aphro-premium-catalog-trust > div {
        min-height: 0;
        padding: 12px 14px;
    }

    .aphro-premium-catalog-trust > div + div {
        border-top: 1px solid var(--aphro-premium-line);
        border-left: 0;
    }

    body.aphro-premium-catalog .shop-toolbar,
    body.aphro-premium-catalog .product-grid {
        width: calc(100% - 32px);
    }

    body.aphro-premium-catalog .shop-toolbar {
        margin-bottom: 18px;
    }

    body.aphro-premium-catalog .product-card {
        border-radius: 16px;
    }

    body.aphro-premium-catalog .product-card__body {
        min-height: 164px;
        padding: 14px 12px 14px;
    }

    body.aphro-premium-catalog .product-card__title {
        font-size: 14px;
    }

    body.aphro-premium-ux .customer-reviews__list {
        grid-template-columns: 1fr;
    }

    body.aphro-premium-ux .customer-reviews__list article {
        padding: 16px;
    }
}

.aphro-premium-404 {
    width: min(100% - 40px, 920px);
    margin: 0 auto;
    padding: clamp(90px, 13vw, 180px) 0;
    text-align: center;
}

.aphro-premium-404__kicker {
    margin: 0;
    color: var(--aphro-premium-rose);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.aphro-premium-404 h1 {
    margin: 16px 0 0;
    color: var(--aphro-premium-ink);
    font-family: Cardo, Georgia, serif;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .94;
}

.aphro-premium-404 p:not(.aphro-premium-404__kicker) {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--aphro-premium-muted);
    font-size: 16px;
    line-height: 1.65;
}

.aphro-premium-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.aphro-premium-404__actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--aphro-premium-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aphro-premium-404__actions a:last-child {
    border: 1px solid var(--aphro-premium-line);
    background: transparent;
    color: var(--aphro-premium-ink);
}

/* Account pages: reduce decorative noise and keep one clear action per row.
 * These rules are limited to the signed-in account shell; checkout and payment
 * controls keep the theme's existing presentation and behavior. */
.woocommerce-account .account-page {
    background: var(--aphro-premium-cream);
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 28px;
}

.woocommerce-account .account-sidebar {
    border-color: var(--aphro-premium-line);
    border-radius: 18px;
    padding: 16px;
    font-size: 15px;
}

.woocommerce-account .account-user {
    border-radius: 14px;
    padding: 16px;
    grid-template-columns: 44px 1fr;
    gap: 4px 10px;
}

.woocommerce-account .account-user img {
    width: 42px;
    height: 42px;
}

.woocommerce-account .account-user strong {
    font-size: 18px;
}

.woocommerce-account .account-user span {
    font-size: 13px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-top: 36px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    gap: 12px;
    padding: 13px 14px;
    border-top-color: rgba(36, 22, 30, .08);
    font-size: 15px;
    line-height: 1.25;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    border-radius: 10px;
    background: #f7e7eb;
    color: var(--aphro-premium-ink);
}

.woocommerce-account .account-card--overview,
.woocommerce-account .account-card--order-overview,
.woocommerce-account .account-card--orders-list {
    border-color: var(--aphro-premium-line);
    border-radius: 18px;
}

.woocommerce-account .account-card--overview h2,
.woocommerce-account .account-card--order-overview h2,
.woocommerce-account .account-card--orders-list h3 {
    background: #f7f3f1;
    color: var(--aphro-premium-ink);
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.15;
}

.woocommerce-account .account-card--overview > p,
.woocommerce-account .account-card--order-overview > p,
.woocommerce-account .account-card--orders-list > p:not(.pager) {
    background: #f7f3f1;
    color: var(--aphro-premium-muted);
    font-size: 15px;
    line-height: 1.5;
}

.woocommerce-account .account-card--overview .stats-row,
.woocommerce-account .account-card--order-overview .stats-row {
    gap: 24px;
    padding: 24px 34px 30px;
}

.woocommerce-account .account-card--overview .stats-row strong,
.woocommerce-account .account-card--order-overview .stats-row strong {
    width: 76px;
    height: 76px;
    border: 1px solid var(--aphro-premium-line);
    background: #fff;
    color: var(--aphro-premium-ink);
    font-size: 26px;
}

.woocommerce-account .account-card--order-overview .stats-row div:nth-child(2) strong,
.woocommerce-account .account-card--order-overview .stats-row div:nth-child(3) strong {
    background: #fff;
}

.woocommerce-account .account-card--overview .stats-row span,
.woocommerce-account .account-card--order-overview .stats-row span {
    color: var(--aphro-premium-muted);
    font-size: 14px;
}

.woocommerce-account .order-item__actions {
    grid-template-columns: auto;
    justify-content: start;
    gap: 10px;
}

.woocommerce-account .order-item__actions a {
    min-width: 124px;
    height: 42px;
    border-color: var(--aphro-premium-line);
    border-radius: 999px;
    padding: 0 18px;
    background: var(--aphro-premium-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.woocommerce-account .order-item__actions a:hover,
.woocommerce-account .order-item__actions a:focus-visible {
    background: var(--aphro-premium-rose);
    color: #fff;
}

@media (max-width: 900px) {
    .woocommerce-account .account-page {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-top: 20px;
    }

    .woocommerce-account .account-card--overview .stats-row,
    .woocommerce-account .account-card--order-overview .stats-row {
        padding-right: 20px;
        padding-left: 20px;
    }
}
