/* =========================================
   PRODUCT PAGE STYLES
   ========================================= */
.product-page-view {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem var(--spacing-unit);
    animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Breadcrumb */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pdp-breadcrumb a { color: var(--primary-blue); font-weight: 500; }
.pdp-breadcrumb a:hover { text-decoration: underline; }
.pdp-breadcrumb span.sep { color: #ccc; }

/* --- Section 1: Product Overview --- */
.pdp-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

/* Gallery */
.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdp-main-img-wrapper {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.04);
}

.pdp-main-img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: opacity 0.3s;
}

.pdp-thumbnails {
    display: flex;
    gap: 0.75rem;
}

.pdp-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #f7f7f7;
    padding: 0.3rem;
}

.pdp-thumb:hover { border-color: var(--primary-blue); }
.pdp-thumb.active { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(0,86,179,0.2); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Product Info (Right of overview) */
.pdp-info {
    display: flex;
    flex-direction: column;
}

.pdp-info h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.pdp-rating .stars { color: #ffc107; letter-spacing: 2px; font-size: 1.1rem; }
.pdp-rating .review-count { color: var(--text-gray); }
.pdp-rating .review-link { color: var(--primary-blue); text-decoration: underline; font-weight: 600; cursor: pointer; }

.pdp-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.pdp-features li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pdp-features li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pdp-starting-price {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}
.pdp-starting-price strong {
    font-size: 1.6rem;
    color: var(--primary-black);
    font-weight: 800;
}

.pdp-price-note {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.pdp-cta-top {
    background: var(--primary-blue);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    width: fit-content;
}
.pdp-cta-top:hover {
    background: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,86,179,0.3);
}

/* --- Section 2: Two Column Customization --- */
.pdp-customizer {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Left: Customization Form */
.pdp-options {
    background: var(--white);
}

.pdp-options-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-black);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

.option-group {
    margin-bottom: 2rem;
}

.option-group-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.option-card {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
}

.option-card:hover {
    border-color: #999;
    box-shadow: var(--shadow-sm);
}

.option-card.active {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}

.option-card.active::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.option-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.option-card-price {
    font-size: 0.82rem;
    color: var(--text-gray);
}

.option-card-desc {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

/* Right: Sticky Order Summary */
.pdp-summary {
    position: sticky;
    top: 120px;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.summary-row.muted { color: var(--text-gray); }

.summary-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0.75rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-black);
    padding: 0.75rem 0 0;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-summary-primary {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-summary-primary:hover {
    background: var(--primary-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,86,179,0.25);
}

.btn-summary-outline {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-summary-outline:hover {
    background: var(--primary-black);
    color: white;
}

.summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* --- Section 3: Bottom Info & FAQs --- */
.pdp-bottom-info {
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
}

.pdp-bottom-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.pdp-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.pdp-description p { margin-bottom: 1rem; }

/* FAQ Accordion */
.pdp-faq { margin-bottom: 2.5rem; }
.accordion { border-top: 1px solid #eee; margin-top: 1rem; }
.acc-item { border-bottom: 1px solid #eee; }
.acc-header {
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.acc-header:hover { color: var(--primary-blue); }
.acc-content { display: none; padding-bottom: 1.2rem; font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; }
.acc-item.open .acc-content { display: block; }

/* Customer Reviews */
.pdp-reviews { margin-bottom: 2.5rem; }

.review-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.review-big-score {
    text-align: center;
}
.review-big-score .score { font-size: 2.5rem; font-weight: 800; color: var(--primary-black); line-height: 1; }
.review-big-score .stars { display: block; font-size: 1.1rem; margin-top: 0.25rem; }
.review-big-score .count { font-size: 0.82rem; color: var(--text-gray); margin-top: 0.2rem; }

.review-bars { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-gray);
}
.review-bar-row span:first-child { width: 40px; text-align: right; }
.review-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
}

.review-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.review-card-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.review-card-date { font-size: 0.82rem; color: var(--text-gray); }
.review-card-stars { color: #ffc107; margin-bottom: 0.4rem; font-size: 0.9rem; }
.review-card-text { font-size: 0.92rem; color: var(--text-gray); line-height: 1.6; }

/* =========================================
   VISITING CARDS DEDICATED PAGE
   ========================================= */
.vc-top-layout {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
.vc-gallery {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.vc-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.vc-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #f7f7f7;
    padding: 3px;
}
.vc-thumb:hover { border-color: var(--primary-blue); }
.vc-thumb.active { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(0,86,179,0.2); }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.vc-main-img-wrapper {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}
.vc-main-img {
    max-width: 100%;
    max-height: 440px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: opacity 0.3s;
}
.vc-customizer-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-blue);
}
.vc-order-summary {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* =========================================
   DANGLERS PRODUCT PAGE
   ========================================= */
.dng-top-layout {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
.dng-left-col { min-width: 0; }
.dng-main-img-wrapper {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    margin-bottom: 2.5rem;
}
.dng-main-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.dng-customizer-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-blue);
}

/* Visual Option Cards (with thumbnail images) */
.visual-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.visual-option-card {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.visual-option-card:hover {
    border-color: #999;
    box-shadow: var(--shadow-sm);
}
.visual-option-card.active {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}
.visual-option-card.active::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.visual-option-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.visual-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.visual-option-thumb .shape-icon {
    font-size: 1.6rem;
    color: var(--text-gray);
    line-height: 1;
}
.visual-option-card .option-card-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Dangler Order Summary */
.dng-order-summary {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.btn-dng-upload {
    display: block;
    width: 100%;
    background: var(--primary-black);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
}
.btn-dng-upload:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* "You might also like" grid */
.dng-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.dng-related-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: var(--white);
}
.dng-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.dng-related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.dng-related-card-body {
    padding: 1rem;
}
.dng-related-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.dng-related-card-price {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Danglers description bullets */
.dng-features-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 2;
}

/* --- Performance: Hidden Product Pages --- */
.product-page-view { content-visibility: auto; }
