/* ===== SCRIPTS PAGE SPECIFIC STYLES ===== */

/* Hero Section */
.scripts-hero {
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.scripts-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.scripts-hero .hero-title {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #D4AF37, #E8C95A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.scripts-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.scripts-hero .hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.scripts-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.scripts-hero-video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover .scripts-hero-image {
    transform: scale(1.05);
}

.hero-image:hover .scripts-hero-video {
    transform: scale(1.02);
}

/* Currency Converter (Same as merchandise) */
.currency-converter {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
    position: sticky;
    top: 70px;
    z-index: 900;
}

.currency-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.currency-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.currency-buttons {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.currency-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #b0b0b0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.currency-btn:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.1);
}

.currency-btn.active {
    background: #D4AF37;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.currency-btn.active:hover {
    background: #E8C95A;
    color: #1a1a1a;
}

.exchange-rate-note {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0b0;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 16px 60px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #3a3a3a;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.clear-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.clear-search-btn:hover {
    color: #ffffff;
}

.search-hint {
    text-align: center;
    margin-top: 10px;
    color: #888;
    font-size: 0.9rem;
}

/* Advanced Filters */
.advanced-filters {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #3a3a3a;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section-title {
    font-size: 1.1rem;
    color: #D4AF37;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #b0b0b0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    color: #D4AF37;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Playwright Filter */
.playwright-filters {
    max-width: 300px;
}

.playwright-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.playwright-select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.playwright-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.clear-filters-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
}

.clear-filters-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

.active-filters-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filter-tag {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.9rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-filter-tag .remove-filter {
    background: none;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scripts Grid Section */
.scripts-grid {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 1rem;
}

.section-header p {
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.scripts-results-info {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.results-count {
    color: #b0b0b0;
    font-size: 1rem;
}

.results-count span {
    color: #ffffff;
    font-weight: 600;
}

.scripts-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Script Card */
.script-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
}

.script-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.script-card:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.script-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.script-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.script-card:hover .script-cover img {
    transform: scale(1.05);
}

.script-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.script-badge.bestseller {
    background: #D4AF37;
    color: #1a1a1a;
    top: 15px;
    left: 15px;
}

.script-badge.new {
    background: #4CAF50;
    color: #ffffff;
    top: 15px;
    left: 15px;
}

.script-badge.popular {
    background: #FF9800;
    color: #ffffff;
    top: 15px;
    left: 15px;
}

.script-badge.educational {
    background: #2196F3;
    color: #ffffff;
    top: 15px;
    right: 15px;
}

.script-badge.digital {
    background: #9C27B0;
    color: #ffffff;
    top: 15px;
    right: 15px;
}

.script-badge.collection {
    background: #E91E63;
    color: #ffffff;
    top: 15px;
    left: 15px;
}

.script-badge.children {
    background: #00BCD4;
    color: #ffffff;
    top: 15px;
    right: 15px;
}

.script-badge.monologue {
    background: #795548;
    color: #ffffff;
    top: 15px;
    right: 15px;
}

.script-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.script-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.script-playwright {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.playwright-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.playwright-link:hover {
    color: #E8C95A;
    text-decoration: underline;
}

.script-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.script-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.script-meta i {
    color: #D4AF37;
    font-size: 0.8rem;
}

.script-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.script-price {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency-symbol {
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 600;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.script-actions {
    display: flex;
    gap: 12px;
}

.script-actions .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
}

.script-actions .btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.script-actions .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results-content i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    display: block;
}

.no-results-content h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.no-results-content p {
    color: #b0b0b0;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 26, 26, 0.9));
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #D4AF37;
}

.step h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.scripts-faq {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #D4AF37;
}

.faq-question {
    padding: 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #D4AF37;
}

.faq-question i {
    color: #D4AF37;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Preview Modal */
.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.preview-modal-overlay.active {
    display: block;
    opacity: 1;
}

.preview-modal-content {
    max-width: 900px;
    margin: 40px auto;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 600px;
}

.modal-cover {
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.modal-cover img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-badge {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-badge.digital {
    background: #9C27B0;
    color: #ffffff;
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-playwright {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.meta-item i {
    color: #D4AF37;
    font-size: 1rem;
    width: 20px;
}

.modal-synopsis {
    margin-bottom: 30px;
}

.modal-synopsis h3 {
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.modal-synopsis h3 i {
    color: #D4AF37;
}

#modalDescription {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

#modalDescription p {
    margin-bottom: 15px;
}

.preview-note {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.preview-note i {
    color: #D4AF37;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.preview-note p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modal-price-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price-label {
    color: #b0b0b0;
    font-size: 1rem;
}

.modal-price .price-display {
    font-size: 1.8rem;
}

.price-type {
    color: #888;
    font-size: 0.9rem;
}

.royalty-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4CAF50;
    font-size: 0.9rem;
}

.royalty-info i {
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.modal-actions .btn {
    flex: 1;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-actions .btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.modal-actions .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Cart Sidebar (Same as merchandise) */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    z-index: 10001;
    pointer-events: none;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-sidebar.active .cart-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #1a1a1a;
    border-left: 1px solid #3a3a3a;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    pointer-events: all;
}

.cart-sidebar.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 26, 0.95);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 i {
    color: #D4AF37;
}

.cart-count-badge {
    background: #D4AF37;
    color: #1a1a1a;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.cart-empty-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    display: block;
}

.cart-empty-state p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cart-empty-hint {
    font-size: 0.95rem;
    color: #888;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: #D4AF37;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cart-item-options {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: 600;
    color: #D4AF37;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    color: #D4AF37;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.remove-item-btn:hover {
    color: #ff3333;
    transform: scale(1.1);
}

.cart-summary {
    padding: 25px;
    border-top: 1px solid #3a3a3a;
    background: rgba(26, 26, 26, 0.95);
}

.cart-subtotal,
.cart-shipping,
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.cart-subtotal span:first-child,
.cart-shipping span:first-child,
.cart-total span:first-child {
    color: #b0b0b0;
}

.cart-shipping .shipping-info {
    color: #4CAF50;
    font-weight: 600;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.cart-total .total-amount {
    color: #D4AF37;
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.continue-shopping-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.continue-shopping-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.cart-toggle-btn:hover {
    background: #E8C95A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.cart-item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scripts-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-cover {
        padding: 30px;
        min-height: 300px;
    }
    
    .modal-cover img {
        max-height: 300px;
    }
}

@media (max-width: 992px) {
    .scripts-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .scripts-hero .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .scripts-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .scripts-hero-image {
        height: 300px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .active-filters-display {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .scripts-hero {
        padding: 100px 0 60px;
    }
    
    .scripts-hero .hero-title {
        font-size: 2rem;
    }
    
    .scripts-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .scripts-hero .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .scripts-hero .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .currency-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .currency-buttons {
        width: 100%;
    }
    
    .currency-btn {
        flex: 1;
    }
    
    .advanced-filters {
        padding: 20px;
    }
    
    .filter-section-title {
        text-align: center;
        justify-content: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .playwright-filters {
        max-width: 100%;
    }
    
    .scripts-grid-container {
        grid-template-columns: 1fr;
    }
    
    .script-cover {
        height: 250px;
    }
    
    .script-actions {
        flex-direction: column;
    }
    
    .modal-body {
        min-height: auto;
    }
    
    .preview-modal-content {
        margin: 20px;
    }
    
    .modal-details {
        padding: 25px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-meta {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .cart-toggle-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .scripts-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .scripts-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .script-info {
        padding: 20px;
    }
    
    .script-title {
        font-size: 1.2rem;
    }
    
    .price-display {
        font-size: 1.3rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    
    .modal-cover {
        padding: 20px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price .price-display {
        font-size: 1.5rem;
    }
}

/* ===== SCRIPT UPLOAD MODAL STYLES ===== */

.upload-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.upload-modal-overlay.active {
    display: flex;
}

.upload-modal-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-modal-body {
    padding: 30px;
}

.upload-notice {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.upload-notice i {
    color: #2196F3;
    margin-top: 2px;
    flex-shrink: 0;
}

.upload-notice p {
    margin: 0;
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.5;
}

#scriptUploadForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group small {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: #D4AF37;
    font-weight: 600;
    pointer-events: none;
}

.input-with-prefix input {
    padding-left: 50px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 30px;
    background: rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.file-upload-area.drag-over {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.file-upload-content i {
    font-size: 2.5rem;
    color: #D4AF37;
}

.file-upload-content p {
    margin: 0;
    color: #b0b0b0;
}

.file-upload-content p.upload-hint {
    font-size: 0.85rem;
    color: #888;
}

.file-upload-content .btn {
    margin-top: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.file-info i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.file-info span {
    flex: 1;
    color: #b0b0b0;
    font-size: 0.95rem;
    word-break: break-word;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #d32f2f;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-top: 10px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #D4AF37;
}

.terms-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
    cursor: pointer;
    line-height: 1.4;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.form-actions .btn {
    flex: 1;
}

/* Upload Progress */
.upload-progress {
    display: none;
    gap: 12px;
    align-items: center;
    padding: 15px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
}

.upload-progress.active {
    display: flex;
}

.upload-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    font-size: 0.85rem;
    color: #2196F3;
    min-width: 50px;
    text-align: right;
}

/* Success/Error States */
.upload-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
    align-items: center;
    gap: 12px;
}

.upload-message.success {
    display: flex;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.upload-message.error {
    display: flex;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.upload-message i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 600px) {
    .upload-modal-content {
        max-width: 95%;
    }
    
    .upload-modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}