/* ==========================================================================
   Deson Power — Products Page Styles
   
   Product archive grid, product detail page layout,
   image splicer container, specs table, download section.
   ========================================================================== */

/* ==========================================================================
   Product Archive / Listing Page
   ========================================================================== */

.deson-products-page {
    padding-top: calc(var(--deson-header-height) + 60px);
    padding-bottom: var(--deson-section-gap);
}

.deson-products-page__header {
    text-align: center;
    margin-bottom: 64px;
}

.deson-products-page__title {
    font-size: var(--deson-text-5xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    margin-bottom: 16px;
}

.deson-products-page__subtitle {
    font-size: var(--deson-text-lg);
    color: var(--deson-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Filter Bar ---- */

.deson-products-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.deson-products-filter__btn {
    padding: 10px 20px;
    font-size: var(--deson-text-sm);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-secondary);
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-full);
    cursor: pointer;
    transition: var(--deson-transition);
}

.deson-products-filter__btn:hover,
.deson-products-filter__btn--active {
    color: var(--deson-text-primary);
    background: var(--deson-accent);
    border-color: var(--deson-accent);
}

/* ---- Product Grid ---- */

.deson-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--deson-card-gap);
}

/* ---- Product Card ---- */

.deson-product-card {
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-lg);
    overflow: hidden;
    transition: var(--deson-transition);
}

.deson-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--deson-border-light);
    box-shadow: var(--deson-shadow-md);
}

.deson-product-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--deson-bg-secondary);
}

.deson-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--deson-transition-slow);
}

.deson-product-card:hover .deson-product-card__image img {
    transform: scale(1.05);
}

/* Product card image placeholder (when no thumbnail) */
.deson-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a2e, #111624);
}

.deson-product-card__placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(217,119,6,0.06);
    border: 1px solid rgba(217,119,6,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deson-accent);
    transition: all var(--deson-transition);
}

.deson-product-card:hover .deson-product-card__placeholder-icon {
    background: rgba(217,119,6,0.12);
    border-color: rgba(217,119,6,0.25);
    transform: scale(1.08);
}

.deson-product-card__placeholder-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--deson-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 0 12px;
    line-height: 1.3;
}

.deson-product-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: var(--deson-text-xs);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-primary);
    background: var(--deson-accent);
    border-radius: var(--deson-radius-sm);
}

.deson-product-card__body {
    padding: 24px;
}

.deson-product-card__category {
    display: block;
    font-size: var(--deson-text-xs);
    color: var(--deson-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.deson-product-card__title {
    font-size: var(--deson-text-lg);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-primary);
    margin-bottom: 8px;
    line-height: var(--deson-leading-snug);
}

.deson-product-card__model {
    font-size: var(--deson-text-sm);
    color: var(--deson-text-tertiary);
    margin-bottom: 12px;
}

.deson-product-card__excerpt {
    font-size: var(--deson-text-sm);
    color: var(--deson-text-secondary);
    line-height: var(--deson-leading-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Empty State ---- */

.deson-products-empty {
    text-align: center;
    padding: 80px 24px;
}

.deson-products-empty__icon {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.deson-products-empty__text {
    font-size: var(--deson-text-lg);
    color: var(--deson-text-secondary);
}

/* ---- Pagination ---- */

.deson-products-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.deson-products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: var(--deson-text-sm);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-secondary);
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-md);
    transition: var(--deson-transition-fast);
}

.deson-products-pagination .page-numbers.current {
    color: var(--deson-text-primary);
    background: var(--deson-accent);
    border-color: var(--deson-accent);
}

.deson-products-pagination .page-numbers:hover:not(.current) {
    color: var(--deson-text-primary);
    border-color: var(--deson-border-light);
}

.deson-products-pagination .page-numbers.next,
.deson-products-pagination .page-numbers.prev {
    font-size: var(--deson-text-lg);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

.deson-product-single {
    padding-top: calc(var(--deson-header-height) + 40px);
    padding-bottom: var(--deson-section-gap);
}

/* ---- Breadcrumbs ---- */

.deson-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: var(--deson-text-sm);
    color: var(--deson-text-tertiary);
    flex-wrap: wrap;
}

.deson-breadcrumbs a {
    color: var(--deson-text-secondary);
    text-decoration: none;
    transition: color var(--deson-transition-fast);
}

.deson-breadcrumbs a:hover {
    color: var(--deson-accent);
}

.deson-breadcrumbs__sep {
    color: var(--deson-text-tertiary);
}

.deson-breadcrumbs__current {
    color: var(--deson-text-primary);
}

/* ---- Product Detail Layout ---- */

.deson-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ---- Product Image Area ---- */

.deson-product-gallery {
    position: sticky;
    top: calc(var(--deson-header-height) + 24px);
    max-height: calc(100vh - var(--deson-header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--deson-accent) var(--deson-bg-secondary);
    border-radius: var(--deson-radius-lg);
}

/* Webkit scrollbar for gallery */
.deson-product-gallery::-webkit-scrollbar {
    width: 6px;
}
.deson-product-gallery::-webkit-scrollbar-track {
    background: var(--deson-bg-secondary);
}
.deson-product-gallery::-webkit-scrollbar-thumb {
    background: var(--deson-accent);
    border-radius: 3px;
}

/* Right column: also sticky to balance layout for long images */
.deson-product-info {
    position: sticky;
    top: calc(var(--deson-header-height) + 24px);
    max-height: calc(100vh - var(--deson-header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--deson-accent) var(--deson-bg-secondary);
}

.deson-product-info::-webkit-scrollbar {
    width: 6px;
}
.deson-product-info::-webkit-scrollbar-track {
    background: var(--deson-bg-secondary);
}
.deson-product-info::-webkit-scrollbar-thumb {
    background: var(--deson-accent);
    border-radius: 3px;
}

.deson-product-gallery__main {
    border-radius: var(--deson-radius-lg);
    overflow: hidden;
    background: var(--deson-bg-secondary);
    margin-bottom: 16px;
}

.deson-product-gallery__main img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Image Splicer Container ---- */

.deson-image-splicer {
    position: relative;
    width: 100%;
}

.deson-image-splicer__slice {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    /* No gap: slices stack seamlessly */
    line-height: 0;
    font-size: 0;
}

.deson-image-splicer__slice img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.deson-image-splicer__slice--loading {
    background: var(--deson-bg-secondary);
    min-height: 600px;
    position: relative;
}

.deson-image-splicer__slice--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---- Product Info Area ---- */

.deson-product-info__model {
    display: inline-block;
    font-size: var(--deson-text-sm);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.deson-product-info__title {
    font-size: var(--deson-text-4xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    line-height: var(--deson-leading-tight);
    margin-bottom: 24px;
}

.deson-product-info__description {
    font-size: var(--deson-text-lg);
    color: var(--deson-text-secondary);
    line-height: var(--deson-leading-relaxed);
    margin-bottom: 32px;
}

.deson-product-info__cta-group {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* ---- Specs Table ---- */

.deson-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.deson-specs-table__heading {
    font-size: var(--deson-text-2xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    margin-bottom: 24px;
}

.deson-specs-table tr {
    border-bottom: 1px solid var(--deson-border-subtle);
}

.deson-specs-table tr:last-child {
    border-bottom: none;
}

.deson-specs-table td {
    padding: 14px 0;
    font-size: var(--deson-text-base);
    line-height: var(--deson-leading-normal);
}

.deson-specs-table__label {
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-primary);
    width: 40%;
    padding-right: 24px;
}

.deson-specs-table__value {
    color: var(--deson-text-secondary);
}

/* ---- Features List ---- */

.deson-features {
    margin-bottom: 40px;
}

.deson-features__heading {
    font-size: var(--deson-text-2xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    margin-bottom: 24px;
}

.deson-features__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.deson-features__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-md);
}

.deson-features__item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--deson-accent);
}

.deson-features__item-text {
    font-size: var(--deson-text-base);
    color: var(--deson-text-secondary);
    line-height: var(--deson-leading-normal);
}

/* ---- Certifications ---- */

.deson-certifications {
    margin-bottom: 40px;
}

.deson-certifications__heading {
    font-size: var(--deson-text-2xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    margin-bottom: 20px;
}

.deson-certifications__list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.deson-certifications__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-md);
}

.deson-certifications__item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.deson-certifications__item-name {
    font-size: var(--deson-text-sm);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-primary);
}

/* ---- Downloads ---- */

.deson-downloads {
    margin-bottom: 40px;
}

.deson-downloads__heading {
    font-size: var(--deson-text-2xl);
    font-weight: var(--deson-font-weight-bold);
    color: var(--deson-text-primary);
    margin-bottom: 20px;
}

.deson-downloads__list {
    display: grid;
    gap: 8px;
}

.deson-downloads__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--deson-bg-card);
    border: 1px solid var(--deson-border-subtle);
    border-radius: var(--deson-radius-md);
    transition: var(--deson-transition);
    text-decoration: none;
}

.deson-downloads__item:hover {
    border-color: var(--deson-accent);
}

.deson-downloads__item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--deson-text-base);
    font-weight: var(--deson-font-weight-semibold);
    color: var(--deson-text-primary);
}

.deson-downloads__item-icon {
    width: 20px;
    height: 20px;
    color: var(--deson-accent);
}

.deson-downloads__download-icon {
    width: 20px;
    height: 20px;
    color: var(--deson-text-tertiary);
    transition: color var(--deson-transition-fast);
}

.deson-downloads__item:hover .deson-downloads__download-icon {
    color: var(--deson-accent);
}

/* ==========================================================================
   Product Detail: Mobile Image Thumbnails
   ========================================================================== */

.deson-product-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.deson-product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.deson-product-gallery__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--deson-radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--deson-transition-fast);
}

.deson-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deson-product-gallery__thumb--active {
    border-color: var(--deson-accent);
}

/* ==========================================================================
   Breadcrumbs Component
   ========================================================================== */

.deson-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: var(--deson-text-sm);
    color: var(--deson-text-tertiary);
    flex-wrap: wrap;
}

.deson-breadcrumbs a {
    color: var(--deson-text-secondary);
    text-decoration: none;
}

.deson-breadcrumbs a:hover {
    color: var(--deson-accent);
}

.deson-breadcrumbs__sep {
    color: var(--deson-text-tertiary);
    user-select: none;
}

.deson-breadcrumbs__current {
    color: var(--deson-text-primary);
}
