/* ========================================================================== 
   Ganjeh Kala — Product Specifications
   v1.9.120: clean technical table, minimal surfaces, inline expansion.
   ========================================================================== */

.gk-spec-container {
    --gk-spec-surface: var(--gk-surface, #fff);
    --gk-spec-border: rgba(17, 24, 39, .09);
    --gk-spec-row-border: rgba(17, 24, 39, .075);
    --gk-spec-muted: var(--gk-text-muted, #6b7280);
    --gk-spec-text: var(--gk-text, #111827);
    --gk-spec-accent: var(--gk-primary, #ed1944);
    --gk-spec-accent-soft: color-mix(in srgb, var(--gk-spec-accent) 9%, #fff);
    --gk-spec-table-surface: color-mix(in srgb, var(--gk-spec-text) 2.2%, #fff);

    position: relative;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    margin-bottom: var(--gk-grid-gap-y, 22px);
    background: var(--gk-spec-surface);
    border: 1px solid var(--gk-spec-border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: none;
}

.gk-spec-container *,
.gk-spec-container *::before,
.gk-spec-container *::after {
    box-sizing: border-box;
}

/* Heading ----------------------------------------------------------------- */
.gk-spec-heading-row {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
}

.gk-spec-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-grid;
    place-items: center;
    color: var(--gk-spec-accent);
    background: var(--gk-spec-accent-soft);
    border: 0;
    border-radius: 11px;
}

.gk-spec-heading-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke-width: 1.8;
}

.gk-spec-heading-texts {
    min-width: 0;
}

.gk-spec-main-title {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--gk-spec-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.55;
}

.gk-spec-main-subtitle {
    margin: 2px 0 0;
    color: var(--gk-spec-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
}

/* Expandable content ------------------------------------------------------ */
.gk-spec-content-wrap {
    overflow: hidden;
    transition: max-height .38s cubic-bezier(.2, .7, .2, 1);
    will-change: max-height;
}

.gk-spec-container.has-overflow:not(.is-expanded) .gk-spec-content-wrap {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 34px), transparent 100%);
}

.gk-spec-container.is-expanded .gk-spec-content-wrap {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Sections --------------------------------------------------------------- */
.gk-spec-section {
    display: block;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--gk-spec-border);
}

.gk-spec-section:first-child {
    padding-top: 0;
}

.gk-spec-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gk-spec-section-title {
    width: 100%;
    min-width: 0;
    padding: 0 0 7px;
    margin: 0;
    background: transparent;
}

.gk-spec-section-title h3 {
    position: static;
    margin: 0;
    padding: 0;
    color: var(--gk-spec-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.gk-spec-section-title h3::before,
.gk-spec-section-title h3::after {
    content: none;
}

/* Technical rows --------------------------------------------------------- */
.gk-spec-item-list {
    width: 100%;
    display: block;
    padding: 0 14px;
    border: 1px solid var(--gk-spec-row-border);
    border-radius: 10px;
    background: var(--gk-spec-table-surface);
    overflow: hidden;
}

.gk-spec-item {
    display: grid;
    grid-template-columns: minmax(150px, 205px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid var(--gk-spec-row-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color .18s ease;
}

.gk-spec-item:last-child {
    border-bottom: 0;
}

.gk-spec-item:hover {
    background: color-mix(in srgb, var(--gk-spec-accent) 2.5%, transparent);
    box-shadow: none;
    transform: none;
}

.gk-spec-label {
    width: auto;
    min-width: 0;
    padding: 0;
    color: var(--gk-spec-muted);
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.7;
}

.gk-spec-value {
    min-width: 0;
    color: var(--gk-spec-text);
    font-size: 12.8px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.gk-spec-value > span {
    display: inline;
}

/* Links should read like values, not like another decorative layer. */
.gk-spec-link,
.gk-spec-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

.gk-spec-link::after {
    content: none;
}

.gk-spec-link:hover,
.gk-spec-value a:hover {
    color: var(--gk-primary, #ed1944);
    border-bottom-color: currentColor;
}

/* Expand / collapse ------------------------------------------------------ */
.gk-spec-trigger-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    margin: 14px auto 0;
    padding: 10px 2px 0;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--gk-spec-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: color .18s ease;
}

.gk-spec-trigger-btn:hover {
    color: var(--gk-primary, #ed1944);
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.gk-spec-trigger-btn[hidden] {
    display: none !important;
}

.gk-spec-trigger-chevron {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    transition: transform .25s ease;
}

.gk-spec-trigger-chevron::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 6px;
    height: 6px;
    border-left: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gk-spec-container.is-expanded .gk-spec-trigger-chevron {
    transform: rotate(180deg);
}

/* Native product section: keep the same restrained visual language. */
.gk-native-section--specs .gk-native-section__heading {
    gap: 9px;
    margin-bottom: 14px;
}

.gk-native-section--specs .gk-native-section__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: var(--gk-np-primary, var(--gk-primary, #ed1944));
    background: color-mix(in srgb, var(--gk-np-primary, var(--gk-primary, #ed1944)) 9%, #fff);
    border-radius: 11px;
}

.gk-native-section--specs .gk-native-section__icon svg {
    font-size: 20px;
}

.gk-native-section--specs .gk-native-section__heading p {
    font-weight: 400;
}

.gk-native-specs {
    margin-bottom: 0;
}

/* Attribute swiper deep-link target -------------------------------------- */
.gk-spec-container[data-gk-product-specs-target="1"] {
    scroll-margin-top: var(--gk-spec-scroll-offset, 110px);
}

.gk-spec-container.gk-spec-scroll-highlight {
    animation: gk-spec-scroll-soft 1.15s ease both;
}

@keyframes gk-spec-scroll-soft {
    0%, 100% { box-shadow: none; }
    45% { box-shadow: 0 0 0 4px rgba(15, 23, 42, .055); }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 768px) {
    .gk-spec-container {
        padding: 15px 14px;
        border-radius: 13px;
        margin-bottom: 22px;
    }

    .gk-spec-heading-row {
        gap: 9px;
        margin-bottom: 12px;
    }

    .gk-spec-heading-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .gk-spec-heading-icon svg {
        width: 18px;
        height: 18px;
    }

    .gk-spec-main-title {
        font-size: 17px;
    }

    .gk-spec-main-subtitle {
        font-size: 11.5px;
    }

    .gk-spec-section {
        padding: 10px 0;
    }

    .gk-spec-section-title {
        padding-bottom: 6px;
    }

    .gk-spec-section-title h3 {
        font-size: 14px;
    }

    .gk-spec-item-list {
        padding-inline: 10px;
        border-radius: 9px;
    }

    .gk-spec-item {
        grid-template-columns: minmax(102px, 38%) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
    }

    .gk-spec-label,
    .gk-spec-value {
        font-size: 12px;
        line-height: 1.65;
    }

    .gk-spec-value {
        text-align: right;
    }

    .gk-spec-trigger-btn {
        margin-top: 11px;
        padding-top: 8px;
        font-size: 12.5px;
    }

    .gk-native-section--specs .gk-native-section__heading {
        margin-bottom: 12px;
    }
}

@media (max-width: 420px) {
    .gk-spec-item {
        grid-template-columns: minmax(92px, 40%) minmax(0, 1fr);
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-spec-content-wrap,
    .gk-spec-trigger-chevron,
    .gk-spec-trigger-btn,
    .gk-spec-link,
    .gk-spec-value a {
        transition-duration: .01ms !important;
    }

    .gk-spec-container.gk-spec-scroll-highlight {
        animation: none;
    }
}
