.store-hero {
    padding: 4rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    position: relative;
    overflow: hidden;
    margin-top: -8rem;
}

.hero-content {
    text-align: center;
    font-size: 2.8em;
    padding: 15px 30px;
    margin: 75px auto 0;
    background-color: #0a0a0a;
    border: 1px solid white;
    border-radius: 15px;
    width: fit-content;
    color: white;
    position: relative;
    z-index: 4;
}

.main-title {
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* Store sections */
.store-section {
    padding: 0rem 2rem 4rem;
    position: relative;
}

.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    display: inline-block;
    white-space: nowrap;
    padding: 12px 30px;
    background-color: #0a0a0a;
    border: 1px solid white;
    border-radius: 8px;
    width: fit-content;
    position: relative;
}

.section-separator-right {
    height: 4px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.5) 70%,
        transparent 100%
    );
    flex-grow: 1;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: -50px auto;
    flex: 1;
    background-color: #0a0a0a;
    padding: 10px 30px 30px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 4;
}

.website-grid {
    grid-template-columns: repeat(3, 1fr);
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: -50px auto;
    flex: 1;
    background-color: #0a0a0a;
    padding: 10px 30px 30px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 4;
}

.product-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-link {
    pointer-events: auto;
    display: block;
    text-decoration: none;
    color: white;
}

/* Window styling (from portfolio) */
.window {
    margin-top: 2rem;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.window:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.window-header {
    background: rgba(40, 40, 50, 0.95);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.window-title {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-family: monospace;
    text-align: center;
    margin-right: 30px;
}

/* Ensure toggles render properly */
.product-status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    position: relative;
}

.window-content {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-grow: 1;
}

.window-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.window:hover .window-content img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.window:hover .product-overlay {
    opacity: 1;
}

.window-footer {
    background: rgba(40, 40, 50, 0.95);
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Stream Store specifics */
.product-item:nth-child(5) .window-footer {
    padding: 12px 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(160, 74, 226, 0.4);
}

.product-item:nth-child(5) .store-price {
    margin-left: auto;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: center;
    background: linear-gradient(45deg, #c833e6, #d75050);
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.product-item:nth-child(5) .buy-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
}

.store-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #c833e6, #d75050);
    padding: 4px 10px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-status {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-status.active {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.product-status.inactive {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Product Asset Status */
.product-status-asset {
    margin: auto;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-status-asset.active {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background-color: #131318;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-header {
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 30px;
    color: white;
}

.modal-details h3 {
    color: #a600ff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal-details p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e6e6e6;
}

.modal-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.modal-details li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 25px;
}

.modal-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a600ff;
    font-weight: bold;
}

.modal-details li:last-child {
    border-bottom: none;
}

.modal-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#modal-product-price {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.buy-button {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
  
.donation-description {
    position: absolute;
    left: 35%;
    top: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    max-width: 400px;
}
  
.donation-description {
    text-align: center;
    max-width: 400px;
}

/* Contact CTA section (from portfolio) */
.contact-cta {
    padding: 4rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    border-radius: 12px;
    margin: 3rem auto;
    max-width: 1200px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background-color: rgba(136, 0, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #a600ff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

/* Stream Store Client */
.account-type {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-size: 200% auto;
    transition: 0.5s;
    color: white;
}

.account-type.client {
    background-image: linear-gradient(45deg, #c833e6, #d75050, #e695fd);
}

/* Discount notification styles */
.discount-notification {
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.discount-notification p {
    font-size: 1rem !important;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3); }
    50% { box-shadow: 0 5px 20px rgba(160, 74, 226, 0.6); }
    100% { box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3); }
}

.discount-code {
    font-weight: bold;
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    margin: 0 5px;
}

@media (min-width: 1440px) {
    .store-hero {
        margin-top: -8rem  !important;
        margin-bottom: -3rem !important;
        padding: 0 !important;
    }

    .main-title h1 {
        font-size: 7rem !important;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
        max-width: 1800px !important;  
    }

    .window-content {
        height: 300px !important;
    }

    .website-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
    }

    .donation-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
        max-width: 1800px !important;
    }

    .donation-description {
        max-width: 600px !important;
        font-size: 2rem !important;
    }
}

@media screen and (min-width: 1920px) and (max-width: 1921px) {
    .hero-content {
        margin: 0;
        margin-bottom: -25px;
    }

    .back-link {
        font-size: 2rem;
    }

    .fas.fa-arrow-left {
        margin-right: 15px;
    }
    
    .main-title {
        font-size: 7rem;
    }

    .subtitle {
        font-size: 3rem;
    }

    .store-section {
        margin-top: -50px;
    }

    .section-title {
        font-size: 4rem;
    }

    .section-separator-right {
        height: 8px;
    }

    .section-header {
        margin-bottom: -100px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 225px;
        transform: scale(125%);
        gap: 1.5rem;
        margin-bottom: 150px;
        padding-right: 4.2rem;
        padding-bottom: 3rem;
    }

    .website-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 150px;
        margin-bottom: 75px;
        padding-right: 4.2rem;
        transform: scale(125%);
        gap: 1.5rem;
    }

    .donation-grid {
        grid-template-columns: repeat(3, 1fr);
        transform: scale(125%);
        gap: 1.5rem;
        margin-top: 150px;
        padding-right: 4.2rem;
        margin-bottom: 150px;
        padding-bottom: 3rem;
    }

    .product-item {
        width: 80%;
        padding: 2rem 3rem;
    }

    .product-status {
        font-size: 1rem;
    }

    .buy-button {
        font-size: 1rem;
    }

    .window {
        transform: scale(125%);
    }

    .window:hover {
        transform: scale(130%);
    }

    .donation-description {
        font-size: 1.8rem;
    }

    .contact-cta {
        margin-top: -75px;
        margin-bottom: 75px;
    }

    .cta-content p {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1.5rem;
        font-weight: 300;
    }
}
@media (max-width: 1200px) {
    .website-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image-container {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body, main {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
    }

    .store-hero {
        padding: 0 1rem 0;
        min-height: 20vh;
        margin-top: -40px;
        left: 1%;
        max-width: 90%;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 25px;
        margin: 50px auto 30px;
        width: 85%;
        max-width: 320px;
        padding-bottom: 0;
    }
    
    .main-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-top: 0.8rem;
        margin-bottom: 20px;
        white-space: nowrap;
    }

    .back-link {
        margin-top: -25px;
        transform: translateX(35%);
        margin-bottom: 15px;
    }
    
    .section-header {
        margin: 1rem auto 2rem;
        justify-content: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin: 0 auto;
        text-align: center;
        width: auto;
        padding: 12px 25px;
        max-width: 100%;
        margin-top: -10px;
        left: 5.5%;
    }
    
    .section-separator-right {
        display: none;
    }

    .store-section {
        right: 4.5%;
        padding-bottom: 0px;
    }
    
    .products-grid, .donation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 2rem auto;
        padding: 30px 18px 20px 15px;
        width: 100%;
        max-width: 400px;
    }
    
    .product-item {
        max-width: 100%;
    }
    
    .window {
        margin-top: 0;
    }
    
    .window-content {
        height: 225px !important;
    }
    
    .window-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 8px;
        max-height: 125px !important;
    }
    
    .product-status, 
    .buy-button, 
    .product-price,
    .store-price {
        width: 90%;
        text-align: center;
        margin: 3px 0;
    }

    .store-price {
        margin-right: 4px;
    }
    
    .donation-text-container {
        margin: 20px auto;
    }
    
    .donation-description {
        position: static;
        transform: none;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        left: auto;
        top: auto;
    }
    
    .contact-cta {
        padding: 3rem 1.5rem;
        margin: 2rem auto;
        width: 80%;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .website-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .window-content {
        height: 200px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .modal-price-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #modal-product-price {
        font-size: 1.8rem;
    }
    
    .purchase-btn {
        width: 100%;
        text-align: center;
    }
}