/* DRM-Free Premium Purchase Options */
.tpt-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.tpt-purchase-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tpt-purchase-option:hover {
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 123, 186, 0.1);
}

.tpt-subscription-option:hover {
    border-color: #007cba;
}

.tpt-drm-free-option:hover {
    border-color: #6f42c1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.1);
}

.tpt-option-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.tpt-option-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.tpt-price-tag {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.tpt-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #007cba;
}

.tpt-price-period {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 400;
}

.tpt-premium-price .tpt-price {
    color: #6f42c1;
}

.tpt-price-note {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 400;
    margin-left: 5px;
}

.tpt-option-description {
    color: #666;
    margin: 10px 0 15px 0;
    font-size: 1em;
    line-height: 1.5;
}

.tpt-option-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tpt-option-features li {
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpt-option-features li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
}

.tpt-option-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.tpt-option-divider:before,
.tpt-option-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.tpt-option-divider span {
    padding: 0 20px;
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
    background: white;
}

.tpt-drm-free-badge {
    background: linear-gradient(135deg, #6f42c1 0%, #e91e63 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    align-self: flex-end;
}

.tpt-drm-free-retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tpt-drm-free-btn {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.tpt-drm-free-btn:hover {
    background: #5a32a3 !important;
    border-color: #5a32a3 !important;
}

/* Book Actions (Favourites & Wishlist) */
.tpt-book-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.tpt-book-title {
    margin: 0;
    flex: 1;
}

.tpt-book-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Favourites Heart Icon */
.tpt-heart-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.tpt-heart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.tpt-heart-icon.favourited .heart-icon {
    color: #e74c3c;
}

.tpt-heart-icon .heart-icon {
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s ease;
}

.tpt-heart-icon.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Wishlist Button */
.tpt-wishlist-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tpt-wishlist-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.tpt-wishlist-btn.added {
    background: #28a745;
}

.tpt-wishlist-btn.added:hover {
    background: #1e7e34;
}

.tpt-wishlist-btn .wishlist-icon {
    width: 16px;
    height: 16px;
}

.tpt-wishlist-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Public Merchandise Section */
.tpt-public-merchandise-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.tpt-public-merchandise-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.tpt-merchandise-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.tpt-merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tpt-merchandise-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpt-merchandise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.tpt-merchandise-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tpt-merchandise-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tpt-merchandise-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpt-merchandise-image.active {
    opacity: 1;
    position: relative;
}

.tpt-merchandise-nav {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
}

.tpt-merchandise-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.tpt-merchandise-nav-dot.active {
    background: white;
}

.tpt-merchandise-nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.tpt-merchandise-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.tpt-merchandise-title {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Subscriber Imagery Gallery */
.tpt-imagery-gallery-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tpt-imagery-gallery-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.tpt-gallery-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.tpt-gallery-category {
    margin-bottom: 40px;
}

.tpt-gallery-category h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.tpt-imagery-grid,
.tpt-merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tpt-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tpt-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tpt-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpt-gallery-item:hover img {
    transform: scale(1.05);
}

.tpt-merch-grid .tpt-gallery-item {
    cursor: default;
}

.tpt-merch-grid .tpt-gallery-item a {
    display: block;
    text-decoration: none;
}

.tpt-product-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpt-gallery-item:hover .tpt-product-title {
    opacity: 1;
}

/* Gallery Teaser for Non-Subscribers */
.tpt-gallery-teaser {
    margin: 40px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.tpt-gallery-teaser-content h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.tpt-gallery-teaser-content p {
    margin-bottom: 25px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Lightbox Modal */
.tpt-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpt-lightbox-modal.show {
    opacity: 1;
}

.tpt-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.tpt-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.tpt-lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tpt-lightbox-close,
.tpt-lightbox-prev,
.tpt-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.tpt-lightbox-close:hover,
.tpt-lightbox-prev:hover,
.tpt-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tpt-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
}

.tpt-lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.tpt-lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.tpt-alternative-retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpt-purchase-options {
        gap: 20px;
    }

    .tpt-purchase-option {
        padding: 20px;
    }

    .tpt-option-header {
        align-items: stretch;
    }

    .tpt-drm-free-badge {
        align-self: center;
    }

    .tpt-drm-free-retailers {
        justify-content: center;
    }

    .tpt-alternative-retailers {
        justify-content: center;
    }
}

/* Spice Level Restriction Notice */
.tpt-spice-restriction-notice {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border: 2px solid #fdcb6e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.tpt-restriction-header h3 {
    color: #d63031;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.tpt-restriction-header p {
    color: #636e72;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.tpt-subscription-prompt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 25px;
}

.tpt-subscription-benefits h4 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.tpt-subscription-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpt-subscription-benefits li {
    color: #636e72;
    margin-bottom: 8px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpt-subscription-benefits li:before {
    content: "✓";
    color: #00b894;
    font-weight: bold;
}

.tpt-subscription-cta {
    text-align: center;
}

.tpt-price-highlight {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.tpt-price-highlight .tpt-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #0984e3;
}

.tpt-price-highlight .tpt-price-period {
    font-size: 1.2em;
    color: #636e72;
    font-weight: 400;
}

.tpt-subscription-note {
    color: #636e72;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsive adjustments for spice restriction */
@media (max-width: 768px) {
    .tpt-subscription-prompt {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tpt-price-highlight .tpt-price {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .tpt-price {
        font-size: 1.5em;
    }

    .tpt-option-header h3 {
        font-size: 1.3em;
    }

    .tpt-drm-free-retailers {
        flex-direction: column;
        align-items: stretch;
    }

    .tpt-drm-free-btn {
        text-align: center;
    }
}
