<?php
declare(strict_types=1);
define('ACC_BASE_PATH', __DIR__);
require_once __DIR__ . '/standalone/bootstrap.php';
require_once ACC_PATH . 'includes/helpers/arag-shop.php';

$pdp = Arag_Shop::get_family_by_slug('golab');
$settings = Arag_Shop::get_settings();
echo json_encode([
    'golab' => $pdp ? [
        'name' => $pdp['name'],
        'gallery' => count($pdp['gallery']),
        'variants' => count($pdp['variants']),
        'reviews' => count($pdp['reviews']),
        'bottle' => $pdp['bottle_image_url'],
    ] : null,
    'settings' => [
        'video' => $settings['hero_video_url'],
        'poster' => $settings['hero_poster_url'],
        'title' => $settings['hero_title'],
    ],
], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
