/* =============================================================================
   SHARED COMPONENTS - the single definition of the site's design language
   =============================================================================
   Buttons, the accent-word heading pattern, breadcrumbs and utility helpers.
   Defined HERE and nowhere else. home.css / listing.css / product.css /
   page.css must not redeclare them.

   Load order: tokens.css -> base.css -> styles.css (legacy) -> shell.css ->
               components.css -> product-card.css -> page-specific css
============================================================================= */

/* =============================================================================
   BUTTONS - one set, three variants
   Geometry is the reference's: pill radius, Poppins 16/600.
   Fills use --brand-text (not --brand) so white labels clear 4.5:1.
============================================================================= */

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color var(--duration-base) var(--ease),
                color var(--duration-base) var(--ease),
                border-color var(--duration-base) var(--ease),
                box-shadow var(--duration-base) var(--ease);
}

.dc-btn .material-symbols-outlined {
    font-size: 18px;
}

.dc-btn-primary {
    background-color: var(--brand-text);
    border-color: var(--brand-text);
    color: var(--text-on-brand);
}

.dc-btn-primary:hover,
.dc-btn-primary:focus-visible {
    background-color: var(--brand-deep);
    border-color: var(--brand-deep);
    color: var(--text-inverse);
    box-shadow: var(--shadow-2);
}

.dc-btn-outline {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--brand-text);
}

.dc-btn-outline:hover,
.dc-btn-outline:focus-visible {
    background-color: var(--brand-deep);
    border-color: var(--brand-deep);
    color: var(--text-inverse);
}

/* For dark/photographic backgrounds only (hero). */
.dc-btn-ghost {
    background-color: transparent;
    border-color: var(--text-inverse);
    color: var(--text-inverse);
}

.dc-btn-ghost:hover,
.dc-btn-ghost:focus-visible {
    background-color: var(--text-inverse);
    color: var(--text);
}

.dc-btn:active {
    transform: translateY(1px);
}

.dc-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.dc-btn-block {
    width: 100%;
}


/* =============================================================================
   HEADING PATTERN - one phrase of the heading picked out in the brand colour
   and set heavier, the reference's signature.
============================================================================= */

.dc-accent {
    color: var(--brand-text);
    font-weight: var(--fw-bold);
}

/* On dark or photographic backgrounds the light ramp step is used instead -
   --brand-light #F6AED1 measures 4.52:1 on --surface-inverse. */
.dc-hero-title .dc-accent,
.dc-contact-panel .dc-accent {
    color: var(--brand-light);
}


/* =============================================================================
   BREADCRUMBS
============================================================================= */

.dc-breadcrumb {
    padding-block: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.dc-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-breadcrumb li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dc-breadcrumb li[hidden] {
    display: none;
}

.dc-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease);
}

.dc-breadcrumb a:hover,
.dc-breadcrumb a:focus-visible {
    color: var(--brand-text);
    text-decoration: underline;
}

.dc-breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: var(--fw-semibold);
}

.dc-crumb-sep {
    color: var(--border-strong);
}


/* =============================================================================
   UTILITIES
============================================================================= */

.dc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body.dc-no-scroll {
    overflow: hidden;
}

/* Shared page shell container. */
.dc-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

@media (max-width: 767px) {
    .dc-container {
        padding-inline: var(--container-pad-sm);
    }

    .dc-btn {
        padding: var(--space-3) var(--space-4);
    }
}


/* =============================================================================
   FOCUS RING ON DARK SURFACES
   --border-brand is the magenta ring, sized for white backgrounds. On the deep
   blue bands it would be near-invisible, so those switch to the pale tint
   (--brand-pale on --surface-inverse = 6.29:1).
============================================================================= */

.dc-utility :focus-visible,
.dc-footer :focus-visible,
.dc-contact-panel :focus-visible,
.dc-hero :focus-visible,
.dc-lightbox :focus-visible {
    outline-color: var(--brand-pale);
}

/* =============================================================================
   LOADING & SKELETON STATES
============================================================================= */

.dc-spinner {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgba(var(--brand-rgb), 0.15);
    border-radius: 50%;
    border-top-color: var(--brand);
    animation: dc-spin 0.8s linear infinite;
}

@keyframes dc-spin {
    to { transform: rotate(360deg); }
}

.dc-skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: dc-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes dc-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dc-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    gap: var(--space-3);
    color: var(--text-muted);
}

