.catalog-content {
    min-width: 0;
}

.catalog-search {
    position: relative;
    display: flex;
    margin-bottom: 18px;
}

.catalog-search input {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 46px 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font: inherit;
}

.catalog-search input:focus {
    border-color: #99d5cb;
    outline: none;
}

.catalog-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f2f2d;
    font: inherit;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.catalog-search button:hover {
    color: var(--color-primary);
}

.catalog-search__icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.catalog-filters-bar a {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 14px;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.catalog-filters-bar a:hover {
    border-color: #99d5cb;
    background: #eef7f5;
    color: var(--color-primary);
}

.catalog-filters-bar a.is-active {
    border-color: var(--color-primary);
    background: #eef7f5;
    color: var(--color-primary);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.catalog-toolbar p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.catalog-empty {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.catalog-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.catalog-empty p {
    margin: 0;
    color: var(--color-muted);
}

.catalog-empty .button {
    margin-top: 18px;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.catalog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 48px;
    padding: 56px 0;
}

.product-detail__media {
    min-width: 0;
}

.product-detail__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef7f5, #f8fafc);
}

.product-detail__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-detail__thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.product-detail__thumb:hover,
.product-detail__thumb--active {
    border-color: var(--color-primary);
}

.product-detail__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__category {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.06;
}

.product-detail__text {
    margin: 20px 0 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.65;
}

.product-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.product-detail__meta div {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px;
}

.product-detail__meta strong,
.product-detail__meta span {
    display: block;
}

.product-detail__meta span {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
}

.product-detail__variants {
    margin-top: 28px;
}

.product-detail__variants h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.product-detail__empty {
    margin: 0;
    color: var(--color-muted);
}

.variant-options {
    display: grid;
    gap: 12px;
}

.variant-options label {
    cursor: pointer;
}

.variant-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 15px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.variant-card__mark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
}

.variant-card__size strong,
.variant-card__size small {
    display: block;
}

.variant-card__size strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.variant-card__size small {
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 13px;
}

.variant-card__stock {
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.variant-card__price {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.variant-card__price span {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.variant-options label:hover .variant-card,
.variant-options input:checked + .variant-card {
    border-color: var(--color-primary);
    background: #eef7f5;
}

.variant-options input:checked + .variant-card .variant-card__mark {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: inset 0 0 0 5px #eef7f5;
}

.product-detail__warning {
    margin-top: 28px;
    padding: 20px;
    border-left: 3px solid #c49a6c;
    border-radius: 0 8px 8px 0;
    background: #f7efe5;
}

.product-detail__warning strong {
    display: block;
    margin-bottom: 8px;
    color: #9a6a3a;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail__warning p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.product-detail__buy {
    margin-top: 28px;
}

.product-detail__buy strong {
    font-size: 22px;
}

.product-detail__buy button {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    background: var(--color-primary);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}

#cart-action-result {
    margin-top: 14px;
}

.cart-action-result {
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    font-size: 14px;
    font-weight: 700;
}

.cart-action-result--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.4fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 56px;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.cart-item__image {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: linear-gradient(135deg, #eef7f5, #f8fafc);
    overflow: hidden;
}

.cart-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.cart-item__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.cart-item__title p {
    margin: 0;
    font-size: 18px;
}

.cart-item__details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item__variant {
    color: var(--color-muted);
    font-size: 14px;
}

.cart-item__quantity {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.cart-item__quantity form {
    display: flex;
    margin: 0;
}

.cart-item__quantity button {
    width: 32px;
    height: 32px;
    border: 0;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cart-item__quantity button:hover {
    background: #eef7f5;
    color: var(--color-primary);
}

.cart-item__quantity span {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.cart-item > strong {
    align-self: end;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
}

.cart-item__remove {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-item__remove:hover {
    color: var(--color-primary);
}

.cart-item > form {
    position: absolute;
    top: 10px;
    right: 12px;
    margin: 0;
}

.cart-summary {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.cart-summary h2 {
    margin: 0;
    font-size: 22px;
}

.cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.cart-summary__row span {
    color: var(--color-muted);
}

.cart-summary__row strong {
    font-weight: 400;
    text-align: right;
}

.cart-summary .button {
    width: 100%;
}

.cart-empty {
    display: block;
    min-height: 440px;
    padding: 72px 24px;
    text-align: center;
}

.cart-empty h2 {
    margin: 28px 0 24px;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
}

.cart-empty .button {
    min-width: 212px;
}

.checkout-unavailable {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 520px;
    padding: 48px 24px;
    text-align: center;
}

.checkout-unavailable h1 {
    max-width: 680px;
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
}

.checkout-unavailable p {
    max-width: 560px;
    margin: 18px 0 28px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.55;
}

.checkout-unavailable .button {
    min-width: 180px;
}

.standards-coming-soon {
    display: grid;
    min-height: 520px;
    place-items: center;
    align-content: center;
    padding: 48px 24px;
    text-align: center;
}

.standards-coming-soon__eyebrow {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.standards-coming-soon h1 {
    max-width: 680px;
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
}

.standards-coming-soon__description {
    max-width: 560px;
    margin: 18px 0 28px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.55;
}

.standards-coming-soon .button {
    min-width: 180px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 56px;
}

.checkout-note {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #ecfdf5;
}

.checkout-note strong,
.checkout-note span {
    display: block;
}

.checkout-note strong {
    margin-bottom: 4px;
    color: var(--color-primary);
}

.checkout-note span {
    color: var(--color-muted);
    font-size: 14px;
}

.checkout-form,
.checkout-summary {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.checkout-form {
    display: grid;
    gap: 24px;
    padding: 24px;
}

.checkout-section {
    display: grid;
    gap: 16px;
}

.checkout-section h2,
.checkout-summary h2 {
    margin: 0;
    font-size: 22px;
}

.checkout-section label {
    display: grid;
    gap: 8px;
}

.checkout-section label span {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.checkout-section input,
.checkout-section textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font: inherit;
}

.checkout-section textarea {
    resize: vertical;
}

.checkout-summary {
    display: grid;
    gap: 18px;
    padding: 22px;
    background: #f8fafc;
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-item:last-of-type {
    border-bottom: 0;
}

.checkout-item__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.checkout-summary .checkout-item__image {
    width: 44px;
    max-width: 44px;
    height: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #eef7f5, #f8fafc);
}

.checkout-summary .checkout-item__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.checkout-item p {
    margin: 0 0 4px;
    font-weight: 700;
}

.checkout-item span {
    color: var(--color-muted);
    font-size: 14px;
}

.checkout-item strong {
    white-space: nowrap;
}

.checkout-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.checkout-summary__row span {
    color: var(--color-muted);
}

.checkout-summary__link {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.checkout-summary__link:hover {
    text-decoration: underline;
}

.checkout-error {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
}

.checkout-field-error {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.3;
}

.checkout-field-error:empty {
    display: none;
}

.checkout-form input:disabled,
.checkout-form textarea:disabled,
.checkout-form button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.checkout-success {
    display: grid;
    justify-items: center;
    min-height: 440px;
    padding: 96px 24px;
    text-align: center;
}

.checkout-success__icon {
    position: relative;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.checkout-success__icon::before {
    position: absolute;
    top: 20px;
    left: 18px;
    width: 20px;
    height: 10px;
    border-bottom: 4px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    content: "";
    transform: rotate(-45deg);
}

.checkout-success h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
}

.checkout-success p {
    max-width: 520px;
    margin: 18px 0 28px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.6;
}

.checkout-success__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.toast {
    position: fixed;
    left: 24px;
    bottom: 32px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgb(17 24 39 / 12%);
}

.toast__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #059669;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.toast__icon::before {
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.toast--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.toast--error .toast__icon {
    background: #dc2626;
}

.toast--error .toast__icon::before,
.toast--error .toast__icon::after {
    position: absolute;
    width: 9px;
    height: 2px;
    border: 0;
    background: currentColor;
    content: "";
}

.toast--error .toast__icon::before {
    transform: rotate(45deg);
}

.toast--error .toast__icon::after {
    transform: rotate(-45deg);
}

.toast--pulse {
    animation: toast-pulse 0.22s ease-out;
}

@keyframes toast-pulse {
    0% {
        opacity: 0.72;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

