.titimg {
    display: block;
    margin: 0 auto;
    height: auto;
    width: auto;
    max-width: 100%; /* Keep it responsive on small screens */
    image-rendering: crisp-edges;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    max-width: 90%;
    margin: 10px auto 20px;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #f9f9f9, #fff);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border-radius: 6px;
}

.product-subheading {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 15px;
}

.responsive-banner {
    width: 25%;
}

@media (max-width: 768px) {
    .responsive-banner {
        width: 100%;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.2rem;
        line-height: 1.3;
        padding: 0 10px;
        text-align: center;
        margin-top: 10px;
    }
}

.responsive-table a {
    font-weight: 600;
    color: #003399;
    text-decoration: none;
    font-size: 0.95rem;
}

.responsive-table a:hover {
    text-decoration: underline;
    color: #000;
}



body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #222;
}

a {
    color: darkblue;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

header img.titimg {
    display: block;
    margin: 0 auto 10px auto;
    width: auto;
    height: auto;
    max-width: 600px; /* or the actual pixel width of your image */
    image-rendering: crisp-edges;
}



.responsive-table {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.responsive-table td {
    padding: 5px;
}

.product-image-limited {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 350px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.purchase-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 400px;
}

.price-line del {
    color: #888;
    margin-right: 8px;
}

.sale-price {
    color: green;
    font-weight: bold;
}

.sub-info {
    font-size: 0.95em;
    margin: 6px 0;
    color: #444;
}

.total-line {
    font-weight: bold;
}

.stock-line {
    margin-top: 10px;
}

.buy-section {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.buy-section label {
    font-size: 1em;
}

.buy-section input[type="number"] {
    padding: 7px 10px;
    font-size: 1em;
    width: 60px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.buy-now-button {
    background-color: #28a745;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-button:hover {
    background-color: #218838;
}

.trust-message {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 12px;
}

.next-dispatch {
    font-size: 0.95em;
    text-align: center;
    margin: 20px 0;
    font-style: italic;
}

.back-link {
    display: block;
    text-align: center;
    color: darkblue;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.cat-desc-title {
    font-weight: bold;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.cat-desc-body {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2rem;
    text-align: justify;
}

footer {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
    padding: 1rem;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .buy-now-button {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 0;
        z-index: 9999;
        width: 100%;
        font-size: 1.1rem;
        padding: 14px;
        background-color: #28a745;
    }

    .buy-section {
        flex-direction: column;
        margin-bottom: 60px; /* Leaves space above fixed button */
    }

    .product-image-limited {
        max-height: 250px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        padding: 0 10px;
    }
}


.total-line {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 10px;
    color: #222;
}

.total-highlight {
    background-color: #fff5cc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2em;
    color: #000;
}
