body {
    background-color: #333 !important;
}

.cg_freespace_01 {
  padding:0;
  margin:20px 0 20px 0;
}
.cg_freespace_02 {
  padding:0;
  margin:20px 0 20px 0;
}

.cg_freespace_01 p,
.cg_freespace_02 p {
  margin:0 0 10px 0;
}

.cg_freespace_01 ul,
.cg_freespace_02 ul {
  margin:0 0 10px 20px;
  padding:0;
}

/* =============================================
   Category
   ============================================= */

.simple_category_menu li img {
    height: 85px !important;
}

.simple_category_menu li a {
    padding: 10px 0 !important;
}

.simple_category_menu .cat-name {
    color: #fff;
}

.box_default ul li div p {
    color: #fff;
}

#side .box h3 {
    color: #fff;
}

.sort,
.sort a {
    color: #fff;
}

.footstamp a {
    color: #fff;
}

.box_small .item_box .item_detail a {
    color: #fff;
}

#main .box h3 {
    color: #fff;
}

.item_box .item_detail p.item_price {
    color: #fff;
}

.sort span {
    color: #333;
}

/* =============================================
   Product List Page Responsive
   ============================================= */
@media screen and (max-width: 1300px) {
    .footstamp, .pageNav, .sort, .sub_category_area, .sub_group_area {
        padding: 0 2%;
    }
}

@media screen and (max-width: 820px) {
    .item_box {
        width: 48% !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
        float: left;
    }
 
    br[style*="clear:both"] {
        display: none;
    }

    .sub_category, .sub_group {
        width: 31%;
        margin-bottom: 20px;
        font-size: 13px;
    }

    .sort {
        font-size: 13px;
        line-height: 2;
        text-align: center;
    }
}

@media screen and (max-width: 590px) {
    .item_box {
        margin-left: 0 !important;
        margin-bottom: 20px !important;
    }

    .item_name {
        font-size: 11px;
        height: 2.8em;
        overflow: hidden;
        margin-top: 8px;
    }
    .item_price {
        font-size: 11px;
    }

    .pageNav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 20px 0px;
    }
    .pageNav span {
        margin: 0 !important;
        padding: 5px 10px;
        background: #f5f5f5;
        border-radius: 3px;
    }
    .pageNav .carent {
        background: #9B8356;
        color: #fff;
    }

    .sub_category, .sub_group {
        width: 48%;
    }

    .footstamp {
        font-size: 11px;
        line-height: 1.8;
    }
}

/* =============================================
   Category
   ============================================= */

.simple_category_menu li img {
    height: 85px !important;
}

.simple_category_menu li a {
    padding: 10px 0 !important;
}

/* ==========================================
   product_list
   ========================================== */

.product_list_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 30px !important;
    row-gap: 50px !important;
    margin-top: 30px;
}

.item_list .product_list_grid .item_box {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: none !important;
    transition: transform 0.3s ease;
}

.item_list .product_list_grid .item_box:hover {
    transform: translateY(-4px);
}

.item_list .product_list_grid .item_image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 5px !important;
    text-align: center;
    overflow: hidden;
}

.item_list .product_list_grid .item_image img.item {
    max-width: 100% !important;
    max-height: 280px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.item_list .product_list_grid .soldout_item .item_image img.item {
    opacity: 0.5;
}

.item_list .product_list_grid .item_detail {
    text-align: center !important;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.item_list .product_list_grid .item_name {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    height: auto !important;
}

.item_list .product_list_grid .item_name a {
    color: #fff !important;
    text-decoration: none !important;
}

.item_list .product_list_grid .item_price {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #fff !important;
    margin-top: auto !important;
    line-height: 1.5;
}

.item_list .product_list_grid .regular_price {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    color: #999999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.item_list .product_list_grid .discount_badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #d9534f;
    font-weight: normal;
    margin-left: 5px;
}

@media screen and (max-width: 768px) {
    .product_list_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 12px !important;
        row-gap: 25px !important;
    }

    .item_list .product_list_grid .item_image img.item {
        max-height: 180px;
    }

    .item_list .product_list_grid .item_name {
        font-size: 0.85rem !important;
    }

    .item_list .product_list_grid .item_price {
        font-size: 0.9rem !important;
    }
  
    .item_box .item_detail {
        margin: 8px 0 0;
    }
}