/* Premium produktkort i butikens kategorier */
.tax-product_cat {
    --bb-shop-ivory: #fbf8f3;
    --bb-shop-champagne: #c7a46a;
    --bb-shop-rose: #916965;
    --bb-shop-espresso: #332724;
}

.tax-product_cat .category-page-title {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fbf8f3 0%, #f4ece5 100%);
    border-top: 1px solid rgba(199, 164, 106, .32);
    border-bottom: 1px solid rgba(199, 164, 106, .32);
}

.tax-product_cat .category-page-title .page-title-inner {
    padding-top: 18px;
    padding-bottom: 18px;
}

.tax-product_cat .breadcrumbs,
.tax-product_cat .woocommerce-ordering select {
    color: var(--bb-shop-espresso);
}

.tax-product_cat .products.row {
    align-items: stretch;
}

.tax-product_cat .products .product-small {
    display: flex;
    margin-bottom: 28px;
}

.tax-product_cat .products .product-small > .col-inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 10px 12px;
    background: linear-gradient(150deg, #fff 0%, var(--bb-shop-ivory) 100%);
    border: 1px solid rgba(199, 164, 106, .28);
    border-radius: 3px;
    box-shadow: 0 10px 28px rgba(51, 39, 36, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tax-product_cat .products .product-small > .col-inner:hover {
    transform: translateY(-3px);
    border-color: rgba(199, 164, 106, .58);
    box-shadow: 0 16px 34px rgba(51, 39, 36, .11);
}

.tax-product_cat .products .product-small .product-small.box {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tax-product_cat .products .box-image {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(199, 164, 106, .2);
}

.tax-product_cat .products .box-image > div {
    aspect-ratio: 1 / 1;
}

.tax-product_cat .products .box-image img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    transition: transform .35s ease;
}

.tax-product_cat .products .col-inner:hover .box-image img {
    transform: scale(1.025);
}

.tax-product_cat .products .box-text-products {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 5px 4px;
    text-align: left;
}

.tax-product_cat .products .product-cat {
    margin-bottom: 7px;
    color: var(--bb-shop-rose);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.tax-product_cat .products .product-title {
    margin-bottom: 10px;
    color: var(--bb-shop-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.3;
}

.tax-product_cat .products .price-wrapper {
    margin-top: auto;
}

.tax-product_cat .products .price {
    color: var(--bb-shop-espresso);
    font-size: 14px;
    font-weight: 600;
}

.tax-product_cat .product-small .add_to_cart_button,
.tax-product_cat .product-small a.button.product_type_simple,
.tax-product_cat .product-small a.button.product_type_variable {
    border: 1px solid #916965 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    transition: background-color .2s ease, color .2s ease !important;
}

.tax-product_cat .product-small .add_to_cart_button:hover,
.tax-product_cat .product-small a.button.product_type_simple:hover,
.tax-product_cat .product-small a.button.product_type_variable:hover {
    color: #916965 !important;
    background: #fff !important;
}

@media screen and (max-width: 549px) {
    .tax-product_cat .category-page-title {
        margin-bottom: 18px;
    }

    .tax-product_cat .category-page-title .page-title-inner {
        padding: 13px 15px;
    }

    .tax-product_cat .products.row {
        margin-right: -5px;
        margin-left: -5px;
    }

    .tax-product_cat .products .product-small {
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 16px;
    }

    .tax-product_cat .products .product-small > .col-inner {
        padding: 7px 7px 9px;
        box-shadow: 0 7px 20px rgba(51, 39, 36, .065);
    }

    .tax-product_cat .products .box-image img {
        padding: 5px;
    }

    .tax-product_cat .products .box-text-products {
        padding: 12px 3px 2px;
    }

    .tax-product_cat .products .product-title {
        font-size: 14px;
        line-height: 1.28;
    }

    .tax-product_cat .products .price {
        font-size: 13px;
    }
}


/* Premium produktvy */
.single-product .product-main {
    padding-top: 42px;
    padding-bottom: 44px;
    background:
        radial-gradient(circle at 92% 8%, rgba(199,164,106,.12), transparent 27%),
        linear-gradient(135deg, #fbf8f3 0%, #f6f0ea 100%);
    border-top: 1px solid rgba(199,164,106,.3);
    border-bottom: 1px solid rgba(199,164,106,.3);
}

.single-product .product-main .content-row {
    align-items: flex-start;
}

.single-product .product-gallery {
    padding: 14px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(199,164,106,.32);
    box-shadow: 0 18px 44px rgba(51,39,36,.09);
}

.single-product .woocommerce-product-gallery__image {
    background: #fff;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
}

.single-product .product-summary {
    padding: 10px 30px 20px 42px;
}

.single-product .product-summary .product-title {
    margin-bottom: 16px;
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3vw, 43px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.015em;
}

.single-product .product-summary .is-divider {
    width: 64px;
    height: 2px;
    margin: 0 0 20px;
    background-color: #c7a46a;
}

.single-product .product-page-price {
    margin-bottom: 18px;
    color: #916965;
    font-size: 24px;
    font-weight: 600;
}

.single-product .product-short-description {
    color: #51413d;
    font-size: 16px;
    line-height: 1.72;
}

.single-product .stock.in-stock {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 16px;
    color: #66504a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.single-product .stock.in-stock::before {
    width: 7px;
    height: 7px;
    margin-right: 8px;
    content: "";
    background: #9a7a5f;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(154,122,95,.12);
}

.single-product form.cart {
    display: flex;
    align-items: stretch;
    padding: 15px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(199,164,106,.3);
    box-shadow: 0 10px 28px rgba(51,39,36,.055);
}

.single-product form.cart .quantity {
    margin: 0 10px 0 0;
}

.single-product form.cart .single_add_to_cart_button {
    min-height: 44px;
    margin: 0;
    padding-right: 24px;
    padding-left: 24px;
    color: #fff;
    background: #916965;
    border: 1px solid #916965;
    border-radius: 2px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease;
}

.single-product form.cart .single_add_to_cart_button:hover {
    color: #916965;
    background: #fff;
}

@media screen and (max-width: 849px) {
    .single-product .product-main {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .single-product .product-gallery {
        margin: 0 15px 24px;
        padding: 9px;
        max-width: calc(100% - 30px);
    }

    .single-product .product-summary {
        padding: 4px 22px 16px;
    }

    .single-product .product-summary .product-title {
        font-size: 29px;
        line-height: 1.16;
    }

    .single-product .product-page-price {
        font-size: 21px;
    }
}

@media screen and (max-width: 549px) {
    .single-product .product-short-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .single-product form.cart {
        flex-wrap: nowrap;
        padding: 10px;
    }

    .single-product form.cart .quantity {
        flex: 0 0 auto;
        margin-right: 8px;
    }

    .single-product form.cart .single_add_to_cart_button {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
        letter-spacing: .035em;
        white-space: normal;
    }
}


/* Premium produktinformation och relaterade produkter */
.single-product .product-footer {
    padding: 46px 0 60px;
    background: #fff;
}

.single-product .woocommerce-tabs {
    max-width: 1080px;
}

.single-product .product-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(199,164,106,.35);
}

.single-product .product-tabs li a {
    padding: 13px 22px;
    color: #76605a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
}

.single-product .product-tabs li.active a {
    color: #332724;
    background: #fbf8f3;
    border-top: 2px solid #c7a46a;
}

.single-product .tab-panels {
    padding: 34px 42px 40px;
    color: #51413d;
    background:
        linear-gradient(135deg, rgba(251,248,243,.96), rgba(247,240,234,.82));
    border: 1px solid rgba(199,164,106,.3);
    border-top: 0;
    box-shadow: 0 15px 38px rgba(51,39,36,.065);
}

.single-product .woocommerce-Tabs-panel {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    line-height: 1.75;
}

.single-product .woocommerce-Tabs-panel > p {
    margin-bottom: 16px;
}

.single-product .woocommerce-Tabs-panel > p:first-child {
    margin-bottom: 24px;
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.2;
}

.single-product .related-products-wrapper {
    margin-top: 55px;
}

.single-product .product-section-title-related {
    position: relative;
    margin-bottom: 26px;
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.single-product .product-section-title-related::after {
    display: block;
    width: 58px;
    height: 2px;
    margin: 13px auto 0;
    content: "";
    background: #c7a46a;
}

.single-product .related .product-small {
    display: flex;
}

.single-product .related .product-small > .col-inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 9px 9px 11px;
    background: linear-gradient(150deg, #fff 0%, #fbf8f3 100%);
    border: 1px solid rgba(199,164,106,.28);
    border-radius: 3px;
    box-shadow: 0 9px 25px rgba(51,39,36,.065);
}

.single-product .related .product-small.box {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.single-product .related .box-image > div {
    aspect-ratio: 1 / 1;
}

.single-product .related .box-image img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.single-product .related .box-text-products {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 4px 4px;
    text-align: left;
}

.single-product .related .product-title {
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.3;
}

.single-product .related .price-wrapper {
    margin-top: auto;
}

.single-product .related .add_to_cart_button {
    width: 100%;
    margin: 8px 0 0;
    padding: 9px 8px;
    color: #fff;
    background: #916965;
    border: 1px solid #916965;
    border-radius: 2px;
    font-size: 11px;
    white-space: nowrap;
}

@media screen and (max-width: 549px) {
    .single-product .product-footer {
        padding: 28px 0 42px;
    }

    .single-product .product-tabs li a {
        padding: 11px 15px;
        font-size: 11px;
    }

    .single-product .tab-panels {
        padding: 24px 20px 28px;
    }

    .single-product .woocommerce-Tabs-panel {
        font-size: 15px;
        line-height: 1.68;
    }

    .single-product .woocommerce-Tabs-panel > p:first-child {
        font-size: 25px;
    }

    .single-product .related-products-wrapper {
        margin-top: 38px;
    }

    .single-product .product-section-title-related {
        font-size: 24px;
    }

    .single-product .related .product-small {
        padding-right: 5px;
        padding-left: 5px;
    }

    .single-product .related .product-small > .col-inner {
        padding: 7px 7px 9px;
    }

    .single-product .related .product-title {
        font-size: 14px;
    }
}


/* Premium kategoripresentation och butiksverktyg */
.tax-product_cat .shop-container > .term-description {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    padding: 34px 40px 36px;
    color: #51413d;
    background:
        radial-gradient(circle at 94% 5%, rgba(199,164,106,.16), transparent 28%),
        linear-gradient(135deg, #fbf8f3 0%, #f5ede7 100%);
    border: 1px solid rgba(199,164,106,.34);
    box-shadow: 0 14px 36px rgba(51,39,36,.07);
}

.tax-product_cat .shop-container > .term-description::after {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 30px;
    height: 30px;
    content: "";
    border-top: 1px solid rgba(199,164,106,.7);
    border-right: 1px solid rgba(199,164,106,.7);
}

.tax-product_cat .term-description h1 {
    max-width: 760px;
    margin: 0 0 17px;
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.018em;
}

.tax-product_cat .term-description h1::after {
    display: block;
    width: 62px;
    height: 2px;
    margin-top: 16px;
    content: "";
    background: #c7a46a;
}

.tax-product_cat .term-description p {
    max-width: 850px;
    margin: 0;
    font-size: 16px;
    line-height: 1.72;
}

.tax-product_cat .category-filtering .filter-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    color: #332724;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(199,164,106,.45);
    border-radius: 2px;
}

.tax-product_cat .category-filtering .filter-button i {
    margin-right: 8px;
    color: #916965;
}

.tax-product_cat .woocommerce-ordering select {
    min-width: 205px;
    height: 42px;
    margin-bottom: 0;
    padding-right: 34px;
    background-color: rgba(255,255,255,.78);
    border: 1px solid rgba(199,164,106,.42);
    border-radius: 2px;
    box-shadow: none;
    font-size: 13px;
}

.tax-product_cat .woocommerce-result-count {
    color: #78655f;
    font-size: 12px;
    letter-spacing: .04em;
}

@media screen and (max-width: 849px) {
    .tax-product_cat .category-page-title .page-title-inner {
        gap: 11px;
    }

    .tax-product_cat .category-filtering {
        margin: 8px 0 0;
    }

    .tax-product_cat .category-filtering .filter-button,
    .tax-product_cat .woocommerce-ordering select {
        min-height: 42px;
    }
}

@media screen and (max-width: 549px) {
    .tax-product_cat .shop-container > .term-description {
        margin: 0 5px 24px;
        padding: 25px 21px 27px;
    }

    .tax-product_cat .term-description h1 {
        max-width: calc(100% - 18px);
        font-size: 30px;
        line-height: 1.15;
    }

    .tax-product_cat .term-description p {
        font-size: 14px;
        line-height: 1.65;
    }

    .tax-product_cat .category-page-title .page-title-inner {
        align-items: stretch;
    }

    .tax-product_cat .category-page-title .flex-col {
        width: 100%;
    }

    .tax-product_cat .category-filtering .filter-button,
    .tax-product_cat .woocommerce-ordering,
    .tax-product_cat .woocommerce-ordering select {
        width: 100%;
    }

    .tax-product_cat .woocommerce-ordering {
        margin: 0;
    }
}


/* Tydlig sidbläddring i produktkategorier */
.tax-product_cat .woocommerce-pagination {
    position: relative;
    clear: both;
    margin: 28px 0 40px;
    padding: 58px 18px 22px;
    background: linear-gradient(135deg, #fbf8f3 0%, #f5ede7 100%);
    border: 1px solid rgba(199,164,106,.34);
    box-shadow: 0 12px 30px rgba(51,39,36,.06);
}

.tax-product_cat .woocommerce-pagination::before {
    position: absolute;
    top: 18px;
    right: 18px;
    left: 18px;
    content: "Fler produkter";
    color: #332724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
}

.tax-product_cat .woocommerce-pagination::after {
    position: absolute;
    top: 47px;
    left: 50%;
    width: 44px;
    height: 1px;
    content: "";
    background: #c7a46a;
    transform: translateX(-50%);
}

.tax-product_cat .woocommerce-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.tax-product_cat .woocommerce-pagination .page-numbers li {
    margin: 0;
}

.tax-product_cat .woocommerce-pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 11px;
    color: #5e4a45;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(199,164,106,.46);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

.tax-product_cat .woocommerce-pagination .page-number.current {
    color: #fff;
    background: #916965;
    border-color: #916965;
}

.tax-product_cat .woocommerce-pagination a.page-number:hover {
    color: #fff;
    background: #a77c78;
    border-color: #a77c78;
}

.tax-product_cat .woocommerce-pagination .prev,
.tax-product_cat .woocommerce-pagination .next {
    width: auto;
    min-width: 42px;
    border-radius: 22px;
}

.tax-product_cat .woocommerce-pagination .bybexter-page-label {
    display: none;
}

@media screen and (max-width: 549px) {
    .tax-product_cat .woocommerce-pagination {
        margin: 20px 5px 30px;
        padding: 58px 12px 16px;
    }

    .tax-product_cat .woocommerce-pagination::before {
        font-size: 21px;
    }

    .tax-product_cat .woocommerce-pagination .page-numbers {
        gap: 6px;
    }

    .tax-product_cat .woocommerce-pagination .page-number {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: 13px;
    }

    .tax-product_cat .woocommerce-pagination .prev,
    .tax-product_cat .woocommerce-pagination .next {
        min-width: 108px;
        padding: 0 14px;
        border-radius: 20px;
    }

    .tax-product_cat .woocommerce-pagination .bybexter-page-label {
        display: inline;
        margin-right: 7px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .tax-product_cat .woocommerce-pagination .prev .bybexter-page-label {
        margin-right: 0;
        margin-left: 7px;
        order: 2;
    }
}


/* Progressiv produktladdning: samma sida, fortsatt skroll */
.bybexter-infinite-scroll.tax-product_cat .woocommerce-pagination {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.bybexter-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    clear: both;
    min-height: 70px;
    margin: 22px 0 36px;
    padding: 18px;
    color: #725a54;
    background: linear-gradient(135deg, #fbf8f3 0%, #f5ede7 100%);
    border-top: 1px solid rgba(199,164,106,.34);
    border-bottom: 1px solid rgba(199,164,106,.34);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.bybexter-infinite-spinner {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(145,105,101,.25);
    border-top-color: #916965;
    border-radius: 50%;
    opacity: 0;
}

.bybexter-infinite-status.is-loading .bybexter-infinite-spinner {
    opacity: 1;
    animation: bybexter-shop-spin .75s linear infinite;
}

.bybexter-infinite-status.is-complete::before {
    width: 28px;
    height: 1px;
    content: "";
    background: #c7a46a;
}

.bybexter-shop-next-steps {
    clear: both;
    margin: 12px 0 62px;
    padding: 42px;
    color: #302320;
    background: linear-gradient(135deg, #f7f0e9 0%, #efe1dc 100%);
    border: 1px solid rgba(199,164,106,.35);
    text-align: center;
}
.bybexter-shop-next-steps > p {
    margin: 0 0 10px;
    color: #916965;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.bybexter-shop-next-steps > h2 {
    margin: 0 0 28px;
    color: #302320;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
}
.bybexter-shop-next-steps > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.bybexter-shop-next-steps a {
    display: flex;
    min-height: 130px;
    padding: 23px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    color: #302320;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(199,164,106,.3);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}
.bybexter-shop-next-steps a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(48,35,32,.08);
}
.bybexter-shop-next-steps strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
    line-height: 1.05;
}
.bybexter-shop-next-steps span {
    margin-top: 12px;
    color: #916965;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
@media screen and (max-width: 549px) {
    .bybexter-shop-next-steps {
        margin: 8px 5px 45px;
        padding: 30px 18px;
    }
    .bybexter-shop-next-steps > div {
        grid-template-columns: 1fr;
    }
    .bybexter-shop-next-steps a {
        min-height: 105px;
    }
}

.bybexter-product-reveal {
    animation: bybexter-product-in .45s ease both;
}

@keyframes bybexter-shop-spin {
    to { transform: rotate(360deg); }
}

@keyframes bybexter-product-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bybexter-infinite-spinner,
    .bybexter-product-reveal {
        animation: none !important;
    }
}

@media screen and (max-width: 549px) {
    .bybexter-infinite-status {
        min-height: 62px;
        margin: 16px 5px 28px;
        padding: 15px 10px;
        font-size: 11px;
        letter-spacing: .055em;
    }
}


