/* Sound Library Product Page — Sonniss Design System */
.product-sound-library {
    color: #ffffff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* ── Hero Section ── */
.sound-library-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.15);
    transform: scale(1.15);
}

/* img version of hero-image */
img.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.15);
    transform: scale(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.85) 80%,
        #0a0a0a 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Category Tags ── */
.hero-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.category-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Product Title ── */
.hero-info .product_title {
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out;
}

/* ── Description ── */
.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Metadata Grid ── */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(18, 18, 18, 0.95);
    padding: 1.125rem 1.25rem;
}

.meta-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a376;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: rgba(201, 163, 118, 0.1);
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meta-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.meta-unit {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: normal;
}

/* ── Sold By ── */
.hero-sold-by {
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-sold-by:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-sold-by i {
    color: #c9a376;
    font-size: 1rem;
}

.hero-sold-by .sold-by-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-sold-by .sold-by-content a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-sold-by .sold-by-content a:hover {
    color: #c9a376;
}

@media (max-width: 768px) {
    .hero-sold-by {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ── Hero Preview (right column) ── */
.hero-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-image {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.preview-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-header h3 i {
    color: #c9a376;
    font-size: 1.125rem;
}

.preview-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-note::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #c9a376;
    border-radius: 50%;
}

.waveform-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-preview .waveplayer {
    margin: 0;
}

.hero-preview .waveplayer .waveplayer__wave {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-preview .waveplayer .waveplayer__wave canvas {
    filter: brightness(1.3) contrast(1.3);
}

.hero-preview .waveplayer .waveplayer__controls {
    margin-top: 1.25rem;
}

.hero-preview .waveplayer .waveplayer__controls button {
    background: #c9a376;
    color: #0a0a0a;
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(201, 163, 118, 0.25);
    transition: all 0.3s ease;
}

.hero-preview .waveplayer .waveplayer__controls button:hover {
    background: #d4b48a;
    box-shadow: 0 6px 20px rgba(201, 163, 118, 0.35);
}

/* ── Hero Footer (Price + Cart) ── */
.hero-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.35s backwards;
    margin-top: 1rem;
    width: 100%;
}

form.cart {
    padding: 0 2rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

form.variations_form.cart {
    padding: 0;
    max-width: 100%;
    gap: 0;
}

.hero-actions .variations {
    margin-bottom: 0;
}

/* ── Variation dropdown table ── */
.hero-actions .variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    margin-top: 0.4rem;
}

.hero-actions .variations tr {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.hero-actions .variations th.label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    width: auto;
}

.hero-actions .variations td.value {
    padding: 0;
    flex: 1;
}

/* Hide the "Clear" reset link — arrow comes from select background */
.hero-actions .variations td.value a.reset_variations {
    display: none !important;
}

.hero-actions .variations select {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a376' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    border: 1px solid rgba(201, 163, 118, 0.4);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease;
}

.hero-actions .variations select:focus {
    outline: none;
    border-color: #c9a376;
}

.hero-actions .reset_variations {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hero-actions .reset_variations:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Variation selected info ── */
.hero-actions .woocommerce-variation-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin: 0;
    padding: 0;
}

.hero-actions .woocommerce-variation-description p {
    margin: 0;
}

.hero-actions .woocommerce-variation-price {
    margin: 0;
}

.hero-actions .woocommerce-variation-price .price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1;
}

.hero-actions .single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-price-section {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

/* Price and badge sit inline on the first row; everything else wraps below */
.hero-price .price {
    order: 1;
    margin-bottom: 0;
}

.hero-price span.sale-tag {
    order: 2;
}

.hero-price .price-note {
    order: 3;
    width: 100%;
}

.hero-price .rewards-info {
    order: 4;
    width: 100%;
}

.hero-price .wishlist-container {
    order: 5;
    width: 100%;
}

/* ── Price styling ── */
.hero-price .price {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.hero-price .price del {
    font-size: 1.75rem;
    opacity: 0.4;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    margin-right: -0.25rem;
}

.hero-price .price ins {
    text-decoration: none;
}

/* One-time purchase text */
.hero-price small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1;
}

.hero-price small::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #c9a376;
    border-radius: 50%;
    flex-shrink: 0;
}

.price-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sale-tag {
    background-color: rgba(225, 41, 41, 0.9);
    color: white;
}

.vendor-tag {
    background-color: rgba(201, 163, 118, 0.9);
    color: #0a0a0a;
}

.academic-tag {
    background-color: rgba(0, 123, 255, 0.9);
    color: white;
}

.price-tag i {
    margin-right: 4px;
}

.price-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    display: inline;
}

.price-note::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #c9a376;
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-left: 0.25rem;
}

.price-note a.license-inline-link {
    color: #c9a376;
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.price-note a.license-inline-link:hover {
    color: #d4b48a;
    text-decoration: underline;
}

/* Override sale badge plugin styles */
.product-sound-library span.sale-tag,
.product-sound-library span.price-tag.sale-tag {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
}

a.iconic-ww-button.iconic-ww-button--add-to-wishlist.button {
    margin-bottom: 0px !important;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-rating .star-rating {
    color: #c9a376;
    font-size: 1.25rem;
}

.hero-rating .count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ── Add to Cart Button ── */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    padding: 0;
}

.hero-actions form.cart {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.cart-button-container {
    width: 100%;
}

.hero-actions .single_add_to_cart_button,
.hero-actions .add_to_cart_button,
.hero-actions .cart-button-container a,
.hero-actions a.button,
.product-sound-library .hero-actions a.button:not(.button-primary),
.product-sound-library .hero-actions .add_to_cart_button:not(.button-primary) {
    background: #c9a376 !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 8px;
    padding: 1.25rem 2.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 163, 118, 0.3), 0 1px 0 rgba(255,255,255,0.1) inset;
    letter-spacing: 0.02em;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    width: 100% !important;
    justify-content: center;
    text-decoration: none;
    text-transform: none !important;
}

.hero-actions .single_add_to_cart_button:hover,
.hero-actions .add_to_cart_button:hover,
.hero-actions .cart-button-container a:hover,
.hero-actions a.button:hover {
    background: #d4b48a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 163, 118, 0.45), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.hero-actions .single_add_to_cart_button i,
.hero-actions .add_to_cart_button i,
.hero-actions .cart-button-container a i,
.hero-actions a.button i {
    font-size: 1.2rem;
}

/* ── "In Cart" link — shown after AJAX add to cart ── */
.hero-actions .added_to_cart,
.hero-actions a.added_to_cart {
    display: none !important;
}

/* Trust line below button */
.hero-trust-line {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 4px 0 0 0;
}

/* ── Content Section ── */
.sound-library-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 8%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ── Related Products ── */
.related.products {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related.products > h2 {
    font-size: 1.75rem;
    margin: 0 0 2.5rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.related.products > h2::before {
    content: '\f06b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Main Content Area ── */
.content-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ── Description Section ── */
.sound-library-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-library-description h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-description h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.description-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.75;
}

.description-content p {
    margin-bottom: 1.25rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ── Reviews Section ── */
.sound-library-reviews {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-library-reviews h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-reviews h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.no-reviews {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Modal ── */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ── YouTube Section ── */
.sound-library-youtube {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-library-youtube h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-youtube h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.youtube-content {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.youtube-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .sound-library-youtube {
        padding: 1.5rem;
    }

    .sound-library-youtube h3 {
        font-size: 1.25rem;
    }
}

/* ── Gallery Section ── */
.sound-library-gallery {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.sound-library-gallery h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-gallery h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .sound-library-content {
        padding: 4rem 1.5rem;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

/* ── Details Section (sidebar) ── */
.sound-library-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-library-details h3,
.sound-library-tracklist h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-details h3 i,
.sound-library-tracklist h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.sound-library-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.sound-library-specs-table th,
.sound-library-specs-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sound-library-specs-table th {
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    width: 40%;
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.01em;
    font-size: 0.875rem;
}

.sound-library-specs-table td {
    color: #ffffff;
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
    letter-spacing: 0.02em;
    font-size: 0.875rem;
}

.sound-library-specs-table tr:last-child th,
.sound-library-specs-table tr:last-child td {
    border-bottom: none;
}

/* ── Tracklist ── */
.sound-library-tracklist {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* ── Vendor Details ── */
.sound-library-vendor {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.sound-library-vendor h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-library-vendor h3 i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.vendor-profile {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vendor-profile__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vendor-profile__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vendor-profile__icon:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.vendor-profile__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-profile__header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.vendor-profile__header h4 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vendor-profile__header h4 a:hover {
    color: #c9a376;
}

.vendor-profile__description p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .vendor-profile {
        padding: 1.5rem;
    }

    .vendor-profile__header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .vendor-profile__description {
        text-align: center;
    }
}

.tracklist-description {
    color: rgba(255, 255, 255, 0.6);
    margin: -0.75rem 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.sound-library-tracklist .button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #c9a376;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 163, 118, 0.2);
    letter-spacing: 0.01em;
}

.sound-library-tracklist .button:hover {
    background: #d4b48a;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201, 163, 118, 0.35);
}

.sound-library-tracklist .button i {
    font-size: 1.125rem;
}

/* ── Tags Container ── */
.hero-tags-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 1400px;
    display: block !important;
    position: relative;
    z-index: 2;
}

/* Tags Bar */
.hero-tags-container .tags-bar {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
}

.hero-tags-container .tags-bar-inner {
    padding: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Backward compat for tags-bar outside hero */
.tags-bar:not(.hero-tags-container .tags-bar) {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.tags-bar:not(.hero-tags-container .tags-bar) .tags-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tags-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.tags-label i {
    color: #c9a376;
    margin-right: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.no-tags {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 0.85rem;
}

/* Tags responsive */
@media (max-width: 768px) {
    .hero-tags-container {
        padding: 1rem;
    }

    .tags-bar-inner,
    .hero-tags-container .tags-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .tags-list {
        width: 100%;
    }

    .tags-bar:not(.hero-tags-container .tags-bar) .tags-bar-inner {
        padding: 0 1.5rem;
    }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .hero-info .product_title {
        font-size: 2.75rem;
    }
}

@media (max-width: 1024px) {
    .hero-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-info .product_title {
        font-size: 2.25rem;
    }

    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sound-library-hero {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .preview-image {
        padding: 1.25rem;
    }

    .preview-image img {
        max-height: 300px;
    }

    .hero-info .product_title {
        font-size: 1.75rem;
    }

    .hero-meta {
        gap: 1px;
        grid-template-columns: 1fr;
    }

    .hero-footer {
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .hero-price-section {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-price,
    form.cart {
        padding: 0;
    }

    .hero-trust-line {
        text-align: center;
    }

    .sound-library-content {
        padding: 0 1.5rem;
        margin: 4rem auto;
        gap: 3rem;
    }

    .sound-library-details,
    .sound-library-tracklist {
        padding: 1.5rem;
    }

    .preview-header {
        text-align: center;
    }

    .preview-header h3 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-price .price {
        font-size: 2.5rem !important;
    }

    .meta-item {
        font-size: 0.95rem;
    }

    .sound-library-details h3,
    .sound-library-tracklist h3 {
        font-size: 1.25rem;
    }
}

/* ── Variable Product Styles ── */
.variations_form .quantity {
    display: none !important;
}

.variable-price {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.variations_form {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

form.variations_form.cart {
    margin-bottom: 0px !important;
}

.woocommerce-variation {
    height: 120px;
    display: flex;
    flex-direction: column;
}

.woocommerce-variation-description {
    text-align: left !important;
    margin: 0;
    padding-bottom: 5px;
    height: 60px;
    display: flex;
    align-items: center;
}

.woocommerce-variation-price {
    height: 40px;
}

.variations {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.variations td {
    padding: 0;
    vertical-align: middle;
}

.variations td.label {
    width: 35%;
    padding-right: 1.5rem;
}

.variations td.label label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.variations td.value {
    position: relative;
    width: 65%;
}

/* old variation rules replaced by .hero-actions .variations rules above */
a.reset_variations {
    display: none !important;
}

.variations select option {
    background-color: #121212;
    color: #ffffff;
}

.variations select option:checked {
    background-color: #c9a376;
    color: #0a0a0a;
}

.reset_variations {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reset_variations:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.reset_variations::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.single_variation_wrap {
    width: 100%;
}

button.reset_variations {
    display: none !important;
}

.woocommerce-variation-price {
    margin: 0;
    padding: 0;
}

.woocommerce-variation-price .price {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

/* Custom spacing handled by .hero-actions rules above */

th.label {
    padding-left: 0px;
}

/* Responsive styles for variations */
@media (max-width: 768px) {
    .variations td.label {
        width: 40%;
    }

    .variations select {
        font-size: 0.85rem;
    }
}

/* ── Waveplayer playlist ── */
img.wvpl-thumbnail {
    display: none;
}

span.wvpl-stats.wvpl-icon.wvpl-button.wvpl-cart.wvpl-add_to_cart {
    display: none !important;
}

span.wvpl-stats.wvpl-icon.wvpl-button.wvpl-likes {
    display: none !important;
}

span.wvpl-stats.wvpl-icon.wvpl-button.wvpl-cart.wvpl-in_cart {
    display: none !important
}

/* ── Rewards Info Styling ── */
.rewards-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.rewards-text {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.rewards-tooltip {
    display: none;
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: 8px;
    width: 320px;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.5;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rewards-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

.rewards-text:hover .rewards-tooltip {
    display: block;
    visibility: visible;
    opacity: 1;
}
