/* =========================================================
   DOOGER - SHOP / PRODUCT ARCHIVES
   Furniture storefront
   v1.7.0
   ========================================================= */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
    background: #f6f8fa;
}

/* =========================================================
   PAGE SHELL
   ========================================================= */

.dooger-shop-page {
    min-height: 0;
    padding: 112px 20px 64px;
}

.dooger-shop-container {
    width: min(1240px, 100%);
    margin: 0 auto;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.dooger-shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin: 0 0 24px;

    color: #92887d;
    font-size: 11px;
}

.dooger-shop-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.dooger-shop-breadcrumb a:hover {
    color: #e31b23;
}

.dooger-shop-breadcrumb span {
    color: #c8bdb0;
}

.dooger-shop-breadcrumb strong {
    color: #5f574f;
    font-weight: 600;
}

/* =========================================================
   HEADER
   ========================================================= */

.dooger-shop-header {
    margin-bottom: 28px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e5ddd2;
}

.dooger-shop-heading-copy {
    max-width: 780px;
}

.dooger-eyebrow {
    margin: 0 0 7px;

    color: #c5161d;

    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
}

.dooger-shop-title {
    margin: 0;

    color: #151a20;

    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.35;
    font-weight: 700;
}

.dooger-shop-description {
    margin-top: 11px;

    color: #6d665e;

    font-size: 14px;
    line-height: 2;
}

.dooger-shop-description p {
    margin: 0;
}

/* =========================================================
   CATEGORY STRIP
   ========================================================= */

.dooger-category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 30px;
}

.dooger-category-chip {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
    padding: 10px;

    border: 1px solid #d9dee5;
    border-radius: 14px;

    background: #fff;

    color: #342f2a;
    text-decoration: none;

    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.dooger-category-chip:hover {
    border-color: rgba(176, 138, 69, .55);

    transform: translateY(-2px);

    box-shadow: 0 8px 22px rgba(52, 43, 34, .055);
}

.dooger-category-chip-image {
    display: block;
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    overflow: hidden;

    border-radius: 10px;

    background: #eee9df;
}

.dooger-category-chip-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

.dooger-category-chip-copy {
    display: grid;
    gap: 3px;

    min-width: 0;
}

.dooger-category-chip-copy strong {
    overflow: hidden;

    color: #342f2a;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dooger-category-chip-copy small {
    color: #92887d;

    font-size: 10px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.dooger-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 24px;
}

.dooger-shop-result {
    color: #71695f;
    font-size: 12px;
}

.dooger-shop-result .woocommerce-result-count {
    margin: 0;
}

.dooger-shop-ordering .woocommerce-ordering {
    margin: 0;
}

.dooger-shop-ordering .orderby {
    min-width: 195px;
    min-height: 43px;

    padding: 0 13px;

    border: 1px solid #ded5c9;
    border-radius: 10px;

    outline: 0;

    background: #fff;
    color: #423b34;

    font-family: inherit;
    font-size: 12px;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.dooger-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 22px;

    margin: 0;
    padding: 0;
}

.dooger-product-card {
    display: flex !important;
    flex-direction: column;

    min-width: 0;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    list-style: none;

    background: transparent;
}

/* =========================================================
   PRODUCT CARD IMAGE
   ========================================================= */

.dooger-product-card-image {
    position: relative;

    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border: 1px solid #ece5dc;
    border-radius: 16px;

    background: #eee9df;

    text-decoration: none;
}

.dooger-product-card-image > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    padding: 10px;

    box-sizing: border-box;

    object-fit: contain !important;
    object-position: center !important;

    transition: transform .45s ease;
}

.dooger-product-card:hover .dooger-product-card-image > img {
    transform: scale(1.025);
}

.dooger-product-card-badges {
    position: absolute;
    z-index: 3;

    top: 11px;
    right: 11px;
    left: 11px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;

    pointer-events: none;
}

.dooger-product-badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;
    padding: 0 9px;

    border-radius: 999px;

    backdrop-filter: blur(6px);

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.dooger-product-badge-sale {
    background: #e31b23;
    color: #fff;
}

.dooger-product-badge-stock {
    margin-right: auto;

    background: rgba(255, 255, 255, .9);
    color: #5b544d;

    border: 1px solid rgba(73, 65, 57, .08);
}

.dooger-product-badge-stock.status-instock {
    color: #55764d;
}

.dooger-product-badge-stock.status-outofstock {
    color: #a04e45;
}

.dooger-product-badge-stock.status-onbackorder {
    color: #8b6a2f;
}

/* Hover action */
.dooger-product-view {
    position: absolute;

    right: 14px;
    bottom: 14px;
    left: 14px;

    padding: 11px 12px;

    border-radius: 10px;

    background: rgba(38, 31, 25, .91);
    color: #fff;

    text-align: center;

    font-size: 11px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(7px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.dooger-product-card:hover .dooger-product-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   PRODUCT CARD CONTENT
   ========================================================= */

.dooger-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 15px 3px 0;
}

.dooger-product-category {
    display: block;

    margin-bottom: 5px;

    color: #c5161d;

    font-size: 10px;
    font-weight: 600;
}

.dooger-product-card-title {
    min-height: 52px;

    margin: 0;

    color: #2e2924;

    font-size: 15px;
    line-height: 1.75;
    font-weight: 700;
}

.dooger-product-card-title a {
    color: inherit;
    text-decoration: none;
}

.dooger-product-card-title a:hover {
    color: #8b6a2f;
}

.dooger-product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 11px;
}

.dooger-product-card-price {
    min-width: 0;

    color: #8b6a2f;

    font-size: 14px;
    font-weight: 800;
}

.dooger-product-card-price .price {
    margin: 0;
}

.dooger-product-card-price del {
    display: block;

    margin: 0 0 2px;

    color: #aaa099;

    font-size: 10px;
    font-weight: 400;
}

.dooger-product-card-price ins {
    text-decoration: none;
}

.dooger-price-contact {
    color: #655d55;

    font-size: 12px;
    font-weight: 600;
}

.dooger-product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    border: 1px solid #ccd3db;
    border-radius: 50%;

    color: #40382f;
    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.dooger-product-card-link:hover {
    background: #e31b23;
    border-color: #e31b23;

    color: #fff;

    transform: translateX(-2px);
}

.dooger-product-card-link span {
    font-size: 17px;
    line-height: 1;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.dooger-shop-pagination {
    margin-top: 55px;

    text-align: center;
}

.dooger-shop-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.dooger-shop-pagination .page-numbers li {
    margin: 0 !important;

    border: 0 !important;
}

.dooger-shop-pagination .page-numbers a,
.dooger-shop-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 10px;

    border: 1px solid #ded5c9;
    border-radius: 8px;

    background: #fff;
    color: #4a433b;

    text-decoration: none;
}

.dooger-shop-pagination .page-numbers .current {
    background: #e31b23;
    border-color: #e31b23;

    color: #fff;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.dooger-empty-shop {
    padding: 75px 20px;

    border: 1px dashed #ded5c9;
    border-radius: 16px;

    background: rgba(255, 255, 255, .65);

    color: #70685f;

    text-align: center;
}

.dooger-empty-shop-icon {
    display: block;

    margin-bottom: 12px;

    color: #e31b23;

    font-size: 30px;
}

.dooger-empty-shop h2 {
    margin: 0 0 8px;

    color: #302a24;

    font-size: 23px;
}

.dooger-empty-shop p {
    margin: 0;

    font-size: 13px;
}

.dooger-empty-shop-link {
    display: inline-flex;

    margin-top: 18px;
    padding: 10px 16px;

    border-radius: 9px;

    background: #171c22;
    color: #fff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

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

    .dooger-category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dooger-shop-page {
        padding: 92px 14px 55px;
    }

    .dooger-shop-breadcrumb {
        margin-bottom: 18px;
    }

    .dooger-shop-header {
        margin-bottom: 20px;
    }

    .dooger-shop-title {
        font-size: 30px;
    }

    .dooger-category-strip {
        gap: 8px;
    }

    .dooger-category-chip {
        gap: 8px;
        padding: 8px;
    }

    .dooger-category-chip-image {
        flex-basis: 46px;

        width: 46px;
        height: 46px;
    }

    .dooger-shop-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .dooger-shop-ordering .woocommerce-ordering,
    .dooger-shop-ordering .orderby {
        width: 100%;
    }

    .dooger-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 12px;
    }

    .dooger-product-card-title {
        min-height: 47px;

        font-size: 13px;
    }

    .dooger-product-card-price {
        font-size: 12px;
    }

    .dooger-product-card-image > img {
        padding: 6px;
    }

    .dooger-product-view {
        display: none;
    }

    .dooger-product-badges {
        top: 8px;
        right: 8px;
        left: 8px;
    }
}

@media (max-width: 460px) {
    .dooger-category-strip {
        grid-template-columns: 1fr;
    }

    .dooger-product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dooger-product-card-image {
        aspect-ratio: 4 / 3;
    }

    .dooger-product-card-title {
        min-height: 0;

        font-size: 15px;
    }

    .dooger-product-card-price {
        font-size: 14px;
    }
}


/* ARAK v3.8.6 - keep shop footer close to actual content */
body.woocommerce-shop .dooger-shop-page,
body.tax-product_cat .dooger-shop-page,
body.tax-product_tag .dooger-shop-page {
    min-height: 0;
}
.dooger-empty-shop {
    margin-bottom: 0 !important;
}
@media (max-width: 700px) {
    .dooger-shop-page { padding-bottom: 44px; }
}
