/* Product Detail Page - Standalone Styles */

.product-detail-page {
    padding: 40px 0;
    overflow-x: hidden;
}

.product-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.product-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.875rem;
    color: #666;
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #111;
}

.product-main-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 60px;
    margin-bottom: 60px;
}

/* GALLERY SLIDER - FIXED SIZE */
.product-gallery-section {
    flex-shrink: 0;
    width: 420px;
    max-width: 100%;
}

.product-slider {
    position: relative;
    width: 420px;
    max-width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-image.show {
    opacity: 1;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

.slider-expand {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-expand:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.slider-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.slider-thumb:hover {
    opacity: 0.8;
}

.slider-thumb.active {
    border-color: #111;
    opacity: 1;
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image-box {
    position: relative;
    width: 420px;
    max-width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.no-image-box span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* PRODUCT INFO */
.product-info-section {
    flex: 1;
    min-width: 0;
    max-width: 550px;
}

.product-cat-label {
    font-size: 0.8125rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111;
}
.product-location-label {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
}

.product-main-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
}

.product-short-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s;
}

.product-cta-button:hover {
    background: #000;
}

.product-full-desc {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e5e5e5;
}

.product-full-desc h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.product-full-desc p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* Centered Full Width Description */
.product-full-desc-centered {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.product-full-desc-centered h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.product-full-desc-centered p,
.product-full-desc-centered .description-html-content {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.9;
    text-align: center;
}

.product-full-desc-centered .description-html-content {
    max-width: 100%;
}


/* YouTube Video Section */
.product-youtube-video {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e5e5e5;
}

.product-youtube-video h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.youtube-embed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .youtube-embed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.youtube-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-embed iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.video-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
}

/* Photo Gallery Section */
.product-photo-gallery {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.product-photo-gallery h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.photo-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.gallery-thumbnail {
    width: 140px;
    height: 79px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail img {
    width: 140px;
    height: 79px;
    object-fit: cover;
    display: block;
}

/* Related Products */
.related-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.related-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 0;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-arrow.left {
    left: 20px;
}

.modal-arrow.right {
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-main-layout {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }
    
    .product-slider {
        width: 100%;
        max-width: 100%;
    }
    
    .no-image-box {
        width: 100%;
        max-width: 100%;
    }
    
    .product-info-section {
        max-width: 100%;
        ing-bottom: 100%;
    }
    
    .product-info-section {
        max-width: 100%;
    }
    
    .product-main-title {
        font-size: 1.75rem;
    }
    
    .product-main-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 0 15px;
    }
    
    .product-main-title {
        font-size: 1.5rem;
    }
    
    .youtube-embed iframe {
        height: 250px;
    }
    }
    
    .product-main-price {
        font-size: 1.25rem;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-thumb {
        width: 60px;
        height: 60px;
    }
}

/* HTML Description Styling */
.description-html-content {
    line-height: 1.8;
    color: #333;
}

/* Paragraphs */
.description-html-content p {
    margin: 15px 0;
    color: #555;
}

.description-html-content p:first-child {
    margin-top: 0;
}

/* Headings */
.description-html-content h2,
.description-html-content h3,
.description-html-content h4,
.description-html-content h5 {
    margin: 25px 0 15px 0;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.description-html-content h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.description-html-content h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
}

.description-html-content h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* Lists */
.description-html-content ul,
.description-html-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.description-html-content li {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

.description-html-content ul li:before {
    content: '';
}

/* List with checkmarks and X */
.description-html-content li:has(> *:first-child:contains("✓")),
.description-html-content li:contains("✓") {
    color: #10b981;
    font-weight: 500;
}

.description-html-content li:contains("✗") {
    color: #ef4444;
    font-weight: 500;
}

/* Tables */
.description-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.description-html-content table thead {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
}

.description-html-content table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid #ccc;
}

.description-html-content table th:last-child {
    border-right: none;
}

.description-html-content table td {
    padding: 12px 14px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.description-html-content table td:last-child {
    border-right: none;
}

/* Striped rows */
.description-html-content table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.description-html-content table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.description-html-content table tbody tr:hover {
    background-color: #f0f7ff;
}

/* Strong text */
.description-html-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Emphasis */
.description-html-content em {
    font-style: italic;
    color: #666;
}

/* Code blocks */
.description-html-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.9em;
}

.description-html-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.description-html-content pre code {
    background-color: transparent;
    color: #f8f8f2;
    padding: 0;
    font-size: 1em;
}

/* Blockquote */
.description-html-content blockquote {
    border-left: 4px solid #999;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f5f5f5;
    color: #555;
    font-style: italic;
}

/* Links */
.description-html-content a {
    color: #1a1a1a;
    text-decoration: underline;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.description-html-content a:hover {
    color: #333;
    opacity: 0.7;
}

/* Divider */
.description-html-content hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

/* Responsive tables */
@media (max-width: 768px) {
    .description-html-content table {
        font-size: 0.9em;
    }
    
    .description-html-content table th,
    .description-html-content table td {
        padding: 10px 8px;
    }
}

/* Reviews Section */
.reviews-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reviews-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
}

/* Minimal Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 { margin: 0; font-size: 1.1rem; }
.modal-close { background: transparent; border: none; font-size: 1.4rem; cursor: pointer; }

.form-row { padding: 14px 20px; }
.form-row label { display:block; font-weight:500; margin-bottom:8px; }
.form-row input,
.form-row textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:0.95rem; }
.form-row input:focus,
.form-row textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }

.stars-row { display:flex; gap:8px; }
.star-label { font-size: 0; }
.star-label input { display:none; }
.star-rating { font-size: 1.6rem; color:#ddd; cursor:pointer; transition: color .2s; }
.star-rating:hover { color: #fbbf24; }

.modal-actions { display:flex; gap:10px; padding: 12px 20px 20px; }
.hint { display:block; color:#666; padding:0 20px 16px; font-size:0.85rem; }

.review-form-container h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.review-form-container label {
    display: block;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.review-form-container input[type="text"],
.review-form-container input[type="email"],
.review-form-container textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.review-form-container input[type="text"]:focus,
.review-form-container input[type="email"]:focus,
.review-form-container textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.review-form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form-container .star-rating {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    margin-right: 5px;
}

.review-form-container .star-rating:hover {
    color: #fbbf24;
}

.review-form-container small {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

/* Review Display */
#reviewsList {
    margin-top: 30px;
}

.review-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #fbbf24;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-author {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.review-title {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.review-rating {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
}

.review-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Related Products */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.related-section h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}`
