.pw-product-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px;
}

.pw-product {
    color: #202124;
}

.pw-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.pw-main-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    border-radius: 14px;
}

.pw-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-image-placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: #737373;
}

.pw-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pw-thumbnail {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.pw-thumbnail.is-active {
    border-color: #202124;
}

.pw-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-product-summary h1 {
    margin: 0 0 7px;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.16;
}

.pw-single-category {
    margin: 0 0 17px;
    color: #d63027;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.pw-short-description {
    margin: 0 0 20px;
    color: #5c6065;
    font-size: .94rem;
    line-height: 1.6;
}

.pw-single-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.pw-single-meta div {
    min-width: 0;
    padding: 11px 13px;
    background: #f6f6f6;
    border-left: 3px solid #d63027;
}

.pw-single-meta dt {
    margin-bottom: 3px;
    color: #8a8e92;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.pw-single-meta dd {
    margin: 0;
    overflow: hidden;
    color: #303438;
    font-size: .83rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 24px 0;
}

.pw-price strong {
    color: #d63027;
    font-size: 1.7rem;
    line-height: 1.1;
}

.pw-original-price {
    color: #74777b;
    text-decoration: line-through;
}

.pw-whatsapp-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    background: #128c4a;
    border-radius: 8px;
    transition: background .2s ease, transform .2s ease;
}

.pw-whatsapp-button:hover {
    color: #fff;
    background: #0f793f;
    transform: translateY(-1px);
}

.pw-admin-notice {
    padding: 12px 14px;
    background: #fff8d8;
    border-left: 4px solid #dba617;
}

.pw-product-description {
    max-width: 800px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e1e3e5;
    font-size: .95rem;
    line-height: 1.7;
}

.pw-product-description h2 {
    margin-top: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

@media (max-width: 760px) {
    .pw-product-page {
        padding: 32px 18px;
    }

    .pw-product-top {
        grid-template-columns: 1fr;
    }

    .pw-thumbnail {
        width: 64px;
        height: 64px;
    }
}

.pw-products-section {
    width: 100%;
    margin: 40px 0;
}

.pw-products-title,
.pw-archive-header h1 {
    margin: 0 0 28px;
}

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

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

.pw-product-card {
    --pw-card-accent: #d63027;
    --pw-card-dark: #1a1c1f;
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
}

.pw-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    isolation: isolate;
    background: #f8f8f8;
    text-decoration: none;
}

.pw-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.pw-card-hover-action {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 54px;
    color: #fff;
    transform: translateX(102%);
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}

.pw-card-hover-main {
    display: flex;
    flex: 1;
    gap: 9px;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    background: var(--pw-card-accent);
}

.pw-card-hover-main svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.pw-card-hover-expand {
    display: grid;
    width: 54px;
    flex: 0 0 54px;
    place-items: center;
    font-size: 21px;
    font-weight: 700;
    background: var(--pw-card-accent);
    border-left: 3px solid #fff;
}

.pw-card-image:hover .pw-card-hover-action,
.pw-card-image:focus-visible .pw-card-hover-action {
    transform: translateX(0);
}

.pw-card-image:hover img,
.pw-card-image:focus-visible img {
    transform: scale(1.018);
}

.pw-card-image:focus-visible {
    outline: 2px solid var(--pw-card-accent);
    outline-offset: 3px;
}

.pw-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 1px 5px;
    text-align: left;
}

.pw-card-content h3 {
    margin: 0 0 5px;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.35;
}

.pw-card-content h3 a {
    color: #25282b;
    text-decoration: none;
    transition: color .2s ease;
}

.pw-card-content h3 a:hover {
    color: var(--pw-card-accent);
}

.pw-card-category {
    margin-bottom: 9px;
    color: var(--pw-card-accent);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pw-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #6d7175;
    font-size: .78rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pw-card-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-end;
    margin: auto 0 0;
}

.pw-card-price span {
    color: #74777b;
    font-size: .78rem;
    text-decoration: line-through;
}

.pw-card-price strong {
    color: var(--pw-card-accent);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.pw-more-link {
    display: inline-flex;
    color: #202124;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pw-kit-card {
    --pw-kit-accent: #d63027;
    width: min(100%, 600px);
    aspect-ratio: 4 / 3;
    margin: 30px auto;
    overflow: hidden;
    background: #202124;
}

.pw-kit-card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
}

.pw-kit-card-media,
.pw-kit-card-media img,
.pw-kit-card-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pw-kit-card-media {
    background: #f5f5f5;
}

.pw-kit-card-media img {
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.pw-kit-card-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 16, 18, .88) 0%, rgba(15, 16, 18, .54) 48%, rgba(15, 16, 18, .08) 100%),
        linear-gradient(0deg, rgba(15, 16, 18, .58) 0%, transparent 58%);
    transition: background .35s ease;
}

.pw-kit-card-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    max-width: 78%;
    padding: clamp(24px, 5vw, 42px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.pw-kit-card-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
    background: var(--pw-kit-accent);
}

.pw-kit-card-title {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.pw-kit-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pw-kit-card-footer {
    display: flex;
    width: 100%;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.pw-kit-card-price {
    display: flex;
    flex-direction: column;
}

.pw-kit-card-price del {
    color: rgba(255, 255, 255, .66);
    font-size: .7rem;
}

.pw-kit-card-price strong {
    color: #fff;
    font-size: 1.16rem;
    font-weight: 800;
}

.pw-kit-card-button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 15px;
    gap: 8px;
    align-items: center;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
    background: var(--pw-kit-accent);
    transform: translateX(12px);
    transition: transform .35s ease, background .25s ease;
}

.pw-kit-card-button > span {
    font-size: 17px;
}

.pw-kit-card-link:hover .pw-kit-card-media img,
.pw-kit-card-link:focus-visible .pw-kit-card-media img {
    transform: scale(1.045);
}

.pw-kit-card-link:hover .pw-kit-card-button,
.pw-kit-card-link:focus-visible .pw-kit-card-button {
    background: #b8241d;
    transform: translateX(0);
}

.pw-kit-card-link:focus-visible {
    outline: 3px solid var(--pw-kit-accent);
    outline-offset: -3px;
}

.pw-archive-header {
    margin-bottom: 34px;
}

.pw-archive-description {
    max-width: 760px;
}

.pw-pagination {
    margin-top: 40px;
}

.pw-shortcode-warning {
    padding: 12px 14px;
    background: #fff8d8;
    border-left: 4px solid #dba617;
}

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

@media (max-width: 540px) {
    .pw-products-grid {
        grid-template-columns: 1fr;
    }

    .pw-single-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .pw-kit-card-content {
        max-width: 100%;
        padding: 22px;
    }

    .pw-kit-card-description {
        display: none;
    }

    .pw-kit-card-footer {
        align-items: flex-end;
    }
}

@media (hover: none) {
    .pw-card-hover-action {
        height: 48px;
        transform: translateX(0);
    }

    .pw-card-hover-expand {
        width: 48px;
        flex-basis: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pw-card-image img,
    .pw-card-hover-action,
    .pw-kit-card-media img,
    .pw-kit-card-button {
        transition: none;
    }
}
