/* ============ DESKTOP STYLES (ORIGINAL) ============ */
.product-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.2rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #0d6efd;
}

.carousel-inner img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e63946;
    margin: 15px 0;
}

.product-description {
    margin-bottom: 25px;
    color: #555;
}

.questions-section {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.questions-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.question {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.question-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.answer {
    margin-top: 10px;
    padding: 10px;
    background: #f0f7ff;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.answer-meta {
    font-size: 0.8rem;
    color: #3498db;
    margin-bottom: 5px;
}

.admin-answer-form {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
}

.admin-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a5276;
}

.admin-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    margin-bottom: 10px;
}

.admin-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.ask-question-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.breadcrumb {
    margin-bottom: 5px;
}

.payment-info-trigger {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.payment-info-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    color: #333;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.4;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.payment-info-trigger:hover+.payment-info-tooltip,
.payment-info-tooltip:hover {
    display: block;
}

.add-to-cart {
    background-color: #206effff !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.add-to-cart:hover {
    background-color: #1c3cf1ff !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-to-cart i {
    margin-right: 8px !important;
    color: white !important;
}

.card-container {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-body h6 {
    color: #206eff;
    margin-top: 15px;
    margin-bottom: 10px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body ul li {
    margin-bottom: 5px;
}

.compact-modal .modal-body {
    font-size: 0.8rem;
    line-height: 1.4;
}

.compact-modal .modal-body h6 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.compact-modal .modal-body ul {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

.compact-modal .modal-body li {
    margin-bottom: 0.25rem;
}

.related-products {
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.related-carousel {
    padding: 5px;
}

.related-product-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    margin: 0 5px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-product-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.related-product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.related-product-info {
    flex: 1;
    min-width: 0;
}

.related-product-name {
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.related-product-price {
    font-weight: bold;
    color: #e63946;
    font-size: 13px;
}

.related-product-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 11px;
    margin-right: 3px;
}

.related-carousel-control {
    width: 30px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    opacity: 1;
}

.related-carousel-control-prev {
    left: -15px;
}

.related-carousel-control-next {
    right: -15px;
}

.related-carousel-control-icon {
    width: 1rem;
    height: 1rem;
}

.share-dropdown-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.share-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.share-dropdown {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    display: none;
    flex-direction: row;
    gap: 10px;
    z-index: 100;
    margin-left: 5px;
}

.share-dropdown.active {
    display: flex;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 0;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-option:hover {
    transform: scale(1.1);
}

.share-option.email { background-color: #666; }
.share-option.twitter { background-color: #000; }
.share-option.facebook { background-color: #3b5998; }

.product-price span sup {
    font-size: 0.4em;
    position: super;
    top: -0.90em;
}

.magnifier-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.magnifier-img {
    display: block;
    width: 100%;
}

.magnifier-lens {
    position: absolute;
    border: 2px solid #333;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    display: none;
}

.magnified-image {
    position: absolute;
    border: 1px solid #ccc;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
}

/* ============ MOBILE OPTIMIZATIONS ============ */
@media (max-width: 767px) {
    .card-container {
        padding: 15px;
        box-shadow: none;
    }

    .product-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .product-image,
    .product-details {
        flex: none;
        max-width: 100%;
    }

    .product-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 20px;
        margin: 12px 0;
    }

    .product-description {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .add-to-cart {
        width: 100%;
        padding: 12px !important;
        font-size: 16px !important;
        text-align: center;
    }

    .related-products {
        margin: 20px 0 15px;
        padding-top: 15px;
    }

    .related-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .related-product-card {
        padding: 6px;
        margin: 0 3px;
    }

    .related-product-img {
        width: 50px;
        height: 50px;
    }

    .related-product-name {
        font-size: 12px;
        line-height: 1.2;
    }

    .related-product-price {
        font-size: 12px;
    }

    .related-product-original-price {
        font-size: 10px;
    }

    .questions-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .questions-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .question,
    .answer,
    .admin-answer-form,
    .ask-question-form {
        padding: 12px;
        font-size: 14px;
    }

    .admin-textarea {
        min-height: 80px;
        font-size: 14px;
    }

    .compact-modal .modal-body {
        font-size: 0.75rem;
    }

    .compact-modal .modal-body h6 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .share-dropdown {
        top: auto;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-bottom: 5px;
    }

    .share-option {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .payment-info-tooltip {
        width: 240px;
        font-size: 12px;
        padding: 10px;
    }

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

    .magnifier-container {
        cursor: default;
    }
}





 .product-condition {
        font-size: 14px;
    }
