/* ═══ Manicure Show Page ═══ */

/* ── MAIN LAYOUT ── */
.page-wrapper { max-width: 1440px; margin: 0 auto; padding: 24px 32px 80px; }
.product-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }

/* ── GALLERY ── */
.gallery { position: relative; }
.gallery-main {
    width: 100%; max-height: 85vh;
    border-radius: var(--radius); overflow: hidden;
    background: var(--blush-light); position: relative;
    box-shadow: var(--shadow-md);
}
.gallery-main img {
    width: 100%; height: auto; display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--warm-brown); color: var(--warm-white);
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
}
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    border: none; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1); color: var(--text);
}
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav--prev { left: 16px; }
.gallery-nav--next { right: 16px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    width: 72px; height: 90px; border-radius: var(--radius-xs);
    overflow: hidden; cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); flex-shrink: 0; opacity: 0.6;
}
.gallery-thumb.active { border-color: var(--rose); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(61,43,43,0.7); backdrop-filter: blur(6px);
    color: #fff; font-size: 12px; font-weight: 500; padding: 4px 14px;
    border-radius: 100px;
}
.gallery-placeholder {
    width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius);
    background: var(--blush-light); display: flex; align-items: center;
    justify-content: center; color: var(--text-light); font-size: 48px;
}

/* ── DETAILS SIDEBAR ── */
.details { position: sticky; top: 96px; z-index: 1; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--blush) transparent; }
.details::-webkit-scrollbar { width: 4px; }
.details::-webkit-scrollbar-track { background: transparent; }
.details::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 4px; }
.details-status { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 100px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.status-badge--approved { background: #E8F5E8; color: var(--green); }
.status-badge--featured { background: #FFF3E0; color: #C4871D; }
.status-badge--pending { background: #FFF8E1; color: #F57F17; }
.status-badge--rejected { background: #FFEBEE; color: #C62828; }
.status-badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-badge--approved .status-badge-dot { background: var(--green); }
.status-badge--featured .status-badge-dot { background: #C4871D; }
.status-badge--pending .status-badge-dot { background: #F57F17; }
.status-badge--rejected .status-badge-dot { background: #C62828; }
.details-title {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 600; line-height: 1.15;
    color: var(--warm-brown); margin-bottom: 12px; letter-spacing: -0.3px;
}
.details-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--text-muted); font-weight: 400;
}
.meta-item svg { width: 15px; height: 15px; }
.meta-item strong { font-weight: 600; color: var(--text); }
.meta-divider { width: 1px; height: 14px; background: var(--border); }
.details-description {
    font-size: 14.5px; color: var(--text); line-height: 1.7;
    margin-bottom: 24px; font-weight: 300;
}

/* ── ACTION BUTTONS ── */
.actions-row { display: flex; gap: 10px; margin-bottom: 24px; }
.action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--warm-white); color: var(--text);
    font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.action-btn svg { width: 18px; height: 18px; }
.action-btn:hover { border-color: var(--rose); color: var(--burgundy); background: var(--blush-light); }
.action-btn--like.liked { background: #FFF0F0; border-color: #E8A0A0; color: #D35555; }
.action-btn--like.liked svg { fill: #D35555; }
.action-btn--favorite.saved { background: #FFF8EB; border-color: #E0C88A; color: #A88930; }
.action-btn--favorite.saved svg { fill: #C4A030; }

.share-row {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.share-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; margin-right: 4px; }
.share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--warm-white);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn--fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn--pin:hover { background: #E60023; color: #fff; border-color: #E60023; }
.share-btn--tw:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.share-btn--link:hover { background: var(--warm-brown); color: #fff; border-color: var(--warm-brown); }

/* ── ATTRIBUTES ── */
.attr-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.attr-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.attr-section-title {
    font-size: 11.5px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.attr-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.attr-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    background: var(--blush-light); border: 1px solid var(--blush);
    font-size: 12.5px; font-weight: 400; color: var(--text); transition: var(--transition);
}
a.attr-pill { text-decoration: none; cursor: pointer; }
a.attr-pill:hover {
    background: var(--blush);
    border-color: var(--rose);
    color: var(--burgundy);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(201,146,138,0.15);
}
.attr-color-dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1); flex-shrink: 0;
}
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
    padding: 5px 14px; border-radius: 100px;
    background: transparent; border: 1.5px solid var(--border);
    font-size: 12.5px; font-weight: 400; color: var(--text-muted);
    text-decoration: none; transition: var(--transition);
}
.tag-link:hover { border-color: var(--rose); color: var(--text); background: var(--blush-light); }

/* ── AUTHOR CARD ── */
.author-card {
    background: var(--warm-white); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
    border: 1px solid var(--border);
}
.author-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blush); overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--blush); display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600; color: var(--warm-brown);
}
.author-role { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.author-verified {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500; color: var(--green);
}
.author-verified svg { width: 13px; height: 13px; }
.author-stats {
    display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border);
}
.author-stat { text-align: center; flex: 1; }
.author-stat-num {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--warm-brown); line-height: 1;
}
.author-stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ── COMMENTS ── */
.comments-section { margin-top: 32px; }
.section-heading {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 600; color: var(--warm-brown);
    margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.section-heading-count { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-light); }
.comment-form { display: flex; gap: 14px; margin-bottom: 36px; align-items: flex-start; }
.comment-form-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--blush); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: var(--text-light);
}
.comment-form-avatar svg { width: 20px; height: 20px; }
.comment-form-input-wrap { flex: 1; }
.comment-form-input {
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 14px; color: var(--text); background: var(--warm-white);
    outline: none; resize: vertical; min-height: 48px; max-height: 300px; transition: var(--transition);
}
.comment-form.active .comment-form-input { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,146,138,0.12); min-height: 100px; }
.comment-form-input::placeholder { color: var(--text-light); }
.comment-form-actions {
    display: flex; justify-content: flex-end; margin-top: 10px;
    opacity: 0; max-height: 0; transition: all 0.25s ease; overflow: hidden;
}
.comment-form.active .comment-form-actions { opacity: 1; max-height: 50px; }
.comment-submit {
    padding: 9px 24px; border-radius: 100px;
    background: var(--warm-brown); color: var(--warm-white);
    border: none; font-family: var(--font-body); font-size: 13px;
    font-weight: 500; cursor: pointer; transition: var(--transition);
}
.comment-submit:hover { background: var(--burgundy); }
.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--blush); overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13.5px; font-weight: 600; color: var(--warm-brown); }
.comment-date { font-size: 12px; color: var(--text-light); }
.comment-body { font-size: 14px; color: var(--text); line-height: 1.65; font-weight: 300; }
.comment-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.comment-action {
    font-size: 12px; color: var(--text-light); font-weight: 500;
    cursor: pointer; border: none; background: none;
    font-family: var(--font-body); display: flex; align-items: center; gap: 4px; transition: var(--transition);
}
.comment-action svg { width: 13px; height: 13px; }
.comment-action:hover { color: var(--rose-deep); }
.comment-action.liked { color: #D35555; }
.comment-action.liked svg { fill: #D35555; }
.comment-like-count { font-size: 12px; }
.reply-form {
    display: none; margin-top: 12px; padding: 12px 0;
}
.reply-form.open { display: block; }
.reply-form textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-xs); font-family: var(--font-body);
    font-size: 13px; color: var(--text); background: var(--warm-white);
    outline: none; resize: none; min-height: 70px; transition: var(--transition);
}
.reply-form textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,146,138,0.12); }
.reply-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.reply-form-btn {
    padding: 7px 18px; border-radius: 100px; border: none;
    font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.reply-form-btn--submit { background: var(--warm-brown); color: var(--warm-white); }
.reply-form-btn--submit:hover { background: var(--burgundy); }
.reply-form-btn--cancel { background: var(--cream); color: var(--text-muted); border: 1px solid var(--border); }
.reply-form-btn--cancel:hover { background: var(--blush-light); }
.reply-form-success { display: none; color: var(--green); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.reply-form-error { display: none; color: #C62828; font-size: 12px; margin-top: 6px; }
.comment-replies {
    margin-top: 16px; margin-left: 0; padding-left: 20px;
    border-left: 2px solid var(--blush);
}
.comment-replies .comment { padding: 14px 0; }
.comment-replies .comment-avatar { width: 30px; height: 30px; }

/* ── RELATED ── */
.related-section { margin-top: 64px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
    background: var(--warm-white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    text-decoration: none; color: inherit;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-card-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--blush-light); }
.related-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-body { padding: 12px 14px 14px; }
.related-card-title {
    font-family: var(--font-display); font-size: 16px; font-weight: 600;
    color: var(--warm-brown); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-card-stats {
    display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-light);
}
.related-card-stats svg { width: 13px; height: 13px; }
.related-card-stat { display: flex; align-items: center; gap: 3px; }

/* ── DATE ── */
.date-info {
    font-size: 12.5px; color: var(--text-light); margin-bottom: 20px;
    display: flex; align-items: center; gap: 6px;
}
.date-info svg { width: 14px; height: 14px; }

/* ── MODERATION INFO ── */
.moderation-info {
    background: var(--blush-light); border: 1px solid var(--blush);
    border-radius: var(--radius-sm); padding: 14px 18px;
    margin-bottom: 24px; font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; gap: 10px;
}
.moderation-info svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ── AUTH POPUP ── */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,43,43,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.auth-overlay.open { display: flex; }
.auth-modal {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 40px 36px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeUp 0.3s ease;
    position: relative;
}
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.auth-modal-close:hover { background: var(--blush); color: var(--warm-brown); }
.auth-modal-close svg { width: 16px; height: 16px; }
.auth-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blush-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--rose-deep);
}
.auth-modal-icon svg { width: 26px; height: 26px; }
.auth-modal-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--warm-brown);
    margin-bottom: 8px;
}
.auth-modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.5;
}
.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1.5px solid var(--border);
    background: var(--warm-white);
    color: var(--text);
}
.auth-modal-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-modal-btn:hover { border-color: var(--rose); color: var(--burgundy); background: var(--blush-light); }
.auth-modal-btn--primary {
    background: var(--warm-brown);
    color: var(--warm-white);
    border-color: var(--warm-brown);
}
.auth-modal-btn--primary:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--warm-white); }
.auth-modal-btn--google {
    background: var(--warm-white);
    border-color: var(--border);
    color: var(--text);
}
.auth-modal-btn--google:hover { background: #f8f8f8; border-color: #ccc; }

/* ── ANIMATIONS ── */
.gallery { animation: fadeUp 0.6s ease forwards; }
.details { animation: fadeUp 0.6s 0.1s ease both; }
.comments-section { animation: fadeUp 0.5s 0.2s ease both; }
.related-section { animation: fadeUp 0.5s 0.25s ease both; }
.related-card { opacity: 0; animation: fadeUp 0.4s ease both; }

/* ── RESPONSIVE: ULTRAWIDE ── */
@media (min-width: 1600px) {
    .related-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .product-layout { grid-template-columns: 1fr 360px; gap: 32px; } }
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .details { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .details-title { font-size: 30px; }
}
@media (max-width: 600px) {
    .page-wrapper { padding: 16px 16px 60px; }
    .details-title { font-size: 24px; }
    .details-meta { gap: 10px; }
    .meta-divider { display: none; }
    .meta-item { font-size: 12px; }
    .gallery-thumbs { gap: 6px; padding-bottom: 4px; }
    .gallery-thumb { width: 56px; height: 70px; }
    .gallery-nav { width: 36px; height: 36px; }
    .gallery-nav svg { width: 16px; height: 16px; }
    .related-grid { gap: 12px; }
    .comment-form { gap: 10px; }
    .author-stats { gap: 12px; }
    .share-btn { width: 44px; height: 44px; }
    .share-row { gap: 6px; flex-wrap: wrap; }
    .actions-row { gap: 8px; }
    .action-btn { padding: 12px 12px; font-size: 13px; min-height: 48px; }
    .action-btn svg { width: 16px; height: 16px; }
    .attr-pills { gap: 8px; }
    .attr-pill { padding: 8px 14px; font-size: 13px; }
    .section-heading { font-size: 24px; margin-bottom: 20px; }
    .comment { gap: 10px; padding: 16px 0; }
    .comment-avatar { width: 32px; height: 32px; }
    .comment-replies { padding-left: 16px; }
    .comment-replies .comment-avatar { width: 28px; height: 28px; }
    .auth-modal { padding: 32px 24px; }
}
