/*
 * WAHHID desktop refinement layer.
 * This file is loaded only at 1024px and wider; the approved mobile layout
 * remains governed by the existing mobile styles.
 */

:root {
    --wf-desktop-max: 1520px;
    --wf-desktop-pad: clamp(28px, 4vw, 72px);
    --wf-desktop-gap: clamp(18px, 1.7vw, 30px);
}

html,
body {
    overflow-x: clip;
}

body {
    font-size: 16px;
}

/* Header */
.wf-header__main {
    width: min(100%, var(--wf-desktop-max));
    min-height: 124px;
    margin-inline: auto;
    padding-inline: var(--wf-desktop-pad);
    grid-template-columns: 120px minmax(440px, 1fr) minmax(310px, 360px);
    gap: 28px;
}

.wf-logo {
    width: 72px;
    height: 76px;
}

.wf-logo__img {
    width: 68px;
    height: 72px;
}

.wf-desktop-nav {
    gap: clamp(24px, 2.4vw, 42px);
    font-size: 15px;
}

.wf-header-actions {
    gap: 18px;
}

.wf-desktop-search {
    width: 166px;
    height: 38px;
    border-color: #b8b8b8;
    border-radius: 10px;
    padding-inline: 11px;
}

.wf-desktop-search input {
    font-size: 14px;
}

.wf-icon-button {
    width: 28px;
    height: 28px;
}

.wf-categories {
    width: min(100%, var(--wf-desktop-max));
    min-height: 48px;
    margin-inline: auto;
    padding: 0 var(--wf-desktop-pad) 10px;
    justify-content: space-between;
    gap: 12px;
}

.wf-categories a {
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 14px;
    transition: color .18s ease, background-color .18s ease;
}

.wf-categories a:hover,
.wf-categories a:focus-visible {
    color: #fff;
    background: #050505;
}

/* Home */
.wf-main {
    max-width: 1920px;
    margin-inline: auto;
}

.wf-hero {
    height: clamp(520px, 39vw, 720px);
    min-height: 520px;
    border-radius: 0 0 12px 12px;
}

.wf-hero__copy {
    left: var(--wf-desktop-pad);
    max-width: 620px;
}

.wf-hero__copy h1 {
    margin-bottom: 20px;
    font-size: clamp(34px, 2.6vw, 52px);
}

.wf-hero__copy p {
    font-size: 17px;
}

.wf-editorial {
    gap: 14px;
    padding: 18px var(--wf-desktop-pad) 44px;
}

.wf-editorial-card {
    border-radius: 12px;
}

.wf-editorial-card__image {
    aspect-ratio: 4 / 5;
}

.wf-editorial-card__image img {
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.wf-editorial-card:hover .wf-editorial-card__image img {
    transform: scale(1.025);
}

.wf-buy {
    left: 28px;
    bottom: 30px;
    min-width: 126px;
    height: 48px;
    font-size: 17px;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.wf-buy:hover,
.wf-buy:focus-visible {
    color: #fff !important;
    background: #050505;
    opacity: 1;
    transform: translateY(-2px);
}

.wf-new {
    padding: 34px var(--wf-desktop-pad) 88px;
}

.wf-new__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.wf-new__heading h2 {
    margin: 0;
    font-size: clamp(28px, 2.1vw, 38px);
    line-height: 1;
}

.wf-new__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-new__arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.wf-new__arrow:hover,
.wf-new__arrow:focus-visible {
    color: #fff;
    background: #050505;
    border-color: #050505;
}

.wf-new__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wf-new__viewport {
    touch-action: pan-y;
}

.wf-new__track {
    gap: var(--wf-desktop-gap);
}

.wf-product-card {
    flex-basis: calc((min(100vw, var(--wf-desktop-max)) - (2 * var(--wf-desktop-pad)) - (3 * var(--wf-desktop-gap))) / 4);
    width: calc((min(100vw, var(--wf-desktop-max)) - (2 * var(--wf-desktop-pad)) - (3 * var(--wf-desktop-gap))) / 4);
    min-width: 270px;
}

.wf-product-card__image {
    border-radius: 12px;
}

.wf-product-card__name {
    margin-top: 12px;
    font-size: 18px;
}

.wf-product-card__price {
    font-size: 17px;
}

.wf-story {
    padding: 80px var(--wf-desktop-pad);
}

.wf-story__inner {
    width: min(1080px, 76vw);
}

.wf-story h2 {
    margin-bottom: 34px;
    font-size: 36px;
}

.wf-story__text {
    columns: 2;
    column-gap: 64px;
    font-size: 16px;
    line-height: 1.62;
    font-weight: 400;
}

.wf-story__text p {
    break-inside: avoid;
    margin-bottom: 22px;
}

.wf-story__image {
    height: clamp(240px, 20vw, 340px);
    margin-top: 36px;
    border-radius: 10px;
}

/* Catalog and search results */
.wf-category,
.wf-wishlist-page {
    width: min(100%, var(--wf-desktop-max)) !important;
    margin-inline: auto !important;
    padding: 48px var(--wf-desktop-pad) 96px !important;
}

.wf-category__top {
    margin: 0 0 34px !important;
}

.wf-category__title,
.wf-wishlist-page__title {
    font-size: clamp(34px, 3vw, 48px) !important;
    font-weight: 500 !important;
}

.wf-category-filter {
    min-height: 42px;
    margin-top: 22px !important;
    padding: 8px 0 !important;
    font-size: 16px !important;
}

.wf-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: var(--wf-desktop-gap) !important;
    row-gap: 54px !important;
}

.wf-category-card__image-link {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 12px !important;
    background: #f7f7f7;
}

.wf-category-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform .35s ease;
}

.wf-category-card:hover .wf-category-card__image {
    transform: scale(1.018);
}

.wf-category-card__title {
    margin-top: 12px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

.wf-category-card__price {
    margin-top: 4px !important;
    font-size: 17px !important;
}

.wf-category-card__wishlist {
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.9) !important;
}

.wf-category-card__wishlist svg {
    width: 19px !important;
    height: 19px !important;
}

.wf-filter-panel {
    top: 0;
    bottom: 0;
    width: min(460px, 38vw);
    height: 100dvh;
    max-height: none;
}

/* Product */
.wf-product {
    width: min(100%, var(--wf-desktop-max));
    margin-inline: auto;
    padding: 42px var(--wf-desktop-pad) 96px;
}

.wf-product__main {
    grid-template-columns: minmax(0, 58%) minmax(360px, 42%);
    gap: clamp(36px, 4vw, 72px);
}

.wf-product__desktop-gallery {
    gap: 14px;
}

.wf-product__desktop-image {
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    background: #f7f7f7;
}

.wf-product__desktop-image img {
    object-fit: contain;
}

.wf-product__info {
    padding: 4px 0 60px;
}

.wf-product__sticky {
    top: 28px;
    max-width: 520px;
}

.wf-product__breadcrumb {
    margin-bottom: 48px;
    font-size: 13px;
}

.wf-product__title {
    font-size: clamp(34px, 3vw, 48px);
}

.wf-product__price {
    margin: 28px 0 54px;
    font-size: 20px;
}

.wf-product__buy table.variations th label,
.wf-product__buy .single-quantity-label,
.wf-product__accordion summary,
.wf-product__accordion-content {
    font-size: 15px !important;
}

.wf-product__buy .thwvsf-wrapper-item-li {
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding-inline: 11px !important;
}

.wf-product__buy .thwvsf-item-span {
    font-size: 14px !important;
}

.wf-product__buy .quantity .qty {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 16px !important;
}

.wf-product__buy .single_add_to_cart_button {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
    font-size: 14px !important;
    background: #050505 !important;
}

.wf-product__wishlist-row {
    margin: 30px 0 24px;
}

.wf-product__accordion summary {
    min-height: 54px;
}

.wf-product__socials {
    margin-top: 42px;
}

.wf-product-viewed {
    padding: 76px 0 0;
}

.wf-product-viewed h2 {
    font-size: 24px;
}

.wf-product-viewed__grid {
    gap: var(--wf-desktop-gap);
}

/* Informational pages */
.wf-about__story,
.wf-delivery,
.wf-stores__section,
.wf-contacts__section,
.wf-faq__section,
.wf-privacy__content,
.wf-cookie__content {
    padding-left: var(--wf-desktop-pad) !important;
    padding-right: var(--wf-desktop-pad) !important;
}

.wf-about__story-inner,
.wf-delivery__tabs,
.wf-stores__container,
.wf-contacts__container,
.wf-faq__container,
.wf-privacy__container,
.wf-cookie__container {
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
}

.wf-delivery {
    width: min(100%, var(--wf-desktop-max));
    margin-inline: auto;
    padding-top: 72px !important;
    padding-bottom: 100px !important;
}

.wf-delivery__title {
    width: min(100%, 1280px);
    margin: 0 auto 34px !important;
    font-size: clamp(38px, 4vw, 60px) !important;
}

.wf-delivery__panel {
    font-size: 18px !important;
    line-height: 1.65 !important;
}

.wf-stores__grid,
.wf-contacts__grid {
    gap: 24px !important;
}

/* Cart and Checkout Blocks */
body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-account main,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
    width: min(100%, 1440px) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    padding-left: var(--wf-desktop-pad) !important;
    padding-right: var(--wf-desktop-pad) !important;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
    padding-top: 48px;
    padding-bottom: 88px;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-cart .wc-block-components-sidebar-layout {
    gap: clamp(36px, 5vw, 84px);
}

body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-cart .wc-block-components-main {
    width: 64%;
}

body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
    width: 36%;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form input {
    min-height: 54px;
    font-size: 16px;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    min-height: 56px !important;
    font-size: 16px !important;
}

/* Desktop footer */
.wf-footer {
    border-top: 1px solid #e7e7e7;
}

.wf-footer__desktop {
    width: min(100%, var(--wf-desktop-max));
    margin-inline: auto;
    grid-template-columns: .72fr 1.08fr 1.12fr 1.2fr 1.65fr;
    gap: clamp(30px, 3vw, 62px);
    padding: 56px var(--wf-desktop-pad) 68px;
    font-size: 14px;
    line-height: 1.45;
}

.wf-footer-col {
    gap: 11px;
}

.wf-footer-col h3 {
    margin-bottom: 7px;
    font-size: 16px;
}

.wf-footer-contact span {
    display: block;
}

.wf-footer-logo {
    width: 92px;
    height: 92px;
}

.wf-footer-brand p {
    font-size: 15px;
    line-height: 1.52;
    font-weight: 400;
}

@media (min-width: 1024px) and (max-width: 1240px) {
    :root {
        --wf-desktop-pad: 28px;
        --wf-desktop-gap: 18px;
    }

    .wf-header__main {
        grid-template-columns: 90px minmax(420px, 1fr) minmax(290px, 320px);
    }

    .wf-desktop-nav {
        gap: 20px;
        font-size: 14px;
    }

    .wf-categories a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .wf-footer__desktop {
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-editorial-card__image img,
    .wf-category-card__image {
        transition: none;
    }
}
