*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Jost', sans-serif;
    list-style: none;
    text-decoration: none;
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
}
.logo img{
    max-width: 120px;
    height: auto;
}
.navmenu{
    display: flex;

}
.navmenu a{
    color: #2c2c2c;
    font-size: 15px;
    text-transform: capitalize;
    padding: 10px 20px;
    font-weight: 400;
    transition: all .42s ease;
}
.navmenu a:hover{
    color: #ee1c47;
}
.nav-icon{
    display: flex;
    align-items: center;
}
.nav-icon i{
    font-size: 23px;
    margin-right: 20px;
}
.nav-icon i:hover{
    transform: scale(1.1);
    color: #ee1c47;
}
#menu-icon{
    font-size: 15px;
    color: #2c2c2c;
    z-index: 10001;
    cursor: pointer;
}
section{
    padding: 3% 7.8%;
}
.main-home{
    width: 100%;
    height: 100vh;
    background-image: url(image/rayya3.jpg);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}
.main-text h5{
    color: #ee1c47;
    font-size: 30px;
    text-transform: capitalize;
    font-weight: 500;
}
.main-text h1{
    color: #000;
    font-size: 65px;
    text-transform: capitalize;
    line-height: 1.1;
    font-weight: 600;
    margin: 6px 0 10px;
}
.main-text p{
    max-width: 350px;
    color: #333c56;
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
}
.main-btn{
    display: inline-block;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    border: 2px solid #111;
    padding: 12px 25px;
    transition: all .42s ease;
}
.main-btn:hover{
    background-color: #000;
    color: #fff;
}
.main-btn i{
    vertical-align: middle;
}
.down-arrow{
    position: absolute;
    top: 85%;
    right: 11%;
}
.down i{
    font-size: 30px;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
    border-radius: 50px;
    padding: 12px 12px;
}
.down i:hover{
    background-color: #2c2c2c;
    color: #fff;
    transition: all .42s ease;
}
header.sticky{
    background: #fff;
    padding: 20px 8%;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 10%);
}

/* Responsive-css */
@media(max-width:768px){
    header{
        padding: 20px 3%;
        transition: .4s;
    }
}

@media(max-width:768px){
    .navmenu{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 180px;
        height: 130vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: end;
        padding: 120px 30px;
        transition: all .42s;
    }
    .navmenu a{
        display: block;
        margin: 18px 0;
    }
    .navmenu.open{
        right:0;
    }
}

@media(max-width:630px){
    .main-text h1{
        font-size: 50px;
        transition: .4s;
    }
    .main-text p{
        font-size: 18px;
        transition: .4s;
    }
    .main-btn{
        font-size: 10px 20px;
        transition: .4s;
    }
}

.login-home{
    width: 100%;
    height: 100vh;
    background-image: url(image/bglayaa.jpeg);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}

.login-container {
  width: 300px;
  margin: 100px auto;
  padding: 20px 40px;
  background-color: #b68f51;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="username"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.input-group .btn {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.input-group .btn:hover {
  background-color: #0056b3;
}
@media (max-width: 600px) {
  .login-container {
    width: 90%;
    margin: 50px auto;
  }
  input[type="text"], input[type="password"], button[type="submit"] {
    font-size: 16px;
  }
}

.konfigurasi{
    display: flex;
    align-items: center; /* sejajar vertikal */
    gap: 5px;           /* jarak icon dan teks */
}

.kontainer {
    width: 300px auto;
    margin: 10px auto;
    padding: 20px 40px;
    background-color: #b68f51;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.kon-icon{
    display: flex;
    align-items: center; /* sejajar vertikal */
    gap: 30px;           /* jarak icon dan teks */
}

.kon-icon i{
    font-size: 60px;
}

.produk {
    width: 300px auto;
    margin: 10px auto;
    padding: 20px 46px;
    background-color: #b68f51;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.prod-icon {
    display: flex;
    align-items: center; /* sejajar vertikal */
    gap: 30px;           /* jarak icon dan teks */
}

.prod-icon i{
    font-size: 50px;
}

@media(max-width:768px){
.konfigurasi{
    flex-direction: column;  /* ubah jadi atas-bawah */
    align-items: center; 
}
.kontainer{
    width: auto;
    margin-bottom: 0.3em;
}
.produk{
    width: auto;
}
}

/* DEFAULT (DESKTOP) */
#menu-icon {
    font-size: 32px;
    cursor: pointer;
    display: none; /* burger HILANG */
}

/* NAV MENU DESKTOP */
.navmenu {
    display: flex;
    gap: 30px;
}

.navmenu li {
    position: relative;
    list-style: none;
}

/* submenu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

/* show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* burger MUNCUL */
    #menu-icon {
        display: block;
    }

    /* menu desktop DISIMPAN */
    .navmenu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.3s;
        z-index: 999;
    }

    .navmenu li {
        margin: 20px 0;
    }

    /* saat aktif */
    .navmenu.active {
        right: 0;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
    }

    .has-submenu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navmenu .dropdown-menu {
        position: absolute;
        top: 0;
        left: auto;
        right: 100%; /* ⬅️ keluar ke kiri */
        transform: translateX(10px);
        min-width: 200px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        transform: translateX(0);
    }
}

.user-menu {
    position: relative;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    border-radius: 6px;
    z-index: 1000;
}

.user-dropdown-menu li a {
    display: block;
    padding: 10px;
    color: #111;
}

.user-dropdown-menu li a:hover {
    background: #f5f5f5;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}


/* PRODUCTS */
.product-card {
    flex: 0 1 300px;               /* Lebar ideal setiap box produk */
    display: flex;
    flex-direction: column;
    align-items: center;           /* Mengetengahkan isi kartu (teks & tombol) */
    text-align: center;
    background: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.center-text h2{
    color: #111;
    font-size: 28px;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 30px;
}
.center-text span{
    color: #000000;
}

.product-text h5{
    position: absolute;
    top: 13px;
    left: 13px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #27b737;
    padding: 3px 10px;
    border-radius: 2px;
}

.categories-card {
    flex: 0 1 300px;               /* Lebar ideal setiap box produk */
    display: flex;
    flex-direction: column;
    align-items: center;           /* Mengetengahkan isi kartu (teks & tombol) */
    text-align: center;
    background: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.categories-card a{
    color: #000;
}

.products-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.products-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Foto utama terlihat */
.foto {
    opacity: 1;
    z-index: 1;
}

/* Foto hover tersembunyi */
.foto_hover {
    opacity: 0;
    z-index: 2;
}

/* Saat hover, foto utama hilang dan foto hover muncul */
.foto:hover {
    opacity: 0;
}

.foto_hover:hover {
    opacity: 1;
}

.products-image:hover img {
    transform: scale(1.1);
}

.price {
    margin-top: 10px; /* spasi antara gambar dan teks */
}

.price h3 {
    font-size: 18px;
    font-weight: 700;
}

.price h4 {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.price p {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

/* GRID CONTAINER */
.products .row {
    display: flex !important;      /* Menggunakan Flexbox */
    flex-wrap: wrap;               /* Supaya produk turun ke baris baru */
    justify-content: center;       /* MENGETENGAHKAN PRODUK SECARA HORIZONTAL */                    /* Jarak antar produk */
    margin: 0 auto;                /* Mengetengahkan seluruh blok */
    padding: 20px 0;
}

/* TABLET */
/* <= 1480px → 3 produk */
@media (max-width: 1480px) {
    .products .row {
        grid-template-columns: repeat(4, minmax(300px, 1fr));
    }
}

/*CATEGORIES*/


/* container gambar */
.categories-image {
    overflow: hidden;      /* ⬅️ kunci supaya zoom tidak keluar */
}

/* gambar */
.categories-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease-in-out;
}

/* hover di container */
.categories-image:hover img {
    transform: scale(1.2);
}

/* GRID CONTAINER*/
.categories .row {
    display: flex !important;      /* Menggunakan Flexbox */
    flex-wrap: wrap;               /* Supaya produk turun ke baris baru */
    justify-content: center;       /* MENGETENGAHKAN PRODUK SECARA HORIZONTAL */                    /* Jarak antar produk */
    margin: 0 auto;                /* Mengetengahkan seluruh blok */
    padding: 20px 0;
}

/* TABLET */
@media (max-width: 1480px) {
    .categories .row {
        grid-template-columns: repeat(4, minmax(300px, 1fr));
    }
}

/* ====================  TRENDING INDEX =====================*/
/* PRODUCTS */
.products .baris {
    display: flex !important;      /* Ubah dari grid ke flex agar bisa ditengah */
    flex-wrap: wrap;               /* Tetap bisa turun ke bawah jika layar sempit */
    justify-content: center;       /* POSISI TENGAH HORIZONTAL */
    margin: 0 auto;
}

/* ============================= */
/* 1480px ke bawah → 3 produk */
/* ============================= */
@media (max-width: 1480px) {
    .products .baris {
        grid-template-columns: repeat(3, 1fr);
    }

    /* sembunyikan produk ke-4 dan seterusnya */
    .products .baris > *:nth-child(n+3) {
        display: none;
    }
}


/* CATEGORIES */
.categories .baris {
    display: flex !important;      /* Ubah dari grid ke flex agar bisa ditengah */
    flex-wrap: wrap;               /* Tetap bisa turun ke bawah jika layar sempit */
    justify-content: center;       /* POSISI TENGAH HORIZONTAL */            
    margin: 0 auto;
    max-width: 1200px;
}

/* ============================= */
/* 1480px ke bawah → 3 produk */
/* ============================= */
@media (max-width: 1480px) {
    .categories .baris {
        grid-template-columns: repeat(3, 1fr);
    }

    /* sembunyikan produk ke-4 dan seterusnya */
    .categories .baris > *:nth-child(n+4) {
        display: none;
    }
}

/* ============================= */
/* 1030px ke bawah → 2 Categories */
/* ============================= */
@media (max-width: 1030px) {
    .categories .baris {
        grid-template-columns: repeat(2, 1fr);
    }

    /* sembunyikan produk ke-3 dan seterusnya */
    .categories .baris > *:nth-child(n+3) {
        display: none;
    }
}

#trending {
    scroll-margin-top: 60px; /* sesuaikan tinggi navbar */
}


/* ====================  SEARCH  =====================*/
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    width: 0;
    opacity: 0;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: 0.3s;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

/* Saat hover / focus */
.search-form:hover input,
.search-form input:focus {
    width: 160px;
    opacity: 1;
}

.products .row h2 {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    color: #999;
}

/* Product detail layout */
.container .row {
    padding: 10% 15%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: justify;
}

/* Gambar kiri */
.img-detail {
    flex: 1;
}

.img-detail img {
    width: 100%;
    max-width: 350px;
    display: block;
}

/* Keterangan kanan */
.keterangan {
    flex: 1;
}

.keterangan h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.keterangan p {
    margin-bottom: 10px;
}

.stok {
    margin-top: 15px;
    font-weight: 500;
}

/* 📱 Mobile */
@media (max-width: 1000px) {
    .container .row {
        flex-direction: column;
    }
}

.bx-shopping-bag span{
    visibility: hidden;
    opacity: 0;
    display: flex;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: red;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transition: opacity 0.2s ease;
}

svg{
    width: 30px;
}

.addCart{
    display: flex;
    background-color: #353432;
    color: #eee;
    padding: 5px 10px;
    border-radius: 20px;
    margin-top: 5px;
    border: none;
    cursor: pointer;
}

.cartTab{
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    inset: 0 -400px 0 auto;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: .5s;
    z-index: 1001; /* Pastikan lebih tinggi dari header/navbar */
}

body.showCart .cartTab{
        inset: 0 0 0 auto;
}

body.showCart .container{
    transform: translateX(-250px);
}

.cartTab h1{
    padding: 20px;
    margin: 0;
    font-weight: 300;
}

.cartTab .btn .checkout{
    display: block;
    padding: 10px 30px;
    background: #c34a1a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    margin: 5px auto 0;
    margin-bottom: 20px;
    cursor: pointer;
}

.cartTab .btn .close{
    position: absolute;
    background-color: #353432;
    top: 20px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
}

.cartTab .listCart .item img{
    width: 100%;
}

.cartTab .listCart .item{
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.listCart .quantity span{
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    columns: #555;
    border-radius: 50%;
    cursor: pointer;
}

.listCart .quantity span:nth-child(2){
    background-color: transparent;
    color: #eee;
}

.listCart .item:nth-child(even){
    background-color: #eee1;
}

.listCart{
    overflow: auto;
}

.listCart::-webkit-scrollbar{
    width: 0;
}

.item .quantity .plus,
.item .quantity .minus {
    color: black;      /* ubah warna teks */
    cursor: pointer;   /* menandakan bisa diklik */
    font-weight: bold; /* opsional, biar lebih tegas */
}

.total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.total-title {
    margin-right: 5px;
    font-weight: 300;
}

.total-price {
    margin-right: 127px;
    font-weight: 600;
}

.item-img-box {
    width: 64px; 
    height: 64px;
    background: #fff; 
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative; /* Penting agar badge angka ada di atas gambar */
    overflow: visible; /* Agar badge tidak terpotong */
}

.item-qty-badge {
    position: absolute; 
    top: -8px; 
    right: -8px;
    background: rgba(102, 102, 102, 0.9); 
    color: #fff;
    width: 20px; 
    height: 20px; 
    border-radius: 50%;
    font-size: 11px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 2;
}

header a:hover h1 {
    opacity: 0.7;
    transition: 0.3s;
}

/* Penyesuaian untuk main-container agar tidak terlalu mepet ke atas */
.main-container {
    margin-top: 20px;
}

@media (max-width: 850px) {
    header {
        padding: 20px 0; /* Padding lebih kecil di mobile */
    }
    header h1 {
        font-size: 22px; /* Font lebih kecil di mobile */
    }
}

/* Kontainer Varian Warna */
    .color-selection { margin: 25px 0; }
    .color-label { font-weight: 600; margin-bottom: 10px; display: block; }
    
    .color-list { display: flex; gap: 12px; flex-wrap: wrap; }
    
    .color-option {
        width: 50px;
        height: 50px;
        border: 2px solid #eee;
        border-radius: 8px; /* Gunakan 50% jika ingin lingkaran sempurna */
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .color-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Efek saat warna dipilih */
    .color-option.active {
        border-color: #333;
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .color-option:hover {
        border-color: #999;
    }

    /* Teks Nama Warna di bawah */
    .color-name-display {
        font-size: 14px;
        color: #666;
        font-weight: 400;
        margin-left: 5px;
    }

    .color-scroll-container {
        display: flex;
        gap: 12px;
        overflow-x: auto; /* Aktifkan scroll horizontal */
        padding: 10px 5px;
        scrollbar-width: thin; /* Untuk Firefox */
        -webkit-overflow-scrolling: touch; /* Scroll halus di mobile */
    }

    /* Sembunyikan scrollbar di Chrome/Safari agar lebih bersih (opsional) */
    .color-scroll-container::-webkit-scrollbar {
        height: 6px;
    }
    .color-scroll-container::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .opsi-warna {
        flex: 0 0 auto; /* Mencegah gambar menyusut */
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .opsi-warna img {
        width: 70px;  /* Sesuaikan ukuran thumbnail seperti di gambar Anda */
        height: 90px;
        object-fit: cover;
        border: 2px solid #eee;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    /* Efek saat warna aktif terpilih */
    .opsi-warna.active img {
        border-color: #000 !important;
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Penyesuaian gambar utama */
    #main-product-img {
        max-width: 450px;
        min-width: 280px;
        transition: opacity 0.3s ease;
    }

/* Kontainer kotak warna */
.product-color-options {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0;
}

/* Kotak warna utama */
.color-dot {
    width: 25px; height: 25px;
    border-radius: 4px; /* Kotak sedikit membulat sesuai gambar */
    border: 1px solid #ddd;
    display: inline-block;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

/* Tanda Silang Sold Out */
.color-dot.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-dot.sold-out::before, .color-dot.sold-out::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 1px;
    background: #ff0000;
}
.color-dot.sold-out::before { transform: translate(-50%, -50%) rotate(45deg); }
.color-dot.sold-out::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Efek pada kartu produk jika warna habis */
.product-card.is-sold-out .products-image img.foto {
    filter: grayscale(50%);
    opacity: 0.5;
}
/* Munculkan tulisan SOLD OUT di tengah gambar */
.product-card.is-sold-out .products-image::after {
    content: "SOLD OUT";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.product-size-options {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.size-item {
    padding: 5px 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
}

.size-item.selected {
    border-color: #000;
    background-color: #f0f0f0;
    font-weight: bold;
}

.size-item.out-of-stock {
    text-decoration: line-through;
    color: #ccc;
    cursor: not-allowed;
}

/* Efek Sold Out pada Kartu Produk */
.product-card.is-sold-out .product-img img {
    filter: grayscale(50%);
    opacity: 0.5;
}

.product-card.is-sold-out .sold-out-overlay {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Styling Overlay */
.sold-out-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    color: white;
    font-weight: bold;
    font-size: 20px;
    z-index: 5;
    display: none; /* Sembunyi jika tidak sold out */
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Tombol saat Disabled */
button.addCart:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    color: #666;
}

/* Ukuran yang Stoknya 0 */
.size-item.out-of-stock {
    background-color: #f0f0f0;
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
    border: 1px dashed #ccc;
}

/* Kotak Size Umum */
.size-item {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    margin-right: 5px;
    cursor: pointer;
    position: relative; /* Penting untuk posisi silang */
    background-color: #fff;
    min-width: 40px;
    text-align: center;
}

.size-item.selected {
    border: 2px solid #000;
    font-weight: bold;
}

/* State Stok Habis (Silang) */
.size-item.out-of-stock {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
    background-color: #fafafa;
}

/* Membuat garis silang merah */
.size-item.out-of-stock::before,
.size-item.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 0, 0, 0.5); /* Merah transparan */
}