/* ============================================
   Modern Product/Course Page Styles
   ============================================ */

/* --- Layout: image left, details right --- */
.prodtableleft,
.prodtableright {
    float: none !important;
    display: inline-block;
    vertical-align: top;
    padding-top: 0 !important;
}

.prodtableleft {
    width: 48%;
    min-width: auto !important;
    padding-right: 30px;
    box-sizing: border-box;
}

.prodtableright {
    width: 50%;
    box-sizing: border-box;
}

/* --- Product image --- */
.prodtableleft #gallery {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.prodtableleft #gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Thumbnail gallery */
.prodtableleft #gallery .rlvA {
    margin-top: 12px;
}

.prodtableleft #gallery table img {
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.prodtableleft #gallery table img:hover {
    border-color: #006600;
}

/* --- Product title (h1) --- */
h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* --- Breadcrumb --- */
[id*="lblBreadcrumb"] {
    font-size: 13px;
    color: #888;
}

[id*="lblBreadcrumb"] a {
    color: #006600;
    text-decoration: none;
}

[id*="lblBreadcrumb"] a:hover {
    text-decoration: underline;
}

/* --- Product form / details panel --- */
.productform {
    width: auto !important;
    padding: 24px !important;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.productform p {
    margin-bottom: 14px !important;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.productform label {
    float: none !important;
    width: auto !important;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 100px;
    flex-shrink: 0;
}

/* Price styling */
.productform font[color="green"],
.productform [id*="lblPrice"] {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #006600 !important;
}

/* RRP / strikethrough price */
.productform font[color="red"] strike,
.productform [id*="lblRRP"] {
    font-size: 18px;
    color: #999 !important;
    font-weight: 400;
}

/* Quantity input */
.productform [id*="txtQty"] {
    width: 60px !important;
    text-align: center;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.productform [id*="txtQty"]:focus {
    border-color: #006600;
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.12);
    outline: none;
}

/* Option / Size dropdowns */
.productform select,
.productform .width_zero {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 160px;
    transition: border-color 0.2s ease;
}

.productform select:focus {
    border-color: #006600;
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.12);
    outline: none;
}

/* Currency converter link */
.productform [id*="hlConverter"] {
    font-size: 12px;
    color: #888;
}

/* --- Action buttons --- */
.productform table {
    width: 100%;
    border: none !important;
    margin-top: 8px;
}

.productform table td {
    padding: 0 !important;
}

/* Space between buttons without spacer cells */
.productform table tr {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.productform table tr td:empty {
    display: none;
}

.productform .btn {
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.productform .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.productform .btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.productform .btn-info {
    background: #006600;
    color: #fff !important;
}

.productform .btn-info:hover {
    background: #005200;
}

.productform .btn-success {
    background: #006600;
    color: #fff;
}

.productform .btn-success:hover {
    background: #005200;
}

.productform .btn-warning {
    background: #fff;
    color: #006600;
    border: 2px solid #006600;
}

.productform .btn-warning:hover {
    background: #f0f7f0;
}

/* --- Social / share buttons --- */
.prodtableright > table {
    margin-top: 16px;
}

/* --- Product description --- */
[id*="lblDesc"] {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* --- Section dividers --- */
.hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 30px 0;
}

/* --- Recommended Products --- */
[id*="pnlRec"] h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

[id*="pnlRec"] table {
    width: 100%;
}

[id*="pnlRec"] td {
    text-align: center;
    padding: 12px;
    vertical-align: top;
}

[id*="pnlRec"] td img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
}

[id*="pnlRec"] td img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[id*="pnlRec"] td a {
    color: #006600;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

[id*="pnlRec"] td a:hover {
    text-decoration: underline;
}

/* --- Product Reviews --- */
[id*="pnlRev"] h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

[id*="pnlRev"] quote {
    display: block;
    font-style: italic;
    color: #555;
    font-size: 14px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-left: 3px solid #006600;
    border-radius: 0 6px 6px 0;
    margin: 6px 0 12px;
}

/* --- Shipping Estimator --- */
[id*="pnlhideshipping"] {
    margin-top: 20px;
}

[id*="pnlhideshipping"] h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
}

[id*="pnlhideshipping"] .form p {
    margin-bottom: 12px;
}

[id*="pnlhideshipping"] .form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

[id*="pnlhideshipping"] .form select,
[id*="pnlhideshipping"] .form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

[id*="pnlhideshipping"] .form input[type="submit"] {
    background: #006600;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .prodtableleft,
    .prodtableright {
        width: 100% !important;
        display: block;
        padding-right: 0;
    }

    .prodtableleft {
        margin-bottom: 24px;
    }

    .productform {
        padding: 18px !important;
    }

    .productform p {
        flex-direction: column;
        gap: 4px;
    }

    .productform label {
        min-width: auto;
    }

    .productform .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .productform table tr {
        flex-direction: column;
    }

    h1 {
        font-size: 22px;
    }

    [id*="pnlRec"] td {
        padding: 8px 4px;
    }
}
