/* =========================================================
   Teddyworld Shop
   ========================================================= */

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
    background: #fbf7f2;
}

.tw-shop-page {
    padding: 14px 0 70px;
    color: #2d2018;
}

.tw-shop-container {
    width: min(1320px, calc(100% - 34px));
}

.tw-shop-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 28px;
    background: #d9c0aa;
    box-shadow: 0 16px 45px rgba(76, 42, 21, 0.12);
}

.tw-shop-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.tw-shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 23, 12, 0.74) 0%, rgba(43, 23, 12, 0.34) 42%, rgba(43, 23, 12, 0.02) 72%);
}

.tw-shop-hero-content {
    position: relative;
    z-index: 2;
    width: min(530px, 52%);
    padding: 92px 68px;
    color: #fff;
}

.tw-shop-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.tw-shop-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    font-weight: 900;
}

.tw-shop-hero p {
    max-width: 450px;
    margin: 19px 0 0;
    color: rgba(255,255,255,.94);
    font-size: 19px;
    line-height: 1.55;
}

.tw-shop-mobile-heading {
    display: none;
}

.tw-shop-controls {
    position: relative;
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 28px 0 0;
}

.tw-shop-control {
    position: relative;
    width: 210px;
}

.tw-shop-control > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 17px;
    border: 1px solid #e6d9cf;
    border-radius: 13px;
    background: #fff;
    color: #2f2119;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 4px 14px rgba(70,39,20,.035);
}

.tw-shop-control > summary::-webkit-details-marker {
    display: none;
}

.tw-shop-control > summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tw-shop-sort-control[open] > summary svg {
    transform: rotate(180deg);
}

.tw-shop-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: 250px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #eadfd7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(65,37,20,.14);
}

.tw-shop-dropdown > strong {
    display: block;
    padding: 10px 12px 7px;
    font-size: 13px;
}

.tw-shop-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #3a2a21;
    font-size: 14px;
}

.tw-shop-dropdown a:hover,
.tw-shop-dropdown a.is-active {
    background: #f6eee8;
    color: #582b13;
}

.tw-shop-dropdown small {
    color: #9b8c82;
}

.tw-shop-desktop-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 22px;
}

.tw-shop-desktop-heading span {
    display: block;
    margin-bottom: 5px;
    color: #9a725a;
    font-size: 14px;
    font-weight: 700;
}

.tw-shop-desktop-heading h2 {
    margin: 0;
    font-size: clamp(28px,3vw,42px);
}

.tw-shop-count .woocommerce-result-count {
    margin: 0;
    color: #7d6d63;
    font-size: 14px;
}

.tw-shop-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px;
}

.tw-shop-card {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eaded5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(65,37,20,.055);
    transition: transform .22s ease, box-shadow .22s ease;
}

.tw-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(65,37,20,.10);
}

.tw-shop-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.08;
    margin: 9px;
    overflow: hidden;
    border-radius: 15px;
    background: #f5eee7;
}

.tw-shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tw-shop-card:hover .tw-shop-card-image img {
    transform: scale(1.025);
}

.tw-shop-sale {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #5e2d13;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tw-shop-heart {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #6b3b22;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.tw-shop-card-info {
    padding: 7px 16px 18px;
    text-align: right;
}

.tw-shop-card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.tw-shop-card-title a {
    color: #2e211a;
}

.tw-shop-card-size {
    display: block;
    margin-top: 4px;
    color: #8c7d73;
    font-size: 12px;
}

.tw-shop-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
    margin-top: 11px;
    color: #4f250f;
    font-size: 19px;
    font-weight: 900;
}

.tw-shop-card-price del {
    order: 2;
    color: #a99b91;
    font-size: 14px;
    font-weight: 600;
}

.tw-shop-card-price ins {
    order: 1;
    color: #4f250f;
    text-decoration: none;
}

.tw-shop-pagination {
    margin-top: 40px;
}

.tw-shop-pagination .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 0;
}

.tw-shop-pagination .woocommerce-pagination ul.page-numbers li {
    border: 0;
}

.tw-shop-pagination .page-numbers a,
.tw-shop-pagination .page-numbers span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid #e2d3c8;
    border-radius: 50%;
    background: #fff;
    color: #4f2a16;
}

.tw-shop-pagination .page-numbers .current {
    border-color: #5b2b12;
    background: #5b2b12;
    color: #fff;
}

.tw-shop-category,
.tw-shop-product-category,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .product-category,
.woocommerce ul.products li.product .category,
.woocommerce ul.products li.product .tw-shop-product-category {
    display: none !important;
}

@media (max-width:1050px) {
    .tw-shop-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .tw-shop-hero-content {
        width: min(560px,64%);
    }
}

@media (max-width:767px) {
    .tw-shop-page {
        padding: 7px 0 46px;
    }

    .tw-shop-container {
        width: min(100% - 14px,620px);
    }

    .tw-shop-hero {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(76,42,21,.10);
    }

    .tw-shop-hero > img {
        object-position: 62% center;
    }

    .tw-shop-hero-overlay {
        background: linear-gradient(90deg,rgba(40,21,11,.56) 0%,rgba(40,21,11,.16) 52%,rgba(40,21,11,0) 78%);
    }

    .tw-shop-hero-content {
        position: absolute;
        inset: 0 auto 0 0;
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 52%;
        min-height: 0;
        padding: 18px 15px;
        text-align: right;
    }

    .tw-shop-kicker {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .tw-shop-hero h1 {
        font-size: 27px;
        line-height: 1.05;
    }

    .tw-shop-hero p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.45;
    }

    .tw-shop-mobile-heading {
        display: none;
    }

    .tw-shop-controls {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
        margin: 12px 0 18px;
    }

    .tw-shop-control {
        width: auto;
    }

    .tw-shop-control > summary {
        min-height: 49px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(70,39,20,.025);
    }

    .tw-shop-dropdown {
        position: fixed;
        z-index: 1000;
        top: auto;
        right: 8px;
        bottom: 12px;
        left: 8px;
        width: auto;
        max-height: 62vh;
        overflow-y: auto;
        border-radius: 18px;
        box-shadow: 0 20px 60px rgba(40,22,12,.22);
    }

    .tw-shop-desktop-heading {
        display: none;
    }

    .tw-shop-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .tw-shop-card {
        border-radius: 14px;
    }

    .tw-shop-card-image {
        aspect-ratio: 1 / 1.18;
        margin: 5px;
        border-radius: 11px;
    }

    .tw-shop-sale {
        top: 7px;
        right: 7px;
        min-height: 23px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .tw-shop-heart {
        top: 7px;
        left: 7px;
        width: 27px;
        height: 27px;
        font-size: 18px;
    }

    .tw-shop-card-info {
        padding: 6px 9px 12px;
    }

    .tw-shop-card-title {
        min-height: 38px;
        font-size: 13px;
        line-height: 1.4;
    }

    .tw-shop-card-size {
        margin-top: 2px;
        font-size: 10px;
    }

    .tw-shop-card-price {
        gap: 5px;
        min-height: 25px;
        margin-top: 6px;
        font-size: 17px;
    }

    .tw-shop-card-price del {
        font-size: 11px;
    }
}

@media (max-width:370px) {
    .tw-shop-grid {
        gap: 8px;
    }

    .tw-shop-card-title {
        font-size: 12px;
    }
}
