@charset "utf-8";
/* =========================================
 * WooCommerce: ショップページ（一覧）専用スタイル
 * 読み込み先: wp-content/themes/ats/archive-product.css
 * ========================================= */

/* -----------------------------------------
 * バナーセクション
 * ----------------------------------------- */
.shop-banner-section {
    background-color: #f7f7f7;
    padding: 150px 0 0; 
    margin-bottom: 60px;
}

.shop-main-title {
    text-align: center;
    font-size: 40px;
    color: #444444;
    font-weight: bold;
    margin-bottom: 32px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.shop-banner-box {
    background-color: #fff;
    border: 1px solid #0A80FA;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 30px 20px 40px 10%;
    position: relative;
}

.banner-text-large {
    color: #0A80FA;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
}

.banner-link-btn {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #0A80FA;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.banner-link-btn:hover {
    opacity: 0.7;
}

/* -----------------------------------------
 * レイアウト全体
 * ----------------------------------------- */
.shop-layout-container#contents {
    /* 一覧の周りに余白を確保し、中央寄せにする */
    padding: 70px 10%;
    max-width: 100%;
    margin: 0 auto;
}

.shop-layout-container .inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.shop-main-content {
    width: 70%;
}

.shop-sidebar {
    width: 25%;
}

/* -----------------------------------------
 * 検索結果・並び替え（ループ上部）
 * ----------------------------------------- */
.shop-loop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.result-count {
    color: #666;
    font-size: 12px;
    margin: 0 !important;
}

.ordering-box select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    outline: none;
}

/* -----------------------------------------
 * 商品一覧グリッド・カード
 * ----------------------------------------- */
.shop-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 4%;
}

.shop-product-card {
    width: 30.666%;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.shop-product-card a.trans {
    text-decoration: none;
    color: inherit;
}

.shop-product-card .img {
    margin-bottom: 12px;
}

.shop-product-card .img img {
    width: 100%;
    height: auto;
    display: block;
}

/* タイトルのスタイル（水色と左ボーダー） */
.shop-product-card .product-title {
    font-size: 13px !important;
    font-weight: bold;
    color: #A4B8C3 !important;
    border-left: 3px solid #A4B8C3 !important;
    padding-left: 8px !important;
    margin-bottom: 8px !important;
    line-height: 1.3;
}

/* 価格のスタイル（右寄せ） */
.shop-product-card .price {
    font-size: 12px !important;
    color: #444444 !important;
    text-align: right;
    margin-bottom: 12px !important;
}

/* カートボタン */
.shop-product-card .ats_add_to_cart_btn {
    display: block;
    text-align: center;
    background-color: #444444 !important;
    color: #ffffff !important;
    padding: 6px 0 !important;
    text-decoration: none;
    border-radius: 5px !important;
    font-size: 16px;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.shop-product-card .ats_add_to_cart_btn:hover {
    background-color: #222222 !important;
}


/* -----------------------------------------
 * ページネーション
 * ----------------------------------------- */
.shop-pagination {
    text-align: center;
    margin-top: 50px;
}

.shop-pagination .page-numbers {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
}

.shop-pagination .page-numbers.current {
    background-color: #444;
    color: #fff;
}

.shop-pagination .page-numbers.prev,
.shop-pagination .page-numbers.next {
    font-size: 12px;
}


/* -----------------------------------------
 * サイドバー（ウィジェット）
 * ----------------------------------------- */
.shop-sidebar .widget-title {
    font-size: 24px;
    font-weight: bold;
    color: #444444;
    border-bottom: 7px solid #A4B8C3 !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
}

.widget_custom_categories {
    margin-bottom: 20px;
}

.widget_custom_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_custom_categories ul li {
    padding: 6px 0 !important;
    border-bottom: none !important;
    font-size: 12px !important;
}

.widget_custom_categories ul li a {
    display: block;
    color: #444444;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget_custom_categories ul li a:hover {
    color: #8da9d4 !important;
}

.widget_custom_search {
    margin-top: 20px;
    border-top: 2px solid #C7C7C7;
    padding-top: 30px;
}

.widget_custom_search .search-box-wrap {
    display: flex;
    overflow: hidden;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff;
}

.widget_custom_search .search-field {
    width: 100%;
    outline: none;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    color: #444444;
}

.widget_custom_search button {
    background: none;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #444444 !important;
}

/* =========================================
 * スマホ用（SP）レスポンシブスタイル（縦積み）
 * ========================================= */
@media screen and (max-width: 768px) {

    .shop-layout-container#contents {
        padding: 40px 20px;
    }

    .shop-banner-section {
        padding: 60px 0 0; 
        margin-bottom: 40px;
    }
    /* タイトルサイズの調整 */
    .shop-main-title {
        font-size: 24px;
    }
    .banner-text-large {
        font-size: 16px;
    }
    .shop-banner-box {
        padding-bottom: 50px;
    }

    /* メインエリアとサイドバーの縦積み */
    .shop-layout-container .inner {
        display: block !important;
    }
    .shop-main-content {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .shop-sidebar {
        width: 100% !important;
    }

    /* 商品一覧のSP表示（2列） */
    .shop-products-grid {
        display: flex !important; /* flexを有効にして2列配置 */
        flex-wrap: wrap !important;
    }
    .shop-product-card {
        width: 48% !important; /* 横幅48% + 隙間4%でぴったり2列になります */
        margin-bottom: 40px !important;
    }

    .shop-sidebar .widget-title { 
        font-size: 20px;
    }

    .widget_custom_categories ul li a {
        font-size: 14px;
    }
}
