/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGE — 3-Column Layout
   Fully fluid with clamp() — no hard px breakpoint jumps
═══════════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.pdp-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
    padding-top: 90px; /* gap below fixed header */
    padding-bottom: clamp(40px, 6vw, 80px);
}

/* ── BREADCRUMB ── */
.pdp-breadcrumb {
    padding: clamp(0.6rem, 1.2vw, 0.85rem) clamp(4%, 5%, 5%);
    font-size: clamp(0.72rem, 1.1vw, 0.8rem);
    font-weight: 600;
    color: var(--text-mid);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.pdp-breadcrumb a {
    color: var(--text-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.pdp-breadcrumb a:hover { color: var(--red); }

/* ── MAIN 3-COLUMN GRID ── */
.pdp-grid {
    display: grid;
    grid-template-columns: clamp(240px, 26vw, 340px) 1fr clamp(280px, 30vw, 390px);
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    max-width: 1300px;
    margin: 0 auto;
    padding: clamp(0.75rem, 1.5vw, 1.5rem) clamp(4%, 5%, 5%);
    align-items: start;
}

/* ═══════ LEFT COLUMN ═══════ */
.pdp-left { position: sticky; top: 80px; }

/* Product image card */
.pdp-image-card {
    background: var(--black);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    max-height: clamp(300px, 35vw, 420px);
}

.pdp-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    display: block;
}

/* Overlay content on image */
.pdp-image-overlay {
    position: absolute;
    inset: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdp-image-badge {
    background: var(--red);
    color: white;
    font-size: clamp(0.58rem, 0.9vw, 0.7rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.pdp-image-title {
    color: white;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.pdp-image-title span { color: var(--red); }

.pdp-image-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(220,38,38,0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    align-self: flex-start;
}

.pdp-image-price-tag .amt   { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 900; }
.pdp-image-price-tag .suffix { font-size: clamp(0.65rem, 1vw, 0.75rem); font-weight: 600; opacity: 0.85; }

/* Trust badges below image */
.pdp-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
    margin-top: 0.75rem;
}

.pdp-trust-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(0.55rem, 1vw, 0.75rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdp-trust-item i {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--red);
    flex-shrink: 0;
}

.pdp-trust-item .ti-title {
    font-size: clamp(0.68rem, 1vw, 0.78rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.pdp-trust-item .ti-sub {
    font-size: clamp(0.6rem, 0.85vw, 0.68rem);
    color: var(--text-light);
}

/* ═══════ MIDDLE COLUMN ═══════ */
.pdp-middle {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.pdp-middle-title {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.pdp-middle-sub {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

/* Description snippet */
.pdp-desc {
    font-size: clamp(0.8rem, 1.2vw, 0.88rem);
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.pdp-desc a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

/* Read More toggle */
.pdp-read-more-btn {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 700;
    font-size: clamp(0.78rem, 1.1vw, 0.85rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

/* Features section heading */
.pdp-features-heading {
    font-size: clamp(0.82rem, 1.3vw, 0.95rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Feature bullet list */
.pdp-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pdp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: clamp(0.78rem, 1.2vw, 0.875rem);
    color: var(--text-mid);
    line-height: 1.4;
}

.pdp-features-list li:last-child { border-bottom: none; }

.pdp-features-list li i {
    color: var(--red);
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    margin-top: 3px;
    flex-shrink: 0;
}

.pdp-features-list li strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Highlighted note */
.pdp-note {
    margin-top: 1.25rem;
    padding: clamp(0.65rem, 1.2vw, 0.9rem) 1rem;
    background: rgba(220,38,38,0.04);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    font-size: clamp(0.72rem, 1.1vw, 0.8rem);
    color: var(--text-mid);
    line-height: 1.6;
}

.pdp-note strong { color: var(--red); }

/* ═══════ RIGHT COLUMN ═══════ */
.pdp-right {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

/* Price header */
.pdp-price-header {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--border);
}

.pdp-old-price {
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    color: var(--text-light);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.pdp-main-price {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pdp-main-price .gst-note {
    font-size: clamp(0.68rem, 1vw, 0.8rem);
    font-weight: 500;
    color: var(--text-light);
}

.pdp-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,0.1);
    color: #059669;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 0.6rem;
}

/* Right column body */
.pdp-right-body {
    padding: clamp(0.9rem, 1.5vw, 1.25rem) clamp(1rem, 1.8vw, 1.5rem);
}

/* Section label */
.pdp-section-label {
    font-size: clamp(0.6rem, 0.9vw, 0.68rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    margin-top: 1.25rem;
    display: block;
}

.pdp-section-label:first-child { margin-top: 0; }

/* Plan radio options */
.pdp-plan-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.pdp-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.6rem, 1.2vw, 0.85rem) clamp(0.75rem, 1.2vw, 1rem);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    gap: 8px;
}

.pdp-plan-row:last-child { border-bottom: none; }

.pdp-plan-row:hover { background: rgba(220,38,38,0.03); }

.pdp-plan-row.active {
    background: rgba(220,38,38,0.04);
}

.pdp-plan-row input[type="radio"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.pdp-plan-row-info { flex: 1; }

.pdp-plan-row-name {
    font-size: clamp(0.78rem, 1.2vw, 0.88rem);
    font-weight: 700;
    color: var(--text-dark);
}

.pdp-plan-row-sub {
    font-size: clamp(0.65rem, 1vw, 0.72rem);
    color: var(--text-light);
}

.pdp-plan-row-right { text-align: right; }

.pdp-plan-row-price {
    font-size: clamp(0.82rem, 1.3vw, 0.95rem);
    font-weight: 900;
    color: var(--text-dark);
}

.pdp-plan-row.active .pdp-plan-row-price { color: var(--red); }

.pdp-plan-row-save {
    font-size: clamp(0.58rem, 0.9vw, 0.65rem);
    font-weight: 700;
    color: #888888;
    display: block;
}

.pdp-plan-row-badge {
    font-size: clamp(0.52rem, 0.8vw, 0.6rem);
    font-weight: 800;
    background: var(--red);
    color: white;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Visit radio options (same style) */
.pdp-visit-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* Contact fields */
.pdp-field { margin-bottom: 0.4rem; }

.pdp-field label {
    display: block;
    font-size: clamp(0.6rem, 0.9vw, 0.68rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.pdp-field-wrap { position: relative; }

.pdp-field-wrap i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: clamp(0.72rem, 1vw, 0.8rem);
}

.pdp-field-wrap input,
.pdp-field-wrap select {
    width: 100%;
    padding: clamp(0.4rem, 0.8vw, 0.45rem) 0.9rem clamp(0.4rem, 0.8vw, 0.45rem) 2.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.2vw, 0.88rem);
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.pdp-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

/* Order total bar */
.pdp-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(0.65rem, 1.2vw, 0.85rem) 1rem;
    margin-bottom: 0.85rem;
}

.pdp-total-label { font-size: clamp(0.72rem, 1.1vw, 0.8rem); font-weight: 700; color: var(--text-mid); }

.pdp-total-amount {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 900;
    color: var(--red);
}

/* Pay button */
.pdp-pay-btn {
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    animation: red-pulse 2.5s ease-in-out infinite;
}

.pdp-pay-btn:hover:not(:disabled) {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(220,38,38,0.45);
}

.pdp-pay-btn:disabled { opacity: 0.65; cursor: not-allowed; animation: none; }

/* SSL + trust note */
.pdp-ssl-note {
    text-align: center;
    font-size: clamp(0.6rem, 0.9vw, 0.68rem);
    color: var(--text-light);
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-ssl-note i { font-size: clamp(0.72rem, 1vw, 0.8rem); }

/* Spinner */
.pdp-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* T&C Accordion */
.pdp-tnc-accordion {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.pdp-tnc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
}

.pdp-tnc-header:hover .pdp-features-heading { color: var(--red); }

.transition-icon {
    transition: transform 0.3s ease;
    color: var(--text-mid);
}

.transition-icon.open { transform: rotate(180deg); }

/* T&C Numbered List */
.pdp-tnc-list {
    padding-left: 1.2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pdp-tnc-list li {
    font-size: clamp(0.74rem, 1.1vw, 0.82rem);
    color: var(--text-mid);
    line-height: 1.6;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.pdp-tnc-list li:last-child { border-bottom: none; }
.pdp-tnc-list li strong    { color: var(--text-dark); }

/* T&C checkbox in modal */
.pdp-tnc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.pdp-tnc-check:hover { border-color: var(--red); background: rgba(220,38,38,0.02); }

.pdp-tnc-check input[type="checkbox"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.pdp-tnc-check span {
    font-size: clamp(0.72rem, 1vw, 0.8rem);
    color: var(--text-mid);
    line-height: 1.5;
}

/* ── MODAL ── */
.pdp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pdp-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: clamp(320px, 90vw, 440px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    position: relative;
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pdp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.pdp-modal-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.pdp-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.9rem, 1.5vw, 1.2rem) 0.6rem;
    border-bottom: 1px solid var(--border);
}

.pdp-modal-header > i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--red);
    flex-shrink: 0;
}

.pdp-modal-header h3 {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.pdp-modal-header p {
    font-size: clamp(0.7rem, 1vw, 0.78rem);
    color: var(--text-light);
}

.pdp-modal-body {
    padding: clamp(0.5rem, 1vw, 0.6rem) clamp(0.9rem, 1.5vw, 1.2rem) clamp(0.75rem, 1.5vw, 1rem);
}

.pdp-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(0.65rem, 1.2vw, 0.85rem) 1rem;
    margin-bottom: 0.85rem;
    margin-top: 0.5rem;
    font-size: clamp(0.78rem, 1.1vw, 0.85rem);
    font-weight: 700;
    color: var(--text-mid);
}

.pdp-modal-total-amount {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 900;
    color: var(--red);
}

/* Textarea inside modal */
.pdp-textarea {
    width: 100%;
    padding: clamp(0.4rem, 0.8vw, 0.45rem) 0.9rem clamp(0.4rem, 0.8vw, 0.45rem) 2.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.2vw, 0.88rem);
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pdp-textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

/* ── Keyframes ── */
@keyframes red-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── RESPONSIVE LAYOUT BREAKPOINTS ── */
/* These only handle grid layout changes — all sizing uses clamp() above */

@media (max-width: 1100px) {
    .pdp-grid {
        grid-template-columns: clamp(220px, 24vw, 300px) 1fr clamp(260px, 28vw, 340px);
    }
}

/* ═══════ TOAST NOTIFICATION ═══════ */
.pdp-toast {
    visibility: hidden;
    min-width: 280px;
    max-width: 90%;
    background-color: var(--text-dark);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 12px 24px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.1, 0.265, 1.35); /* Bouncy smooth transition */
}

.pdp-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.pdp-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.pdp-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

@media (max-width: 900px) {
    .pdp-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "left right"
            "middle right";
    }
    .pdp-left    { grid-area: left;   position: static; }
    .pdp-middle  { grid-area: middle; }
    .pdp-right   { grid-area: right;  position: sticky; top: 80px; }
}

@media (max-width: 640px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "right"
            "middle";
        padding: clamp(0.75rem, 3vw, 1rem) 4%;
    }
    .pdp-right { position: static; }
    .pdp-left  { position: static; }
    .pdp-image-card { max-height: 260px; aspect-ratio: unset; }
}

@media (max-width: 640px) {
    .pdp-toast {
        bottom: 100px; /* Clear the sticky payment strip */
        padding: 10px 16px;
        font-size: 0.82rem;
        min-width: 250px;
        border-radius: 30px;
        gap: 8px;
    }
}
