/*
 * 商品カード（#192）。cs-shop プラグインの cs-shop.css から商品カード・購入ボタン・クレジットの
 * ルールだけを写した（検索フォームとページ送りは Concrete では出さないので持たない）。
 * WP と見た目を揃えるため、値は変えていない。
 */
/* 商品コンテナ（1カラムレイアウト） */
.csshop-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 商品カード */
div.csshop-item {
    clear: both;
    width: 100%;
    margin-bottom: 30px;
    padding: 24px;
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: block;
    flex: none;
}

div.csshop-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

div.csshop-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
    color: #2d3748;
}

div.csshop-item h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

div.csshop-item h3 a:hover {
    color: #4299e1;
    text-decoration: none;
}

div.csshop-item div.image {
    float: left;
    margin-bottom: 16px;
    margin-right: 20px;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

div.csshop-item div.image a {
    display: block;
    transition: transform 0.3s ease;
}

div.csshop-item div.image a:hover {
    transform: scale(1.05);
}

div.csshop-item div.image img {
    display: block;
    border-radius: 12px;
}

div.csshop-item div.price {
    font-weight: 700;
    font-size: 24px;
    margin: 12px 0;
    padding: 8px 0;
}

div.csshop-item div.price a {
    color: #e53e3e;
    text-decoration: none;
    transition: color 0.3s ease;
}

div.csshop-item div.price a:hover {
    color: #c53030;
    text-decoration: none;
}

div.csshop-item div.shop {
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #f7fafc;
    border-radius: 8px;
    display: inline-block;
}

div.csshop-item div.shop a {
    color: #38a169;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

div.csshop-item div.shop a:hover {
    color: #2f855a;
}

div.csshop-item div.shop img {
    border: none;
    box-shadow: none;
    vertical-align: middle;
    margin-right: 6px;
}

div.csshop-item div.score {
    vertical-align: middle;
    margin: 10px 0;
    padding: 8px 0;
    font-size: 14px;
    color: #718096;
}

div.csshop-item div.score img {
    border: none;
    box-shadow: none;
    width: 18px;
    height: 18px;
    margin: 0 1px;
    padding: 0;
    vertical-align: middle;
}

div.csshop-item div.description {
    line-height: 1.8;
    color: #4a5568;
    font-size: 15px;
    margin: 16px 0;
    padding: 16px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

/* 購入ボタンのレイアウト設定 */
div.csshop-buy-button {
    clear: both;
    margin: 24px 0 0 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border: 3px dashed #f59e0b;
    border-radius: 12px;
}

a.csshop-btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

a.csshop-btn::before {
    content: '\25B6';
    margin-right: 12px;
    font-size: 18px;
    animation: arrow-bounce-right 1s ease-in-out infinite;
    display: inline-block;
}

a.csshop-btn::after {
    content: '\25C0';
    margin-left: 12px;
    font-size: 18px;
    animation: arrow-bounce-left 1s ease-in-out infinite;
    display: inline-block;
}

a.csshop-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5), 0 5px 15px rgba(217, 119, 6, 0.3);
    transform: translateY(-4px) scale(1.05);
}

a.csshop-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.6);
    }
    50% {
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4), 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

@keyframes arrow-bounce-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

@keyframes arrow-bounce-left {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-4px);
    }
}

/* サービスクレジット */
div.csshop-service-credits {
    clear: both;
    text-align: center;
    vertical-align: middle;
    margin-top: 40px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-top: 2px solid #e2e8f0;
}

div.csshop-service-credits img {
    border: none;
    box-shadow: none;
    vertical-align: middle;
    margin: 0 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

div.csshop-service-credits img:hover {
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    
    
    div.csshop-item {
        padding: 16px;
    }
    
    div.csshop-item div.image {
        float: none;
        margin: 0 auto 16px auto;
        text-align: center;
    }
    
    div.csshop-item h3 {
        font-size: 18px;
    }
    
    div.csshop-item div.price {
        font-size: 20px;
    }
    
    a.csshop-btn {
        padding: 14px 32px;
        font-size: 18px;
    }
}
