/* Custom additional styles for product pages */

/* Animated Stars */
.animated-stars .star {
    animation: star-pulse 3s infinite;
}

.animated-stars .star:nth-child(1) { animation-delay: 0s; }
.animated-stars .star:nth-child(2) { animation-delay: 0.3s; }
.animated-stars .star:nth-child(3) { animation-delay: 0.6s; }
.animated-stars .star:nth-child(4) { animation-delay: 0.9s; }
.animated-stars .star:nth-child(5) { animation-delay: 1.2s; }

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FFD700; }
    100% { transform: scale(1); }
}

/* Product Subtitle */
.product-subtitle {
    font-size: 18px;
    color: rgba(255, 191, 0, 0.9);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animated Longevity Badge */
.animated-badge {
    animation: badge-glow 3s infinite alternate;
    position: relative;
    overflow: hidden;
}

.animated-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 191, 0, 0.1);
    transform: rotate(45deg);
    animation: badge-shimmer 3s infinite;
}

@keyframes badge-glow {
    0% { box-shadow: 0 0 5px rgba(255, 191, 0, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 191, 0, 0.7); }
}

@keyframes badge-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Centered Related Products Grid */
.centered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

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

.product-card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card-title {
    margin: 10px 0 5px;
    font-size: 18px;
}

.product-card-category {
    font-size: 14px;
    color: #666;
}

/* Improved Thumbnail Container for 8 Images */
.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
}

.thumbnail {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

/* FAQ Styles */
.faq-section {
    margin: 60px auto;
    max-width: 900px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    flex-grow: 1;
}

.faq-icon {
    margin-left: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-question:hover {
    color: rgb(255, 191, 0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Center the tabs section */
.tabs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.tab {
    flex: 0 0 auto;
    padding: 15px 30px;
}

.tab-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 15px;
}

/* Enlarged note images in pyramid */
.note-item {
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 15px 20px;
}

.note-image {
    width: 100px; /* Increased from 60px */
    height: 100px; /* Increased from 60px */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid rgb(255, 191, 0); /* Slightly thicker border */
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-item:hover .note-image {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 191, 0, 0.5);
}

/* Custom Responsive Styles */
@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .product-subtitle {
        font-size: 16px;
    }
}

/* Center "You May Also Like" section */
.related-products {
    text-align: center;
    margin: 60px auto;
}
