.section-new-arrivals {
    margin-top: 140px;
    padding: 20px 5%;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.slider-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 8px;
}

@media (min-width: 768px) {
    .slider-track {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
}

/* --- PRODUCTS --- */
.section-title { 
    padding: 40px 5% 20px; 
    font-family: 'Syne', sans-serif; 
    font-size: 32px; 
    text-transform: uppercase;
 }

.products { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    padding: 0 5% 50px; 
}

.product-card { 
    border: var(--border); 
    padding: 10px; 
}

.product-card img { 
    width: 100%; 
    aspect-ratio: 3/4; 
    object-fit: cover; 
    border-bottom: var(--border); 
    margin-bottom: 10px; 
}

.price { 
    font-weight: 900; 
    color: var(--accent); 
}

/* NEW ARRIVALS SLIDER */
.section-new-arrivals {
    margin-top: -1px;
    padding: 10px 0 15px 0;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.new-arrivals-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    touch-action: pan-x;
}
.new-arrivals-slider.active { 
    cursor: grabbing; 
}

.product-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 4px;
    pointer-events: none;
    background: #ffffff;
}

.product-slide-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: none !important;
    -webkit-user-drag: none;
    pointer-events: none;
    touch-action: none;
}

/* BADGE */
.discount-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

/* INFO */
.product-info-below {
    text-align: left;
    padding: 0 6px;
    margin-top: 5px; /* Sedikit ruang tambahan */
}

/* Nama Produk: Hitam pekat, font tebal */
.product-name {
    font-size: 0.9rem;
    font-weight: 500;    /* Sangat tebal agar hitamnya terasa pekat */
    color: #000000;      /* Hitam murni */
    margin: 0 !important;   /* Menghilangkan semua margin bawaan */
    line-height: 1.1;      /* Mempersempit ruang antar baris teks */
    text-transform: uppercase; /* Opsional: menambah kesan bold */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Harga: Sangat tipis dan pudar */
.product-price {
    font-size: 0.8rem;
    font-weight: 200;    /* Sangat tipis (Light/Extra Light) */
    color: #000000;      /* Tetap hitam tapi kita mainkan opacity */
    opacity: 0.7;        /* Membuatnya terlihat pudar/abu-abu tipis */
    margin-top: 2px !important; /* Memberikan kontrol penuh jarak dari nama */
}

.discount-price {
    font-weight: 200;    /* Memastikan harga diskon juga tipis */
    color: inherit;
}

.original-price {
    font-size: 0.7rem;
    font-weight: 200;
    opacity: 0.6;        /* Harga coret juga sangat tipis */
    margin-right: 5px;
}


:root {
    --accent: #000000;
    --bg: #ffffff;
    --text: #000000;
    --border: 4px solid #000000;
    --shadow: 8px 8px 0px #000000;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-size: 0.8rem; /* Mengikuti skala sistem, lebih fleksibel */
    /* Font family minimalis (Sistem Modern) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   CTA BUTTON
========================= */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: #fff;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    border: var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    cursor: pointer;
}

/* DESKTOP HOVER */
@media (hover: hover) {
    .cta-btn:hover {
        transform: translate(-3px, -3px);
        box-shadow: 11px 11px 0px var(--text);
    }
}

/* =========================
   MOBILE OPTIMIZATION (< 767px)
========================= */
@media (max-width: 767px) {
    :root {
        --border: 2px solid #000000; /* Border lebih tipis agar tidak makan ruang */
        --shadow: 4px 4px 0px #000000;
    }

    /* 1. Perbaikan Section & Title */
    .section-new-arrivals {
        margin-top: 20px !important; /* Menghilangkan margin 140px yang terlalu jauh */
        padding: 10px 15px !important;
    }

    .section-title {
        font-size: 24px; /* Ukuran font lebih proporsional */
        padding: 20px 0 15px;
        text-align: left;
    }

    /* 2. Grid System (2 Kolom Tetap Rapi) */
    .slider-track, .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    /* 3. Product Card & Image */
    .product-card, .product-slide {
        padding: 5px; /* Kurangi padding karena border sudah hilang */
        border: none !important; /* Menghilangkan garis hitam */
        box-shadow: none !important; /* Menghilangkan bayangan jika ada */
    }

    .product-img-wrapper {
        border: none !important;
        margin-bottom: 8px;
    }

    .product-card img {
        border-bottom: none !important; /* Menghilangkan garis di bawah gambar */
    }

    /* 4. Tipografi (Mencegah Teks Menabrak) */
    .product-name {
        font-size: 0.75rem !important; /* Ukuran diperkecil */
        font-weight: 600 !important;   /* Tetap tegas/hitam */
        line-height: 1.1;
        margin-bottom: 0px !important;
        height: auto !important; /* Hapus tinggi kaku agar harga langsung menempel */
    }

    .product-price {
        font-size: 0.7rem !important;  /* Ukuran diperkecil */
        font-weight: 200 !important;   /* Sangat tipis */
        opacity: 0.6;
    }

    .original-price {
        font-size: 0.6rem;
        display: block; /* Taruh di atas harga diskon agar tidak sempit */
        margin-top: 0px !important; /* Harga menempel tepat di bawah nama */
    }

    /* 5. Badge Diskon */
    .discount-badge {
        font-size: 10px;
        padding: 2px 4px;
        top: 5px;
        right: 5px;
    }

    /* 6. CTA Button (Full Width) */
    .cta-btn {
        width: 100%;
        padding: 15px 10px;
        font-size: 16px;
        box-sizing: border-box;
    }
}

/* =========================
   IPAD / TABLET OPTIMIZATION
   (Portrait & Landscape)
========================= */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --border: 3px solid #000000;
        --shadow: 6px 6px 0px #000000;
    }

    /* 1. Spacing Section */
    .section-new-arrivals {
        margin-top: 60px !important;
        padding: 20px 4% !important;
    }

    .section-title {
        font-size: 5px;
        margin-bottom: 5px;
    }

    /* 2. Grid System (3 Kolom - Golden Mid) */
    /* Menggunakan 3 kolom agar gambar tetap besar dan detail terlihat jelas */
    .slider-track, .products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    /* 3. Product Card */
    .product-card, .product-slide {
        padding: 10px;
        border: none !important; /* Menghilangkan garis hitam */
        box-shadow: none !important;
    }

    .product-card img {
        border-bottom: none !important;
    }
    
    .product-img-wrapper {
        border: none !important;
    }

    /* 4. Tipografi iPad */
    .product-name {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        height: auto !important; /* Pastikan tinggi otomatis */
        margin-bottom: 2px !important;
    }

    .product-price {
        font-size: 1.1rem;
        margin-top: 0 !important;
    }

    .original-price {
        font-size: 0.9rem;
        margin-right: 8px;
    }

    /* 5. CTA Button (Tidak Full Width, Tapi Lebih Besar) */
    .cta-btn {
        width: auto;
        min-width: 250px;
        margin: 0 auto;
        display: flex;
        padding: 16px 30px;
        font-size: 17px;
    }
}

