/* Enhanced product view styles */
.review-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verified-badge {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

/* styles for the product page */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

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

.product-title-related {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: normal;
    color: #333;
    text-align: left;
}

.product-price-related {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 0;
    text-align: left;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.product-images, .product-info {
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.product-images {
    padding-right: 20px;
}

.product-info {
    padding-left: 20px;
}

.product-images .card, .product-info .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fcfcfc;
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-info .card {
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 8px;
}

.product-title {
    font-size: 28px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: #333;
}

.product-category {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-description {
        margin-bottom: 25px;
        line-height: 1.6;
        color: #555;
    }
    
.product-description em {
    font-weight: 600;
    color: #333;
    font-style: normal;
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.inventory-status {
    margin-bottom: 20px;
    padding: 10px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.in-stock {
    color: var(--color-success);
}

    
.in-stock p:before {
    content: "•";
    display: inline-block;
    margin-right: 5px;
    font-size: 20px;
    line-height: 0;
    position: relative;
}

.out-of-stock {
    color: var(--color-error);
}

.inventory-status .low-stock-warning {
    color: #fff;
    background-color: #e67e22;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Ask a Question button styles */
.ask-question-section {
    margin-bottom: 20px;
    width: 100%;
}

.ask-question-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f8f8f8;
    color: #555;
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.ask-question-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.ask-question-btn:hover {
    background-color: #f0f0f0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ask-question-btn i {
    font-size: 18px;
    color: #7D5A5A;
    z-index: 2;
}

.ask-question-btn span {
    z-index: 2;
}

#ask-question-form {
    width: 100%;
}

.add-to-cart-section {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-to-cart-section .form-group {
    width: 100px;
}

.add-to-cart-section label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.add-to-cart-section input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    width: 80px;
    border-radius: 4px;
}

.add-to-cart-btn {
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.column-3 {
    width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.product-image.small {
    height: 0;
    padding-bottom: 100%; /* Makes it square */
    position: relative;
    overflow: hidden;
    width: 100%;
}

.product-image.small img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-image.small .primary-image,
.product-image.small .secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.product-image.small .primary-image {
    opacity: 1;
    z-index: 1;
}

.product-image.small .secondary-image {
    opacity: 0;
    z-index: 0;
}

.product-card:hover .product-image.small .primary-image {
    opacity: 0;
}

.product-card:hover .product-image.small .secondary-image {
    opacity: 1;
}

.product-card:hover .product-image.small img {
    transform: scale(1.05);
}

.product-title.small {
    font-size: 16px;
}

/* Quick Add to Cart button */
.quick-add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.product-card:hover .quick-add-btn:hover {
    background-color: #555;
}

.product-details {
    position: relative;
    padding: 12px 15px;
    text-align: center;
    min-height: 80px;
}

/* Product Gallery Styles */
.product-gallery {
    position: relative;
}

.main-image {
    margin-bottom: 15px;
    height: auto;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.product-categories {
    margin-bottom: 20px;
}

.category-group {
    margin-bottom: 8px;
}

.category-type {
    font-weight: bold;
    margin-right: 5px;
}

.category-tag {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.category-link {
    display: inline-block;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.9em;
    text-decoration: none;
    color: #333;
}

.category-link:hover {
    background-color: #e0e0e0;
}

/* Remove the purple area by removing any background colors on the related section */
.related-products {
    margin-top: 40px;
    clear: both;
    background: none;
}

.related-products .section-header {
    margin-bottom: 20px;
}

.related-products h3 {
    font-size: 22px;
}

/* Fix the low-stock-warning positioning for related products */
.low-stock-warning {
    position: relative;
    bottom: 0;
    left: 0;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Fix the product card positioning */
.product-card {
    position: relative;
    padding-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .column-3 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .product-images,
    .product-info {
        width: 100%;
        padding: 0;
    }

    .main-product-image {
        max-height: 400px;
    }
    
    .main-image {
        max-height: 400px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .add-to-cart-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .add-to-cart-section .form-group {
        width: 100%;
    }
    
    .column-3 {
        width: 100%;
    }

    .ask-question-btn {
        padding: 12px 15px;
    }

    .card{
        padding: 0;
    }
}

@media (max-width: 480px) {
    .ask-question-btn {
        font-size: 14px;
    }
    
    .ask-question-btn i {
        font-size: 16px;
    }
}