/* 商品ページ専用スタイル */

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 商品詳細セクション */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* 商品画像エリア */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.placeholder-image {
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #000;
}

/* 商品情報エリア */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background-color: #ff4444;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

/* 商品説明 */
.product-description h3,
.product-specs h3,
.product-features h3 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.product-description p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 仕様テーブル */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 120px;
}

/* 購入セクション */
.purchase-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
}

.add-to-cart {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart:hover {
    background-color: #333;
}

/* 商品特徴 */
.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 600;
}

/* 関連商品 */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.related-products h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    background-color: #fff;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    font-size: 14px;
    color: #666;
}

.card-info {
    padding: 15px;
}

.card-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .purchase-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .thumbnail-images {
        justify-content: center;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
