/* ===================== */
/* product-collections */
/* ==================== */
.product-collections {
    padding: 80px 0;
}

.product-separator {
    display: none;
}


.collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

.collection-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.collection-card figure {
    margin: 0;
}

.collection-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.collection-card figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #222;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-card img {
        height: 240px;
    }
}

/* CATEGORY SECTION */
.category-section {
    padding: 20px 0 80px 0;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.category-item {
    flex: 0 1 calc(20% - 32px); /* 5 columns initially */
    min-width: 200px;
    text-align: center;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Image container - clean and simple */
.category-item .img-zoom {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
}

.category-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .category-item {
        flex: unset;
        min-width: unset;
        width: 100%;
        padding: 0;
    }
    
    .category-item img {
        height: 280px;
    }
    
    .category-item .img-zoom {
        margin-bottom: 12px;
    }
}

.subcategory-intro {
    color: #fff;
    height: 371px;
    padding: 0;
    display: flex;
    align-items: center;
}

.subcategory-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    height: 100%;
    align-items: stretch; /* Stretch to allow relative positioning context */
}

.subcategory-intro-left {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the group */
    position: relative;
}

.intro-uppertitle {
    position: absolute;
    top: 58px; /* Adjusted from 30px */
    left: 0;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.intro-group {
    /* Natural flow centers it because of justify-content: center on parent */
    margin-top: 10px; /* Slight offset if needed, or remove */
}

.intro-label {
    display: block;
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
}

.subcategory-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.subcategory-intro-right {
    display: flex;
    align-items: center; /* Center paragraph vertically */
}

.subcategory-intro-right p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 500px;
    text-align: justify;
}

/* MOBILE */
@media (max-width: 768px) {
    .subcategory-intro {
        padding: 80px 0;
    }

    .subcategory-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Mobile adjustments */
    .intro-uppertitle {
        display: none;
    }

    .intro-label {
        font-size: 16px; /* Matched to image visual */
        margin-bottom: 4px;
    }

    .subcategory-intro h2 {
        font-size: 32px; /* Matched to image visual */
    }

    .subcategory-intro-right p {
        text-align: justify;
        text-align-last: left;
        font-size: 13px; /* Slightly smaller for mobile reading */
        max-width: 100%;
        line-height: 1.6; /* Improve readability */
    }
}

.subcategory-showcase {
    width: 100%;
    margin-bottom: 40px;
}

.subcategory-showcase-media {
    width: 100%;
    height: min(70vh, 640px);
    overflow: hidden;
}

.subcategory-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .subcategory-showcase {
        margin-bottom: 24px;
    }

    .subcategory-showcase-media {
        height: 45vh;
    }
}
.series-section {
    padding-bottom: 140px;
}

.series-grid {
    display: grid;
    gap: 80px;
}

.series-grid-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.series-grid-center .series-card {
    flex: 0 1 calc(20% - 32px);
    min-width: 200px;
}

.series-card {
    text-align: center;
}

.series-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin-bottom: 24px;
}

.series-card h3 {
    font-size: 14px;
    margin-bottom: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
    .series-grid-center {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .series-grid-center .series-card {
        width: 100%;
        min-width: unset;
    }

    .series-card img {
        height: 280px;
    }
}
/* COLLECTION SECTION */
.collection-section {
    margin-top: 60px;
}

/* LABEL */
.collection-section .section-label {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* HERO IMAGE */
.collection-hero-media {
    width: 100%;
    margin-bottom: 40px; /* JARAK KE GRID */
}

.collection-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* PRODUCT GRID */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 24px;
}

/* PRODUCT ITEM */
.collection-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.collection-title {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.collection-code {
    font-size: 11px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.collection-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.collection-link img {
    transition: transform 0.3s ease;
}
/* =========================
   PRODUCT SPECIFICATION
========================= */
.product-specification {
    padding: 100px 0 20px 0;
}

.product-specification h3 {
    font-size: 28px;
    margin-bottom: 32px;
}

.spec-media img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 32px;
}

.spec-bottom {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 32px;
    align-items: center;
}

.spec-texture {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.spec-info strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.spec-info p {
    font-size: 14px;
    color: #555;
}

.spec-download {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .product-specification {
        padding: 0 0 40px 0; /* Remove top padding to merge with previous section */
    }

    .product-specification h3 {
        display: none;
    }

    .product-specification .collection-hero-media {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 24px;
        border-radius: 0 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .product-specification .collection-hero-media img {
        width: 100%;
        height: auto;
        border-radius: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    .spec-bottom {
        grid-template-columns: 1fr;
        padding-left: 16px; /* Restore padding for content */
        padding-right: 16px;
    }

    .spec-download {
        justify-content: flex-start;
    }
}
/* =========================
   RELATED PRODUCT
========================= */
.related-product {
    padding: 0 0 10px 0; /* Removed top padding */
}

.related-product h3 {
    font-size: 28px;
    margin-bottom: 32px;
    margin-top: 0;
}

.related-product .collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.collection-item {
    text-align: left;
    padding-bottom: 40px;
}

.collection-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.collection-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.collection-item p {
    font-size: 12px;
    color: #666;
}

.collection-item a {
    text-decoration: none;
    color: inherit;
}

.collection-item a:hover img {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .collection-grid,
    .related-product .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .collection-grid,
    .related-product .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px; /* Tighter gap for smaller screens */
    }

    .spec-media {
        /* Reverting negative margins to center only */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: unset;
    }

    .spec-media img {
        height: auto; /* Allow full height */
        margin-bottom: 16px; /* Reduced spacing */
    }


}



/* =========================
   PRODUCT SPECIFICATION DETAILS
========================= */
.spec-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 64px;
    margin-top: 64px;
    padding-bottom: 20px; /* Reduced from 40px */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* The requested line */
    width: 100%; /* Ensure full width */
}

.spec-texture {
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
}

.spec-info {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Tight spacing as per image */
    flex: 1;
}

.product-name {
    font-size: 32px; /* Larger as per image */
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.product-code {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.product-size {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .spec-bottom {
        flex-direction: column;
        gap: 24px; /* Reduced from 40px */
        margin-top: 24px; /* Reduced from 64px */
        align-items: center; /* Center items (info block) */
    }
    
    .spec-texture {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .spec-info {
        width: 100%; /* Ensure full width for text alignment */
        gap: 4px; /* Reduced from 16px */
        align-items: center;
        text-align: center;
    }

    .spec-info-header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-bottom: 0; /* Tight with size */
    }

    .product-name {
        font-size: 16px; /* Reduced to match design visually */
        font-weight: 700;
        margin-bottom: 0;
        line-height: 1.2;
        text-align: center;
    }

    .product-code {
        font-size: 16px; /* Match name size */
        margin: 0;
        line-height: 1.2;
        font-weight: 400; /* Regular weight for code */
        text-align: center;
    }

    .product-separator {
        display: inline-block;
        font-size: 16px;
        font-weight: 700; /* Bold dash like name */
    }

    .product-size {
        font-size: 14px; /* Slightly smaller */
        margin: 0;
        line-height: 1.2;
        color: #555;
    }

    /* DOWNLOAD SECTION */
    .product-detail-download {
        width: 100%;
        align-items: center;
        margin-top: 0; /* Reduced from 16px */
    }

    .product-download-heading {
        font-size: 16px; /* Match design scale */
        margin-bottom: 12px !important;
        text-align: center;
    }

    .product-download-btn-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-download {
        width: 100%;
        padding: 14px 0; /* Taller touch target */
        font-size: 14px;
        font-weight: 500;
        text-transform: capitalize; /* "Image Highres" */
        border-radius: 0; /* Sharp corners per design */
        transition: all 0.3s ease;
    }

    .btn-download-primary {
        background-color: #000;
        color: #fff;
        border: 1px solid #000;
    }

    .btn-download-outline {
        background-color: #fff;
        color: #000;
        border: 1px solid #000;
    }
}

.product-detail-download {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Matched to .spec-info */
    flex: 1; /* Match spec-info flex behavior */
    /* margin-top removed for natural alignment */
}

.product-download-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 !important; /* Force override of any default margins */
    line-height: 1; /* Tighten line height */
}

.product-download-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* responsive safety */
}

@media (max-width: 768px) {
    .collection-section .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Force link to be block so children stack */
    .collection-section .collection-link {
        display: block !important;
        text-align: center;
    }

    /* Match design: Centered and Inline Name + Code */
    .collection-section .collection-item {
        text-align: center !important;
    }

    .collection-section .collection-title {
        display: inline-block !important;
        width: auto !important;
        margin: 12px 4px 4px 0;
        font-size: 13px;
        font-weight: 700;
        vertical-align: baseline;
    }
    
    .collection-section .collection-code {
        display: inline-block !important;
        width: auto !important;
        margin-left: 0;
        font-size: 13px;
        color: #222;
        font-weight: 400;
        vertical-align: baseline;
    }

    /* Hide size on mobile */
    .collection-section .collection-size {
        display: none !important;
    }

    /* Hide Collection Label */
    .collection-section .section-label {
        display: none;
    }

    /* Full Width Hero */
    .collection-hero-media {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 24px;
        border-radius: 0 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .collection-hero-media img {
        width: 100%;
        height: auto;
        border-radius: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Remove Gap */
    .collection-section {
        margin-top: 0;
    }
}
