/* ==========================================================
   Product details page - theme gold + brown
   ========================================================== */
.pnh-pd { padding: 70px 0 60px; }

/* sidebar list: product pack size under the name */
.pnh-pd .sidebar-style1__services-list li a small {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: .7;
}

/* ---------- Top: image + info ---------- */
.pnh-pd__top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border-radius: 26px;
    background: linear-gradient(145deg, var(--thm-gray-bg, #f5f1e0), #fff);
    border: 1px solid var(--thm-border-color-1, #ede9d8);
    box-shadow: 0 20px 55px rgba(78, 52, 46, .1);
}
.pnh-pd__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 18px;
}
.pnh-pd__ring {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--thm-primary-color-rgb), .55), rgba(var(--thm-primary-color-rgb), .1) 65%, transparent 72%);
    animation: pdGlow 4s ease-in-out infinite;
}
.pnh-pd__media::before {
    content: "";
    position: absolute;
    inset: 1%;
    border-radius: 50%;
    border: 1.5px dashed rgba(78, 52, 46, .3);
    animation: pdSpin 50s linear infinite;
}
.pnh-pd__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(78, 52, 46, .35);
    animation: pdFloat 5s ease-in-out infinite;
}
@keyframes pdGlow  { 50% { opacity: .65; transform: scale(1.04); } }
@keyframes pdSpin  { to { transform: rotate(360deg); } }
@keyframes pdFloat { 50% { transform: translateY(-10px); } }

.pnh-pd__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--thm-black-bg, #4e342e);
    background: rgba(var(--thm-primary-color-rgb), .35);
}
.pnh-pd__info h2 { margin: 16px 0 20px; font-size: 38px; line-height: 1.15; word-break: break-word; }
.pnh-pd__specs { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px dashed var(--thm-border-color-1, #ede9d8); }
.pnh-pd__specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--thm-border-color-1, #ede9d8);
}
.pnh-pd__specs span { color: var(--thm-body-font-color-3, #ab948e); }
.pnh-pd__specs strong { text-align: right; color: var(--thm-heading-font-color, #1a0e05); }

.pnh-pd__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pnh-pd__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #1a0e05;
    background: var(--thm-primary-color, #f4ca4e);
    border: 2px solid var(--thm-primary-color, #f4ca4e);
    transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pnh-pd__btn:hover { transform: translateY(-3px); color: #1a0e05; box-shadow: 0 12px 26px rgba(var(--thm-primary-color-rgb), .45); }
.pnh-pd__btn--wa { color: #fff; background: #25d366; border-color: #25d366; }
.pnh-pd__btn--wa:hover { color: #fff; box-shadow: 0 12px 26px rgba(37, 211, 102, .4); }
.pnh-pd__btn--ghost { color: var(--thm-black-bg, #4e342e); background: transparent; border-color: var(--thm-black-bg, #4e342e); }
.pnh-pd__btn--ghost:hover { color: #fff; background: var(--thm-black-bg, #4e342e); box-shadow: none; }

/* ---------- Description ---------- */
.pnh-pd__desc {
    margin-top: 34px;
    padding: 36px 38px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--thm-border-color-1, #ede9d8);
    box-shadow: 0 14px 40px rgba(78, 52, 46, .07);
}
.pnh-pd__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding-bottom: 16px;
    font-size: 26px;
    border-bottom: 2px solid var(--thm-primary-color, #f4ca4e);
}
.pnh-pd__heading i { color: var(--thm-black-bg, #4e342e); }
.pnh-pd__block + .pnh-pd__block { margin-top: 22px; }
.pnh-pd__block h4 {
    margin: 0 0 8px;
    padding-left: 14px;
    font-size: 19px;
    border-left: 4px solid var(--thm-primary-color, #f4ca4e);
}
.pnh-pd__block p { margin: 0; line-height: 1.85; color: var(--thm-body-font-color); }

/* ---------- Similar products ---------- */
.pnh-similar { padding-bottom: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .pnh-pd__top { padding: 26px; gap: 26px; }
    .pnh-pd__info h2 { font-size: 32px; }
}
@media (max-width: 767px) {
    .pnh-pd { padding: 50px 0 40px; }
    .pnh-pd__top { grid-template-columns: 1fr; padding: 22px; }
    .pnh-pd__media { max-width: 340px; width: 100%; margin: 0 auto; }
    .pnh-pd__desc { padding: 26px 22px; }
    .pnh-pd__heading { font-size: 22px; }
    .pnh-similar { padding-bottom: 70px; }
}
@media (max-width: 575px) {
    .pnh-pd__info h2 { font-size: 27px; }
    .pnh-pd__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pnh-pd__ring, .pnh-pd__media::before, .pnh-pd__media img { animation: none; }
}

/* ---------- Sticky sidebar (desktop): stays in view until the right column ends ---------- */
@media (min-width: 992px) {
    .pnh-pd .sidebar-style1 {
        position: sticky;
        top: 90px;
    }
}


/* Long product lists scroll inside the sidebar so the sticky sidebar always fits on screen */
@media (min-width: 992px) {
    .pnh-pd .sidebar-style1__services-list {
        max-height: clamp(110px, calc(100vh - 700px), 340px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--thm-primary-color, #f4ca4e) transparent;
    }
    .pnh-pd .sidebar-style1__services-list::-webkit-scrollbar { width: 6px; }
    .pnh-pd .sidebar-style1__services-list::-webkit-scrollbar-thumb { background: var(--thm-primary-color, #f4ca4e); border-radius: 6px; }
}

/* short laptop screens: keep just the product list in the sticky box so it always fits */
@media (min-width: 992px) and (max-height: 799px) {
    .pnh-pd .sidebar-style1__contact-info { display: none; }
    .pnh-pd .sidebar-style1__services-list { max-height: calc(100vh - 260px); }
}
