.product-page {
    position: relative;
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.product-page .container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    width: 100%;
}

.product-hero {
    position: relative;
    padding: 54px 0 26px;
    overflow: hidden;
}

.product-hero-glow {
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 520px;
    background: radial-gradient(ellipse at center, rgba(var(--pink-rgb), 0.16), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.product-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: productFadeUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.product-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
    max-width: 32ch;
}

.product-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.phm-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.6;
}

.phm-item svg {
    flex-shrink: 0;
}

.phm-rating {
    color: var(--amber);
}

.phm-muted {
    color: var(--faint);
}

.phm-muted svg {
    color: var(--faint);
    opacity: 0.6;
}

.phm-in {
    color: var(--green);
}

.phm-out {
    color: var(--red);
}

.phm-sale {
    color: var(--pink);
    border-color: rgba(var(--pink-rgb), 0.35);
    background: rgba(var(--pink-rgb), 0.08);
}

.phm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.product-main {
    padding-top: 12px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    margin-bottom: 54px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--header) + 20px);
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.gallery-main a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-main:hover img {
    transform: scale(1.04);
}

.gallery-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--pink);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 10px;
    z-index: 1;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}

.thumbnail {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1.5px solid var(--line);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.thumbnail:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(var(--pink-rgb), 0.15);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.product-price-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0, rgba(var(--pink-rgb), 0.08), transparent 60%);
    pointer-events: none;
}

.price-labels {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.price-old {
    color: var(--faint);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-save {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: rgba(var(--pink-rgb), 0.12);
    border: 1px solid rgba(var(--pink-rgb), 0.3);
    color: var(--pink);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.price-current small {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-short-desc {
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-short-desc h3 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}

.product-short-desc p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.95;
    margin: 0;
}

.product-buy-form {
    margin: 0;
}

.buy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    height: 52px;
}

.qty-btn {
    width: 42px;
    height: 100%;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.qty-btn:hover {
    color: var(--ink);
    background: var(--pink);
}

.qty-selector input {
    width: 54px;
    height: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    outline: none;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-buy {
    flex: 1;
    min-width: 180px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--pink);
    color: var(--ink);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    padding: 0 22px;
}

.btn-buy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-110%);
    transition: transform 0.8s;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(var(--pink-rgb), 0.6);
}

.btn-buy:hover:not(:disabled)::before {
    transform: translateX(110%);
}

.btn-buy:disabled,
.btn-buy.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-wish {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-wish:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.06);
    transform: translateY(-2px);
}

.product-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.product-meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.product-meta-list li:last-child {
    border-bottom: none;
}

.pml-label {
    color: var(--faint);
    font-weight: 600;
    white-space: nowrap;
}

.pml-value {
    color: var(--text);
    font-weight: 700;
    text-align: end;
    min-width: 0;
}

.pml-value a {
    color: var(--pink);
    text-decoration: none;
    transition: opacity 0.2s;
}

.pml-value a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.pml-sep {
    color: var(--faint);
    font-weight: 400;
    margin: 0 4px;
}

.pml-out {
    color: var(--red);
}

.giveaway-section {
    padding: 72px 0;
}

.giveaway-section .container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.giveaway-panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: clamp(44px, 6vw, 80px) 24px;
    background-color: var(--bg-2);
    background-image: radial-gradient(ellipse at 50% 0%,
            rgba(var(--pink-rgb), 0.16) 0%,
            transparent 60%),
        linear-gradient(180deg,
            rgba(11, 11, 18, 0.8) 0%,
            rgba(11, 11, 18, 0.92) 100%);
    background-size: cover;
    background-position: 0 -300px;
    background-repeat: no-repeat;
}

.gv-tick {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid var(--pink);
}

.gv-tick.c1 {
    top: 16px;
    right: 16px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.gv-tick.c2 {
    top: 16px;
    left: 16px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.gv-tick.c3 {
    bottom: 16px;
    right: 16px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.gv-tick.c4 {
    bottom: 16px;
    left: 16px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.giveaway-title {
    font-size: clamp(1.7rem, 4.5vw, 3.1rem);
    font-weight: 900;
    margin: 0 0 36px;
    line-height: 1.4;
    color: var(--text);
    border-radius: var(--radius);
    background: var(--ink);
    padding: 8px;
}

.giveaway-title span {
    color: var(--pink);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.cd-box {
    min-width: 96px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 10px 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.cd-box:hover {
    transform: translateY(-3px);
    border-color: var(--pink);
}

.cd-num {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 2rem;
    color: white;
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}

.cd-label {
    display: block;
    color: var(--faint);
    font-size: 0.76rem;
    margin-top: 8px;
    font-weight: 600;
}

.btn-join {
    padding: 16px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius);
    background: var(--pink);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-decoration: none;
    line-height: 1;
    font-weight: 800;
    padding: 13px 24px;
    transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.btn-join:hover {
    background: var(--pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(var(--pink-rgb), 0.55);
}

.product-tabs {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 54px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--panel-2);
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 18px 26px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s;
}

.tab-btn svg {
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--pink);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 2px 2px 0 0;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.tab-btn.active .tab-count {
    background: rgba(var(--pink-rgb), 0.12);
    border-color: rgba(var(--pink-rgb), 0.3);
    color: var(--pink);
}

.tabs-content {
    padding: 28px 30px 30px;
}

.tab-pane {
    display: none;
    animation: productFadeUp 0.4s ease both;
}

.tab-pane.active {
    display: block;
}

.full-description {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 2;
    word-break: break-word;
}

.full-description p {
    margin: 0 0 1.2em;
}

.full-description p:last-child {
    margin-bottom: 0;
}

.full-description .muted {
    color: var(--faint);
    font-style: italic;
}

.reviews-summary {
    padding: 22px 24px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-average {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.rs-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.rs-stars {
    color: var(--amber);
    display: inline-flex;
    gap: 3px;
}

.rs-count {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.review-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(var(--pink-rgb), 0.05);
    border: 1px solid rgba(var(--pink-rgb), 0.2);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.review-notice svg {
    color: var(--pink);
    flex-shrink: 0;
}

.review-notice-login {
    justify-content: space-between;
}

.review-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--pink);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(var(--pink-rgb), 0.6);
}

.add-review-form {
    padding: 22px 24px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 26px;
}

.add-review-form h4 {
    margin: 0 0 18px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.review-form-content {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 18px;
    align-items: start;
}

.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-input>label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    display: inline-flex;
    color: var(--line-strong);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    padding: 2px;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: var(--amber);
}

.star-rating label:hover {
    transform: scale(1.12);
}

.comment-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input>label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.comment-input textarea {
    width: 100%;
    min-height: 100px;
    max-height: 260px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.8;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-input textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(var(--pink-rgb), 0.12);
}

.comment-input textarea::placeholder {
    color: var(--faint);
}

.submit-review-container {
    display: flex;
    justify-content: flex-end;
}

.submit-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    background: var(--pink);
    color: var(--ink);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(var(--pink-rgb), 0.6);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item {
    padding: 20px 22px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.25s, transform 0.25s;
}

.review-item:hover {
    border-color: rgba(var(--pink-rgb), 0.35);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line-strong);
    flex-shrink: 0;
    background: var(--bg-2);
}

.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.review-username {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    color: var(--faint);
    font-size: 0.76rem;
    font-weight: 600;
}

.review-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--amber);
    flex-shrink: 0;
}

.review-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.9;
    word-break: break-word;
}

.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 44px 20px;
    background: var(--panel-2);
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    color: var(--faint);
    text-align: center;
}

.reviews-empty p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.related-products {
    margin-top: 8px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--pink);
    font-weight: 800;
    font-size: 0.82rem;
    margin: 0;
}

.kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
}

.section-title h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 11px;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s;
}

.btn-ghost-sm:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

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

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--pink-rgb), 0.5);
    box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.75);
}

.card-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-2);
}

.card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .card-media img {
    transform: scale(1.06);
}

.badge-sale {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: var(--pink);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.stock-pill {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9px;
    background: rgba(10, 10, 16, 0.72);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.stock-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.stock-pill.in {
    color: var(--green);
}

.stock-pill.out {
    color: var(--red);
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
    color: var(--text);
    margin: 0;
    transition: color 0.25s;
}

.product-card:hover .card-title {
    color: var(--pink);
}

.card-title a,
.card-title a:visited,
.card-title a:hover,
.card-title a:active,
.card-title a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--amber);
    font-weight: 700;
    font-size: 0.78rem;
}

.card-rating svg {
    flex-shrink: 0;
}

.card-rating.is-empty {
    color: var(--faint);
}

.card-rating.is-empty svg {
    opacity: 0.4;
}

.card-rating.is-empty span {
    font-weight: 600;
    font-size: 0.72rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-row .price-old {
    color: var(--faint);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
}

.price-current small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    margin-inline-start: 4px;
}

.card-actions {
    display: flex;
    margin-top: 2px;
}

.card-actions form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-wishlist {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-wishlist:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.08);
    transform: translateY(-2px);
}

.btn-wish.active {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.12);
}

.btn-wish.active svg {
    fill: currentColor;
}

.btn-wishlist.active {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.15);
}

.btn-wishlist.active svg {
    fill: currentColor;
}

.add-cart-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: 12px;
    padding: 11px 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-cart-btn:hover:not(:disabled) {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--ink);
    transform: translateY(-2px);
}

.add-cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.add-cart-btn svg {
    flex-shrink: 0;
}

@keyframes productFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .product-page .container {
        padding-inline: 20px;
    }

    .product-hero {
        padding: 44px 0 22px;
    }

    .product-layout {
        gap: 30px;
        margin-bottom: 44px;
    }

    .giveaway-section {
        padding: 72px 0;
    }

    .giveaway-panel {
        background-position: bottom;
    }

    .tabs-content {
        padding: 24px 24px 26px;
    }

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

@media (max-width: 768px) {
    .product-page {
        padding-bottom: 70px;
    }

    .product-page .container {
        padding-inline: 18px;
    }

    .product-hero {
        padding: 34px 0 18px;
    }

    .product-hero-title {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .product-hero-meta {
        gap: 8px;
    }

    .phm-item {
        font-size: 0.76rem;
        padding: 6px 12px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 36px;
    }

    .product-gallery {
        position: static;
    }

    .gallery-main {
        aspect-ratio: 4/3;
        border-radius: var(--radius);
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }

    .product-price-box {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .price-current {
        font-size: 1.7rem;
    }

    .buy-row {
        gap: 8px;
    }

    .qty-selector {
        height: 48px;
    }

    .qty-btn {
        width: 38px;
    }

    .qty-selector input {
        width: 46px;
        font-size: 0.94rem;
    }

    .btn-buy {
        height: 48px;
        font-size: 0.9rem;
        min-width: 0;
        padding: 0 16px;
        gap: 8px;
    }

    .btn-wish {
        width: 48px;
        height: 48px;
    }

    .product-meta-list li {
        padding: 11px 15px;
        font-size: 0.83rem;
    }

    .giveaway-section {
        padding: 50px 0;
    }

    .giveaway-panel {
        padding: 36px 18px;
        border-radius: var(--radius);
    }

    .giveaway-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .countdown {
        gap: 10px;
        margin-bottom: 28px;
    }

    .cd-box {
        min-width: 76px;
        padding: 12px 8px 10px;
        border-radius: 12px;
    }

    .cd-num {
        font-size: 1.6rem;
    }

    .cd-label {
        font-size: 0.7rem;
    }

    .product-tabs {
        border-radius: 16px;
    }

    .tab-btn {
        padding: 15px 18px;
        font-size: 0.86rem;
        gap: 7px;
    }

    .tab-btn svg {
        width: 14px;
        height: 14px;
    }

    .tabs-content {
        padding: 20px 18px 22px;
    }

    .review-form-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .add-review-form {
        padding: 18px 18px;
    }

    .submit-review-container {
        justify-content: stretch;
    }

    .submit-review-btn {
        width: 100%;
        justify-content: center;
    }

    .review-item {
        padding: 16px 18px;
    }

    .review-avatar {
        width: 38px;
        height: 38px;
    }

    .section-head {
        margin-bottom: 22px;
    }

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

    .card-body {
        padding: 12px;
        gap: 8px;
    }

    .card-title {
        font-size: 0.88rem;
    }

    .price-current {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-page .container {
        padding-inline: 14px;
    }

    .product-hero {
        padding: 24px 0 16px;
    }

    .product-hero-title {
        font-size: 1.3rem;
    }

    .phm-item {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 6px;
    }

    .phm-item svg {
        width: 12px;
        height: 12px;
    }

    .gallery-main {
        aspect-ratio: 1 / 1;
        border-radius: var(--radius);
    }

    .gallery-badge {
        top: 10px;
        inset-inline-start: 10px;
        padding: 4px 9px;
        font-size: 0.68rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
        gap: 6px;
    }

    .thumbnail {
        border-radius: 10px;
    }

    .product-price-box {
        padding: 14px 16px;
        border-radius: var(--radius);
    }

    .price-current {
        font-size: 1.5rem;
    }

    .price-current small {
        font-size: 0.72rem;
    }

    .price-old {
        font-size: 0.82rem;
    }

    .product-short-desc p {
        font-size: 0.88rem;
        line-height: 1.85;
    }

    .buy-row {
        gap: 6px;
    }

    .qty-selector {
        height: 44px;
        border-radius: 12px;
    }

    .qty-btn {
        width: 34px;
    }

    .qty-selector input {
        width: 40px;
        font-size: 0.88rem;
    }

    .btn-buy {
        height: 44px;
        font-size: 0.82rem;
        border-radius: 12px;
        padding: 0 12px;
        gap: 6px;
    }

    .btn-buy svg {
        width: 14px;
        height: 14px;
    }

    .btn-wish {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .btn-wish svg {
        width: 16px;
        height: 16px;
    }

    .product-meta-list {
        border-radius: 12px;
    }

    .product-meta-list li {
        padding: 10px 13px;
        font-size: 0.78rem;
        gap: 10px;
    }

    .giveaway-panel {
        padding: 30px 14px;
        border-radius: 16px;
    }

    .giveaway-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
        line-height: 1.5;
        border-radius: var(--radius);
        background: var(--ink);
        padding: 8px;
    }

    .countdown {
        gap: 8px;
    }

    .cd-box {
        min-width: 68px;
        padding: 10px 6px 8px;
    }

    .cd-num {
        font-size: 1.4rem;
    }

    .cd-label {
        font-size: 0.65rem;
        margin-top: 6px;
    }

    .nf-body {
        padding: 16px 18px 20px;
        gap: 10px;
    }

    .nf-body h3 {
        font-size: 1.05rem;
    }

    .nf-excerpt {
        font-size: 0.85rem;
    }

    .meta-row {
        font-size: 0.72rem;
        gap: 10px;
    }

    .product-tabs {
        border-radius: var(--radius);
        margin-bottom: 36px;
    }

    .tab-btn {
        padding: 13px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .tab-btn svg {
        width: 13px;
        height: 13px;
    }

    .tab-count {
        height: 18px;
        min-width: 20px;
        font-size: 0.65rem;
    }

    .tabs-content {
        padding: 16px 14px 18px;
    }

    .full-description {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .reviews-summary {
        padding: 16px 16px;
        border-radius: var(--radius);
    }

    .rs-num {
        font-size: 1.9rem;
    }

    .rs-stars svg {
        width: 14px;
        height: 14px;
    }

    .rs-count {
        font-size: 0.78rem;
    }

    .review-notice {
        padding: 13px 15px;
        font-size: 0.8rem;
        gap: 10px;
    }

    .review-notice svg {
        width: 18px;
        height: 18px;
    }

    .add-review-form {
        padding: 15px 15px;
        border-radius: var(--radius);
    }

    .add-review-form h4 {
        font-size: 0.94rem;
        margin-bottom: 14px;
    }

    .rating-input>label,
    .comment-input>label {
        font-size: 0.76rem;
    }

    .star-rating svg {
        width: 22px;
        height: 22px;
    }

    .comment-input textarea {
        font-size: 0.86rem;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .submit-review-btn {
        padding: 11px 18px;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .review-item {
        padding: 14px 14px;
        border-radius: var(--radius);
    }

    .review-avatar {
        width: 34px;
        height: 34px;
    }

    .review-username {
        font-size: 0.86rem;
    }

    .review-date {
        font-size: 0.7rem;
    }

    .review-content p {
        font-size: 0.86rem;
    }

    .section-title h2 {
        font-size: 1.1rem;
    }

    .kicker {
        font-size: 0.75rem;
    }

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

    .card-body {
        padding: 10px;
        gap: 7px;
    }

    .card-title {
        font-size: 0.82rem;
        min-height: 3em;
        line-height: 1.5;
    }

    .card-rating {
        font-size: 0.72rem;
    }

    .price-row .price-current {
        font-size: 0.95rem;
    }

    .price-row .price-old {
        font-size: 0.72rem;
    }

    .price-current small {
        font-size: 0.62rem;
    }

    .card-actions form {
        gap: 6px;
    }

    .btn-wishlist {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .btn-wishlist svg {
        width: 14px;
        height: 14px;
    }

    .add-cart-btn {
        padding: 9px 8px;
        font-size: 0.74rem;
        gap: 5px;
        border-radius: 10px;
    }

    .add-cart-btn svg {
        width: 12px;
        height: 12px;
    }

    .badge-sale,
    .stock-pill {
        font-size: 0.62rem;
        padding: 3px 8px;
        top: 8px;
    }

    .badge-sale {
        inset-inline-start: 8px;
    }

    .stock-pill {
        inset-inline-end: 8px;
    }
}