/**
 * WooCommerce Product Page Styles
 * Apple-inspired single product page styling
 * 
 * @package Mason
 */

/* ============================================
   SINGLE PRODUCT PAGE LAYOUT
   ============================================ */
.mason-product-flagship {
    max-width: 1024px;
    margin: 0 auto;
    padding: 60px 22px 80px;
}

.mason-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column: Product Images */
.mason-product-col-left {
    position: relative;
}

.mason-product-media-sticky {
    position: sticky;
    top: 100px;
}

.mason-product-image-main {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 40px;
    min-height: 458px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.mason-product-image-main img {
    max-width: 100%;
    height: auto;
}

/* Buy Strip */
.mason-buystrip {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
}

.mason-buystrip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mason-buystrip-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mason-buystrip-item:last-child {
    border-bottom: none;
}

.mason-buystrip-icon svg {
    width: 35px;
    height: 35px;
    fill: #1d1d1f;
    flex-shrink: 0;
}

.mason-buystrip-text {
    font-size: 14px;
    line-height: 1.42859;
    color: #1d1d1f;
    margin: 0;
}

/* Right Column: Product Details */
.mason-product-col-right {
    display: flex;
    flex-direction: column;
}

.mason-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background-color: rgba(0, 113, 227, 0.1);
    color: #8da3d4;
}

.mason-product-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin: 12px 0 20px 0;
    color: #1d1d1f;
}

.mason-product-excerpt {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    margin-bottom: 30px;
}

/* Variations */
.mason-variations-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.mason-variations-selector-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.form-selector-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-selector-label {
    display: block;
    padding: 16px 20px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-selector-input:hover ~ .form-selector-label {
    border-color: #8f8f94;
}

.form-selector-input:checked ~ .form-selector-label {
    border-color: #8da3d4;
    background-color: rgba(0, 113, 227, 0.05);
}

.mason-variation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.form-selector-left-col {
    display: flex;
    flex-direction: column;
}

.form-selector-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.form-selector-right-col {
    font-size: 14px;
    color: #86868b;
}

.mason-variation-selector {
    position: relative;
}

.mason-variation-features {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mason-feature-item {
    font-size: 14px;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.mason-feature-positive {
    color: #1d1d1f;
}

.mason-feature-positive::before {
    content: '✓';
    font-weight: 600;
    margin-right: 8px;
}

.mason-feature-negative {
    color: #86868b;
}

.mason-feature-negative::before {
    content: '—';
    margin-right: 8px;
}

/* Price */
.mason-product-price-section {
    padding: 24px 0;
    border-top: 1px solid #d2d2d7;
    border-bottom: 1px solid #d2d2d7;
    margin-bottom: 30px;
}

.mason-price-box {
    display: flex;
    flex-direction: column;
}

.mason-price-main {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.mason-price-installment {
    font-size: 14px;
    color: #86868b;
}

/* Button */
.mason-product-actions .button,
.mason-product-actions .single_add_to_cart_button {
    width: 100%;
    height: 56px;
    background-color: #8da3d4;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mason-product-actions .button:hover,
.mason-product-actions .single_add_to_cart_button:hover {
    background-color: #a3b8e0;
}

/* WooCommerce Blocks Compatibility */
.woocommerce .mason-product-flagship .wp-block-woocommerce-product-image-gallery {
    margin-bottom: 30px;
}

.woocommerce .mason-product-flagship .wp-block-post-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin: 12px 0 20px 0;
    color: #1d1d1f;
}

.woocommerce .mason-product-flagship .wp-block-woocommerce-product-price {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 30px;
}

.woocommerce .mason-product-flagship .wp-block-post-excerpt {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1068px) {
    .mason-product-layout {
        grid-template-columns: 1fr;
    }
    
    .mason-product-media-sticky {
        position: relative;
        top: 0;
    }
}

