.apc-carousel-wrapper {
    --apc-cols-desktop: 3;
    --apc-cols-tablet: 2;
    --apc-cols-mobile: 1;
    --apc-cols: var(--apc-cols-desktop);

    --apc-gap: 24px;
    --apc-bg: #ffffff;
    --apc-media-bg: #f8f9fa;
    --apc-footer-bg: #f8f9fa;
    --apc-border: #e5e7eb;
    --apc-border-hover: #0f172a;
    --apc-text-primary: #0f172a;
    --apc-text-muted: #64748b;
    --apc-radius: 14px;
    --apc-transition: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Dynamic Navigation Variables (Controlled via Admin Settings) */
    --apc-nav-color: #0f172a;
    --apc-nav-hover: #000000;
    --apc-nav-bg: transparent;
    --apc-nav-bg-hover: transparent;

    position: relative;
    width: 100%;
    margin: 2rem 0;
}

/* Header Navigation Arrows */
.apc-carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.apc-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    border: none !important;
    background: var(--apc-nav-bg) !important;
    box-shadow: none !important;
    border-radius: 0;
    color: var(--apc-nav-color) !important;
    cursor: pointer;
    transition: opacity var(--apc-transition), color var(--apc-transition), background-color var(--apc-transition);
}

.apc-nav-has-bg .apc-nav-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.apc-nav-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
    transition: transform var(--apc-transition);
}

.apc-nav-has-bg .apc-nav-btn svg {
    width: 22px;
    height: 22px;
}

.apc-nav-btn:hover:not(:disabled) {
    background: var(--apc-nav-bg-hover) !important;
    color: var(--apc-nav-hover) !important;
}

.apc-prev:hover:not(:disabled) svg {
    transform: translateX(-4px);
}

.apc-next:hover:not(:disabled) svg {
    transform: translateX(4px);
}

.apc-nav-btn:focus-visible {
    outline: 2px solid var(--apc-nav-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.apc-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Scroll-Snap Track */
.apc-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--apc-gap) * (var(--apc-cols) - 1))) / var(--apc-cols));
    gap: var(--apc-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 12px;
}

.apc-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Card Layout */
.apc-card {
    scroll-snap-align: start;
    background: var(--apc-bg);
    border: 1px solid var(--apc-border);
    border-radius: var(--apc-radius);
    transition: transform var(--apc-transition), box-shadow var(--apc-transition), border-color var(--apc-transition);
    display: flex;
    flex-direction: column;
}

.apc-card:hover {
    transform: translateY(-4px);
    border-color: var(--apc-border-hover);
    box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.1);
}

.apc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

/* Container 1: Product Image & Top-Left Brand Logo */
.apc-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--apc-media-bg);
    border-top-left-radius: calc(var(--apc-radius) - 1px);
    border-top-right-radius: calc(var(--apc-radius) - 1px);
    padding: 88px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apc-brand-corner-logo {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 2;
    width: clamp(145px, 44%, 230px);
    height: clamp(68px, 16vw, 110px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.apc-brand-corner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
}

.apc-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.apc-card:hover .apc-product-img {
    transform: scale(1.04);
}

/* Container 2: Brand Name & Product Info */
.apc-product-info {
    padding: 20px 24px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apc-brand-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--apc-text-muted);
    margin-bottom: 6px;
}

.apc-product-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--apc-text-primary);
}

.apc-product-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--apc-text-muted);
    margin-top: 6px;
}

/* Container 3: Prominent Award Footer */
.apc-award-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-top: 1px solid var(--apc-border);
    background: var(--apc-footer-bg);
    border-bottom-left-radius: calc(var(--apc-radius) - 1px);
    border-bottom-right-radius: calc(var(--apc-radius) - 1px);
    min-height: 146px;
}

.apc-award-logo {
    flex-shrink: 0;
    width: 136px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apc-award-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.apc-award-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.apc-award-name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--apc-text-primary);
}

.apc-award-year {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--apc-text-muted);
}

/* Pagination Dots */
.apc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.apc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.apc-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--apc-nav-color);
}

/* Responsive Breakpoints (Driven by Admin Settings) */
@media (max-width: 1024px) {
    .apc-carousel-wrapper {
        --apc-cols: var(--apc-cols-tablet);
    }
}

@media (max-width: 640px) {
    .apc-carousel-wrapper {
        --apc-cols: var(--apc-cols-mobile);
    }
    .apc-carousel-controls {
        display: none;
    }
    .apc-product-media {
        padding: 76px 20px 20px;
    }
    .apc-brand-corner-logo {
        width: clamp(135px, 46%, 190px);
        height: 92px;
        top: 14px;
        left: 16px;
    }
    .apc-award-footer {
        min-height: 124px;
        gap: 16px;
    }
    .apc-award-logo {
        width: 110px;
        height: 92px;
    }
    .apc-award-name {
        font-size: 1.05rem;
    }
}