:root {
    --pcm-dark: #11110f;
    --pcm-gold: #b79a62;
    --pcm-cream: #f5f1e9;
    --pcm-text: #171717;
    --pcm-muted: #77746d;
    --pcm-line: #dedbd5;
}

.pcm-main,
.pcm-collections-section {
    color: var(--pcm-text);
    font-family: inherit;
}

.pcm-shell {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.pcm-section-head {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.pcm-section-head > span,
.pcm-list-head span,
.pcm-kicker,
.pcm-tax-content > span,
.pcm-archive-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--pcm-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
}

.pcm-section-head h2,
.pcm-list-head h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.04;
}

.pcm-section-head p {
    margin: 0;
    color: var(--pcm-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Homepage collection carousel */
.pcm-layout-carousel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 34px 0 42px;
    overflow: hidden;
}

.pcm-layout-carousel .pcm-section-head {
    width: min(760px, calc(100% - 40px));
}

.pcm-carousel {
    position: relative;
    width: 100%;
}

.pcm-carousel-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.pcm-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.pcm-carousel-track {
    display: flex;
    width: max-content;
    gap: clamp(18px, 1.95vw, 40px);
    padding: 24px max(20px, 1.05vw) 28px;
}

.pcm-collection-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f2f1ef;
    color: var(--pcm-text) !important;
    text-decoration: none !important;
    border-radius: 13px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
    isolation: isolate;
}

.pcm-carousel-card {
    flex: 0 0 clamp(246px, 14.55vw, 298px);
    aspect-ratio: .635;
}

.pcm-card-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f2f1ef, #e2dfda);
}

.pcm-card-media img,
.pcm-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.pcm-card-media img {
    object-fit: cover;
    object-position: center;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.pcm-card-placeholder {
    background:
        linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,0)),
        repeating-linear-gradient(45deg, #e9e6e0 0, #e9e6e0 10px, #f3f1ed 10px, #f3f1ed 20px);
}

.pcm-card-label {
    position: absolute;
    right: clamp(14px, 2.15vw, 43px);
    bottom: 14px;
    left: clamp(14px, 2.15vw, 43px);
    z-index: 2;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pcm-card-name-wrap {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.pcm-card-label strong {
    overflow: hidden;
    color: #090909;
    font-size: clamp(19px, 1.15vw, 24px);
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcm-card-label small {
    color: #848484;
    font-size: 11px;
    line-height: 1.25;
}

.pcm-card-arrow {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    color: #111;
}

.pcm-card-arrow svg,
.pcm-carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcm-collection-card:hover .pcm-card-media img {
    transform: scale(1.045);
}

.pcm-collection-card:hover .pcm-card-label {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(0, 0, 0, .13);
}

.pcm-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #151515;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.pcm-carousel-prev {
    left: 14px;
}

.pcm-carousel-next {
    right: 14px;
}

.pcm-carousel-nav:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    transform: translateY(-50%) scale(1.035);
}

.pcm-carousel-nav:disabled {
    opacity: .35;
    cursor: default;
}

.pcm-carousel-nav:focus-visible,
.pcm-carousel-viewport:focus-visible {
    outline: 2px solid var(--pcm-gold);
    outline-offset: 3px;
}

/* Collection archive grid */
.pcm-layout-grid {
    padding: 0;
}

.pcm-collection-grid,
.pcm-product-grid {
    display: grid;
    gap: 28px;
}

.pcm-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcm-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pcm-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pcm-grid-collection-card {
    min-height: 0;
    aspect-ratio: .69;
}

.pcm-grid-collection-card .pcm-card-label {
    right: 18px;
    bottom: 18px;
    left: 18px;
}

.pcm-archive-page {
    background: #fff;
}

.pcm-archive-hero {
    padding: clamp(82px, 9vw, 145px) 0 clamp(55px, 6vw, 90px);
    background: #f7f6f3;
    border-bottom: 1px solid #ece9e3;
}

.pcm-archive-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #111;
    font-size: clamp(48px, 7vw, 106px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .96;
}

.pcm-archive-hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #66635d;
    font-size: 17px;
    line-height: 1.7;
}

.pcm-archive-list {
    padding: clamp(55px, 7vw, 105px) 0 110px;
}

/* Product cards */
.pcm-product-card {
    display: block;
    color: var(--pcm-text) !important;
    background: #fff;
    text-decoration: none !important;
}

.pcm-product-image {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.12;
    padding: 14px;
    background: #f7f6f3;
}

.pcm-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .5s ease;
}

.pcm-product-info {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 17px 2px 8px;
    border-bottom: 1px solid #ddd;
}

.pcm-product-info small {
    grid-column: 1;
    color: var(--pcm-muted);
    font-size: 9px;
    letter-spacing: .18em;
}

.pcm-product-info strong {
    grid-column: 1;
    margin-top: 4px;
    font-size: 18px;
}

.pcm-product-info em {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--pcm-muted);
    font-size: 12px;
    font-style: normal;
}

.pcm-product-card:hover img {
    transform: scale(1.04);
}

/* Collection detail */
.pcm-tax-hero {
    position: relative;
    display: flex;
    min-height: 560px;
    align-items: end;
    color: #fff;
    background: #262622 center / cover no-repeat;
}

.pcm-tax-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .72));
}

.pcm-tax-content {
    position: relative;
    padding-bottom: 70px;
}

.pcm-tax-content > a {
    display: inline-block;
    margin-bottom: 80px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.pcm-tax-content h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 110px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: .92;
}

.pcm-tax-content p {
    max-width: 620px;
    margin: 22px 0 0;
    color: #e9e6df;
    font-size: 17px;
    line-height: 1.65;
}

.pcm-tax-products {
    padding: 90px 0;
}

.pcm-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.pcm-list-head h2 {
    margin: 0;
}

.pcm-list-head > strong {
    color: var(--pcm-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Single carpet */
.pcm-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0 24px;
    color: #888;
    font-size: 12px;
}

.pcm-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.pcm-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: start;
    gap: 70px;
    padding-bottom: 90px;
}

.pcm-detail-media {
    position: sticky;
    top: 24px;
    padding: 20px;
    background: #f7f6f3;
}

.pcm-detail-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.pcm-detail-copy {
    padding-top: 55px;
}

.pcm-collection-link {
    display: inline-block;
    margin-bottom: 18px;
    padding-bottom: 4px;
    color: var(--pcm-text);
    border-bottom: 1px solid #bbb;
    text-decoration: none;
}

.pcm-detail-copy h1 {
    margin: 0 0 30px;
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .95;
}

.pcm-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 18px 0;
    border-block: 1px solid #d9d5cc;
}

.pcm-code-box span {
    color: var(--pcm-muted);
    font-size: 10px;
    letter-spacing: .18em;
}

.pcm-code-box strong {
    font-size: 20px;
}

.pcm-lead {
    color: #5e5b54;
    font-size: 16px;
    line-height: 1.75;
}

.pcm-content {
    font-size: 15px;
    line-height: 1.7;
}

.pcm-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding: 18px 20px;
    color: #fff !important;
    background: var(--pcm-dark);
    text-decoration: none !important;
}

.pcm-whatsapp:hover {
    background: #2b2a27;
}

.pcm-detail-notes {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.pcm-detail-notes span {
    display: flex;
    gap: 14px;
    color: var(--pcm-muted);
    font-size: 12px;
}

.pcm-detail-notes b {
    color: var(--pcm-gold);
    font-weight: 600;
}

.pcm-other-colors {
    padding: 70px 0 100px;
    border-top: 1px solid #ddd;
}

.pcm-color-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.pcm-color-strip a {
    color: var(--pcm-text);
    font-size: 12px;
    text-decoration: none;
}

.pcm-color-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 8px;
    padding: 6px;
    background: #f7f6f3;
    object-fit: contain;
    object-position: center;
}

.pcm-empty {
    padding: 30px;
    color: var(--pcm-muted);
    border: 1px solid #ddd;
    text-align: center;
}


.pcm-sizes-section {
    margin: 0 0 72px;
    padding: 34px 40px 0;
    background: #f8f7f4;
    border: 1px solid #e9e5dd;
    border-radius: 18px;
    overflow: hidden;
}

.pcm-sizes-title {
    margin-bottom: 26px;
    color: #6f6d68;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
}

.pcm-sizes-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pcm-sizes-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
}

.pcm-sizes-table tr {
    border-top: 1px solid #ddd9d1;
}

.pcm-sizes-table tr:last-child {
    border-bottom: 1px solid #ddd9d1;
}

.pcm-sizes-table td {
    width: 20%;
    height: 104px;
    padding: 18px 12px;
    color: #6d6c68;
    border: 0;
    vertical-align: middle;
    text-align: center;
}

.pcm-sizes-table td span,
.pcm-sizes-table td small {
    display: block;
}

.pcm-sizes-table td span {
    font-size: clamp(21px, 2vw, 30px);
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.pcm-sizes-table td small {
    margin-top: 7px;
    color: #8a8882;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 1180px) {
    .pcm-carousel-card {
        flex-basis: clamp(238px, 24vw, 282px);
    }

    .pcm-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .pcm-cols-3,
    .pcm-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pcm-product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pcm-detail-media {
        position: static;
    }

    .pcm-detail-copy {
        padding-top: 0;
    }

    .pcm-color-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pcm-shell {
        width: min(100% - 24px, 1380px);
    }

    .pcm-layout-carousel {
        padding: 20px 0 30px;
    }

    .pcm-carousel-track {
        gap: 16px;
        padding: 14px 14px 22px;
    }

    .pcm-carousel-card {
        flex-basis: min(74vw, 285px);
    }

    .pcm-card-label {
        right: 13px;
        bottom: 13px;
        left: 13px;
        min-height: 68px;
        padding: 13px 16px;
    }

    .pcm-card-label strong {
        font-size: 19px;
    }

    .pcm-carousel-nav {
        width: 46px;
        height: 46px;
    }

    .pcm-carousel-prev {
        left: 8px;
    }

    .pcm-carousel-next {
        right: 8px;
    }

    .pcm-collection-grid,
    .pcm-product-grid {
        gap: 12px;
    }

    .pcm-cols-2,
    .pcm-cols-3,
    .pcm-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pcm-grid-collection-card {
        aspect-ratio: .66;
        border-radius: 8px;
    }

    .pcm-grid-collection-card .pcm-card-label {
        right: 8px;
        bottom: 8px;
        left: 8px;
        min-height: 56px;
        padding: 10px 11px;
        border-radius: 6px;
    }

    .pcm-grid-collection-card .pcm-card-label strong {
        font-size: 15px;
    }

    .pcm-grid-collection-card .pcm-card-label small {
        display: none;
    }

    .pcm-grid-collection-card .pcm-card-arrow {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .pcm-archive-hero {
        padding: 72px 0 48px;
    }

    .pcm-archive-hero h1 {
        font-size: 50px;
    }

    .pcm-archive-list {
        padding: 48px 0 72px;
    }

    .pcm-tax-hero {
        min-height: 460px;
    }

    .pcm-tax-content {
        padding-bottom: 40px;
    }

    .pcm-tax-content > a {
        margin-bottom: 90px;
    }

    .pcm-tax-content h1 {
        font-size: 50px;
    }

    .pcm-tax-products {
        padding: 55px 0;
    }

    .pcm-product-info {
        display: block;
    }

    .pcm-product-info em {
        display: none;
    }

    .pcm-product-detail {
        padding-bottom: 60px;
    }

    .pcm-detail-copy h1 {
        font-size: 54px;
    }

    .pcm-sizes-section {
        margin-bottom: 52px;
        padding: 26px 16px 0;
        border-radius: 12px;
    }

    .pcm-sizes-title {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .pcm-sizes-table {
        min-width: 660px;
    }

    .pcm-sizes-table td {
        height: 86px;
        padding: 14px 8px;
    }

    .pcm-sizes-table td span {
        font-size: 22px;
    }

    .pcm-color-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
