/* --- CSS Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1a202c;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
}

/* --- Main Layout & Card --- */
.main-container {
    width: 100%;
    max-width: 600px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 3rem;
    border: 1px solid #e2e8f0;
}

/* --- Header --- */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

#logo-placeholder .logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2c5282; /* Deep blue from main site */
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #4a5568;
    margin-left: 1.5rem;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #2c5282;
}


/* --- Product Info --- */
.product-header {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.product-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-top: 0.25rem;
}

.product-description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* --- Purchase Interface --- */
.purchase-interface {
    text-align: center;
}

.rate-info, .increment-info {
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.rate-info {
    font-size: 1.1rem;
}

.increment-info {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: #718096;
}


/* --- Quantity Selector --- */
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.qty-button {
    background-color: #edf2f7;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: bold;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.qty-button:hover {
    background-color: #e2e8f0;
}

.qty-button:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.qty-display {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    min-width: 100px;
    text-align: center;
}

/* --- Calculation Summary --- */
.calculation-summary {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #4a5568;
}

.summary-item:not(:last-child) {
    margin-bottom: 1rem;
}

.summary-value {
    font-weight: 600;
    color: #2d3748;
}

.summary-item.total-cost {
    font-size: 1.3rem;
    font-weight: bold;
}

.summary-item.total-cost .summary-value {
    color: #2c5282;
}

/* --- Purchase Button & Disclaimer --- */
.purchase-button {
    background-color: #2b6cb0; /* Button blue from main site */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    text-decoration: none; /* For the <a> tag */
    display: inline-block; /* For the <a> tag */
}

.purchase-button:hover {
    background-color: #2c5282;
}

.purchase-button:active {
    transform: scale(0.98);
}

.disclaimer {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 1rem;
}

/* --- ADDED: Styles for non-Apple instructions --- */
#non-apple-instructions {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.instructions-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.instructions-text {
    color: #92400e;
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    user-select: all; /* Make it easy to copy */
}


/* --- Footer --- */
.store-footer {
    text-align: center;
    padding-top: 2rem;
    color: #718096;
    font-size: 0.9rem;
}

.store-footer a {
    color: #4a5568;
    text-decoration: none;
}

.store-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    .product-card {
        padding: 1.5rem;
    }
    .product-title {
        font-size: 1.75rem;
    }
}