/* Store Styles - matches chiltonwebb.com main site design */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== STOREFRONT (index.html) ===== */

.store-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 40px 20px;
}

.store-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.store-tagline {
    text-align: center;
    color: #6d6d6d;
    font-size: 1rem;
    margin-bottom: 40px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.store-item {
    position: relative;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.store-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #2d2d2d;
    margin-bottom: 15px;
}

.store-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.store-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.store-price {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.store-price s {
    color: #6d6d6d;
    font-size: 0.9rem;
    font-weight: 400;
}

.store-status {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #2d2d2d;
    color: #b0b0b0;
    display: inline-block;
    border: 1px solid #333;
}

.store-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.store-footer a {
    color: #b0b0b0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.store-footer a:hover {
    color: #e0e0e0;
}

.store-footer span {
    color: #333;
}

/* ===== PRODUCT PAGES ===== */

.product-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-block;
    color: #6d6d6d;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e0e0e0;
}

.product-page-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.product-subtitle {
    text-align: center;
    color: #6d6d6d;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Product hero / description block */
.product-hero {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 30px;
    text-align: center;
}

.product-hero h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.product-hero p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Compatibility / hardware / tech badges */
.info-section {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.info-section h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.info-section p {
    color: #b0b0b0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 15px auto;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background-color: #2d2d2d;
    color: #e0e0e0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #333;
}

.premium-badge {
    display: inline-block;
    background-color: #2d2d2d;
    color: #e0e0e0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid #333;
}

/* Product purchase card */
.purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.purchase-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f44336;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.purchase-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.purchase-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-align: center;
}

.original-price {
    font-size: 1rem;
    color: #6d6d6d;
    text-decoration: line-through;
    text-align: center;
    margin-bottom: 5px;
}

.sale-note {
    font-size: 0.85rem;
    color: #f44336;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.purchase-description {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #b0b0b0;
    text-align: center;
    line-height: 1.6;
    font-size: 0.95rem;
}

.buy-button {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 14px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.buy-button:hover {
    background-color: #3d3d3d;
}

.cta-section {
    text-align: center;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 30px;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cta-section p {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 14px 40px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3d3d3d;
}

.contact-note {
    color: #6d6d6d;
    font-size: 0.9rem;
    margin-top: 15px;
}

.contact-note a {
    color: #b0b0b0;
    text-decoration: none;
}

.contact-note a:hover {
    color: #e0e0e0;
}

/* ===== PAYMENT SECTION ===== */

#payment-section {
    max-width: 500px;
    margin: 0 auto 30px auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 10px;
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
}

.product-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.product-info strong {
    color: #ffffff;
}

#paypal-button-container {
    margin-top: 20px;
}

.loading {
    text-align: center;
    margin: 20px 0;
    display: none;
    color: #b0b0b0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #e0e0e0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #f44336;
    text-align: center;
    margin: 20px 0;
    display: none;
    padding: 12px;
    background-color: #2a1a1a;
    border: 1px solid #4a2020;
    border-radius: 10px;
}

/* ===== DOWNLOAD / ACTIVATION SECTION ===== */

.download-section {
    margin-bottom: 30px;
    padding: 35px;
    border-radius: 10px;
    background-color: #1e1e1e;
    display: none;
    text-align: center;
}

.success-message {
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.code-icon {
    font-size: 3rem;
    margin: 15px 0;
}

.download-code {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    padding: 20px 40px;
    border-radius: 10px;
    margin: 20px auto;
    display: inline-block;
    letter-spacing: 8px;
    font-weight: bold;
    background-color: #121212;
    border: 2px solid #333;
    color: #ffffff;
}

.email-display {
    font-weight: bold;
    color: #e0e0e0;
    background-color: #2d2d2d;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.email-confirmation {
    background-color: #1a2e1a;
    border: 1px solid #2a4a2a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.email-confirmation h4 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.email-confirmation p {
    color: #b0b0b0;
    margin: 5px 0;
}

.additional-email-section {
    background-color: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.additional-email-section h4 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.additional-email-section p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

.additional-email-section input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    width: 250px;
    background-color: #121212;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.additional-email-section input::placeholder {
    color: #6d6d6d;
}

.send-copy-btn {
    padding: 10px 20px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease;
}

.send-copy-btn:hover {
    background-color: #3d3d3d;
}

.send-copy-btn:disabled {
    background-color: #1e1e1e;
    color: #6d6d6d;
    cursor: not-allowed;
}

.status-success { color: #4CAF50; }
.status-error { color: #f44336; }
.email-success { color: #4CAF50; }
.email-warning { color: #FFC107; }

.instruction-box {
    background-color: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 25px;
    margin: 25px auto;
    text-align: left;
    max-width: 500px;
}

.instruction-box h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.instruction-box ol {
    margin-left: 20px;
    color: #b0b0b0;
}

.instruction-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.note {
    font-style: italic;
    color: #6d6d6d;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* ===== TERMS SECTION ===== */

.terms-section {
    margin-top: 30px;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 10px;
    margin-bottom: 30px;
}

.terms-section h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.terms-section p {
    color: #6d6d6d;
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.terms-section strong {
    color: #b0b0b0;
}

/* Price display in hero */
.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 25px 0 5px 0;
}

.price-note {
    font-size: 0.95rem;
    color: #6d6d6d;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .product-page-title { font-size: 2rem; }
    .product-hero { padding: 25px; }
    .purchase-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .download-code { font-size: 1.8rem; letter-spacing: 5px; padding: 15px 25px; }
    .store-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .store-header h1 { font-size: 1.8rem; }
    .product-page-title { font-size: 1.8rem; }
}
