/* ============================================================
   COWAY PRODUCT DETAIL PAGE - FIGMA MATCH PERFECT ALIGNED GRID
   ============================================================ */

.produk-detail-page {
    background-color: #F8FAFC;
    color: #333333;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
    opacity: 1;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* ------------------------------------------------------------
   1. HERO SHOWCASE SECTION (FIGMA MATCH 40:60 SPLIT)
   ------------------------------------------------------------ */
.detail-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    padding: 110px 0 60px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Right Dot Pattern Background Overlay */
.detail-hero-pattern {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 550px;
    height: 550px;
    background: url('/img/detail/hero_dot_pattern.png') no-repeat right center / contain;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

/* Master 1440px Aligned Grid Container */
.detail-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

/* Top Header Bar */
.detail-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 0 56px;
    box-sizing: border-box;
}

.detail-header-title {
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 42px;
    color: #333333;
    margin: 0;
    flex-shrink: 0;
}

.detail-header-line {
    flex: 1;
    height: 0;
    border-top: 2px solid #00A7E1;
}

.detail-header-category {
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 23px;
    color: #606060;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* 2-Column Showcase Content (40% : 60% Split) */
.detail-showcase-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Left Image & Colors Column */
.detail-img-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Left Image Box with Upright Arch Backdrop Dome */
.detail-img-cart-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    isolation: isolate;
    box-sizing: border-box;
}

/* Upright Arch Dome Background */
.detail-img-backdrop-arch {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 88px;
    background: linear-gradient(180deg, #00A7E1 0%, rgba(90, 190, 226, 0.7) 50%, rgba(181, 235, 255, 0) 100%);
    border-radius: 200px 200px 0px 0px;
    z-index: 0;
}

.detail-main-img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.detail-img-cart-box:hover .detail-main-img {
    transform: scale(1.05) translateY(-6px);
    filter: drop-shadow(0 22px 40px rgba(0, 167, 225, 0.25));
}

/* Available Colors Block */
.detail-colors-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 22px;
    box-sizing: border-box;
}

.colors-block-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #606060;
    text-align: center;
}

.colors-swatches-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.color-swatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.color-swatch-item:hover {
    transform: translateY(-2px);
}

.color-swatch-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-swatch-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #606060;
}

/* Right Details Column */
.detail-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.detail-prod-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #333333;
    margin: 0;
}

.detail-prod-code {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #777777;
    margin: 4px 0 0 0;
}

.detail-prod-subheading {
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 31px;
    color: #606060;
    margin: 24px 0 0 0;
}

.detail-prod-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 8px 0 0 0;
}

/* Checklist Features */
.detail-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    width: 100%;
}

.detail-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25 ease;
}

.detail-feature-item:hover {
    transform: translateX(4px);
}

.detail-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0097CC;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 151, 204, 0.3);
}

.detail-feature-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
}

/* CTA Button */
.detail-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    min-width: 210px;
    height: 48px;
    background: #00A7E1;
    border-radius: 24px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(0, 167, 225, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-cta-btn:hover {
    background: #008cc0;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 167, 225, 0.5);
    color: #FFFFFF;
}

/* ------------------------------------------------------------
   2. SPECIFICATIONS SECTION (FIGMA SPEC EXACT - EDGE TO EDGE #E7F9FF)
   ------------------------------------------------------------ */
.detail-spec-section {
    width: 100%;
    background: #E7F9FF;
    border-radius: 40px 40px 0 0;
    margin-top: 60px;
    padding: 80px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.detail-spec-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    box-sizing: border-box;
}

/* Left Spec Table Box */
.spec-left-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spec-box-title {
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 26px;
    color: #333333;
    margin: 0 0 24px 0;
}

.spec-table-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spec-table-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.5);
    transition: background-color 0.2s ease;
}

.spec-table-row:first-child {
    border-top: 1px solid rgba(54, 69, 79, 0.5);
}

.spec-table-row:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.spec-key {
    font-family: 'Noto Sans', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 13px;
    line-height: 26px;
    color: #36454F;
    width: 41.8%;
    flex-shrink: 0;
}

.spec-val {
    font-family: 'Noto Sans', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 13px;
    line-height: 26px;
    color: #36454F;
    width: 58.2%;
    text-align: left;
}

.spec-footnote {
    font-family: 'Noto Sans', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 15px;
    color: #36454F;
    margin-top: 15px;
}

/* Right Blueprint Slate Box (Solid #2E4852) */
.spec-right-blueprint {
    background-color: #2E4852;
    box-shadow: -8px 0px 20px rgba(0, 0, 0, 0.14);
    border-radius: 40px;
    padding: 40px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.blueprint-close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    opacity: 0.9;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blueprint-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.blueprint-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.spec-right-blueprint:hover .blueprint-img {
    transform: scale(1.02);
}

/* ------------------------------------------------------------
   3. ENTRANCE & EXIT ANIMATIONS
   ------------------------------------------------------------ */

.anim-fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------------------------------------------------------------
   4. FULL RESPONSIVE TIERS (DESKTOP, MACBOOK, TABLET, MOBILE)
   ------------------------------------------------------------ */

/* Tier 1: Macbook / Laptop (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .detail-hero-container {
        padding: 0 40px;
    }

    .detail-showcase-grid {
        grid-template-columns: 40% 60%;
        gap: 40px;
    }

    .detail-img-cart-box {
        max-width: 380px;
        height: 410px;
    }

    .detail-main-img {
        max-height: 410px;
    }

    .detail-prod-name {
        font-size: 32px;
        line-height: 40px;
    }

    .detail-prod-subheading {
        font-size: 22px;
    }

    .detail-spec-section {
        padding: 60px 0;
    }

    .detail-spec-container {
        padding: 0 40px;
        gap: 40px;
    }
}

/* Tier 2: Tablet Landscape & Portrait (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .detail-hero-section {
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
        display: block;
        padding: 110px 0 40px;
    }

    .detail-hero-pattern {
        display: none;
    }

    .detail-hero-container {
        padding: 0 32px;
    }

    .detail-header-bar {
        margin-bottom: 40px;
    }

    .detail-showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-img-left-col {
        width: 100%;
    }

    .detail-img-cart-box {
        max-width: 360px;
        height: 390px;
    }

    .detail-main-img {
        max-height: 390px;
    }

    .detail-info-col {
        align-items: center;
        text-align: center;
    }

    .detail-features-list {
        align-items: center;
    }

    .detail-cta-btn {
        margin-top: 28px;
    }

    .detail-spec-section {
        border-radius: 32px 32px 0 0;
        padding: 50px 0;
        margin-top: 48px;
    }

    .detail-spec-container {
        padding: 0 32px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .spec-right-blueprint {
        min-height: 420px;
    }
}

/* Tier 3: Mobile Devices (<= 767px) */
@media (max-width: 767px) {
    .detail-hero-section {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        padding: 125px 0 36px !important;
    }

    .detail-hero-pattern {
        display: none !important;
    }

    .detail-hero-container {
        padding: 0 20px;
    }

    .detail-header-bar {
        gap: 12px;
        margin-bottom: 24px;
    }

    .detail-header-title {
        font-size: 24px;
        line-height: 32px;
    }

    .detail-header-category {
        font-size: 14px;
    }

    .detail-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-img-left-col {
        width: 100%;
        margin: 0 auto;
    }

    .detail-img-cart-box {
        max-width: 300px;
        height: 340px;
    }

    .detail-img-backdrop-arch {
        top: 50px;
        border-radius: 150px 150px 0 0;
    }

    .detail-main-img {
        max-height: 340px;
    }

    .detail-colors-block {
        margin-top: 16px;
    }

    .colors-block-title {
        font-size: 14px;
    }

    .color-swatch-name {
        font-size: 14px;
    }

    .detail-info-col {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .detail-prod-name {
        font-size: 26px;
        line-height: 34px;
    }

    .detail-prod-code {
        font-size: 15px;
    }

    .detail-prod-subheading {
        font-size: 18px;
        line-height: 25px;
        margin-top: 14px;
    }

    .detail-prod-desc {
        font-size: 14px !important;
        line-height: 22px !important;
        color: #606060;
        margin: 8px 0 0 0;
        text-align: left;
    }

    .detail-features-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-top: 20px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .detail-feature-item {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .detail-check-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        margin-top: 1px !important;
        border-radius: 50% !important;
        background: #0097CC !important;
        color: #FFFFFF !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 6px rgba(0, 151, 204, 0.25) !important;
    }

    .detail-check-icon svg {
        width: 11px !important;
        height: 11px !important;
    }

    .detail-feature-text {
        font-family: 'Inter', sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 21px !important;
        color: #606060 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .detail-cta-btn {
        width: 100%;
        max-width: 320px;
        margin-top: 24px;
    }

    .detail-spec-section {
        position: relative !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 44px 0 !important;
        margin-top: 48px !important;
        clear: both !important;
    }

    .detail-spec-container {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .spec-table-row {
        padding: 10px 0;
    }

    .spec-key {
        font-size: 12px;
        width: 45%;
    }

    .spec-val {
        font-size: 12px;
        width: 55%;
    }

    .spec-right-blueprint {
        padding: 24px 12px;
        border-radius: 24px;
        min-height: 340px;
    }

    .blueprint-img {
        max-height: 340px;
    }
}

/* Tier 4: Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .detail-hero-section {
        padding-top: 125px !important;
    }

    .detail-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .detail-header-line {
        width: 100%;
        margin: 4px 0;
    }

    .detail-img-cart-box {
        max-width: 260px;
        height: 310px;
    }

    .detail-main-img {
        max-height: 310px;
    }

    .detail-prod-name {
        font-size: 22px;
        line-height: 28px;
    }

    .detail-prod-subheading {
        font-size: 16px;
    }

    .detail-prod-desc {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .detail-feature-text {
        font-size: 14px !important;
        line-height: 21px !important;
    }

    .spec-key {
        font-size: 11px;
    }

    .spec-val {
        font-size: 11px;
    }
}

