/* ===========================
   Product Details Page Styles
   =========================== */

/* Spacer for Fixed Navbar */
.page-header-spacer {
    height: 105px;
    background: linear-gradient(rgba(10, 14, 39, 0.85), rgba(10, 14, 39, 0.95)), url('../images/bg-tablet.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#product-header-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Breadcrumbs */
.breadcrumbs-section {
    padding: 1.5rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs li {
    color: var(--gray-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.breadcrumbs li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: 0.2s;
}

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

.breadcrumbs li:last-child {
    font-weight: 600;
    color: var(--light-text);
}

/* Product Section */
.product-details-section {
    padding: 2rem 0;
    background: #fff;
    color: #1a1a1a;
    /* Force dark text for this section in case global is dark */
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.main-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

.main-product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.main-image-container:hover .zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.badge-new {
    background: var(--secondary-color);
    color: #000;
}

.badge-sale {
    background: #ff4d4f;
}

.thumbnail-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: 0.3s;
}

.thumb-item.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-count {
    color: #888;
    font-size: 0.9rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    color: var(--primary-color);
}

.old-price {
    color: #ccc;
    text-decoration: line-through;
    font-size: 1.2rem;
    font-weight: 400;
}

.product-short-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Product Variant Dropdown */
.product-variant-dropdown {
    margin-bottom: 2rem;
}

.product-variant-dropdown label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-variant-dropdown select {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #555;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.product-variant-dropdown select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.product-variant-dropdown select:hover {
    border-color: #ccc;
}

/* Variant Selector */
.variant-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.7rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

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

.variant-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Actions */
.product-actions-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .product-actions-wrapper {
        flex-direction: column;
        width: 100%;
        /* Ensure full width */
        align-items: center;
    }

    .btn-add-cart {
        width: 80%;
        /* not full width so it can be visibly centered */
        min-width: 250px;
        box-sizing: border-box;
        /* Prevent padding from adding to width */
    }

    .quantity-control {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
        /* Add space between inputs */
    }
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    width: 140px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 0 1rem;
    height: 50px;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: #000;
}

.qty-input {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    width: 40px;
    appearance: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn-add-cart {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Meta Data */
.product-meta {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.meta-item {
    font-size: 0.95rem;
}

.meta-item .label {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 0.5rem;
}

.meta-item .value {
    color: #666;
}

/* Guarantee Box */
.guarantee-box {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9faff;
    border: 1px dashed #d0d7ee;
    border-radius: 8px;
    flex-wrap: wrap;
    /* Allow items to wrap */
}

@media (max-width: 576px) {
    .guarantee-box {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
        width: fit-content;
    }

    .guarantee-wrapper {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.g-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

.g-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Tabs Section */
.product-tabs-section {
    padding: 2rem 0 5rem;
    background: #fff;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    /* Space for scrollbar if visible */
}

.tabs-header::-webkit-scrollbar {
    height: 4px;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .tabs-header {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 2rem;
    }
}

.tab-link {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #888;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.tab-link.active {
    color: #1a1a1a;
}

.tab-link.active::after {
    width: 100%;
}

.tab-body {
    display: none;
    animation: fadeIn 0.5s ease;
    max-width: 900px;
    margin: 0 auto;
}

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


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs-content {
    max-height: 600px;
    overflow-y: auto;
    padding: 0 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

.tabs-content::-webkit-scrollbar {
    width: 6px;
}

.tabs-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.tabs-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.desc-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.desc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .desc-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.df-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.df-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.df-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.df-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 30%;
    font-weight: 600;
    color: #1a1a1a;
}

.specs-table td {
    color: #555;
}

/* Ensure tables are scrollable on mobile */
.tab-body {
    overflow-x: auto;
}

/* Reviews */
.review-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .review-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .r-header {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.5rem;
}

.r-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.r-name {
    font-weight: 700;
    color: #1a1a1a;
}

.r-date {
    color: #888;
    font-size: 0.85rem;
}

.r-stars {
    color: #ffc107;
    font-size: 0.8rem;
}

/* Related Products */
.related-products {
    padding: 4rem 0 6rem;
    background: #fcfcfc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.rc-image {
    position: relative;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rc-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: 0.5s;
}

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

.rc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.rc-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    transition: 0.3s;
}

.related-card:hover .rc-actions {
    bottom: 0;
}

.rc-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.2s;
    color: #1a1a1a;
}

.rc-actions button:hover {
    background: var(--primary-color);
    color: #fff;
}

.rc-info {
    padding: 1.5rem;
    text-align: center;
}

.rc-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.rc-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Technical Table Styles */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border: 1px solid #eee;
}

.tech-table th,
.tech-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #555;
}

.tech-table .tech-heading {
    background-color: #f8f9fa;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.tech-table tr:hover td {
    background-color: #fafafa;
}

/* FAQ Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background: #fff;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.faq-question::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background: #f0f7ff;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer p {
    padding: 0 1.2rem 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

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

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

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 400;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

.btn-submit-quote {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-submit-quote:hover {
    background: #004494;
}

/* Product Category Selector (Main Product Page) */
.product-category-selector {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 45%;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Using a slightly lighter shadow than typical for "clean" look */
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cc-image {
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient background for images */
.category-card:nth-child(1) .cc-image {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
}

.category-card:nth-child(2) .cc-image {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.cc-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

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

.cc-content {
    padding: 2rem;
    text-align: center;
}

.cc-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.cc-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.category-card:hover .cc-btn {
    gap: 0.8rem;
    text-decoration: underline;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .product-category-selector {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .category-card {
        width: 100%;
        max-width: 450px;
    }

    .cc-image {
        height: 250px;
    }
}

/* Product Page Header Styles */
.product-page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    /* Spacing handled by the category selector's padding, kept small here */
    padding-top: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.product-page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0a0e27;
    /* Dark navy */
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.header-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.product-page-header p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-page-header h1 {
        font-size: 2.2rem;
    }

    .product-page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Custom Multi-Select Dropdown */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.select-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-box:hover {
    border-color: #ccc;
}

.select-box.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.selected-text {
    font-size: 1rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.arrow-icon {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s ease;
}

.select-box.active .arrow-icon {
    transform: rotate(180deg);
}

.options-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.options-container.active {
    max-height: 240px;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
}

.option-item {
    padding: 0px 0px 0px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.mt-10 {
    margin-top: 10px;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background: #f8f9fa;
}

.option-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.option-label {
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    flex: 1;
}

/* Multi-Select Badges */
.selected-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    margin-right: 10px;
}

.selected-badge {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.selected-badge .remove-badge {
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
}

.selected-badge .remove-badge:hover {
    opacity: 1;
}

.select-box.has-values {
    padding: 0.4rem 0.8rem;
}

/* =========================================================
   Mobile Responsiveness for Product Details Section
   ========================================================= */

@media (max-width: 768px) {
    .product-details-section {
        padding: 1rem 0 3rem;
    }

    .product-grid {
        gap: 2rem;
    }

    /* Product Title & Pricing centering */
    .product-title {
        font-size: 1.8rem;
        margin-top: 10px;
        text-align: center;
    }

    .product-price {
        font-size: 1.5rem;
        justify-content: center;
    }

    .product-short-desc {
        font-size: 1rem;
        text-align: center;
        padding: 0 10px;
    }

    /* Multi-select Dropdown Touch friendliness */
    .product-variant-dropdown label {
        text-align: center;
        margin-bottom: 10px;
    }

    .custom-multiselect {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .select-box {
        padding: 1rem;
        /* Larger touch target */
    }

    .option-item {
        padding: 5px 0px 5px 15px;
        /* Larger tap targets */
    }

    .option-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 15px;
    }

    .option-label {
        font-size: 1.05rem;
    }

    /* Meta text centering */
    .product-meta {
        align-items: center;
        text-align: center;
        padding-top: 2rem;
    }

    .meta-item {
        font-size: 1.05rem;
        /* Better readability */
    }

    /* Product Image Gallery Adjustments */
    .main-image-container {
        border-radius: 8px;
    }

    .thumbnail-row {
        gap: 0.8rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail-row::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnail-row::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .thumb-item {
        width: 65px;
        height: 65px;
        flex-shrink: 0;
        /* Prevent shrinking horizontally */
    }

    /* Product Action Buttons */
    .product-actions-wrapper {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .btn-add-cart {
        width: 100%;
        max-width: 100%;
        /* Take full width on mobile for easy tapping */
        padding: 15px;
        font-size: 1.1rem;
    }

    /* Guarantee items */
    .guarantee-box {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
        width: fit-content;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .g-item {
        width: auto;
        justify-content: flex-start;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        gap: 1.5rem;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-price {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .thumb-item {
        width: 55px;
        height: 55px;
    }
}