/**
 * Service Product Info Component
 * Bootstrap 5.3.3 two-column layout
 * Uses ERA branding colors and typography
 */

/* Hide Skip Gallery Links */
.action-skip-wrapper,
.gallery-next-area,
.gallery-prev-area,
a.action.skip {
    display: none !important;
    visibility: hidden !important;
}

/* Container */
.catalog-product-view .columns .column.main {
    max-width: 1400px;
    margin: 0 0;
    /* padding: 20px; */
}

/* Bootstrap Row Spacing */
.service-product-row {
    margin-bottom: 40px;
    margin-top: -25px;
}

/* Product Title */
.catalog-product-view .page-title-wrapper .page-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--era-navy);
    margin: 0 0 20px 0;
}

/* SKU Section */
.product-info-stock-sku {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--era-light-blue);
}

.product.attribute.sku {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.product.attribute.sku .type {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--era-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product.attribute.sku .value {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #495057;
    font-weight: 400;
}

/* Reviews Link */
.product-reviews-summary.empty {
    margin: 12px 0;
    text-align: center;
}

.product-reviews-summary .reviews-actions .action.add {
    color: var(--era-red);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-reviews-summary .reviews-actions .action.add:hover {
    color: var(--era-dark-red);
    text-decoration: underline;
}

/* Price - Centered and BIG */
.product-info-price {
    text-align: center;
    margin: 20px 0 24px;
}

.product-info-price .price-box {
    margin: 0;
}

.product-info-price .price-wrapper .price {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--era-navy);
    display: block;
}

/* Property Address Input */
.product-add-form {
    margin-top: 24px;
}

/* Qty and Add to Cart - Two Columns */
.box-tocart {
    display: grid !important;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    margin: 24px 0;
    align-items: start;
}

/* Qty Input - NO LABEL */
.field.qty {
    grid-column: 1;
}

.field.qty .label,
.field.qty label {
    display: none !important;
}

.field.qty .control {
    position: relative;
}

.field.qty .input-text.qty {
    width: 100%;
    padding: 16px 12px;
    font-size: 1.3rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.field.qty .input-text.qty:focus {
    outline: none;
    border-color: var(--era-red);
    box-shadow: 0 0 0 0.2rem rgba(228, 0, 42, 0.15);
}

/* Add to Cart Button */
.actions {
    grid-column: 2;
}

.actions button.tocart {
    width: 100%;
    background: linear-gradient(135deg, var(--era-red) 0%, var(--era-dark-red) 100%);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(228, 0, 42, 0.25);
}

.actions button.tocart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 0, 42, 0.35);
    background: linear-gradient(135deg, var(--era-dark-red) 0%, var(--era-red) 100%);
}

.actions button.tocart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(228, 0, 42, 0.3);
}

.actions button.tocart span {
    display: inline-block;
}

/* Disabled State */
.actions button.tocart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Product Image Styling */
.product.media {
    text-align: center;
}

.product.media .gallery-placeholder__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Full Width Row for Details Section */
.service-product-details {
    margin-top: 40px;
}

/* More Information Table */
.product.data.items {
    margin-top: 40px;
    border-top: 2px solid var(--era-light-blue);
    padding-top: 40px;
}

.product.data.items > .item.title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--era-navy);
    padding: 16px 24px;
    background: #f8f9fa;
    border-left: 4px solid var(--era-red);
    margin-bottom: 24px;
    cursor: pointer;
}

.product.data.items > .item.content {
    padding: 0 24px 24px;
}

.product.data.items .data.table {
    width: 100%;
    border-collapse: collapse;
}

.product.data.items .data.table th {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--era-navy);
    text-align: left;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.product.data.items .data.table td {
    font-family: var(--font-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

/* Reviews Section */
.product-reviews-summary {
    margin: 20px 0;
}

.reviews-actions {
    text-align: end;
}

/* Review Form */
.review-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    /* max-width: 800px; */
}

.review-form .field {
    margin-bottom: 20px;
}

.review-form label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--era-navy);
    display: block;
    margin-bottom: 8px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--era-red);
    box-shadow: 0 0 0 0.2rem rgba(228, 0, 42, 0.15);
}

.review-form .action.submit {
    background: linear-gradient(135deg, var(--era-red) 0%, var(--era-dark-red) 100%);
    color: #ffffff;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.review-form .action.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 0, 42, 0.35);
}

/* Responsive */
@media (max-width: 767px) {
    .catalog-product-view .page-title-wrapper .page-title {
        font-size: 1.75rem;
    }

    .product-info-price .price-wrapper .price {
        font-size: 2.5rem;
    }

    .box-tocart {
        grid-template-columns: 90px 1fr;
    }
}

@media (max-width: 576px) {
    .product-info-price .price-wrapper .price {
        font-size: 2rem;
    }

    .box-tocart {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .field.qty,
    .actions {
        grid-column: 1;
    }

    .field.qty .label {
        display: block !important;
        margin-bottom: 8px;
    }

    .catalog-product-view .columns .column.main {
        padding: 10px;
    }
}
