/*
Theme Name: TeeSpace - Child
Theme URI: https://harutheme.com/teespace
Author: HaruTheme
Author URI: https://harutheme.com/
Description: This is child theme of TeeSpace
Template: teespace
Version: 1.0.0
*/

/*---------------------------------
  	Write your css code from here
------------------------------------*/

/* Collapsible Description Styles */
.collapsible-content {
    position: relative;
}

.content-preview,
.content-full {
    transition: all 0.3s ease;
}

.learn-more-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.learn-more-btn:hover {
    color: #2ebb77;
    background: transparent;
}

.learn-more-btn:focus {
    outline: none;
    color: #2ebb77;
    background: transparent;
}

/* Animation for smooth expand/collapse */
.content-full {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.content-full.expanded {
    opacity: 1;
    max-height: 1000px; /* Adjust based on your content */
}

.content-preview.collapsed {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

/* Ensure smooth transitions */
.woocommerce-Tabs-panel--description {
    overflow: visible;
}

/* Style the "Learn more about this item" text */
.learn-more-text,
.learn-less-text {
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .learn-more-btn {
        font-size: 13px;
    }
    
    /* Hide collapsible functionality on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Show full content always on mobile */
    .mobile-always-visible {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Hide the preview content on mobile */
    .content-preview {
        display: none !important;
    }
    
    /* Ensure full content is always visible on mobile */
    .content-full {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Desktop styles - show collapsible functionality */
@media (min-width: 769px) {
    .mobile-always-visible {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    /* Standard desktop collapsible behavior */
    .content-full:not(.expanded) {
        display: none;
    }
}

/* Move tabs below order button and set font size to 11px */
.woocommerce-tabs.wc-tabs-wrapper {
    font-size: 13px; /* Set font size to 11px */
}

/* Ensure the parent container uses flexbox for proper ordering */
.single-product div.product {
    display: flex;
    flex-direction: column;
}

/* Style the tab titles with 11px font size */
.woocommerce-tabs .tabs.wc-tabs li a,
.woocommerce-tabs .haru-accordion-title {
    font-size: 11px !important;
}

.woocommerce-tabs .tabs li a {
	font-size: small;
}

/* Style the tab content with 11px font size */
.woocommerce-tabs .woocommerce-Tabs-panel {
    font-size: 11px;
}

/* Adjust learn more button to match 11px theme */
.woocommerce-tabs .learn-more-btn {
    font-size: 11px;
}

/* Mobile adjustments for the repositioned tabs */
@media (max-width: 768px) {
    .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 5px;
    }
    
    .woocommerce-tabs .learn-more-btn {
        font-size: 11px;
    }
}

/* Related Searches Section - Amazon-style pill buttons */
.related-searches-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e7e7e7;
}

.related-searches-title {
    font-size: 16px;
    font-weight: 400;
    color: #0F1111;
    margin-bottom: 12px;
    font-family: "Amazon Ember", Arial, sans-serif;
    line-height: 1.3;
}

.related-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.related-search-tag {
    display: inline-block;
    padding: 8px 14px;
    background-color: #ffffff;
    border: 1px solid #D5D9D9;
    border-radius: 20px;
    color: #0F1111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.related-search-tag:hover {
    background-color: #F7F8F8;
    border-color: #D5D9D9;
    color: #0F1111;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-search-tag:active {
    background-color: #EDFDFF;
    border-color: #007185;
    color: #007185;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .related-searches-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .related-searches-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .related-search-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .related-searches-tags {
        gap: 6px;
    }
    
    /* Hide "Add to favorites" text on mobile devices */
    .yith-wcwl-add-button .add_to_wishlist span:not(.haru-tooltip) {
        display: none !important;
    }
}
