"""Cart defpage setup — registers layouts and loads .sx pages."""
from __future__ import annotations


def setup_cart_pages() -> None:
    """Register cart-specific layouts and load page definitions."""
    from .layouts import _register_cart_layouts
    _register_cart_layouts()
    _load_cart_page_files()


def _load_cart_page_files() -> None:
    import os
    from shared.sx.pages import load_page_dir
    load_page_dir(os.path.dirname(__file__), "cart")
