/* ===================================
   PRODUCT DETAIL PAGE STYLES
   =================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1348px;
    margin: 0 auto;
    padding: 0 20px;
}

.w1388 {
    max-width: 1348px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   BREADCRUMB & TITLE
   =================================== */
.page-header {
    background: var(--light);
    padding: 20px 0;
    margin-top: 10px;
}

.breadcrumb-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb .separator {
    color: var(--border);
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

/* ===================================
   PRODUCT HERO
   =================================== */
.product-hero {
    padding: 60px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===================================
   PRODUCT IMAGES
   =================================== */
.product-images {
    position: sticky;
    top: 100px;
    display: flex;
    gap: 20px;
}

.main-image-section {
    flex: 1;
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--light);
    cursor: zoom-in;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background: var(--white);
}

.image-magnifier {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    background-size: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Thumbnail Sidebar */
.thumbnail-sidebar {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 550px;
    overflow: hidden;
}

.thumbnail-wrapper.scrollable {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--light);
}

.thumbnail-wrapper.scrollable::-webkit-scrollbar {
    width: 4px;
}

.thumbnail-wrapper.scrollable::-webkit-scrollbar-track {
    background: var(--light);
}

.thumbnail-wrapper.scrollable::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.nav-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
    box-shadow: var(--shadow);
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-arrow img {
    width: 16px;
    height: 16px;
}

.nav-arrow-up {
    top: 0;
}

.nav-arrow-down {
    bottom: 0;
}

.nav-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-arrow.disabled:hover {
    background: var(--white);
    border-color: var(--border);
}

.thumbnail-item {
    position: relative;
    width: 80px;
    flex-shrink: 0;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   PRODUCT INFO
   =================================== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-short-desc {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ===================================
   PRODUCT LINK
   =================================== */
.product-link-container {
    margin: 15px 0;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

.product-link-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray);
    background: var(--white);
}

.product-link-input:focus {
    outline: none;
    border-color: var(--primary);
}

.product-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.product-link-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===================================
   ACTION BUTTONS
   =================================== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
}

/* ===================================
   SHARE BUTTONS
   =================================== */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: var(--gray);
}

/* ===================================
   CONTACT MODAL
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--light);
    color: var(--dark);
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Captcha Group */
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.captcha-img:hover {
    opacity: 0.8;
}

/* Success Message */
.success-message {
    display: none;
    padding: 20px;
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.send-btn {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.send-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    position: relative;
}

.send-btn .btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.send-btn:disabled .btn-loader {
    display: inline-block;
}

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

/* Email Contact */
.email-contact {
    text-align: center;
    padding: 20px 0;
}

.email-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 15px;
}

.email-contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-contact-text {
    flex: 1;
}

.email-contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.email-contact-text p {
    font-size: 14px;
    color: var(--gray);
}

.email-contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.email-contact-link:hover {
    text-decoration: underline;
}

/* ===================================
   PRODUCT CONTENT
   =================================== */
.product-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.content-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 16px;
    color: var(--dark);
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content-wrapper p {
    margin-bottom: 15px;
}

.content-wrapper h2,
.content-wrapper h3 {
    margin: 25px 0 15px;
    color: var(--dark);
}

/* ===================================
   RELATED PRODUCTS
   =================================== */
.related-products {
    padding: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-info {
    padding: 20px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   BACK BUTTON
   =================================== */
.back-section {
    padding: 40px 0 60px;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.back-btn:hover {
    background: var(--border);
    transform: translateX(-5px);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: static;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .thumbnail-container {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 15px 0;
        margin-top: 70px;
    }

    .breadcrumb-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 20px;
    }

    .product-hero {
        padding: 30px 0;
    }

    .product-title {
        font-size: 24px;
    }

    .product-short-desc {
        font-size: 14px;
    }

    /* Hide thumbnail sidebar on mobile */
    .thumbnail-sidebar {
        display: none !important;
    }

    .main-image-container {
        padding-top: 100%;
    }

    /* Hide magnifier on mobile */
    .image-magnifier {
        display: none !important;
    }

    /* Adjust product-images layout without thumbnails */
    .product-images {
        gap: 0;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-icon {
        width: auto;
        height: auto;
        padding: 14px 20px;
    }

    .modal-content {
        padding: 25px;
        margin: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .content-wrapper {
        padding: 20px;
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }

    .product-hero {
        padding: 20px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        justify-content: center;
    }

    .modal-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 10px 16px;
    }

    .product-meta {
        padding: 15px;
    }

    .meta-item {
        font-size: 13px;
    }
}

/* ===================================
   TEXT SELECTION
   =================================== */
.page-header,
.product-hero,
.product-content,
.related-products,
.email-contact-item,
.email-contact-text,




.back-section {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 1348px;
    margin: 0 auto;
}

.article-tags a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.article-tags a {
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}
