/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Prevent scrolling when mobile nav is open */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.brand img {
    border-radius: 50%;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Cart Link - Store Pages */
.cart-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(52, 152, 219, 0.3);
}

.cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

#cartBadge {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

/* Secure Badge - Checkout Page */
.secure-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT - STORE PAGES ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== SEARCH & FILTERS ===== */
.search-section {
    margin: 2rem 0;
    text-align: center;
}

#productSearch {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#productSearch:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-tags {
    margin: 2rem 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag:hover,
.tag.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* ===== PRODUCTS SECTION ===== */
.products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#sortSelect {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.featured-product {
    border: 2px solid #f39c12;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-category {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
}

.product-features li {
    font-size: 0.85rem;
    color: #28a745;
    margin-bottom: 0.3rem;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-btn,
.buy-btn,
.add-btn,
.demo-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn {
    background: #6c757d;
    color: white;
}

.buy-btn {
    background: #28a745;
    color: white;
}

.add-btn {
    background: #3498db;
    color: white;
}

.demo-btn {
    background: #f39c12;
    color: white;
    width: 100%;
    margin-top: 0.5rem;
}

.view-btn:hover { background: #5a6268; transform: translateY(-1px); }
.buy-btn:hover { background: #218838; transform: translateY(-1px); }
.add-btn:hover { background: #2980b9; transform: translateY(-1px); }
.demo-btn:hover { background: #e67e22; transform: translateY(-1px); }

.add-btn:disabled {
    background: #28a745;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.unavailable-btn {
    background: #dc3545;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== CHECKOUT SPECIFIC STYLES ===== */
.checkout-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Order Summary */
.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
}

.order-summary h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cart-items-list {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.item-details p {
    font-size: 0.85rem;
    color: #666;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
}

.item-quantity button {
    background: #3498db;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.item-quantity button:hover {
    background: #2980b9;
}

.item-price {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
}

.order-totals {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.subtotal, .discount, .total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total {
    font-size: 1.2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.discount {
    color: #27ae60;
}

.promo-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.promo-section input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    outline: none;
}

.promo-section input:focus {
    border-color: #3498db;
}

.promo-section button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promo-section button:hover {
    background: #2980b9;
}

/* Payment Form */
.payment-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.payment-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

fieldset {
    border: none;
    margin-bottom: 2rem;
}

legend {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.payment-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #666;
}

.payment-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-badges span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e1e8ed;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.security-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.empty-cart {
    text-align: center;
    background: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.continue-shopping {
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.continue-shopping:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===== MODAL STYLES ===== */
.product-modal, .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    color: #666;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
    background: white;
}

.modal-product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0;
}

.modal-product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-buy-btn,
.modal-add-btn,
.download-all-btn,
.continue-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.modal-buy-btn {
    background: #28a745;
    color: white;
}

.modal-add-btn,
.download-all-btn,
.continue-btn {
    background: #3498db;
    color: white;
}

.modal-buy-btn:hover { background: #218838; }
.modal-add-btn:hover,
.download-all-btn:hover,
.continue-btn:hover { background: #2980b9; }

#orderDetails {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.download-info {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.error-message,
.no-products {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 3rem;
    font-size: 1.1rem;
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification-toast.show {
    transform: translateX(0);
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-impact {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .header {
        padding: 1rem 4%;
    }
    
    .brand h1 {
        font-size: 1.2rem;
    }
    
    .brand img {
        width: 40px;
        height: 40px;
    }
    
    .cart-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .secure-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .navbar.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        height: 100%;
        justify-content: flex-start;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }
    
    main {
        padding: 1rem 4%;
    }
    
    .checkout-main {
        padding: 1rem 4%;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-summary {
        position: static;
        order: 2;
    }
    
    .payment-form {
        order: 1;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tags-container {
        gap: 0.3rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-product-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .payment-badges {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .notification-toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification-toast.show {
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 0.8rem 3%;
    }
    
    main,
    .checkout-main {
        padding: 1rem 3%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.nav-toggle:focus,
.cart-link:focus,
.nav-links a:focus,
button:focus,
input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
/* ===== DOWNLOADS PAGE SPECIFIC STYLES ===== */

/* Quick Access Section */
.quick-access-section {
    margin: 3rem 0;
}

.access-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.access-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.access-card h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.access-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Order Lookup Section */
.lookup-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 3rem 0;
    text-align: center;
}

.lookup-form h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.lookup-form p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Downloads Section */
.downloads-section {
    margin: 3rem 0;
}

.downloads-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.download-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.download-info {
    padding: 1.5rem;
}

.download-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.download-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.order-info {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.expiry-info {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.expiry-info.expired {
    color: #e74c3c;
}

.download-actions {
    padding: 0 1.5rem 1.5rem;
}

.download-expired {
    text-align: center;
    padding: 1rem 0;
}

.download-expired p {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Guides Section */
.guides-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.guides-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.guide-card h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-card p {
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.guide-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.guide-link:hover {
    color: #2980b9;
    transform: translateX(3px);
}

/* Support Section */
.support-section {
    margin: 3rem 0;
    text-align: center;
}

.support-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.support-card h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Email Instructions Modal Enhancements */
.instructions {
    text-align: left;
    margin: 1.5rem 0;
}

.instructions h3 {
    color: #2c3e50;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions h3:first-child {
    margin-top: 0;
}

.instructions p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.instructions strong {
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Button Variations for Downloads */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Download Status Indicators */
.download-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.download-status.available {
    background: #d4edda;
    color: #155724;
}

.download-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.download-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Progress Indicators */
.download-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Download Counter */
.download-counter {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== MOBILE RESPONSIVENESS FOR DOWNLOADS ===== */
@media screen and (max-width: 768px) {
    .access-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .access-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .lookup-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .lookup-form h2 {
        font-size: 1.5rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-card {
        margin-bottom: 0;
    }
    
    .download-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .guides-section {
        padding: 2rem 1.5rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .guide-card {
        padding: 1.5rem 1.25rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-card {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .access-card h3 {
        font-size: 1.2rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .downloads-section h2 {
        font-size: 1.8rem;
    }
    
    .download-info {
        padding: 1.25rem;
    }
    
    .download-info h3 {
        font-size: 1.1rem;
    }
    
    .download-actions {
        padding: 0 1.25rem 1.25rem;
    }
    
    .guides-section h2 {
        font-size: 1.8rem;
    }
    
    .guide-icon {
        font-size: 2rem;
    }
    
    .instructions h3 {
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.access-card:focus,
.download-card:focus,
.guide-card:focus,
.support-card:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-secondary:focus,
.guide-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .download-card,
    .access-card,
    .guide-card,
    .support-card {
        border: 2px solid #333;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid transparent;
    }
    
    .btn-primary:focus,
    .btn-secondary:focus {
        border-color: #000;
    }
}
